Update release making notes.
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
405ea7a0
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
252b5132
RH
3#
4# Makefile for directory with subdirs to build.
5cec67bf 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
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 944 maybe-configure-zlib \
73cc7272 945 maybe-configure-gnulib \
01027315 946 maybe-configure-gdbsupport \
dd12c3a8
NN
947 maybe-configure-gdb \
948 maybe-configure-expect \
949 maybe-configure-guile \
950 maybe-configure-tk \
dd12c3a8 951 maybe-configure-libtermcap \
b00612cc 952 maybe-configure-utils \
700d40ca 953 maybe-configure-gnattools \
1b6c0831
L
954 maybe-configure-lto-plugin \
955 maybe-configure-libcc1 \
0e65dfba
NA
956 maybe-configure-gotools \
957 maybe-configure-libctf
dd12c3a8
NN
958.PHONY: configure-target
959configure-target: \
960 maybe-configure-target-libstdc++-v3 \
5286fdef 961 maybe-configure-target-libsanitizer \
1b6c0831 962 maybe-configure-target-libmpx \
95e43135 963 maybe-configure-target-libvtv \
e3f56a99 964 maybe-configure-target-libcilkrts \
1b6c0831 965 maybe-configure-target-liboffloadmic \
064d0a7c 966 maybe-configure-target-libssp \
dd12c3a8 967 maybe-configure-target-newlib \
6aa8ef82 968 maybe-configure-target-libgcc \
2bf680c4 969 maybe-configure-target-libbacktrace \
e552509b 970 maybe-configure-target-libquadmath \
4b1cb4fe 971 maybe-configure-target-libgfortran \
dd12c3a8 972 maybe-configure-target-libobjc \
e552509b 973 maybe-configure-target-libgo \
dd12c3a8
NN
974 maybe-configure-target-libtermcap \
975 maybe-configure-target-winsup \
976 maybe-configure-target-libgloss \
dd12c3a8 977 maybe-configure-target-libffi \
dd12c3a8 978 maybe-configure-target-zlib \
a2592b1b 979 maybe-configure-target-rda \
b3ded179 980 maybe-configure-target-libada \
7ec59b9e
L
981 maybe-configure-target-libgomp \
982 maybe-configure-target-libitm \
983 maybe-configure-target-libatomic
252b5132 984
319cab08
PB
985# The target built for a native non-bootstrap build.
986.PHONY: all
f70224b5
PB
987all:
988@if gcc-bootstrap
be01d343 989 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
990 @r=`${PWD_COMMAND}`; export r; \
991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 992 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 993@endif gcc-bootstrap
0aed8855 994 @: $(MAKE); $(unstage)
f70224b5
PB
995 @r=`${PWD_COMMAND}`; export r; \
996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 997@if gcc-bootstrap
b5233201 998 if [ -f stage_last ]; then \
07fc31c9 999 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 1000 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 1001 else \
1b05fbbd 1002@endif gcc-bootstrap
b5233201
AO
1003 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
1004@if gcc-bootstrap
1005 ; \
04ec0acb 1006 fi \
b5233201 1007@endif gcc-bootstrap
04ec0acb 1008 && :
6a9cf61e
PB
1009
1010.PHONY: all-build
c52c6897
PB
1011
1012all-build: maybe-all-build-libiberty
1013all-build: maybe-all-build-bison
c52c6897
PB
1014all-build: maybe-all-build-flex
1015all-build: maybe-all-build-m4
1016all-build: maybe-all-build-texinfo
1017all-build: maybe-all-build-fixincludes
1b6c0831 1018all-build: maybe-all-build-libcpp
c52c6897 1019
dd12c3a8 1020.PHONY: all-host
c52c6897 1021
c52c6897
PB
1022@if bfd-no-bootstrap
1023all-host: maybe-all-bfd
1024@endif bfd-no-bootstrap
1025@if opcodes-no-bootstrap
1026all-host: maybe-all-opcodes
1027@endif opcodes-no-bootstrap
1028@if binutils-no-bootstrap
1029all-host: maybe-all-binutils
1030@endif binutils-no-bootstrap
1031all-host: maybe-all-bison
f9806fa5 1032all-host: maybe-all-cgen
c52c6897 1033all-host: maybe-all-dejagnu
c52c6897
PB
1034all-host: maybe-all-etc
1035all-host: maybe-all-fastjar
201f096f 1036@if fixincludes-no-bootstrap
c52c6897 1037all-host: maybe-all-fixincludes
201f096f 1038@endif fixincludes-no-bootstrap
c52c6897
PB
1039all-host: maybe-all-flex
1040@if gas-no-bootstrap
1041all-host: maybe-all-gas
1042@endif gas-no-bootstrap
1043@if gcc-no-bootstrap
1044all-host: maybe-all-gcc
1045@endif gcc-no-bootstrap
4b900473
PB
1046@if gmp-no-bootstrap
1047all-host: maybe-all-gmp
1048@endif gmp-no-bootstrap
1049@if mpfr-no-bootstrap
1050all-host: maybe-all-mpfr
1051@endif mpfr-no-bootstrap
e8a5fa9c
RW
1052@if mpc-no-bootstrap
1053all-host: maybe-all-mpc
1054@endif mpc-no-bootstrap
7ec59b9e
L
1055@if isl-no-bootstrap
1056all-host: maybe-all-isl
1057@endif isl-no-bootstrap
1f53ca9a
AO
1058@if libelf-no-bootstrap
1059all-host: maybe-all-libelf
1060@endif libelf-no-bootstrap
93f9b408
ILT
1061@if gold-no-bootstrap
1062all-host: maybe-all-gold
1063@endif gold-no-bootstrap
c52c6897 1064all-host: maybe-all-gprof
c52c6897
PB
1065@if intl-no-bootstrap
1066all-host: maybe-all-intl
1067@endif intl-no-bootstrap
1068all-host: maybe-all-tcl
1069all-host: maybe-all-itcl
1070@if ld-no-bootstrap
1071all-host: maybe-all-ld
1072@endif ld-no-bootstrap
2bf680c4
ILT
1073@if libbacktrace-no-bootstrap
1074all-host: maybe-all-libbacktrace
1075@endif libbacktrace-no-bootstrap
c52c6897
PB
1076@if libcpp-no-bootstrap
1077all-host: maybe-all-libcpp
1078@endif libcpp-no-bootstrap
1079@if libdecnumber-no-bootstrap
1080all-host: maybe-all-libdecnumber
1081@endif libdecnumber-no-bootstrap
1082all-host: maybe-all-libgui
1083@if libiberty-no-bootstrap
1084all-host: maybe-all-libiberty
1085@endif libiberty-no-bootstrap
1b6c0831
L
1086@if libiberty-linker-plugin-no-bootstrap
1087all-host: maybe-all-libiberty-linker-plugin
1088@endif libiberty-linker-plugin-no-bootstrap
016a3251 1089@if libiconv-no-bootstrap
dc448a7b 1090all-host: maybe-all-libiconv
016a3251 1091@endif libiconv-no-bootstrap
c52c6897 1092all-host: maybe-all-m4
c52c6897 1093all-host: maybe-all-readline
c52c6897
PB
1094all-host: maybe-all-sid
1095all-host: maybe-all-sim
c52c6897 1096all-host: maybe-all-texinfo
c52c6897
PB
1097@if zlib-no-bootstrap
1098all-host: maybe-all-zlib
1099@endif zlib-no-bootstrap
73cc7272 1100all-host: maybe-all-gnulib
01027315 1101all-host: maybe-all-gdbsupport
c52c6897
PB
1102all-host: maybe-all-gdb
1103all-host: maybe-all-expect
1104all-host: maybe-all-guile
1105all-host: maybe-all-tk
1106all-host: maybe-all-libtermcap
1107all-host: maybe-all-utils
1108all-host: maybe-all-gnattools
700d40ca
ILT
1109@if lto-plugin-no-bootstrap
1110all-host: maybe-all-lto-plugin
1111@endif lto-plugin-no-bootstrap
1b6c0831
L
1112all-host: maybe-all-libcc1
1113all-host: maybe-all-gotools
0e65dfba
NA
1114@if libctf-no-bootstrap
1115all-host: maybe-all-libctf
1116@endif libctf-no-bootstrap
c52c6897 1117
dd12c3a8 1118.PHONY: all-target
c52c6897 1119
e8a5fa9c 1120@if target-libstdc++-v3-no-bootstrap
c52c6897 1121all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1122@endif target-libstdc++-v3-no-bootstrap
5eb08693 1123@if target-libsanitizer-no-bootstrap
5286fdef 1124all-target: maybe-all-target-libsanitizer
5eb08693 1125@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1126@if target-libmpx-no-bootstrap
1127all-target: maybe-all-target-libmpx
1128@endif target-libmpx-no-bootstrap
95e43135
JBG
1129@if target-libvtv-no-bootstrap
1130all-target: maybe-all-target-libvtv
1131@endif target-libvtv-no-bootstrap
e3f56a99 1132all-target: maybe-all-target-libcilkrts
1b6c0831 1133all-target: maybe-all-target-liboffloadmic
c52c6897 1134all-target: maybe-all-target-libssp
c52c6897 1135all-target: maybe-all-target-newlib
f86e35b8 1136@if target-libgcc-no-bootstrap
6aa8ef82 1137all-target: maybe-all-target-libgcc
f86e35b8 1138@endif target-libgcc-no-bootstrap
2bf680c4 1139all-target: maybe-all-target-libbacktrace
e552509b 1140all-target: maybe-all-target-libquadmath
c52c6897
PB
1141all-target: maybe-all-target-libgfortran
1142all-target: maybe-all-target-libobjc
e552509b 1143all-target: maybe-all-target-libgo
c52c6897
PB
1144all-target: maybe-all-target-libtermcap
1145all-target: maybe-all-target-winsup
1146all-target: maybe-all-target-libgloss
c52c6897 1147all-target: maybe-all-target-libffi
c52c6897 1148all-target: maybe-all-target-zlib
c52c6897
PB
1149all-target: maybe-all-target-rda
1150all-target: maybe-all-target-libada
911e63d0 1151@if target-libgomp-no-bootstrap
c52c6897 1152all-target: maybe-all-target-libgomp
911e63d0 1153@endif target-libgomp-no-bootstrap
7ec59b9e
L
1154all-target: maybe-all-target-libitm
1155all-target: maybe-all-target-libatomic
252b5132
RH
1156
1157# Do a target for all the subdirectories. A ``make do-X'' will do a
1158# ``make X'' in all subdirectories (because, in general, there is a
1159# dependency (below) of X upon do-X, a ``make X'' will also do this,
1160# but it may do additional work as well).
e393202e 1161
2a4cbe27 1162.PHONY: do-info
f70224b5 1163do-info:
0aed8855 1164 @: $(MAKE); $(unstage)
e360f423
PB
1165 @r=`${PWD_COMMAND}`; export r; \
1166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1167 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1168 info-target
f70224b5 1169
e393202e 1170
2a4cbe27 1171.PHONY: info-host
c52c6897 1172
c52c6897
PB
1173info-host: maybe-info-bfd
1174info-host: maybe-info-opcodes
1175info-host: maybe-info-binutils
1176info-host: maybe-info-bison
f9806fa5 1177info-host: maybe-info-cgen
c52c6897 1178info-host: maybe-info-dejagnu
c52c6897
PB
1179info-host: maybe-info-etc
1180info-host: maybe-info-fastjar
c52c6897
PB
1181info-host: maybe-info-fixincludes
1182info-host: maybe-info-flex
1183info-host: maybe-info-gas
1184info-host: maybe-info-gcc
4b900473
PB
1185info-host: maybe-info-gmp
1186info-host: maybe-info-mpfr
e8a5fa9c 1187info-host: maybe-info-mpc
7ec59b9e 1188info-host: maybe-info-isl
1f53ca9a 1189info-host: maybe-info-libelf
93f9b408 1190info-host: maybe-info-gold
c52c6897 1191info-host: maybe-info-gprof
c52c6897
PB
1192info-host: maybe-info-intl
1193info-host: maybe-info-tcl
1194info-host: maybe-info-itcl
1195info-host: maybe-info-ld
2bf680c4 1196info-host: maybe-info-libbacktrace
c52c6897
PB
1197info-host: maybe-info-libcpp
1198info-host: maybe-info-libdecnumber
1199info-host: maybe-info-libgui
1200info-host: maybe-info-libiberty
1b6c0831 1201info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1202info-host: maybe-info-libiconv
c52c6897 1203info-host: maybe-info-m4
c52c6897 1204info-host: maybe-info-readline
c52c6897
PB
1205info-host: maybe-info-sid
1206info-host: maybe-info-sim
c52c6897 1207info-host: maybe-info-texinfo
c52c6897 1208info-host: maybe-info-zlib
73cc7272 1209info-host: maybe-info-gnulib
01027315 1210info-host: maybe-info-gdbsupport
c52c6897
PB
1211info-host: maybe-info-gdb
1212info-host: maybe-info-expect
1213info-host: maybe-info-guile
1214info-host: maybe-info-tk
1215info-host: maybe-info-libtermcap
1216info-host: maybe-info-utils
1217info-host: maybe-info-gnattools
700d40ca 1218info-host: maybe-info-lto-plugin
1b6c0831
L
1219info-host: maybe-info-libcc1
1220info-host: maybe-info-gotools
0e65dfba 1221info-host: maybe-info-libctf
252b5132 1222
2a4cbe27 1223.PHONY: info-target
c52c6897
PB
1224
1225info-target: maybe-info-target-libstdc++-v3
5286fdef 1226info-target: maybe-info-target-libsanitizer
1b6c0831 1227info-target: maybe-info-target-libmpx
95e43135 1228info-target: maybe-info-target-libvtv
e3f56a99 1229info-target: maybe-info-target-libcilkrts
1b6c0831 1230info-target: maybe-info-target-liboffloadmic
c52c6897 1231info-target: maybe-info-target-libssp
c52c6897 1232info-target: maybe-info-target-newlib
6aa8ef82 1233info-target: maybe-info-target-libgcc
2bf680c4 1234info-target: maybe-info-target-libbacktrace
e552509b 1235info-target: maybe-info-target-libquadmath
c52c6897
PB
1236info-target: maybe-info-target-libgfortran
1237info-target: maybe-info-target-libobjc
e552509b 1238info-target: maybe-info-target-libgo
c52c6897
PB
1239info-target: maybe-info-target-libtermcap
1240info-target: maybe-info-target-winsup
1241info-target: maybe-info-target-libgloss
c52c6897 1242info-target: maybe-info-target-libffi
c52c6897 1243info-target: maybe-info-target-zlib
c52c6897
PB
1244info-target: maybe-info-target-rda
1245info-target: maybe-info-target-libada
1246info-target: maybe-info-target-libgomp
7ec59b9e
L
1247info-target: maybe-info-target-libitm
1248info-target: maybe-info-target-libatomic
252b5132 1249
4fa63067 1250.PHONY: do-dvi
f70224b5 1251do-dvi:
0aed8855 1252 @: $(MAKE); $(unstage)
e360f423
PB
1253 @r=`${PWD_COMMAND}`; export r; \
1254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1255 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1256 dvi-target
f70224b5 1257
2a4cbe27 1258
4fa63067 1259.PHONY: dvi-host
c52c6897 1260
c52c6897
PB
1261dvi-host: maybe-dvi-bfd
1262dvi-host: maybe-dvi-opcodes
1263dvi-host: maybe-dvi-binutils
1264dvi-host: maybe-dvi-bison
f9806fa5 1265dvi-host: maybe-dvi-cgen
c52c6897 1266dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1267dvi-host: maybe-dvi-etc
1268dvi-host: maybe-dvi-fastjar
c52c6897
PB
1269dvi-host: maybe-dvi-fixincludes
1270dvi-host: maybe-dvi-flex
1271dvi-host: maybe-dvi-gas
1272dvi-host: maybe-dvi-gcc
4b900473
PB
1273dvi-host: maybe-dvi-gmp
1274dvi-host: maybe-dvi-mpfr
e8a5fa9c 1275dvi-host: maybe-dvi-mpc
7ec59b9e 1276dvi-host: maybe-dvi-isl
1f53ca9a 1277dvi-host: maybe-dvi-libelf
93f9b408 1278dvi-host: maybe-dvi-gold
c52c6897 1279dvi-host: maybe-dvi-gprof
c52c6897
PB
1280dvi-host: maybe-dvi-intl
1281dvi-host: maybe-dvi-tcl
1282dvi-host: maybe-dvi-itcl
1283dvi-host: maybe-dvi-ld
2bf680c4 1284dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1285dvi-host: maybe-dvi-libcpp
1286dvi-host: maybe-dvi-libdecnumber
1287dvi-host: maybe-dvi-libgui
1288dvi-host: maybe-dvi-libiberty
1b6c0831 1289dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1290dvi-host: maybe-dvi-libiconv
c52c6897 1291dvi-host: maybe-dvi-m4
c52c6897 1292dvi-host: maybe-dvi-readline
c52c6897
PB
1293dvi-host: maybe-dvi-sid
1294dvi-host: maybe-dvi-sim
c52c6897 1295dvi-host: maybe-dvi-texinfo
c52c6897 1296dvi-host: maybe-dvi-zlib
73cc7272 1297dvi-host: maybe-dvi-gnulib
01027315 1298dvi-host: maybe-dvi-gdbsupport
c52c6897
PB
1299dvi-host: maybe-dvi-gdb
1300dvi-host: maybe-dvi-expect
1301dvi-host: maybe-dvi-guile
1302dvi-host: maybe-dvi-tk
1303dvi-host: maybe-dvi-libtermcap
1304dvi-host: maybe-dvi-utils
1305dvi-host: maybe-dvi-gnattools
700d40ca 1306dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1307dvi-host: maybe-dvi-libcc1
1308dvi-host: maybe-dvi-gotools
0e65dfba 1309dvi-host: maybe-dvi-libctf
2a4cbe27 1310
4fa63067 1311.PHONY: dvi-target
c52c6897
PB
1312
1313dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1314dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1315dvi-target: maybe-dvi-target-libmpx
95e43135 1316dvi-target: maybe-dvi-target-libvtv
e3f56a99 1317dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1318dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1319dvi-target: maybe-dvi-target-libssp
c52c6897 1320dvi-target: maybe-dvi-target-newlib
6aa8ef82 1321dvi-target: maybe-dvi-target-libgcc
2bf680c4 1322dvi-target: maybe-dvi-target-libbacktrace
e552509b 1323dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1324dvi-target: maybe-dvi-target-libgfortran
1325dvi-target: maybe-dvi-target-libobjc
e552509b 1326dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1327dvi-target: maybe-dvi-target-libtermcap
1328dvi-target: maybe-dvi-target-winsup
1329dvi-target: maybe-dvi-target-libgloss
c52c6897 1330dvi-target: maybe-dvi-target-libffi
c52c6897 1331dvi-target: maybe-dvi-target-zlib
c52c6897
PB
1332dvi-target: maybe-dvi-target-rda
1333dvi-target: maybe-dvi-target-libada
1334dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1335dvi-target: maybe-dvi-target-libitm
1336dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1337
56a8fe78
DD
1338.PHONY: do-pdf
1339do-pdf:
1340 @: $(MAKE); $(unstage)
1341 @r=`${PWD_COMMAND}`; export r; \
1342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1343 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1344 pdf-target
1345
1346
1347.PHONY: pdf-host
1348
56a8fe78
DD
1349pdf-host: maybe-pdf-bfd
1350pdf-host: maybe-pdf-opcodes
1351pdf-host: maybe-pdf-binutils
1352pdf-host: maybe-pdf-bison
f9806fa5 1353pdf-host: maybe-pdf-cgen
56a8fe78 1354pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1355pdf-host: maybe-pdf-etc
1356pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1357pdf-host: maybe-pdf-fixincludes
1358pdf-host: maybe-pdf-flex
1359pdf-host: maybe-pdf-gas
1360pdf-host: maybe-pdf-gcc
4b900473
PB
1361pdf-host: maybe-pdf-gmp
1362pdf-host: maybe-pdf-mpfr
e8a5fa9c 1363pdf-host: maybe-pdf-mpc
7ec59b9e 1364pdf-host: maybe-pdf-isl
1f53ca9a 1365pdf-host: maybe-pdf-libelf
93f9b408 1366pdf-host: maybe-pdf-gold
56a8fe78 1367pdf-host: maybe-pdf-gprof
56a8fe78
DD
1368pdf-host: maybe-pdf-intl
1369pdf-host: maybe-pdf-tcl
1370pdf-host: maybe-pdf-itcl
1371pdf-host: maybe-pdf-ld
2bf680c4 1372pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1373pdf-host: maybe-pdf-libcpp
1374pdf-host: maybe-pdf-libdecnumber
1375pdf-host: maybe-pdf-libgui
1376pdf-host: maybe-pdf-libiberty
1b6c0831 1377pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1378pdf-host: maybe-pdf-libiconv
56a8fe78 1379pdf-host: maybe-pdf-m4
56a8fe78 1380pdf-host: maybe-pdf-readline
56a8fe78
DD
1381pdf-host: maybe-pdf-sid
1382pdf-host: maybe-pdf-sim
56a8fe78 1383pdf-host: maybe-pdf-texinfo
56a8fe78 1384pdf-host: maybe-pdf-zlib
73cc7272 1385pdf-host: maybe-pdf-gnulib
01027315 1386pdf-host: maybe-pdf-gdbsupport
56a8fe78
DD
1387pdf-host: maybe-pdf-gdb
1388pdf-host: maybe-pdf-expect
1389pdf-host: maybe-pdf-guile
1390pdf-host: maybe-pdf-tk
1391pdf-host: maybe-pdf-libtermcap
1392pdf-host: maybe-pdf-utils
1393pdf-host: maybe-pdf-gnattools
700d40ca 1394pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1395pdf-host: maybe-pdf-libcc1
1396pdf-host: maybe-pdf-gotools
0e65dfba 1397pdf-host: maybe-pdf-libctf
56a8fe78
DD
1398
1399.PHONY: pdf-target
1400
1401pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1402pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1403pdf-target: maybe-pdf-target-libmpx
95e43135 1404pdf-target: maybe-pdf-target-libvtv
e3f56a99 1405pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1406pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1407pdf-target: maybe-pdf-target-libssp
1408pdf-target: maybe-pdf-target-newlib
6aa8ef82 1409pdf-target: maybe-pdf-target-libgcc
2bf680c4 1410pdf-target: maybe-pdf-target-libbacktrace
e552509b 1411pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1412pdf-target: maybe-pdf-target-libgfortran
1413pdf-target: maybe-pdf-target-libobjc
e552509b 1414pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1415pdf-target: maybe-pdf-target-libtermcap
1416pdf-target: maybe-pdf-target-winsup
1417pdf-target: maybe-pdf-target-libgloss
56a8fe78 1418pdf-target: maybe-pdf-target-libffi
56a8fe78 1419pdf-target: maybe-pdf-target-zlib
56a8fe78
DD
1420pdf-target: maybe-pdf-target-rda
1421pdf-target: maybe-pdf-target-libada
1422pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1423pdf-target: maybe-pdf-target-libitm
1424pdf-target: maybe-pdf-target-libatomic
56a8fe78 1425
6d389afc 1426.PHONY: do-html
f70224b5 1427do-html:
0aed8855 1428 @: $(MAKE); $(unstage)
e360f423
PB
1429 @r=`${PWD_COMMAND}`; export r; \
1430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1431 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1432 html-target
f70224b5 1433
6d389afc
MS
1434
1435.PHONY: html-host
c52c6897 1436
c52c6897
PB
1437html-host: maybe-html-bfd
1438html-host: maybe-html-opcodes
1439html-host: maybe-html-binutils
1440html-host: maybe-html-bison
f9806fa5 1441html-host: maybe-html-cgen
c52c6897 1442html-host: maybe-html-dejagnu
c52c6897
PB
1443html-host: maybe-html-etc
1444html-host: maybe-html-fastjar
c52c6897
PB
1445html-host: maybe-html-fixincludes
1446html-host: maybe-html-flex
1447html-host: maybe-html-gas
1448html-host: maybe-html-gcc
4b900473
PB
1449html-host: maybe-html-gmp
1450html-host: maybe-html-mpfr
e8a5fa9c 1451html-host: maybe-html-mpc
7ec59b9e 1452html-host: maybe-html-isl
1f53ca9a 1453html-host: maybe-html-libelf
93f9b408 1454html-host: maybe-html-gold
c52c6897 1455html-host: maybe-html-gprof
c52c6897
PB
1456html-host: maybe-html-intl
1457html-host: maybe-html-tcl
1458html-host: maybe-html-itcl
1459html-host: maybe-html-ld
2bf680c4 1460html-host: maybe-html-libbacktrace
c52c6897
PB
1461html-host: maybe-html-libcpp
1462html-host: maybe-html-libdecnumber
1463html-host: maybe-html-libgui
1464html-host: maybe-html-libiberty
1b6c0831 1465html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1466html-host: maybe-html-libiconv
c52c6897 1467html-host: maybe-html-m4
c52c6897 1468html-host: maybe-html-readline
c52c6897
PB
1469html-host: maybe-html-sid
1470html-host: maybe-html-sim
c52c6897 1471html-host: maybe-html-texinfo
c52c6897 1472html-host: maybe-html-zlib
73cc7272 1473html-host: maybe-html-gnulib
01027315 1474html-host: maybe-html-gdbsupport
c52c6897
PB
1475html-host: maybe-html-gdb
1476html-host: maybe-html-expect
1477html-host: maybe-html-guile
1478html-host: maybe-html-tk
1479html-host: maybe-html-libtermcap
1480html-host: maybe-html-utils
1481html-host: maybe-html-gnattools
700d40ca 1482html-host: maybe-html-lto-plugin
1b6c0831
L
1483html-host: maybe-html-libcc1
1484html-host: maybe-html-gotools
0e65dfba 1485html-host: maybe-html-libctf
6d389afc
MS
1486
1487.PHONY: html-target
c52c6897
PB
1488
1489html-target: maybe-html-target-libstdc++-v3
5286fdef 1490html-target: maybe-html-target-libsanitizer
1b6c0831 1491html-target: maybe-html-target-libmpx
95e43135 1492html-target: maybe-html-target-libvtv
e3f56a99 1493html-target: maybe-html-target-libcilkrts
1b6c0831 1494html-target: maybe-html-target-liboffloadmic
c52c6897 1495html-target: maybe-html-target-libssp
c52c6897 1496html-target: maybe-html-target-newlib
6aa8ef82 1497html-target: maybe-html-target-libgcc
2bf680c4 1498html-target: maybe-html-target-libbacktrace
e552509b 1499html-target: maybe-html-target-libquadmath
c52c6897
PB
1500html-target: maybe-html-target-libgfortran
1501html-target: maybe-html-target-libobjc
e552509b 1502html-target: maybe-html-target-libgo
c52c6897
PB
1503html-target: maybe-html-target-libtermcap
1504html-target: maybe-html-target-winsup
1505html-target: maybe-html-target-libgloss
c52c6897 1506html-target: maybe-html-target-libffi
c52c6897 1507html-target: maybe-html-target-zlib
c52c6897
PB
1508html-target: maybe-html-target-rda
1509html-target: maybe-html-target-libada
1510html-target: maybe-html-target-libgomp
7ec59b9e
L
1511html-target: maybe-html-target-libitm
1512html-target: maybe-html-target-libatomic
6d389afc 1513
4fa63067 1514.PHONY: do-TAGS
f70224b5 1515do-TAGS:
0aed8855 1516 @: $(MAKE); $(unstage)
e360f423
PB
1517 @r=`${PWD_COMMAND}`; export r; \
1518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1519 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1520 TAGS-target
f70224b5 1521
2a4cbe27 1522
4fa63067 1523.PHONY: TAGS-host
c52c6897 1524
c52c6897
PB
1525TAGS-host: maybe-TAGS-bfd
1526TAGS-host: maybe-TAGS-opcodes
1527TAGS-host: maybe-TAGS-binutils
1528TAGS-host: maybe-TAGS-bison
f9806fa5 1529TAGS-host: maybe-TAGS-cgen
c52c6897 1530TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1531TAGS-host: maybe-TAGS-etc
1532TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1533TAGS-host: maybe-TAGS-fixincludes
1534TAGS-host: maybe-TAGS-flex
1535TAGS-host: maybe-TAGS-gas
1536TAGS-host: maybe-TAGS-gcc
4b900473
PB
1537TAGS-host: maybe-TAGS-gmp
1538TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1539TAGS-host: maybe-TAGS-mpc
7ec59b9e 1540TAGS-host: maybe-TAGS-isl
1f53ca9a 1541TAGS-host: maybe-TAGS-libelf
93f9b408 1542TAGS-host: maybe-TAGS-gold
c52c6897 1543TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1544TAGS-host: maybe-TAGS-intl
1545TAGS-host: maybe-TAGS-tcl
1546TAGS-host: maybe-TAGS-itcl
1547TAGS-host: maybe-TAGS-ld
2bf680c4 1548TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1549TAGS-host: maybe-TAGS-libcpp
1550TAGS-host: maybe-TAGS-libdecnumber
1551TAGS-host: maybe-TAGS-libgui
1552TAGS-host: maybe-TAGS-libiberty
1b6c0831 1553TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1554TAGS-host: maybe-TAGS-libiconv
c52c6897 1555TAGS-host: maybe-TAGS-m4
c52c6897 1556TAGS-host: maybe-TAGS-readline
c52c6897
PB
1557TAGS-host: maybe-TAGS-sid
1558TAGS-host: maybe-TAGS-sim
c52c6897 1559TAGS-host: maybe-TAGS-texinfo
c52c6897 1560TAGS-host: maybe-TAGS-zlib
73cc7272 1561TAGS-host: maybe-TAGS-gnulib
01027315 1562TAGS-host: maybe-TAGS-gdbsupport
c52c6897
PB
1563TAGS-host: maybe-TAGS-gdb
1564TAGS-host: maybe-TAGS-expect
1565TAGS-host: maybe-TAGS-guile
1566TAGS-host: maybe-TAGS-tk
1567TAGS-host: maybe-TAGS-libtermcap
1568TAGS-host: maybe-TAGS-utils
1569TAGS-host: maybe-TAGS-gnattools
700d40ca 1570TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1571TAGS-host: maybe-TAGS-libcc1
1572TAGS-host: maybe-TAGS-gotools
0e65dfba 1573TAGS-host: maybe-TAGS-libctf
2a4cbe27 1574
4fa63067 1575.PHONY: TAGS-target
c52c6897
PB
1576
1577TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1578TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1579TAGS-target: maybe-TAGS-target-libmpx
95e43135 1580TAGS-target: maybe-TAGS-target-libvtv
e3f56a99 1581TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1582TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1583TAGS-target: maybe-TAGS-target-libssp
c52c6897 1584TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1585TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1586TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1587TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1588TAGS-target: maybe-TAGS-target-libgfortran
1589TAGS-target: maybe-TAGS-target-libobjc
e552509b 1590TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1591TAGS-target: maybe-TAGS-target-libtermcap
1592TAGS-target: maybe-TAGS-target-winsup
1593TAGS-target: maybe-TAGS-target-libgloss
c52c6897 1594TAGS-target: maybe-TAGS-target-libffi
c52c6897 1595TAGS-target: maybe-TAGS-target-zlib
c52c6897
PB
1596TAGS-target: maybe-TAGS-target-rda
1597TAGS-target: maybe-TAGS-target-libada
1598TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1599TAGS-target: maybe-TAGS-target-libitm
1600TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1601
4fa63067 1602.PHONY: do-install-info
f70224b5 1603do-install-info:
0aed8855 1604 @: $(MAKE); $(unstage)
e360f423
PB
1605 @r=`${PWD_COMMAND}`; export r; \
1606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1607 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1608 install-info-target
f70224b5 1609
a2592b1b 1610
4fa63067 1611.PHONY: install-info-host
c52c6897 1612
c52c6897
PB
1613install-info-host: maybe-install-info-bfd
1614install-info-host: maybe-install-info-opcodes
1615install-info-host: maybe-install-info-binutils
1616install-info-host: maybe-install-info-bison
f9806fa5 1617install-info-host: maybe-install-info-cgen
c52c6897 1618install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1619install-info-host: maybe-install-info-etc
1620install-info-host: maybe-install-info-fastjar
c52c6897
PB
1621install-info-host: maybe-install-info-fixincludes
1622install-info-host: maybe-install-info-flex
1623install-info-host: maybe-install-info-gas
1624install-info-host: maybe-install-info-gcc
4b900473
PB
1625install-info-host: maybe-install-info-gmp
1626install-info-host: maybe-install-info-mpfr
e8a5fa9c 1627install-info-host: maybe-install-info-mpc
7ec59b9e 1628install-info-host: maybe-install-info-isl
1f53ca9a 1629install-info-host: maybe-install-info-libelf
93f9b408 1630install-info-host: maybe-install-info-gold
c52c6897 1631install-info-host: maybe-install-info-gprof
c52c6897
PB
1632install-info-host: maybe-install-info-intl
1633install-info-host: maybe-install-info-tcl
1634install-info-host: maybe-install-info-itcl
1635install-info-host: maybe-install-info-ld
2bf680c4 1636install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1637install-info-host: maybe-install-info-libcpp
1638install-info-host: maybe-install-info-libdecnumber
1639install-info-host: maybe-install-info-libgui
1640install-info-host: maybe-install-info-libiberty
1b6c0831 1641install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1642install-info-host: maybe-install-info-libiconv
c52c6897 1643install-info-host: maybe-install-info-m4
c52c6897 1644install-info-host: maybe-install-info-readline
c52c6897
PB
1645install-info-host: maybe-install-info-sid
1646install-info-host: maybe-install-info-sim
c52c6897 1647install-info-host: maybe-install-info-texinfo
c52c6897 1648install-info-host: maybe-install-info-zlib
73cc7272 1649install-info-host: maybe-install-info-gnulib
01027315 1650install-info-host: maybe-install-info-gdbsupport
c52c6897
PB
1651install-info-host: maybe-install-info-gdb
1652install-info-host: maybe-install-info-expect
1653install-info-host: maybe-install-info-guile
1654install-info-host: maybe-install-info-tk
1655install-info-host: maybe-install-info-libtermcap
1656install-info-host: maybe-install-info-utils
1657install-info-host: maybe-install-info-gnattools
700d40ca 1658install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1659install-info-host: maybe-install-info-libcc1
1660install-info-host: maybe-install-info-gotools
0e65dfba 1661install-info-host: maybe-install-info-libctf
a2592b1b 1662
4fa63067 1663.PHONY: install-info-target
c52c6897
PB
1664
1665install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1666install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1667install-info-target: maybe-install-info-target-libmpx
95e43135 1668install-info-target: maybe-install-info-target-libvtv
e3f56a99 1669install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1670install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1671install-info-target: maybe-install-info-target-libssp
c52c6897 1672install-info-target: maybe-install-info-target-newlib
6aa8ef82 1673install-info-target: maybe-install-info-target-libgcc
2bf680c4 1674install-info-target: maybe-install-info-target-libbacktrace
e552509b 1675install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1676install-info-target: maybe-install-info-target-libgfortran
1677install-info-target: maybe-install-info-target-libobjc
e552509b 1678install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1679install-info-target: maybe-install-info-target-libtermcap
1680install-info-target: maybe-install-info-target-winsup
1681install-info-target: maybe-install-info-target-libgloss
c52c6897 1682install-info-target: maybe-install-info-target-libffi
c52c6897 1683install-info-target: maybe-install-info-target-zlib
c52c6897
PB
1684install-info-target: maybe-install-info-target-rda
1685install-info-target: maybe-install-info-target-libada
1686install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1687install-info-target: maybe-install-info-target-libitm
1688install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1689
a3ca38d2
DD
1690.PHONY: do-install-pdf
1691do-install-pdf:
1692 @: $(MAKE); $(unstage)
1693 @r=`${PWD_COMMAND}`; export r; \
1694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1695 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1696 install-pdf-target
1697
1698
1699.PHONY: install-pdf-host
1700
a3ca38d2
DD
1701install-pdf-host: maybe-install-pdf-bfd
1702install-pdf-host: maybe-install-pdf-opcodes
1703install-pdf-host: maybe-install-pdf-binutils
1704install-pdf-host: maybe-install-pdf-bison
f9806fa5 1705install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1706install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1707install-pdf-host: maybe-install-pdf-etc
1708install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1709install-pdf-host: maybe-install-pdf-fixincludes
1710install-pdf-host: maybe-install-pdf-flex
1711install-pdf-host: maybe-install-pdf-gas
1712install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1713install-pdf-host: maybe-install-pdf-gmp
1714install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1715install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1716install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1717install-pdf-host: maybe-install-pdf-libelf
93f9b408 1718install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1719install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1720install-pdf-host: maybe-install-pdf-intl
1721install-pdf-host: maybe-install-pdf-tcl
1722install-pdf-host: maybe-install-pdf-itcl
1723install-pdf-host: maybe-install-pdf-ld
2bf680c4 1724install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1725install-pdf-host: maybe-install-pdf-libcpp
1726install-pdf-host: maybe-install-pdf-libdecnumber
1727install-pdf-host: maybe-install-pdf-libgui
1728install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1729install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1730install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1731install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1732install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1733install-pdf-host: maybe-install-pdf-sid
1734install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1735install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2 1736install-pdf-host: maybe-install-pdf-zlib
73cc7272 1737install-pdf-host: maybe-install-pdf-gnulib
01027315 1738install-pdf-host: maybe-install-pdf-gdbsupport
a3ca38d2
DD
1739install-pdf-host: maybe-install-pdf-gdb
1740install-pdf-host: maybe-install-pdf-expect
1741install-pdf-host: maybe-install-pdf-guile
1742install-pdf-host: maybe-install-pdf-tk
1743install-pdf-host: maybe-install-pdf-libtermcap
1744install-pdf-host: maybe-install-pdf-utils
1745install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1746install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1747install-pdf-host: maybe-install-pdf-libcc1
1748install-pdf-host: maybe-install-pdf-gotools
0e65dfba 1749install-pdf-host: maybe-install-pdf-libctf
a3ca38d2
DD
1750
1751.PHONY: install-pdf-target
1752
1753install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1754install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1755install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1756install-pdf-target: maybe-install-pdf-target-libvtv
e3f56a99 1757install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1758install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1759install-pdf-target: maybe-install-pdf-target-libssp
1760install-pdf-target: maybe-install-pdf-target-newlib
1761install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1762install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1763install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1764install-pdf-target: maybe-install-pdf-target-libgfortran
1765install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1766install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1767install-pdf-target: maybe-install-pdf-target-libtermcap
1768install-pdf-target: maybe-install-pdf-target-winsup
1769install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2 1770install-pdf-target: maybe-install-pdf-target-libffi
a3ca38d2 1771install-pdf-target: maybe-install-pdf-target-zlib
a3ca38d2
DD
1772install-pdf-target: maybe-install-pdf-target-rda
1773install-pdf-target: maybe-install-pdf-target-libada
1774install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1775install-pdf-target: maybe-install-pdf-target-libitm
1776install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1777
108a6f8e
CD
1778.PHONY: do-install-html
1779do-install-html:
1780 @: $(MAKE); $(unstage)
1781 @r=`${PWD_COMMAND}`; export r; \
1782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1783 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1784 install-html-target
1785
1786
1787.PHONY: install-html-host
1788
108a6f8e
CD
1789install-html-host: maybe-install-html-bfd
1790install-html-host: maybe-install-html-opcodes
1791install-html-host: maybe-install-html-binutils
1792install-html-host: maybe-install-html-bison
f9806fa5 1793install-html-host: maybe-install-html-cgen
108a6f8e 1794install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1795install-html-host: maybe-install-html-etc
1796install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1797install-html-host: maybe-install-html-fixincludes
1798install-html-host: maybe-install-html-flex
1799install-html-host: maybe-install-html-gas
1800install-html-host: maybe-install-html-gcc
4b900473
PB
1801install-html-host: maybe-install-html-gmp
1802install-html-host: maybe-install-html-mpfr
e8a5fa9c 1803install-html-host: maybe-install-html-mpc
7ec59b9e 1804install-html-host: maybe-install-html-isl
1f53ca9a 1805install-html-host: maybe-install-html-libelf
93f9b408 1806install-html-host: maybe-install-html-gold
108a6f8e 1807install-html-host: maybe-install-html-gprof
108a6f8e
CD
1808install-html-host: maybe-install-html-intl
1809install-html-host: maybe-install-html-tcl
1810install-html-host: maybe-install-html-itcl
1811install-html-host: maybe-install-html-ld
2bf680c4 1812install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1813install-html-host: maybe-install-html-libcpp
1814install-html-host: maybe-install-html-libdecnumber
1815install-html-host: maybe-install-html-libgui
1816install-html-host: maybe-install-html-libiberty
1b6c0831 1817install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1818install-html-host: maybe-install-html-libiconv
108a6f8e 1819install-html-host: maybe-install-html-m4
108a6f8e 1820install-html-host: maybe-install-html-readline
108a6f8e
CD
1821install-html-host: maybe-install-html-sid
1822install-html-host: maybe-install-html-sim
108a6f8e 1823install-html-host: maybe-install-html-texinfo
108a6f8e 1824install-html-host: maybe-install-html-zlib
73cc7272 1825install-html-host: maybe-install-html-gnulib
01027315 1826install-html-host: maybe-install-html-gdbsupport
108a6f8e
CD
1827install-html-host: maybe-install-html-gdb
1828install-html-host: maybe-install-html-expect
1829install-html-host: maybe-install-html-guile
1830install-html-host: maybe-install-html-tk
1831install-html-host: maybe-install-html-libtermcap
1832install-html-host: maybe-install-html-utils
1833install-html-host: maybe-install-html-gnattools
700d40ca 1834install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1835install-html-host: maybe-install-html-libcc1
1836install-html-host: maybe-install-html-gotools
0e65dfba 1837install-html-host: maybe-install-html-libctf
108a6f8e
CD
1838
1839.PHONY: install-html-target
1840
1841install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1842install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1843install-html-target: maybe-install-html-target-libmpx
95e43135 1844install-html-target: maybe-install-html-target-libvtv
e3f56a99 1845install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1846install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1847install-html-target: maybe-install-html-target-libssp
108a6f8e 1848install-html-target: maybe-install-html-target-newlib
6aa8ef82 1849install-html-target: maybe-install-html-target-libgcc
2bf680c4 1850install-html-target: maybe-install-html-target-libbacktrace
e552509b 1851install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1852install-html-target: maybe-install-html-target-libgfortran
1853install-html-target: maybe-install-html-target-libobjc
e552509b 1854install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1855install-html-target: maybe-install-html-target-libtermcap
1856install-html-target: maybe-install-html-target-winsup
1857install-html-target: maybe-install-html-target-libgloss
108a6f8e 1858install-html-target: maybe-install-html-target-libffi
108a6f8e 1859install-html-target: maybe-install-html-target-zlib
108a6f8e
CD
1860install-html-target: maybe-install-html-target-rda
1861install-html-target: maybe-install-html-target-libada
1862install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1863install-html-target: maybe-install-html-target-libitm
1864install-html-target: maybe-install-html-target-libatomic
108a6f8e 1865
2a4cbe27 1866.PHONY: do-installcheck
f70224b5 1867do-installcheck:
0aed8855 1868 @: $(MAKE); $(unstage)
e360f423
PB
1869 @r=`${PWD_COMMAND}`; export r; \
1870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1871 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1872 installcheck-target
f70224b5 1873
2a4cbe27
NN
1874
1875.PHONY: installcheck-host
c52c6897 1876
c52c6897
PB
1877installcheck-host: maybe-installcheck-bfd
1878installcheck-host: maybe-installcheck-opcodes
1879installcheck-host: maybe-installcheck-binutils
1880installcheck-host: maybe-installcheck-bison
f9806fa5 1881installcheck-host: maybe-installcheck-cgen
c52c6897 1882installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1883installcheck-host: maybe-installcheck-etc
1884installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1885installcheck-host: maybe-installcheck-fixincludes
1886installcheck-host: maybe-installcheck-flex
1887installcheck-host: maybe-installcheck-gas
1888installcheck-host: maybe-installcheck-gcc
4b900473
PB
1889installcheck-host: maybe-installcheck-gmp
1890installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1891installcheck-host: maybe-installcheck-mpc
7ec59b9e 1892installcheck-host: maybe-installcheck-isl
1f53ca9a 1893installcheck-host: maybe-installcheck-libelf
93f9b408 1894installcheck-host: maybe-installcheck-gold
c52c6897 1895installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1896installcheck-host: maybe-installcheck-intl
1897installcheck-host: maybe-installcheck-tcl
1898installcheck-host: maybe-installcheck-itcl
1899installcheck-host: maybe-installcheck-ld
2bf680c4 1900installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1901installcheck-host: maybe-installcheck-libcpp
1902installcheck-host: maybe-installcheck-libdecnumber
1903installcheck-host: maybe-installcheck-libgui
1904installcheck-host: maybe-installcheck-libiberty
1b6c0831 1905installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1906installcheck-host: maybe-installcheck-libiconv
c52c6897 1907installcheck-host: maybe-installcheck-m4
c52c6897 1908installcheck-host: maybe-installcheck-readline
c52c6897
PB
1909installcheck-host: maybe-installcheck-sid
1910installcheck-host: maybe-installcheck-sim
c52c6897 1911installcheck-host: maybe-installcheck-texinfo
c52c6897 1912installcheck-host: maybe-installcheck-zlib
73cc7272 1913installcheck-host: maybe-installcheck-gnulib
01027315 1914installcheck-host: maybe-installcheck-gdbsupport
c52c6897
PB
1915installcheck-host: maybe-installcheck-gdb
1916installcheck-host: maybe-installcheck-expect
1917installcheck-host: maybe-installcheck-guile
1918installcheck-host: maybe-installcheck-tk
1919installcheck-host: maybe-installcheck-libtermcap
1920installcheck-host: maybe-installcheck-utils
1921installcheck-host: maybe-installcheck-gnattools
700d40ca 1922installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1923installcheck-host: maybe-installcheck-libcc1
1924installcheck-host: maybe-installcheck-gotools
0e65dfba 1925installcheck-host: maybe-installcheck-libctf
2a4cbe27
NN
1926
1927.PHONY: installcheck-target
c52c6897
PB
1928
1929installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1930installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1931installcheck-target: maybe-installcheck-target-libmpx
95e43135 1932installcheck-target: maybe-installcheck-target-libvtv
e3f56a99 1933installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1934installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1935installcheck-target: maybe-installcheck-target-libssp
c52c6897 1936installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1937installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1938installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1939installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1940installcheck-target: maybe-installcheck-target-libgfortran
1941installcheck-target: maybe-installcheck-target-libobjc
e552509b 1942installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1943installcheck-target: maybe-installcheck-target-libtermcap
1944installcheck-target: maybe-installcheck-target-winsup
1945installcheck-target: maybe-installcheck-target-libgloss
c52c6897 1946installcheck-target: maybe-installcheck-target-libffi
c52c6897 1947installcheck-target: maybe-installcheck-target-zlib
c52c6897
PB
1948installcheck-target: maybe-installcheck-target-rda
1949installcheck-target: maybe-installcheck-target-libada
1950installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1951installcheck-target: maybe-installcheck-target-libitm
1952installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1953
4fa63067 1954.PHONY: do-mostlyclean
f70224b5 1955do-mostlyclean:
0aed8855 1956 @: $(MAKE); $(unstage)
e360f423
PB
1957 @r=`${PWD_COMMAND}`; export r; \
1958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1959 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1960 mostlyclean-target
f70224b5 1961
2a4cbe27 1962
4fa63067 1963.PHONY: mostlyclean-host
c52c6897 1964
c52c6897
PB
1965mostlyclean-host: maybe-mostlyclean-bfd
1966mostlyclean-host: maybe-mostlyclean-opcodes
1967mostlyclean-host: maybe-mostlyclean-binutils
1968mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1969mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1970mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1971mostlyclean-host: maybe-mostlyclean-etc
1972mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1973mostlyclean-host: maybe-mostlyclean-fixincludes
1974mostlyclean-host: maybe-mostlyclean-flex
1975mostlyclean-host: maybe-mostlyclean-gas
1976mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1977mostlyclean-host: maybe-mostlyclean-gmp
1978mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1979mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1980mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1981mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1982mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1983mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1984mostlyclean-host: maybe-mostlyclean-intl
1985mostlyclean-host: maybe-mostlyclean-tcl
1986mostlyclean-host: maybe-mostlyclean-itcl
1987mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1988mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1989mostlyclean-host: maybe-mostlyclean-libcpp
1990mostlyclean-host: maybe-mostlyclean-libdecnumber
1991mostlyclean-host: maybe-mostlyclean-libgui
1992mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 1993mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 1994mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1995mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1996mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1997mostlyclean-host: maybe-mostlyclean-sid
1998mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1999mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897 2000mostlyclean-host: maybe-mostlyclean-zlib
73cc7272 2001mostlyclean-host: maybe-mostlyclean-gnulib
01027315 2002mostlyclean-host: maybe-mostlyclean-gdbsupport
c52c6897
PB
2003mostlyclean-host: maybe-mostlyclean-gdb
2004mostlyclean-host: maybe-mostlyclean-expect
2005mostlyclean-host: maybe-mostlyclean-guile
2006mostlyclean-host: maybe-mostlyclean-tk
2007mostlyclean-host: maybe-mostlyclean-libtermcap
2008mostlyclean-host: maybe-mostlyclean-utils
2009mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 2010mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
2011mostlyclean-host: maybe-mostlyclean-libcc1
2012mostlyclean-host: maybe-mostlyclean-gotools
0e65dfba 2013mostlyclean-host: maybe-mostlyclean-libctf
2a4cbe27 2014
4fa63067 2015.PHONY: mostlyclean-target
c52c6897
PB
2016
2017mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 2018mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 2019mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 2020mostlyclean-target: maybe-mostlyclean-target-libvtv
e3f56a99 2021mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 2022mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 2023mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2024mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2025mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2026mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2027mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2028mostlyclean-target: maybe-mostlyclean-target-libgfortran
2029mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2030mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2031mostlyclean-target: maybe-mostlyclean-target-libtermcap
2032mostlyclean-target: maybe-mostlyclean-target-winsup
2033mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897 2034mostlyclean-target: maybe-mostlyclean-target-libffi
c52c6897 2035mostlyclean-target: maybe-mostlyclean-target-zlib
c52c6897
PB
2036mostlyclean-target: maybe-mostlyclean-target-rda
2037mostlyclean-target: maybe-mostlyclean-target-libada
2038mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2039mostlyclean-target: maybe-mostlyclean-target-libitm
2040mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2041
4fa63067 2042.PHONY: do-clean
f70224b5 2043do-clean:
0aed8855 2044 @: $(MAKE); $(unstage)
e360f423
PB
2045 @r=`${PWD_COMMAND}`; export r; \
2046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2047 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2048 clean-target
f70224b5 2049
2a4cbe27 2050
4fa63067 2051.PHONY: clean-host
c52c6897 2052
c52c6897
PB
2053clean-host: maybe-clean-bfd
2054clean-host: maybe-clean-opcodes
2055clean-host: maybe-clean-binutils
2056clean-host: maybe-clean-bison
f9806fa5 2057clean-host: maybe-clean-cgen
c52c6897 2058clean-host: maybe-clean-dejagnu
c52c6897
PB
2059clean-host: maybe-clean-etc
2060clean-host: maybe-clean-fastjar
c52c6897
PB
2061clean-host: maybe-clean-fixincludes
2062clean-host: maybe-clean-flex
2063clean-host: maybe-clean-gas
2064clean-host: maybe-clean-gcc
4b900473
PB
2065clean-host: maybe-clean-gmp
2066clean-host: maybe-clean-mpfr
e8a5fa9c 2067clean-host: maybe-clean-mpc
7ec59b9e 2068clean-host: maybe-clean-isl
1f53ca9a 2069clean-host: maybe-clean-libelf
93f9b408 2070clean-host: maybe-clean-gold
c52c6897 2071clean-host: maybe-clean-gprof
c52c6897
PB
2072clean-host: maybe-clean-intl
2073clean-host: maybe-clean-tcl
2074clean-host: maybe-clean-itcl
2075clean-host: maybe-clean-ld
2bf680c4 2076clean-host: maybe-clean-libbacktrace
c52c6897
PB
2077clean-host: maybe-clean-libcpp
2078clean-host: maybe-clean-libdecnumber
2079clean-host: maybe-clean-libgui
2080clean-host: maybe-clean-libiberty
1b6c0831 2081clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2082clean-host: maybe-clean-libiconv
c52c6897 2083clean-host: maybe-clean-m4
c52c6897 2084clean-host: maybe-clean-readline
c52c6897
PB
2085clean-host: maybe-clean-sid
2086clean-host: maybe-clean-sim
c52c6897 2087clean-host: maybe-clean-texinfo
c52c6897 2088clean-host: maybe-clean-zlib
73cc7272 2089clean-host: maybe-clean-gnulib
01027315 2090clean-host: maybe-clean-gdbsupport
c52c6897
PB
2091clean-host: maybe-clean-gdb
2092clean-host: maybe-clean-expect
2093clean-host: maybe-clean-guile
2094clean-host: maybe-clean-tk
2095clean-host: maybe-clean-libtermcap
2096clean-host: maybe-clean-utils
2097clean-host: maybe-clean-gnattools
700d40ca 2098clean-host: maybe-clean-lto-plugin
1b6c0831
L
2099clean-host: maybe-clean-libcc1
2100clean-host: maybe-clean-gotools
0e65dfba 2101clean-host: maybe-clean-libctf
2a4cbe27 2102
4fa63067 2103.PHONY: clean-target
c52c6897
PB
2104
2105clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2106clean-target: maybe-clean-target-libsanitizer
1b6c0831 2107clean-target: maybe-clean-target-libmpx
95e43135 2108clean-target: maybe-clean-target-libvtv
e3f56a99 2109clean-target: maybe-clean-target-libcilkrts
1b6c0831 2110clean-target: maybe-clean-target-liboffloadmic
c52c6897 2111clean-target: maybe-clean-target-libssp
c52c6897 2112clean-target: maybe-clean-target-newlib
6aa8ef82 2113clean-target: maybe-clean-target-libgcc
2bf680c4 2114clean-target: maybe-clean-target-libbacktrace
e552509b 2115clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2116clean-target: maybe-clean-target-libgfortran
2117clean-target: maybe-clean-target-libobjc
e552509b 2118clean-target: maybe-clean-target-libgo
c52c6897
PB
2119clean-target: maybe-clean-target-libtermcap
2120clean-target: maybe-clean-target-winsup
2121clean-target: maybe-clean-target-libgloss
c52c6897 2122clean-target: maybe-clean-target-libffi
c52c6897 2123clean-target: maybe-clean-target-zlib
c52c6897
PB
2124clean-target: maybe-clean-target-rda
2125clean-target: maybe-clean-target-libada
2126clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2127clean-target: maybe-clean-target-libitm
2128clean-target: maybe-clean-target-libatomic
2a4cbe27 2129
4fa63067 2130.PHONY: do-distclean
f70224b5 2131do-distclean:
0aed8855 2132 @: $(MAKE); $(unstage)
e360f423
PB
2133 @r=`${PWD_COMMAND}`; export r; \
2134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2135 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2136 distclean-target
f70224b5 2137
2a4cbe27 2138
4fa63067 2139.PHONY: distclean-host
c52c6897 2140
c52c6897
PB
2141distclean-host: maybe-distclean-bfd
2142distclean-host: maybe-distclean-opcodes
2143distclean-host: maybe-distclean-binutils
2144distclean-host: maybe-distclean-bison
f9806fa5 2145distclean-host: maybe-distclean-cgen
c52c6897 2146distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2147distclean-host: maybe-distclean-etc
2148distclean-host: maybe-distclean-fastjar
c52c6897
PB
2149distclean-host: maybe-distclean-fixincludes
2150distclean-host: maybe-distclean-flex
2151distclean-host: maybe-distclean-gas
2152distclean-host: maybe-distclean-gcc
4b900473
PB
2153distclean-host: maybe-distclean-gmp
2154distclean-host: maybe-distclean-mpfr
e8a5fa9c 2155distclean-host: maybe-distclean-mpc
7ec59b9e 2156distclean-host: maybe-distclean-isl
1f53ca9a 2157distclean-host: maybe-distclean-libelf
93f9b408 2158distclean-host: maybe-distclean-gold
c52c6897 2159distclean-host: maybe-distclean-gprof
c52c6897
PB
2160distclean-host: maybe-distclean-intl
2161distclean-host: maybe-distclean-tcl
2162distclean-host: maybe-distclean-itcl
2163distclean-host: maybe-distclean-ld
2bf680c4 2164distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2165distclean-host: maybe-distclean-libcpp
2166distclean-host: maybe-distclean-libdecnumber
2167distclean-host: maybe-distclean-libgui
2168distclean-host: maybe-distclean-libiberty
1b6c0831 2169distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2170distclean-host: maybe-distclean-libiconv
c52c6897 2171distclean-host: maybe-distclean-m4
c52c6897 2172distclean-host: maybe-distclean-readline
c52c6897
PB
2173distclean-host: maybe-distclean-sid
2174distclean-host: maybe-distclean-sim
c52c6897 2175distclean-host: maybe-distclean-texinfo
c52c6897 2176distclean-host: maybe-distclean-zlib
73cc7272 2177distclean-host: maybe-distclean-gnulib
01027315 2178distclean-host: maybe-distclean-gdbsupport
c52c6897
PB
2179distclean-host: maybe-distclean-gdb
2180distclean-host: maybe-distclean-expect
2181distclean-host: maybe-distclean-guile
2182distclean-host: maybe-distclean-tk
2183distclean-host: maybe-distclean-libtermcap
2184distclean-host: maybe-distclean-utils
2185distclean-host: maybe-distclean-gnattools
700d40ca 2186distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2187distclean-host: maybe-distclean-libcc1
2188distclean-host: maybe-distclean-gotools
0e65dfba 2189distclean-host: maybe-distclean-libctf
2a4cbe27 2190
4fa63067 2191.PHONY: distclean-target
c52c6897
PB
2192
2193distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2194distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2195distclean-target: maybe-distclean-target-libmpx
95e43135 2196distclean-target: maybe-distclean-target-libvtv
e3f56a99 2197distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2198distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2199distclean-target: maybe-distclean-target-libssp
c52c6897 2200distclean-target: maybe-distclean-target-newlib
6aa8ef82 2201distclean-target: maybe-distclean-target-libgcc
2bf680c4 2202distclean-target: maybe-distclean-target-libbacktrace
e552509b 2203distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2204distclean-target: maybe-distclean-target-libgfortran
2205distclean-target: maybe-distclean-target-libobjc
e552509b 2206distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2207distclean-target: maybe-distclean-target-libtermcap
2208distclean-target: maybe-distclean-target-winsup
2209distclean-target: maybe-distclean-target-libgloss
c52c6897 2210distclean-target: maybe-distclean-target-libffi
c52c6897 2211distclean-target: maybe-distclean-target-zlib
c52c6897
PB
2212distclean-target: maybe-distclean-target-rda
2213distclean-target: maybe-distclean-target-libada
2214distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2215distclean-target: maybe-distclean-target-libitm
2216distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2217
4fa63067 2218.PHONY: do-maintainer-clean
f70224b5 2219do-maintainer-clean:
0aed8855 2220 @: $(MAKE); $(unstage)
e360f423
PB
2221 @r=`${PWD_COMMAND}`; export r; \
2222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2223 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2224 maintainer-clean-target
f70224b5 2225
2a4cbe27 2226
4fa63067 2227.PHONY: maintainer-clean-host
c52c6897 2228
c52c6897
PB
2229maintainer-clean-host: maybe-maintainer-clean-bfd
2230maintainer-clean-host: maybe-maintainer-clean-opcodes
2231maintainer-clean-host: maybe-maintainer-clean-binutils
2232maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2233maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2234maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2235maintainer-clean-host: maybe-maintainer-clean-etc
2236maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2237maintainer-clean-host: maybe-maintainer-clean-fixincludes
2238maintainer-clean-host: maybe-maintainer-clean-flex
2239maintainer-clean-host: maybe-maintainer-clean-gas
2240maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2241maintainer-clean-host: maybe-maintainer-clean-gmp
2242maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2243maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2244maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2245maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2246maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2247maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2248maintainer-clean-host: maybe-maintainer-clean-intl
2249maintainer-clean-host: maybe-maintainer-clean-tcl
2250maintainer-clean-host: maybe-maintainer-clean-itcl
2251maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2252maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2253maintainer-clean-host: maybe-maintainer-clean-libcpp
2254maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2255maintainer-clean-host: maybe-maintainer-clean-libgui
2256maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2257maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2258maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2259maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2260maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2261maintainer-clean-host: maybe-maintainer-clean-sid
2262maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2263maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897 2264maintainer-clean-host: maybe-maintainer-clean-zlib
73cc7272 2265maintainer-clean-host: maybe-maintainer-clean-gnulib
01027315 2266maintainer-clean-host: maybe-maintainer-clean-gdbsupport
c52c6897
PB
2267maintainer-clean-host: maybe-maintainer-clean-gdb
2268maintainer-clean-host: maybe-maintainer-clean-expect
2269maintainer-clean-host: maybe-maintainer-clean-guile
2270maintainer-clean-host: maybe-maintainer-clean-tk
2271maintainer-clean-host: maybe-maintainer-clean-libtermcap
2272maintainer-clean-host: maybe-maintainer-clean-utils
2273maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2274maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2275maintainer-clean-host: maybe-maintainer-clean-libcc1
2276maintainer-clean-host: maybe-maintainer-clean-gotools
0e65dfba 2277maintainer-clean-host: maybe-maintainer-clean-libctf
2a4cbe27 2278
4fa63067 2279.PHONY: maintainer-clean-target
c52c6897
PB
2280
2281maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2282maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2283maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2284maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e3f56a99 2285maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2286maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2287maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2288maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2289maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2290maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2291maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2292maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2293maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2294maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2295maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2296maintainer-clean-target: maybe-maintainer-clean-target-winsup
2297maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897 2298maintainer-clean-target: maybe-maintainer-clean-target-libffi
c52c6897 2299maintainer-clean-target: maybe-maintainer-clean-target-zlib
c52c6897
PB
2300maintainer-clean-target: maybe-maintainer-clean-target-rda
2301maintainer-clean-target: maybe-maintainer-clean-target-libada
2302maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2303maintainer-clean-target: maybe-maintainer-clean-target-libitm
2304maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2305
2a4cbe27 2306
4fa63067 2307# Here are the targets which correspond to the do-X targets.
2a4cbe27 2308
a3ca38d2
DD
2309.PHONY: info installcheck dvi pdf html
2310.PHONY: install-info install-pdf install-html
4fa63067
NN
2311.PHONY: clean distclean mostlyclean maintainer-clean realclean
2312.PHONY: local-clean local-distclean local-maintainer-clean
2313info: do-info
2314installcheck: do-installcheck
2315dvi: do-dvi
56a8fe78 2316pdf: do-pdf
6d389afc 2317html: do-html
2a4cbe27 2318
4fa63067
NN
2319# Make sure makeinfo is built before we do a `make info', if we're
2320# in fact building texinfo.
2321do-info: maybe-all-texinfo
2a4cbe27 2322
4fa63067 2323install-info: do-install-info dir.info
b40e3958 2324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2325 if [ -f dir.info ]; then \
2326 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2327 else true; fi
2a4cbe27 2328
a3ca38d2
DD
2329install-pdf: do-install-pdf
2330
108a6f8e
CD
2331install-html: do-install-html
2332
4fa63067
NN
2333local-clean:
2334 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2335
4fa63067
NN
2336local-distclean:
2337 -rm -f Makefile config.status config.cache mh-frag mt-frag
bb7dc663 2338 -rm -f maybedep.tmp serdep.tmp stage_final
4fa63067
NN
2339 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2340 rm -rf $(TARGET_SUBDIR); \
2341 else true; fi
2342 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2343 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2344 rm -rf $(HOST_SUBDIR); \
2345 else true; fi
4fa63067
NN
2346 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2347 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2348 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2349 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
bb7dc663
NC
2350 -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
2351 -rmdir texinfo zlib 2>/dev/null
18fa8f9c 2352 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2353
4fa63067
NN
2354local-maintainer-clean:
2355 @echo "This command is intended for maintainers to use;"
2356 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2357
4fa63067
NN
2358clean: do-clean local-clean
2359mostlyclean: do-mostlyclean local-clean
2360distclean: do-distclean local-clean local-distclean
2361maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2362maintainer-clean: local-distclean
2363realclean: maintainer-clean
2a4cbe27 2364
4fa63067 2365# Check target.
2a4cbe27 2366
4fa63067
NN
2367.PHONY: check do-check
2368check: do-check
2a4cbe27 2369
4fa63067 2370# Only include modules actually being configured and built.
f70224b5
PB
2371.PHONY: check-host
2372check-host: \
4fa63067
NN
2373 maybe-check-bfd \
2374 maybe-check-opcodes \
2375 maybe-check-binutils \
2376 maybe-check-bison \
f9806fa5 2377 maybe-check-cgen \
4fa63067 2378 maybe-check-dejagnu \
4fa63067
NN
2379 maybe-check-etc \
2380 maybe-check-fastjar \
d3ed111c 2381 maybe-check-fixincludes \
4fa63067
NN
2382 maybe-check-flex \
2383 maybe-check-gas \
b813574b 2384 maybe-check-gcc \
4b900473
PB
2385 maybe-check-gmp \
2386 maybe-check-mpfr \
e8a5fa9c 2387 maybe-check-mpc \
7ec59b9e 2388 maybe-check-isl \
1f53ca9a 2389 maybe-check-libelf \
93f9b408 2390 maybe-check-gold \
4fa63067 2391 maybe-check-gprof \
4fa63067
NN
2392 maybe-check-intl \
2393 maybe-check-tcl \
2394 maybe-check-itcl \
2395 maybe-check-ld \
2bf680c4 2396 maybe-check-libbacktrace \
04cf1b77 2397 maybe-check-libcpp \
be01d343 2398 maybe-check-libdecnumber \
4fa63067
NN
2399 maybe-check-libgui \
2400 maybe-check-libiberty \
1b6c0831 2401 maybe-check-libiberty-linker-plugin \
dc448a7b 2402 maybe-check-libiconv \
4fa63067 2403 maybe-check-m4 \
4fa63067 2404 maybe-check-readline \
4fa63067
NN
2405 maybe-check-sid \
2406 maybe-check-sim \
4fa63067 2407 maybe-check-texinfo \
4fa63067 2408 maybe-check-zlib \
73cc7272 2409 maybe-check-gnulib \
01027315 2410 maybe-check-gdbsupport \
4fa63067
NN
2411 maybe-check-gdb \
2412 maybe-check-expect \
2413 maybe-check-guile \
2414 maybe-check-tk \
4fa63067
NN
2415 maybe-check-libtermcap \
2416 maybe-check-utils \
700d40ca 2417 maybe-check-gnattools \
1b6c0831
L
2418 maybe-check-lto-plugin \
2419 maybe-check-libcc1 \
0e65dfba
NA
2420 maybe-check-gotools \
2421 maybe-check-libctf
f70224b5
PB
2422
2423.PHONY: check-target
2424check-target: \
4fa63067 2425 maybe-check-target-libstdc++-v3 \
5286fdef 2426 maybe-check-target-libsanitizer \
1b6c0831 2427 maybe-check-target-libmpx \
95e43135 2428 maybe-check-target-libvtv \
e3f56a99 2429 maybe-check-target-libcilkrts \
1b6c0831 2430 maybe-check-target-liboffloadmic \
064d0a7c 2431 maybe-check-target-libssp \
4fa63067 2432 maybe-check-target-newlib \
6aa8ef82 2433 maybe-check-target-libgcc \
2bf680c4 2434 maybe-check-target-libbacktrace \
e552509b 2435 maybe-check-target-libquadmath \
4b1cb4fe 2436 maybe-check-target-libgfortran \
4fa63067 2437 maybe-check-target-libobjc \
e552509b 2438 maybe-check-target-libgo \
4fa63067
NN
2439 maybe-check-target-libtermcap \
2440 maybe-check-target-winsup \
2441 maybe-check-target-libgloss \
4fa63067 2442 maybe-check-target-libffi \
4fa63067 2443 maybe-check-target-zlib \
4fa63067 2444 maybe-check-target-rda \
b3ded179 2445 maybe-check-target-libada \
7ec59b9e
L
2446 maybe-check-target-libgomp \
2447 maybe-check-target-libitm \
2448 maybe-check-target-libatomic
f70224b5
PB
2449
2450do-check:
0aed8855 2451 @: $(MAKE); $(unstage)
e360f423
PB
2452 @r=`${PWD_COMMAND}`; export r; \
2453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2454 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2455
4fa63067 2456# Automated reporting of test results.
2a4cbe27 2457
4fa63067
NN
2458warning.log: build.log
2459 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2460
4fa63067
NN
2461mail-report.log:
2462 if test x'$(BOOT_CFLAGS)' != x''; then \
2463 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2464 fi; \
2465 $(srcdir)/contrib/test_summary -t >$@
2466 chmod +x $@
2467 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2468
4fa63067
NN
2469mail-report-with-warnings.log: warning.log
2470 if test x'$(BOOT_CFLAGS)' != x''; then \
2471 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2472 fi; \
2473 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2474 chmod +x $@
2475 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2476
1b6c0831
L
2477# Local Vim config
2478
2479$(srcdir)/.local.vimrc:
22121df0 2480 $(LN_S) contrib/vimrc $@
1b6c0831
L
2481
2482$(srcdir)/.lvimrc:
22121df0 2483 $(LN_S) contrib/vimrc $@
1b6c0831
L
2484
2485vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2486
2487.PHONY: vimrc
2488
4849dfd8
NC
2489# clang-format config
2490
2491$(srcdir)/.clang-format:
2492 $(LN_S) contrib/clang-format $@
2493
2494clang-format: $(srcdir)/.clang-format
2495
2496.PHONY: clang-format
2497
4fa63067 2498# Installation targets.
2a4cbe27 2499
4fa63067 2500.PHONY: install uninstall
f70224b5 2501install:
0aed8855 2502 @: $(MAKE); $(unstage)
e360f423
PB
2503 @r=`${PWD_COMMAND}`; export r; \
2504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2505 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2506
4fa63067
NN
2507.PHONY: install-host-nogcc
2508install-host-nogcc: \
4fa63067
NN
2509 maybe-install-bfd \
2510 maybe-install-opcodes \
2511 maybe-install-binutils \
2512 maybe-install-bison \
f9806fa5 2513 maybe-install-cgen \
4fa63067 2514 maybe-install-dejagnu \
4fa63067
NN
2515 maybe-install-etc \
2516 maybe-install-fastjar \
d3ed111c 2517 maybe-install-fixincludes \
4fa63067
NN
2518 maybe-install-flex \
2519 maybe-install-gas \
4b900473
PB
2520 maybe-install-gmp \
2521 maybe-install-mpfr \
e8a5fa9c 2522 maybe-install-mpc \
7ec59b9e 2523 maybe-install-isl \
1f53ca9a 2524 maybe-install-libelf \
93f9b408 2525 maybe-install-gold \
4fa63067 2526 maybe-install-gprof \
4fa63067
NN
2527 maybe-install-intl \
2528 maybe-install-tcl \
2529 maybe-install-itcl \
2530 maybe-install-ld \
2bf680c4 2531 maybe-install-libbacktrace \
04cf1b77 2532 maybe-install-libcpp \
be01d343 2533 maybe-install-libdecnumber \
4fa63067
NN
2534 maybe-install-libgui \
2535 maybe-install-libiberty \
1b6c0831 2536 maybe-install-libiberty-linker-plugin \
dc448a7b 2537 maybe-install-libiconv \
4fa63067 2538 maybe-install-m4 \
4fa63067 2539 maybe-install-readline \
4fa63067
NN
2540 maybe-install-sid \
2541 maybe-install-sim \
4fa63067 2542 maybe-install-texinfo \
4fa63067 2543 maybe-install-zlib \
73cc7272 2544 maybe-install-gnulib \
01027315 2545 maybe-install-gdbsupport \
4fa63067
NN
2546 maybe-install-gdb \
2547 maybe-install-expect \
2548 maybe-install-guile \
2549 maybe-install-tk \
4fa63067 2550 maybe-install-libtermcap \
b00612cc 2551 maybe-install-utils \
700d40ca 2552 maybe-install-gnattools \
1b6c0831
L
2553 maybe-install-lto-plugin \
2554 maybe-install-libcc1 \
0e65dfba
NA
2555 maybe-install-gotools \
2556 maybe-install-libctf
2a4cbe27 2557
4fa63067 2558.PHONY: install-host
b813574b 2559install-host: \
4fa63067
NN
2560 maybe-install-bfd \
2561 maybe-install-opcodes \
2562 maybe-install-binutils \
2563 maybe-install-bison \
f9806fa5 2564 maybe-install-cgen \
4fa63067 2565 maybe-install-dejagnu \
4fa63067
NN
2566 maybe-install-etc \
2567 maybe-install-fastjar \
d3ed111c 2568 maybe-install-fixincludes \
4fa63067
NN
2569 maybe-install-flex \
2570 maybe-install-gas \
b813574b 2571 maybe-install-gcc \
4b900473
PB
2572 maybe-install-gmp \
2573 maybe-install-mpfr \
e8a5fa9c 2574 maybe-install-mpc \
7ec59b9e 2575 maybe-install-isl \
1f53ca9a 2576 maybe-install-libelf \
93f9b408 2577 maybe-install-gold \
4fa63067 2578 maybe-install-gprof \
4fa63067
NN
2579 maybe-install-intl \
2580 maybe-install-tcl \
2581 maybe-install-itcl \
2582 maybe-install-ld \
2bf680c4 2583 maybe-install-libbacktrace \
04cf1b77 2584 maybe-install-libcpp \
be01d343 2585 maybe-install-libdecnumber \
4fa63067
NN
2586 maybe-install-libgui \
2587 maybe-install-libiberty \
1b6c0831 2588 maybe-install-libiberty-linker-plugin \
dc448a7b 2589 maybe-install-libiconv \
4fa63067 2590 maybe-install-m4 \
4fa63067 2591 maybe-install-readline \
4fa63067
NN
2592 maybe-install-sid \
2593 maybe-install-sim \
4fa63067 2594 maybe-install-texinfo \
4fa63067 2595 maybe-install-zlib \
73cc7272 2596 maybe-install-gnulib \
01027315 2597 maybe-install-gdbsupport \
4fa63067
NN
2598 maybe-install-gdb \
2599 maybe-install-expect \
2600 maybe-install-guile \
2601 maybe-install-tk \
4fa63067 2602 maybe-install-libtermcap \
b00612cc 2603 maybe-install-utils \
700d40ca 2604 maybe-install-gnattools \
1b6c0831
L
2605 maybe-install-lto-plugin \
2606 maybe-install-libcc1 \
0e65dfba
NA
2607 maybe-install-gotools \
2608 maybe-install-libctf
2a4cbe27 2609
4fa63067
NN
2610.PHONY: install-target
2611install-target: \
2612 maybe-install-target-libstdc++-v3 \
5286fdef 2613 maybe-install-target-libsanitizer \
1b6c0831 2614 maybe-install-target-libmpx \
95e43135 2615 maybe-install-target-libvtv \
e3f56a99 2616 maybe-install-target-libcilkrts \
1b6c0831 2617 maybe-install-target-liboffloadmic \
064d0a7c 2618 maybe-install-target-libssp \
4fa63067 2619 maybe-install-target-newlib \
6aa8ef82 2620 maybe-install-target-libgcc \
2bf680c4 2621 maybe-install-target-libbacktrace \
e552509b 2622 maybe-install-target-libquadmath \
4b1cb4fe 2623 maybe-install-target-libgfortran \
4fa63067 2624 maybe-install-target-libobjc \
e552509b 2625 maybe-install-target-libgo \
4fa63067
NN
2626 maybe-install-target-libtermcap \
2627 maybe-install-target-winsup \
2628 maybe-install-target-libgloss \
4fa63067 2629 maybe-install-target-libffi \
4fa63067 2630 maybe-install-target-zlib \
4fa63067 2631 maybe-install-target-rda \
b3ded179 2632 maybe-install-target-libada \
7ec59b9e
L
2633 maybe-install-target-libgomp \
2634 maybe-install-target-libitm \
2635 maybe-install-target-libatomic
2a4cbe27 2636
4fa63067
NN
2637uninstall:
2638 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2639
4fa63067
NN
2640.PHONY: install.all
2641install.all: install-no-fixedincludes
22121df0
L
2642 @if [ -f ./gcc/Makefile ]; then \
2643 r=`${PWD_COMMAND}`; export r; \
0aed8855 2644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2645 $(HOST_EXPORTS) \
4fa63067 2646 (cd ./gcc && \
22121df0 2647 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2648 else \
22121df0 2649 true; \
4fa63067 2650 fi
2a4cbe27 2651
7ec59b9e
L
2652# install-no-fixedincludes is used to allow the elaboration of binary packages
2653# suitable for distribution, where we cannot include the fixed system header
2654# files.
4fa63067
NN
2655.PHONY: install-no-fixedincludes
2656install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2657 install-target gcc-install-no-fixedincludes
2a4cbe27 2658
9b980aa1
RW
2659.PHONY: install-strip
2660install-strip:
2661 @: $(MAKE); $(unstage)
2662 @r=`${PWD_COMMAND}`; export r; \
2663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2664 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2665
2666.PHONY: install-strip-host
2667install-strip-host: \
9b980aa1
RW
2668 maybe-install-strip-bfd \
2669 maybe-install-strip-opcodes \
2670 maybe-install-strip-binutils \
2671 maybe-install-strip-bison \
9b980aa1
RW
2672 maybe-install-strip-cgen \
2673 maybe-install-strip-dejagnu \
9b980aa1
RW
2674 maybe-install-strip-etc \
2675 maybe-install-strip-fastjar \
9b980aa1
RW
2676 maybe-install-strip-fixincludes \
2677 maybe-install-strip-flex \
2678 maybe-install-strip-gas \
2679 maybe-install-strip-gcc \
9b980aa1
RW
2680 maybe-install-strip-gmp \
2681 maybe-install-strip-mpfr \
2682 maybe-install-strip-mpc \
7ec59b9e 2683 maybe-install-strip-isl \
9b980aa1 2684 maybe-install-strip-libelf \
9b980aa1
RW
2685 maybe-install-strip-gold \
2686 maybe-install-strip-gprof \
9b980aa1
RW
2687 maybe-install-strip-intl \
2688 maybe-install-strip-tcl \
2689 maybe-install-strip-itcl \
2690 maybe-install-strip-ld \
2bf680c4 2691 maybe-install-strip-libbacktrace \
9b980aa1
RW
2692 maybe-install-strip-libcpp \
2693 maybe-install-strip-libdecnumber \
2694 maybe-install-strip-libgui \
2695 maybe-install-strip-libiberty \
1b6c0831 2696 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2697 maybe-install-strip-libiconv \
9b980aa1 2698 maybe-install-strip-m4 \
9b980aa1 2699 maybe-install-strip-readline \
9b980aa1
RW
2700 maybe-install-strip-sid \
2701 maybe-install-strip-sim \
9b980aa1 2702 maybe-install-strip-texinfo \
9b980aa1 2703 maybe-install-strip-zlib \
73cc7272 2704 maybe-install-strip-gnulib \
01027315 2705 maybe-install-strip-gdbsupport \
9b980aa1
RW
2706 maybe-install-strip-gdb \
2707 maybe-install-strip-expect \
2708 maybe-install-strip-guile \
2709 maybe-install-strip-tk \
2710 maybe-install-strip-libtermcap \
2711 maybe-install-strip-utils \
2712 maybe-install-strip-gnattools \
1b6c0831
L
2713 maybe-install-strip-lto-plugin \
2714 maybe-install-strip-libcc1 \
0e65dfba
NA
2715 maybe-install-strip-gotools \
2716 maybe-install-strip-libctf
9b980aa1
RW
2717
2718.PHONY: install-strip-target
2719install-strip-target: \
2720 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2721 maybe-install-strip-target-libsanitizer \
1b6c0831 2722 maybe-install-strip-target-libmpx \
95e43135 2723 maybe-install-strip-target-libvtv \
e3f56a99 2724 maybe-install-strip-target-libcilkrts \
1b6c0831 2725 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2726 maybe-install-strip-target-libssp \
2727 maybe-install-strip-target-newlib \
2728 maybe-install-strip-target-libgcc \
2bf680c4 2729 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2730 maybe-install-strip-target-libquadmath \
2731 maybe-install-strip-target-libgfortran \
2732 maybe-install-strip-target-libobjc \
2733 maybe-install-strip-target-libgo \
2734 maybe-install-strip-target-libtermcap \
2735 maybe-install-strip-target-winsup \
2736 maybe-install-strip-target-libgloss \
9b980aa1 2737 maybe-install-strip-target-libffi \
9b980aa1 2738 maybe-install-strip-target-zlib \
9b980aa1
RW
2739 maybe-install-strip-target-rda \
2740 maybe-install-strip-target-libada \
7ec59b9e
L
2741 maybe-install-strip-target-libgomp \
2742 maybe-install-strip-target-libitm \
2743 maybe-install-strip-target-libatomic
9b980aa1
RW
2744
2745
4fa63067 2746### other supporting targets
2a4cbe27 2747
4fa63067
NN
2748MAKEDIRS= \
2749 $(DESTDIR)$(prefix) \
2750 $(DESTDIR)$(exec_prefix)
2751.PHONY: installdirs
2752installdirs: mkinstalldirs
2753 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2754
4fa63067 2755dir.info: do-install-info
22121df0
L
2756 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2757 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2758 mv -f dir.info.new dir.info; \
2759 else true; \
4fa63067 2760 fi
2a4cbe27 2761
4fa63067
NN
2762dist:
2763 @echo "Building a full distribution of this tree isn't done"
2764 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2765
4fa63067 2766etags tags: TAGS
2a4cbe27 2767
4fa63067
NN
2768# Right now this just builds TAGS in each subdirectory. emacs19 has the
2769# ability to use several tags files at once, so there is probably no need
2770# to combine them into one big TAGS file (like CVS 1.3 does). We could
2771# (if we felt like it) have this Makefile write a piece of elisp which
2772# the user could load to tell emacs19 where all the TAGS files we just
2773# built are.
2774TAGS: do-TAGS
2a4cbe27 2775
a7254363
PB
2776# ------------------------------------
2777# Macros for configure and all targets
2778# ------------------------------------
2779
2780
2781
2782
2783
4fa63067
NN
2784# --------------------------------------
2785# Modules which run on the build machine
2786# --------------------------------------
2787
a7254363 2788
4fa63067
NN
2789.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2790maybe-configure-build-libiberty:
4f0ef2d8
CD
2791@if gcc-bootstrap
2792configure-build-libiberty: stage_current
2793@endif gcc-bootstrap
6bd3dfaa
PB
2794@if build-libiberty
2795maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2796configure-build-libiberty:
0aed8855 2797 @: $(MAKE); $(unstage)
c52c6897 2798 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2800 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2801 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2802 $(BUILD_EXPORTS) \
4fa63067
NN
2803 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2804 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2805 case $(srcdir) in \
b00612cc
PB
2806 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2807 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2808 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2809 esac; \
1b6c0831 2810 module_srcdir=libiberty; \
4fa63067 2811 rm -f no-such-file || : ; \
1b6c0831
L
2812 CONFIG_SITE=no-such-file $(SHELL) \
2813 $$s/$$module_srcdir/configure \
2814 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2815 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2816 --target=${target_alias} \
2a4cbe27 2817 || exit 1
6bd3dfaa 2818@endif build-libiberty
2a4cbe27 2819
a7254363
PB
2820
2821
d545f33b
PB
2822
2823
4fa63067
NN
2824.PHONY: all-build-libiberty maybe-all-build-libiberty
2825maybe-all-build-libiberty:
4f0ef2d8
CD
2826@if gcc-bootstrap
2827all-build-libiberty: stage_current
2828@endif gcc-bootstrap
6bd3dfaa 2829@if build-libiberty
72b2455a 2830TARGET-build-libiberty=all
6bd3dfaa 2831maybe-all-build-libiberty: all-build-libiberty
4fa63067 2832all-build-libiberty: configure-build-libiberty
0aed8855 2833 @: $(MAKE); $(unstage)
4fa63067 2834 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2836 $(BUILD_EXPORTS) \
72b2455a 2837 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2838 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2839 $(TARGET-build-libiberty))
6bd3dfaa 2840@endif build-libiberty
2a4cbe27 2841
a7254363
PB
2842
2843
d545f33b
PB
2844
2845
6a9cf61e
PB
2846.PHONY: configure-build-bison maybe-configure-build-bison
2847maybe-configure-build-bison:
4f0ef2d8
CD
2848@if gcc-bootstrap
2849configure-build-bison: stage_current
2850@endif gcc-bootstrap
6a9cf61e
PB
2851@if build-bison
2852maybe-configure-build-bison: configure-build-bison
c52c6897 2853configure-build-bison:
0aed8855 2854 @: $(MAKE); $(unstage)
c52c6897 2855 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2857 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2858 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2859 $(BUILD_EXPORTS) \
6a9cf61e
PB
2860 echo Configuring in $(BUILD_SUBDIR)/bison; \
2861 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2862 case $(srcdir) in \
b00612cc
PB
2863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2864 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2866 esac; \
1b6c0831 2867 module_srcdir=bison; \
6a9cf61e 2868 rm -f no-such-file || : ; \
1b6c0831
L
2869 CONFIG_SITE=no-such-file $(SHELL) \
2870 $$s/$$module_srcdir/configure \
2871 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2872 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2873 --target=${target_alias} \
6a9cf61e
PB
2874 || exit 1
2875@endif build-bison
2876
a7254363
PB
2877
2878
d545f33b
PB
2879
2880
6a9cf61e
PB
2881.PHONY: all-build-bison maybe-all-build-bison
2882maybe-all-build-bison:
4f0ef2d8
CD
2883@if gcc-bootstrap
2884all-build-bison: stage_current
2885@endif gcc-bootstrap
6a9cf61e 2886@if build-bison
72b2455a 2887TARGET-build-bison=all
6a9cf61e
PB
2888maybe-all-build-bison: all-build-bison
2889all-build-bison: configure-build-bison
0aed8855 2890 @: $(MAKE); $(unstage)
6a9cf61e
PB
2891 @r=`${PWD_COMMAND}`; export r; \
2892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2893 $(BUILD_EXPORTS) \
72b2455a 2894 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2895 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2896 $(TARGET-build-bison))
6a9cf61e
PB
2897@endif build-bison
2898
a7254363
PB
2899
2900
d545f33b
PB
2901
2902
6a9cf61e
PB
2903.PHONY: configure-build-flex maybe-configure-build-flex
2904maybe-configure-build-flex:
4f0ef2d8
CD
2905@if gcc-bootstrap
2906configure-build-flex: stage_current
2907@endif gcc-bootstrap
6a9cf61e
PB
2908@if build-flex
2909maybe-configure-build-flex: configure-build-flex
c52c6897 2910configure-build-flex:
0aed8855 2911 @: $(MAKE); $(unstage)
c52c6897 2912 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2914 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2915 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2916 $(BUILD_EXPORTS) \
6a9cf61e
PB
2917 echo Configuring in $(BUILD_SUBDIR)/flex; \
2918 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2919 case $(srcdir) in \
b00612cc
PB
2920 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2921 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2922 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2923 esac; \
1b6c0831 2924 module_srcdir=flex; \
6a9cf61e 2925 rm -f no-such-file || : ; \
1b6c0831
L
2926 CONFIG_SITE=no-such-file $(SHELL) \
2927 $$s/$$module_srcdir/configure \
2928 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2929 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2930 --target=${target_alias} \
6a9cf61e
PB
2931 || exit 1
2932@endif build-flex
2933
a7254363
PB
2934
2935
d545f33b
PB
2936
2937
6a9cf61e
PB
2938.PHONY: all-build-flex maybe-all-build-flex
2939maybe-all-build-flex:
4f0ef2d8
CD
2940@if gcc-bootstrap
2941all-build-flex: stage_current
2942@endif gcc-bootstrap
6a9cf61e 2943@if build-flex
72b2455a 2944TARGET-build-flex=all
6a9cf61e
PB
2945maybe-all-build-flex: all-build-flex
2946all-build-flex: configure-build-flex
0aed8855 2947 @: $(MAKE); $(unstage)
6a9cf61e
PB
2948 @r=`${PWD_COMMAND}`; export r; \
2949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2950 $(BUILD_EXPORTS) \
72b2455a 2951 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2952 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2953 $(TARGET-build-flex))
6a9cf61e
PB
2954@endif build-flex
2955
a7254363
PB
2956
2957
d545f33b
PB
2958
2959
6a9cf61e
PB
2960.PHONY: configure-build-m4 maybe-configure-build-m4
2961maybe-configure-build-m4:
4f0ef2d8
CD
2962@if gcc-bootstrap
2963configure-build-m4: stage_current
2964@endif gcc-bootstrap
6a9cf61e
PB
2965@if build-m4
2966maybe-configure-build-m4: configure-build-m4
c52c6897 2967configure-build-m4:
0aed8855 2968 @: $(MAKE); $(unstage)
c52c6897 2969 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2971 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 2972 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 2973 $(BUILD_EXPORTS) \
6a9cf61e
PB
2974 echo Configuring in $(BUILD_SUBDIR)/m4; \
2975 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2976 case $(srcdir) in \
b00612cc
PB
2977 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2978 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2979 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2980 esac; \
1b6c0831 2981 module_srcdir=m4; \
6a9cf61e 2982 rm -f no-such-file || : ; \
1b6c0831
L
2983 CONFIG_SITE=no-such-file $(SHELL) \
2984 $$s/$$module_srcdir/configure \
2985 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2986 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2987 --target=${target_alias} \
6a9cf61e
PB
2988 || exit 1
2989@endif build-m4
2990
a7254363
PB
2991
2992
d545f33b
PB
2993
2994
6a9cf61e
PB
2995.PHONY: all-build-m4 maybe-all-build-m4
2996maybe-all-build-m4:
4f0ef2d8
CD
2997@if gcc-bootstrap
2998all-build-m4: stage_current
2999@endif gcc-bootstrap
6a9cf61e 3000@if build-m4
72b2455a 3001TARGET-build-m4=all
6a9cf61e
PB
3002maybe-all-build-m4: all-build-m4
3003all-build-m4: configure-build-m4
0aed8855 3004 @: $(MAKE); $(unstage)
6a9cf61e
PB
3005 @r=`${PWD_COMMAND}`; export r; \
3006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3007 $(BUILD_EXPORTS) \
72b2455a 3008 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 3009 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3010 $(TARGET-build-m4))
6a9cf61e
PB
3011@endif build-m4
3012
a7254363
PB
3013
3014
d545f33b
PB
3015
3016
6a9cf61e
PB
3017.PHONY: configure-build-texinfo maybe-configure-build-texinfo
3018maybe-configure-build-texinfo:
4f0ef2d8
CD
3019@if gcc-bootstrap
3020configure-build-texinfo: stage_current
3021@endif gcc-bootstrap
6a9cf61e
PB
3022@if build-texinfo
3023maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 3024configure-build-texinfo:
0aed8855 3025 @: $(MAKE); $(unstage)
c52c6897 3026 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3028 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 3029 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 3030 $(BUILD_EXPORTS) \
6a9cf61e
PB
3031 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3032 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3033 case $(srcdir) in \
b00612cc
PB
3034 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3035 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3036 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3037 esac; \
1b6c0831 3038 module_srcdir=texinfo; \
6a9cf61e 3039 rm -f no-such-file || : ; \
1b6c0831
L
3040 CONFIG_SITE=no-such-file $(SHELL) \
3041 $$s/$$module_srcdir/configure \
3042 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3043 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3044 --target=${target_alias} \
6a9cf61e
PB
3045 || exit 1
3046@endif build-texinfo
3047
a7254363
PB
3048
3049
d545f33b
PB
3050
3051
6a9cf61e
PB
3052.PHONY: all-build-texinfo maybe-all-build-texinfo
3053maybe-all-build-texinfo:
4f0ef2d8
CD
3054@if gcc-bootstrap
3055all-build-texinfo: stage_current
3056@endif gcc-bootstrap
6a9cf61e 3057@if build-texinfo
72b2455a 3058TARGET-build-texinfo=all
6a9cf61e
PB
3059maybe-all-build-texinfo: all-build-texinfo
3060all-build-texinfo: configure-build-texinfo
0aed8855 3061 @: $(MAKE); $(unstage)
6a9cf61e
PB
3062 @r=`${PWD_COMMAND}`; export r; \
3063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3064 $(BUILD_EXPORTS) \
72b2455a 3065 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3066 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3067 $(TARGET-build-texinfo))
6a9cf61e
PB
3068@endif build-texinfo
3069
a7254363
PB
3070
3071
d545f33b
PB
3072
3073
ee025550
PB
3074.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3075maybe-configure-build-fixincludes:
4f0ef2d8
CD
3076@if gcc-bootstrap
3077configure-build-fixincludes: stage_current
3078@endif gcc-bootstrap
ee025550
PB
3079@if build-fixincludes
3080maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3081configure-build-fixincludes:
0aed8855 3082 @: $(MAKE); $(unstage)
c52c6897 3083 @r=`${PWD_COMMAND}`; export r; \
ee025550 3084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3085 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3086 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3087 $(BUILD_EXPORTS) \
ee025550
PB
3088 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3089 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3090 case $(srcdir) in \
b00612cc
PB
3091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3092 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3094 esac; \
1b6c0831 3095 module_srcdir=fixincludes; \
ee025550 3096 rm -f no-such-file || : ; \
1b6c0831
L
3097 CONFIG_SITE=no-such-file $(SHELL) \
3098 $$s/$$module_srcdir/configure \
3099 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3100 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3101 --target=${target_alias} \
ee025550
PB
3102 || exit 1
3103@endif build-fixincludes
3104
a7254363
PB
3105
3106
d545f33b
PB
3107
3108
ee025550
PB
3109.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3110maybe-all-build-fixincludes:
4f0ef2d8
CD
3111@if gcc-bootstrap
3112all-build-fixincludes: stage_current
3113@endif gcc-bootstrap
ee025550
PB
3114@if build-fixincludes
3115TARGET-build-fixincludes=all
3116maybe-all-build-fixincludes: all-build-fixincludes
3117all-build-fixincludes: configure-build-fixincludes
0aed8855 3118 @: $(MAKE); $(unstage)
ee025550
PB
3119 @r=`${PWD_COMMAND}`; export r; \
3120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3121 $(BUILD_EXPORTS) \
ee025550 3122 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3123 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3124 $(TARGET-build-fixincludes))
ee025550
PB
3125@endif build-fixincludes
3126
2a4cbe27 3127
a7254363 3128
d545f33b
PB
3129
3130
1b6c0831
L
3131.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3132maybe-configure-build-libcpp:
3133@if gcc-bootstrap
3134configure-build-libcpp: stage_current
3135@endif gcc-bootstrap
3136@if build-libcpp
3137maybe-configure-build-libcpp: configure-build-libcpp
3138configure-build-libcpp:
3139 @: $(MAKE); $(unstage)
3140 @r=`${PWD_COMMAND}`; export r; \
3141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3142 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3143 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3144 $(BUILD_EXPORTS) \
3145 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3146 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3147 case $(srcdir) in \
3148 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3149 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3150 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3151 esac; \
3152 module_srcdir=libcpp; \
3153 rm -f no-such-file || : ; \
3154 CONFIG_SITE=no-such-file $(SHELL) \
3155 $$s/$$module_srcdir/configure \
3156 --srcdir=$${topdir}/$$module_srcdir \
3157 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3158 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3159 || exit 1
3160@endif build-libcpp
3161
3162
3163
3164
3165
3166.PHONY: all-build-libcpp maybe-all-build-libcpp
3167maybe-all-build-libcpp:
3168@if gcc-bootstrap
3169all-build-libcpp: stage_current
3170@endif gcc-bootstrap
3171@if build-libcpp
3172TARGET-build-libcpp=all
3173maybe-all-build-libcpp: all-build-libcpp
3174all-build-libcpp: configure-build-libcpp
3175 @: $(MAKE); $(unstage)
3176 @r=`${PWD_COMMAND}`; export r; \
3177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3178 $(BUILD_EXPORTS) \
3179 (cd $(BUILD_SUBDIR)/libcpp && \
3180 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3181 $(TARGET-build-libcpp))
3182@endif build-libcpp
3183
3184
3185
3186
3187
4fa63067
NN
3188# --------------------------------------
3189# Modules which run on the host machine
3190# --------------------------------------
2a4cbe27 3191
a7254363 3192
a90ef4bf
JM
3193.PHONY: configure-bfd maybe-configure-bfd
3194maybe-configure-bfd:
4f0ef2d8 3195@if gcc-bootstrap
a90ef4bf 3196configure-bfd: stage_current
4f0ef2d8 3197@endif gcc-bootstrap
a90ef4bf
JM
3198@if bfd
3199maybe-configure-bfd: configure-bfd
3200configure-bfd:
c52c6897 3201 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3203 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3204 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3205 $(HOST_EXPORTS) \
a90ef4bf
JM
3206 echo Configuring in $(HOST_SUBDIR)/bfd; \
3207 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3208 case $(srcdir) in \
b00612cc 3209 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3210 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3211 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3212 esac; \
1b6c0831
L
3213 module_srcdir=bfd; \
3214 $(SHELL) \
3215 $$s/$$module_srcdir/configure \
3216 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3217 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3218 --target=${target_alias} \
2a4cbe27 3219 || exit 1
a90ef4bf 3220@endif bfd
a7254363 3221
d545f33b
PB
3222
3223
a90ef4bf
JM
3224.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3225maybe-configure-stage1-bfd:
3226@if bfd-bootstrap
3227maybe-configure-stage1-bfd: configure-stage1-bfd
3228configure-stage1-bfd:
3229 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3230 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3231 @r=`${PWD_COMMAND}`; export r; \
3232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3233 TFLAGS="$(STAGE1_TFLAGS)"; \
3234 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3235 $(HOST_EXPORTS) \
3236 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3237 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3238 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3239 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3240 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3241 cd $(HOST_SUBDIR)/bfd || exit 1; \
3242 case $(srcdir) in \
3243 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3244 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3245 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3246 esac; \
1b6c0831
L
3247 module_srcdir=bfd; \
3248 $(SHELL) $$s/$$module_srcdir/configure \
3249 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3250 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3251 --target=${target_alias} \
3252 \
a90ef4bf
JM
3253 $(STAGE1_CONFIGURE_FLAGS)
3254@endif bfd-bootstrap
2a4cbe27 3255
a90ef4bf
JM
3256.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3257maybe-configure-stage2-bfd:
3258@if bfd-bootstrap
3259maybe-configure-stage2-bfd: configure-stage2-bfd
3260configure-stage2-bfd:
3261 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3262 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3263 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3265 TFLAGS="$(STAGE2_TFLAGS)"; \
3266 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3267 $(HOST_EXPORTS) \
a90ef4bf
JM
3268 $(POSTSTAGE1_HOST_EXPORTS) \
3269 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3270 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3271 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3272 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3273 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3274 cd $(HOST_SUBDIR)/bfd || exit 1; \
3275 case $(srcdir) in \
3276 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3277 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3278 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3279 esac; \
1b6c0831
L
3280 module_srcdir=bfd; \
3281 $(SHELL) $$s/$$module_srcdir/configure \
3282 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3283 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3284 --target=${target_alias} \
22121df0 3285 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3286 $(STAGE2_CONFIGURE_FLAGS)
3287@endif bfd-bootstrap
2a4cbe27 3288
a90ef4bf
JM
3289.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3290maybe-configure-stage3-bfd:
3291@if bfd-bootstrap
3292maybe-configure-stage3-bfd: configure-stage3-bfd
3293configure-stage3-bfd:
3294 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3295 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3296 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3298 TFLAGS="$(STAGE3_TFLAGS)"; \
3299 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3300 $(HOST_EXPORTS) \
a90ef4bf
JM
3301 $(POSTSTAGE1_HOST_EXPORTS) \
3302 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3303 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3304 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3305 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3306 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3307 cd $(HOST_SUBDIR)/bfd || exit 1; \
3308 case $(srcdir) in \
3309 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3310 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3311 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3312 esac; \
1b6c0831
L
3313 module_srcdir=bfd; \
3314 $(SHELL) $$s/$$module_srcdir/configure \
3315 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3316 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3317 --target=${target_alias} \
22121df0 3318 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3319 $(STAGE3_CONFIGURE_FLAGS)
3320@endif bfd-bootstrap
9b980aa1 3321
a90ef4bf
JM
3322.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3323maybe-configure-stage4-bfd:
3324@if bfd-bootstrap
3325maybe-configure-stage4-bfd: configure-stage4-bfd
3326configure-stage4-bfd:
3327 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3328 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3329 @r=`${PWD_COMMAND}`; export r; \
3330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3331 TFLAGS="$(STAGE4_TFLAGS)"; \
3332 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3333 $(HOST_EXPORTS) \
a90ef4bf
JM
3334 $(POSTSTAGE1_HOST_EXPORTS) \
3335 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3336 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3337 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3338 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3339 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3340 cd $(HOST_SUBDIR)/bfd || exit 1; \
3341 case $(srcdir) in \
3342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3343 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3345 esac; \
1b6c0831
L
3346 module_srcdir=bfd; \
3347 $(SHELL) $$s/$$module_srcdir/configure \
3348 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3349 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3350 --target=${target_alias} \
22121df0 3351 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3352 $(STAGE4_CONFIGURE_FLAGS)
3353@endif bfd-bootstrap
4fa63067 3354
a90ef4bf
JM
3355.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3356maybe-configure-stageprofile-bfd:
3357@if bfd-bootstrap
3358maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3359configure-stageprofile-bfd:
3360 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3361 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3362 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3364 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3365 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3366 $(HOST_EXPORTS) \
a90ef4bf
JM
3367 $(POSTSTAGE1_HOST_EXPORTS) \
3368 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3369 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3370 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3371 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3372 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3373 cd $(HOST_SUBDIR)/bfd || exit 1; \
3374 case $(srcdir) in \
3375 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3376 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3377 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3378 esac; \
1b6c0831
L
3379 module_srcdir=bfd; \
3380 $(SHELL) $$s/$$module_srcdir/configure \
3381 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3382 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3383 --target=${target_alias} \
22121df0 3384 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3385 $(STAGEprofile_CONFIGURE_FLAGS)
3386@endif bfd-bootstrap
2a4cbe27 3387
a90ef4bf
JM
3388.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3389maybe-configure-stagefeedback-bfd:
3390@if bfd-bootstrap
3391maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3392configure-stagefeedback-bfd:
3393 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3394 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3395 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3397 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3398 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3399 $(HOST_EXPORTS) \
a90ef4bf
JM
3400 $(POSTSTAGE1_HOST_EXPORTS) \
3401 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3402 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3403 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3404 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3405 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3406 cd $(HOST_SUBDIR)/bfd || exit 1; \
3407 case $(srcdir) in \
3408 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3409 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3410 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3411 esac; \
1b6c0831
L
3412 module_srcdir=bfd; \
3413 $(SHELL) $$s/$$module_srcdir/configure \
3414 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3415 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3416 --target=${target_alias} \
22121df0 3417 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3418 $(STAGEfeedback_CONFIGURE_FLAGS)
3419@endif bfd-bootstrap
2a4cbe27 3420
56a8fe78 3421
56a8fe78 3422
56a8fe78 3423
6d389afc 3424
a90ef4bf
JM
3425.PHONY: all-bfd maybe-all-bfd
3426maybe-all-bfd:
3427@if gcc-bootstrap
3428all-bfd: stage_current
3429@endif gcc-bootstrap
3430@if bfd
3431TARGET-bfd=all
3432maybe-all-bfd: all-bfd
3433all-bfd: configure-bfd
3434 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3436 $(HOST_EXPORTS) \
3437 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3438 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3439 $(TARGET-bfd))
3440@endif bfd
6d389afc 3441
6d389afc 3442
2a4cbe27 3443
a90ef4bf
JM
3444.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3445.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3446maybe-all-stage1-bfd:
3447maybe-clean-stage1-bfd:
3448@if bfd-bootstrap
3449maybe-all-stage1-bfd: all-stage1-bfd
3450all-stage1: all-stage1-bfd
3451TARGET-stage1-bfd = $(TARGET-bfd)
3452all-stage1-bfd: configure-stage1-bfd
3453 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3454 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3456 TFLAGS="$(STAGE1_TFLAGS)"; \
3457 $(HOST_EXPORTS) \
3458 cd $(HOST_SUBDIR)/bfd && \
05a13254 3459 \
a90ef4bf
JM
3460 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3461 CFLAGS="$(STAGE1_CFLAGS)" \
3462 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3463 LIBCFLAGS="$(LIBCFLAGS)" \
3464 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3465 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3466 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3467 $(EXTRA_HOST_FLAGS) \
3468 $(STAGE1_FLAGS_TO_PASS) \
05a13254 3469 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 3470 $(TARGET-stage1-bfd)
2a4cbe27 3471
a90ef4bf
JM
3472maybe-clean-stage1-bfd: clean-stage1-bfd
3473clean-stage1: clean-stage1-bfd
3474clean-stage1-bfd:
3475 @if [ $(current_stage) = stage1 ]; then \
3476 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3477 else \
3478 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3479 $(MAKE) stage1-start; \
3480 fi; \
3481 cd $(HOST_SUBDIR)/bfd && \
3482 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3483 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3484@endif bfd-bootstrap
2a4cbe27 3485
2a4cbe27 3486
a90ef4bf
JM
3487.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3488.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3489maybe-all-stage2-bfd:
3490maybe-clean-stage2-bfd:
3491@if bfd-bootstrap
3492maybe-all-stage2-bfd: all-stage2-bfd
3493all-stage2: all-stage2-bfd
3494TARGET-stage2-bfd = $(TARGET-bfd)
3495all-stage2-bfd: configure-stage2-bfd
3496 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3497 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3499 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3500 $(HOST_EXPORTS) \
a90ef4bf
JM
3501 $(POSTSTAGE1_HOST_EXPORTS) \
3502 cd $(HOST_SUBDIR)/bfd && \
05a13254 3503 \
a90ef4bf
JM
3504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3505 CFLAGS="$(STAGE2_CFLAGS)" \
3506 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3507 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3508 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3509 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3510 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3511 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3512 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 3513 $(TARGET-stage2-bfd)
2a4cbe27 3514
a90ef4bf
JM
3515maybe-clean-stage2-bfd: clean-stage2-bfd
3516clean-stage2: clean-stage2-bfd
3517clean-stage2-bfd:
3518 @if [ $(current_stage) = stage2 ]; then \
3519 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3520 else \
3521 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3522 $(MAKE) stage2-start; \
3523 fi; \
3524 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3525 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3526@endif bfd-bootstrap
2a4cbe27 3527
a3ca38d2 3528
a90ef4bf
JM
3529.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3530.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3531maybe-all-stage3-bfd:
3532maybe-clean-stage3-bfd:
3533@if bfd-bootstrap
3534maybe-all-stage3-bfd: all-stage3-bfd
3535all-stage3: all-stage3-bfd
3536TARGET-stage3-bfd = $(TARGET-bfd)
3537all-stage3-bfd: configure-stage3-bfd
3538 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3539 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3541 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3542 $(HOST_EXPORTS) \
a90ef4bf
JM
3543 $(POSTSTAGE1_HOST_EXPORTS) \
3544 cd $(HOST_SUBDIR)/bfd && \
05a13254 3545 \
a90ef4bf
JM
3546 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3547 CFLAGS="$(STAGE3_CFLAGS)" \
3548 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3549 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3550 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3551 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3552 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3553 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3554 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 3555 $(TARGET-stage3-bfd)
a3ca38d2 3556
a90ef4bf
JM
3557maybe-clean-stage3-bfd: clean-stage3-bfd
3558clean-stage3: clean-stage3-bfd
3559clean-stage3-bfd:
3560 @if [ $(current_stage) = stage3 ]; then \
3561 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3562 else \
3563 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3564 $(MAKE) stage3-start; \
3565 fi; \
3566 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3567 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3568@endif bfd-bootstrap
a3ca38d2 3569
108a6f8e 3570
a90ef4bf
JM
3571.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3572.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3573maybe-all-stage4-bfd:
3574maybe-clean-stage4-bfd:
3575@if bfd-bootstrap
3576maybe-all-stage4-bfd: all-stage4-bfd
3577all-stage4: all-stage4-bfd
3578TARGET-stage4-bfd = $(TARGET-bfd)
3579all-stage4-bfd: configure-stage4-bfd
3580 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3581 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3583 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3584 $(HOST_EXPORTS) \
a90ef4bf
JM
3585 $(POSTSTAGE1_HOST_EXPORTS) \
3586 cd $(HOST_SUBDIR)/bfd && \
05a13254 3587 \
a90ef4bf
JM
3588 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3589 CFLAGS="$(STAGE4_CFLAGS)" \
3590 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3591 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3592 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3593 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3594 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3595 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3596 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 3597 $(TARGET-stage4-bfd)
108a6f8e 3598
a90ef4bf
JM
3599maybe-clean-stage4-bfd: clean-stage4-bfd
3600clean-stage4: clean-stage4-bfd
3601clean-stage4-bfd:
3602 @if [ $(current_stage) = stage4 ]; then \
3603 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3604 else \
3605 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3606 $(MAKE) stage4-start; \
3607 fi; \
3608 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3609 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3610@endif bfd-bootstrap
108a6f8e 3611
2a4cbe27 3612
a90ef4bf
JM
3613.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3614.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3615maybe-all-stageprofile-bfd:
3616maybe-clean-stageprofile-bfd:
3617@if bfd-bootstrap
3618maybe-all-stageprofile-bfd: all-stageprofile-bfd
3619all-stageprofile: all-stageprofile-bfd
3620TARGET-stageprofile-bfd = $(TARGET-bfd)
3621all-stageprofile-bfd: configure-stageprofile-bfd
3622 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3623 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3625 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3626 $(HOST_EXPORTS) \
a90ef4bf
JM
3627 $(POSTSTAGE1_HOST_EXPORTS) \
3628 cd $(HOST_SUBDIR)/bfd && \
05a13254 3629 \
a90ef4bf
JM
3630 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3631 CFLAGS="$(STAGEprofile_CFLAGS)" \
3632 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3633 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3634 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3635 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3636 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3637 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3638 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 3639 $(TARGET-stageprofile-bfd)
2a4cbe27 3640
a90ef4bf
JM
3641maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3642clean-stageprofile: clean-stageprofile-bfd
3643clean-stageprofile-bfd:
3644 @if [ $(current_stage) = stageprofile ]; then \
3645 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3646 else \
3647 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3648 $(MAKE) stageprofile-start; \
3649 fi; \
3650 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3651 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3652@endif bfd-bootstrap
2a4cbe27 3653
a7254363 3654
a90ef4bf
JM
3655.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3656.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3657maybe-all-stagefeedback-bfd:
3658maybe-clean-stagefeedback-bfd:
3659@if bfd-bootstrap
3660maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3661all-stagefeedback: all-stagefeedback-bfd
3662TARGET-stagefeedback-bfd = $(TARGET-bfd)
3663all-stagefeedback-bfd: configure-stagefeedback-bfd
3664 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3665 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3667 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3668 $(HOST_EXPORTS) \
3669 $(POSTSTAGE1_HOST_EXPORTS) \
3670 cd $(HOST_SUBDIR)/bfd && \
05a13254 3671 \
a90ef4bf
JM
3672 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3673 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3674 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3675 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3676 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3677 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3678 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3679 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3680 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 3681 $(TARGET-stagefeedback-bfd)
d545f33b 3682
a90ef4bf
JM
3683maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3684clean-stagefeedback: clean-stagefeedback-bfd
3685clean-stagefeedback-bfd:
3686 @if [ $(current_stage) = stagefeedback ]; then \
3687 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3688 else \
3689 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3690 $(MAKE) stagefeedback-start; \
3691 fi; \
3692 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3693 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3694@endif bfd-bootstrap
d545f33b 3695
2a4cbe27 3696
a7254363 3697
d545f33b
PB
3698
3699
a90ef4bf
JM
3700.PHONY: check-bfd maybe-check-bfd
3701maybe-check-bfd:
3702@if bfd
3703maybe-check-bfd: check-bfd
2a4cbe27 3704
a90ef4bf 3705check-bfd:
0aed8855 3706 @: $(MAKE); $(unstage)
4fa63067 3707 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3709 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3710 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3711 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3712
a90ef4bf 3713@endif bfd
2a4cbe27 3714
a90ef4bf
JM
3715.PHONY: install-bfd maybe-install-bfd
3716maybe-install-bfd:
3717@if bfd
3718maybe-install-bfd: install-bfd
2a4cbe27 3719
a90ef4bf 3720install-bfd: installdirs
0aed8855 3721 @: $(MAKE); $(unstage)
4fa63067 3722 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3724 $(HOST_EXPORTS) \
a90ef4bf 3725 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3726 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3727
a90ef4bf 3728@endif bfd
2a4cbe27 3729
a90ef4bf
JM
3730.PHONY: install-strip-bfd maybe-install-strip-bfd
3731maybe-install-strip-bfd:
3732@if bfd
3733maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3734
a90ef4bf 3735install-strip-bfd: installdirs
9b980aa1
RW
3736 @: $(MAKE); $(unstage)
3737 @r=`${PWD_COMMAND}`; export r; \
3738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3739 $(HOST_EXPORTS) \
a90ef4bf 3740 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3741 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3742
a90ef4bf 3743@endif bfd
9b980aa1 3744
56a8fe78 3745# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3746
a90ef4bf
JM
3747.PHONY: maybe-info-bfd info-bfd
3748maybe-info-bfd:
3749@if bfd
3750maybe-info-bfd: info-bfd
4fa63067 3751
a90ef4bf
JM
3752info-bfd: \
3753 configure-bfd
3754 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3755 r=`${PWD_COMMAND}`; export r; \
3756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3757 $(HOST_EXPORTS) \
b813574b 3758 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3760 done; \
22121df0 3761 echo "Doing info in bfd"; \
a90ef4bf 3762 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3765 "RANLIB=$${RANLIB}" \
0c24b341 3766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3767 info) \
2a4cbe27
NN
3768 || exit 1
3769
a90ef4bf 3770@endif bfd
2a4cbe27 3771
a90ef4bf
JM
3772.PHONY: maybe-dvi-bfd dvi-bfd
3773maybe-dvi-bfd:
3774@if bfd
3775maybe-dvi-bfd: dvi-bfd
2a4cbe27 3776
a90ef4bf
JM
3777dvi-bfd: \
3778 configure-bfd
3779 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3780 r=`${PWD_COMMAND}`; export r; \
3781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3782 $(HOST_EXPORTS) \
b813574b 3783 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3785 done; \
22121df0 3786 echo "Doing dvi in bfd"; \
a90ef4bf 3787 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3790 "RANLIB=$${RANLIB}" \
0c24b341 3791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3792 dvi) \
2a4cbe27
NN
3793 || exit 1
3794
a90ef4bf 3795@endif bfd
2a4cbe27 3796
a90ef4bf
JM
3797.PHONY: maybe-pdf-bfd pdf-bfd
3798maybe-pdf-bfd:
3799@if bfd
3800maybe-pdf-bfd: pdf-bfd
56a8fe78 3801
a90ef4bf
JM
3802pdf-bfd: \
3803 configure-bfd
3804 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3805 r=`${PWD_COMMAND}`; export r; \
3806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3807 $(HOST_EXPORTS) \
3808 for flag in $(EXTRA_HOST_FLAGS) ; do \
3809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3810 done; \
22121df0 3811 echo "Doing pdf in bfd"; \
a90ef4bf 3812 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3815 "RANLIB=$${RANLIB}" \
0c24b341 3816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3817 pdf) \
3818 || exit 1
3819
a90ef4bf 3820@endif bfd
56a8fe78 3821
a90ef4bf
JM
3822.PHONY: maybe-html-bfd html-bfd
3823maybe-html-bfd:
3824@if bfd
3825maybe-html-bfd: html-bfd
6d389afc 3826
a90ef4bf
JM
3827html-bfd: \
3828 configure-bfd
3829 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3830 r=`${PWD_COMMAND}`; export r; \
3831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3832 $(HOST_EXPORTS) \
3833 for flag in $(EXTRA_HOST_FLAGS) ; do \
3834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3835 done; \
22121df0 3836 echo "Doing html in bfd"; \
a90ef4bf 3837 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3840 "RANLIB=$${RANLIB}" \
0c24b341 3841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3842 html) \
3843 || exit 1
3844
a90ef4bf 3845@endif bfd
6d389afc 3846
a90ef4bf
JM
3847.PHONY: maybe-TAGS-bfd TAGS-bfd
3848maybe-TAGS-bfd:
3849@if bfd
3850maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3851
a90ef4bf
JM
3852TAGS-bfd: \
3853 configure-bfd
3854 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3855 r=`${PWD_COMMAND}`; export r; \
3856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3857 $(HOST_EXPORTS) \
b813574b 3858 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3860 done; \
22121df0 3861 echo "Doing TAGS in bfd"; \
a90ef4bf 3862 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3865 "RANLIB=$${RANLIB}" \
0c24b341 3866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3867 TAGS) \
2a4cbe27
NN
3868 || exit 1
3869
a90ef4bf 3870@endif bfd
2a4cbe27 3871
a90ef4bf
JM
3872.PHONY: maybe-install-info-bfd install-info-bfd
3873maybe-install-info-bfd:
3874@if bfd
3875maybe-install-info-bfd: install-info-bfd
2a4cbe27 3876
a90ef4bf
JM
3877install-info-bfd: \
3878 configure-bfd \
3879 info-bfd
3880 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3881 r=`${PWD_COMMAND}`; export r; \
3882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3883 $(HOST_EXPORTS) \
b813574b 3884 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3886 done; \
22121df0 3887 echo "Doing install-info in bfd"; \
a90ef4bf 3888 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3891 "RANLIB=$${RANLIB}" \
0c24b341 3892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3893 install-info) \
2a4cbe27
NN
3894 || exit 1
3895
a90ef4bf 3896@endif bfd
2a4cbe27 3897
a90ef4bf
JM
3898.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3899maybe-install-pdf-bfd:
3900@if bfd
3901maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3902
a90ef4bf
JM
3903install-pdf-bfd: \
3904 configure-bfd \
3905 pdf-bfd
3906 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3907 r=`${PWD_COMMAND}`; export r; \
3908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3909 $(HOST_EXPORTS) \
3910 for flag in $(EXTRA_HOST_FLAGS) ; do \
3911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3912 done; \
22121df0 3913 echo "Doing install-pdf in bfd"; \
a90ef4bf 3914 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3917 "RANLIB=$${RANLIB}" \
0c24b341 3918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3919 install-pdf) \
3920 || exit 1
3921
a90ef4bf 3922@endif bfd
a3ca38d2 3923
a90ef4bf
JM
3924.PHONY: maybe-install-html-bfd install-html-bfd
3925maybe-install-html-bfd:
3926@if bfd
3927maybe-install-html-bfd: install-html-bfd
108a6f8e 3928
a90ef4bf
JM
3929install-html-bfd: \
3930 configure-bfd \
3931 html-bfd
3932 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3933 r=`${PWD_COMMAND}`; export r; \
3934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3935 $(HOST_EXPORTS) \
3936 for flag in $(EXTRA_HOST_FLAGS) ; do \
3937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3938 done; \
22121df0 3939 echo "Doing install-html in bfd"; \
a90ef4bf 3940 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3943 "RANLIB=$${RANLIB}" \
0c24b341 3944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3945 install-html) \
3946 || exit 1
3947
a90ef4bf 3948@endif bfd
108a6f8e 3949
a90ef4bf
JM
3950.PHONY: maybe-installcheck-bfd installcheck-bfd
3951maybe-installcheck-bfd:
3952@if bfd
3953maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3954
a90ef4bf
JM
3955installcheck-bfd: \
3956 configure-bfd
3957 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3958 r=`${PWD_COMMAND}`; export r; \
3959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3960 $(HOST_EXPORTS) \
b813574b 3961 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3963 done; \
22121df0 3964 echo "Doing installcheck in bfd"; \
a90ef4bf 3965 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3968 "RANLIB=$${RANLIB}" \
0c24b341 3969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3970 installcheck) \
2a4cbe27
NN
3971 || exit 1
3972
a90ef4bf 3973@endif bfd
2a4cbe27 3974
a90ef4bf
JM
3975.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3976maybe-mostlyclean-bfd:
3977@if bfd
3978maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3979
a90ef4bf
JM
3980mostlyclean-bfd:
3981 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3982 r=`${PWD_COMMAND}`; export r; \
3983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3984 $(HOST_EXPORTS) \
b813574b 3985 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3987 done; \
22121df0 3988 echo "Doing mostlyclean in bfd"; \
a90ef4bf 3989 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3992 "RANLIB=$${RANLIB}" \
0c24b341 3993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3994 mostlyclean) \
2a4cbe27
NN
3995 || exit 1
3996
a90ef4bf 3997@endif bfd
2a4cbe27 3998
a90ef4bf
JM
3999.PHONY: maybe-clean-bfd clean-bfd
4000maybe-clean-bfd:
4001@if bfd
4002maybe-clean-bfd: clean-bfd
2a4cbe27 4003
a90ef4bf
JM
4004clean-bfd:
4005 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4006 r=`${PWD_COMMAND}`; export r; \
4007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4008 $(HOST_EXPORTS) \
b813574b 4009 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4011 done; \
22121df0 4012 echo "Doing clean in bfd"; \
a90ef4bf 4013 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4016 "RANLIB=$${RANLIB}" \
0c24b341 4017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4018 clean) \
2a4cbe27
NN
4019 || exit 1
4020
a90ef4bf 4021@endif bfd
2a4cbe27 4022
a90ef4bf
JM
4023.PHONY: maybe-distclean-bfd distclean-bfd
4024maybe-distclean-bfd:
4025@if bfd
4026maybe-distclean-bfd: distclean-bfd
2a4cbe27 4027
a90ef4bf
JM
4028distclean-bfd:
4029 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4030 r=`${PWD_COMMAND}`; export r; \
4031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4032 $(HOST_EXPORTS) \
b813574b 4033 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4035 done; \
22121df0 4036 echo "Doing distclean in bfd"; \
a90ef4bf 4037 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4040 "RANLIB=$${RANLIB}" \
0c24b341 4041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4042 distclean) \
2a4cbe27
NN
4043 || exit 1
4044
a90ef4bf 4045@endif bfd
2a4cbe27 4046
a90ef4bf
JM
4047.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4048maybe-maintainer-clean-bfd:
4049@if bfd
4050maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4051
a90ef4bf
JM
4052maintainer-clean-bfd:
4053 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4054 r=`${PWD_COMMAND}`; export r; \
4055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4056 $(HOST_EXPORTS) \
b813574b 4057 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4059 done; \
22121df0 4060 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4061 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4064 "RANLIB=$${RANLIB}" \
0c24b341 4065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4066 maintainer-clean) \
2a4cbe27
NN
4067 || exit 1
4068
a90ef4bf 4069@endif bfd
2a4cbe27 4070
2a4cbe27 4071
a7254363 4072
a90ef4bf
JM
4073.PHONY: configure-opcodes maybe-configure-opcodes
4074maybe-configure-opcodes:
4f0ef2d8 4075@if gcc-bootstrap
a90ef4bf 4076configure-opcodes: stage_current
4f0ef2d8 4077@endif gcc-bootstrap
a90ef4bf
JM
4078@if opcodes
4079maybe-configure-opcodes: configure-opcodes
4080configure-opcodes:
c52c6897 4081 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4083 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4084 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4085 $(HOST_EXPORTS) \
a90ef4bf
JM
4086 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4087 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4088 case $(srcdir) in \
b00612cc 4089 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4090 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4091 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4092 esac; \
1b6c0831
L
4093 module_srcdir=opcodes; \
4094 $(SHELL) \
4095 $$s/$$module_srcdir/configure \
4096 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4097 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4098 --target=${target_alias} \
2a4cbe27 4099 || exit 1
a90ef4bf 4100@endif opcodes
a7254363 4101
d545f33b
PB
4102
4103
a90ef4bf
JM
4104.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4105maybe-configure-stage1-opcodes:
4106@if opcodes-bootstrap
4107maybe-configure-stage1-opcodes: configure-stage1-opcodes
4108configure-stage1-opcodes:
4109 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4110 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4111 @r=`${PWD_COMMAND}`; export r; \
4112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4113 TFLAGS="$(STAGE1_TFLAGS)"; \
4114 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4115 $(HOST_EXPORTS) \
4116 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4117 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4118 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4119 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4120 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4121 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4122 case $(srcdir) in \
4123 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4124 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4125 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4126 esac; \
1b6c0831
L
4127 module_srcdir=opcodes; \
4128 $(SHELL) $$s/$$module_srcdir/configure \
4129 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4130 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4131 --target=${target_alias} \
4132 \
a90ef4bf
JM
4133 $(STAGE1_CONFIGURE_FLAGS)
4134@endif opcodes-bootstrap
2a4cbe27 4135
a90ef4bf
JM
4136.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4137maybe-configure-stage2-opcodes:
4138@if opcodes-bootstrap
4139maybe-configure-stage2-opcodes: configure-stage2-opcodes
4140configure-stage2-opcodes:
4141 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4142 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4143 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4145 TFLAGS="$(STAGE2_TFLAGS)"; \
4146 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4147 $(HOST_EXPORTS) \
a90ef4bf
JM
4148 $(POSTSTAGE1_HOST_EXPORTS) \
4149 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4150 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4151 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4152 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4153 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4154 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4155 case $(srcdir) in \
4156 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4157 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4158 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4159 esac; \
1b6c0831
L
4160 module_srcdir=opcodes; \
4161 $(SHELL) $$s/$$module_srcdir/configure \
4162 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4163 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4164 --target=${target_alias} \
22121df0 4165 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4166 $(STAGE2_CONFIGURE_FLAGS)
4167@endif opcodes-bootstrap
2a4cbe27 4168
a90ef4bf
JM
4169.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4170maybe-configure-stage3-opcodes:
4171@if opcodes-bootstrap
4172maybe-configure-stage3-opcodes: configure-stage3-opcodes
4173configure-stage3-opcodes:
4174 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4175 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4176 @r=`${PWD_COMMAND}`; export r; \
4177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4178 TFLAGS="$(STAGE3_TFLAGS)"; \
4179 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4180 $(HOST_EXPORTS) \
a90ef4bf
JM
4181 $(POSTSTAGE1_HOST_EXPORTS) \
4182 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4183 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4184 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4185 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4186 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4187 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4188 case $(srcdir) in \
4189 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4190 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4191 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4192 esac; \
1b6c0831
L
4193 module_srcdir=opcodes; \
4194 $(SHELL) $$s/$$module_srcdir/configure \
4195 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4196 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4197 --target=${target_alias} \
22121df0 4198 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4199 $(STAGE3_CONFIGURE_FLAGS)
4200@endif opcodes-bootstrap
9b980aa1 4201
a90ef4bf
JM
4202.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4203maybe-configure-stage4-opcodes:
4204@if opcodes-bootstrap
4205maybe-configure-stage4-opcodes: configure-stage4-opcodes
4206configure-stage4-opcodes:
4207 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4208 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4209 @r=`${PWD_COMMAND}`; export r; \
4210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4211 TFLAGS="$(STAGE4_TFLAGS)"; \
4212 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4213 $(HOST_EXPORTS) \
a90ef4bf
JM
4214 $(POSTSTAGE1_HOST_EXPORTS) \
4215 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4216 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4217 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4218 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4219 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4220 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4221 case $(srcdir) in \
4222 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4223 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4224 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4225 esac; \
1b6c0831
L
4226 module_srcdir=opcodes; \
4227 $(SHELL) $$s/$$module_srcdir/configure \
4228 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4229 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4230 --target=${target_alias} \
22121df0 4231 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4232 $(STAGE4_CONFIGURE_FLAGS)
4233@endif opcodes-bootstrap
4fa63067 4234
a90ef4bf
JM
4235.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4236maybe-configure-stageprofile-opcodes:
4237@if opcodes-bootstrap
4238maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4239configure-stageprofile-opcodes:
4240 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4241 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4242 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4244 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4245 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4246 $(HOST_EXPORTS) \
a90ef4bf
JM
4247 $(POSTSTAGE1_HOST_EXPORTS) \
4248 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4249 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4250 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4251 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4253 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4254 case $(srcdir) in \
4255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4256 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4258 esac; \
1b6c0831
L
4259 module_srcdir=opcodes; \
4260 $(SHELL) $$s/$$module_srcdir/configure \
4261 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4262 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4263 --target=${target_alias} \
22121df0 4264 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4265 $(STAGEprofile_CONFIGURE_FLAGS)
4266@endif opcodes-bootstrap
4267
4268.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4269maybe-configure-stagefeedback-opcodes:
4270@if opcodes-bootstrap
4271maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4272configure-stagefeedback-opcodes:
4273 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4274 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4275 @r=`${PWD_COMMAND}`; export r; \
4276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4277 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4278 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4279 $(HOST_EXPORTS) \
4280 $(POSTSTAGE1_HOST_EXPORTS) \
4281 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4282 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4283 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4284 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4285 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4286 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4287 case $(srcdir) in \
4288 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4289 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4290 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4291 esac; \
1b6c0831
L
4292 module_srcdir=opcodes; \
4293 $(SHELL) $$s/$$module_srcdir/configure \
4294 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4295 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4296 --target=${target_alias} \
22121df0 4297 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4298 $(STAGEfeedback_CONFIGURE_FLAGS)
4299@endif opcodes-bootstrap
4300
4301
4302
4303
4304
4305.PHONY: all-opcodes maybe-all-opcodes
4306maybe-all-opcodes:
4307@if gcc-bootstrap
4308all-opcodes: stage_current
4309@endif gcc-bootstrap
4310@if opcodes
4311TARGET-opcodes=all
4312maybe-all-opcodes: all-opcodes
4313all-opcodes: configure-opcodes
4314 @r=`${PWD_COMMAND}`; export r; \
4315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4316 $(HOST_EXPORTS) \
4317 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4318 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4319 $(TARGET-opcodes))
4320@endif opcodes
4321
4322
4323
4324.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4325.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4326maybe-all-stage1-opcodes:
4327maybe-clean-stage1-opcodes:
4328@if opcodes-bootstrap
4329maybe-all-stage1-opcodes: all-stage1-opcodes
4330all-stage1: all-stage1-opcodes
4331TARGET-stage1-opcodes = $(TARGET-opcodes)
4332all-stage1-opcodes: configure-stage1-opcodes
4333 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4334 @r=`${PWD_COMMAND}`; export r; \
4335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4336 TFLAGS="$(STAGE1_TFLAGS)"; \
4337 $(HOST_EXPORTS) \
4338 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4339 \
a90ef4bf
JM
4340 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4341 CFLAGS="$(STAGE1_CFLAGS)" \
4342 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4343 LIBCFLAGS="$(LIBCFLAGS)" \
4344 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4345 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4346 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4347 $(EXTRA_HOST_FLAGS) \
4348 $(STAGE1_FLAGS_TO_PASS) \
05a13254 4349 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
4350 $(TARGET-stage1-opcodes)
4351
4352maybe-clean-stage1-opcodes: clean-stage1-opcodes
4353clean-stage1: clean-stage1-opcodes
4354clean-stage1-opcodes:
4355 @if [ $(current_stage) = stage1 ]; then \
4356 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4357 else \
4358 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4359 $(MAKE) stage1-start; \
4360 fi; \
4361 cd $(HOST_SUBDIR)/opcodes && \
4362 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4363 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4364@endif opcodes-bootstrap
4365
4366
4367.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4368.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4369maybe-all-stage2-opcodes:
4370maybe-clean-stage2-opcodes:
4371@if opcodes-bootstrap
4372maybe-all-stage2-opcodes: all-stage2-opcodes
4373all-stage2: all-stage2-opcodes
4374TARGET-stage2-opcodes = $(TARGET-opcodes)
4375all-stage2-opcodes: configure-stage2-opcodes
4376 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4377 @r=`${PWD_COMMAND}`; export r; \
4378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4379 TFLAGS="$(STAGE2_TFLAGS)"; \
4380 $(HOST_EXPORTS) \
4381 $(POSTSTAGE1_HOST_EXPORTS) \
4382 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4383 \
a90ef4bf
JM
4384 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4385 CFLAGS="$(STAGE2_CFLAGS)" \
4386 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4387 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4388 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4389 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4390 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4391 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4392 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
4393 $(TARGET-stage2-opcodes)
4394
4395maybe-clean-stage2-opcodes: clean-stage2-opcodes
4396clean-stage2: clean-stage2-opcodes
4397clean-stage2-opcodes:
4398 @if [ $(current_stage) = stage2 ]; then \
4399 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4400 else \
4401 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4402 $(MAKE) stage2-start; \
4403 fi; \
4404 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4405 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4406@endif opcodes-bootstrap
4407
4408
4409.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4410.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4411maybe-all-stage3-opcodes:
4412maybe-clean-stage3-opcodes:
4413@if opcodes-bootstrap
4414maybe-all-stage3-opcodes: all-stage3-opcodes
4415all-stage3: all-stage3-opcodes
4416TARGET-stage3-opcodes = $(TARGET-opcodes)
4417all-stage3-opcodes: configure-stage3-opcodes
4418 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4419 @r=`${PWD_COMMAND}`; export r; \
4420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4421 TFLAGS="$(STAGE3_TFLAGS)"; \
4422 $(HOST_EXPORTS) \
4423 $(POSTSTAGE1_HOST_EXPORTS) \
4424 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4425 \
a90ef4bf
JM
4426 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4427 CFLAGS="$(STAGE3_CFLAGS)" \
4428 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4429 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4430 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4431 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4432 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4433 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4434 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
4435 $(TARGET-stage3-opcodes)
4436
4437maybe-clean-stage3-opcodes: clean-stage3-opcodes
4438clean-stage3: clean-stage3-opcodes
4439clean-stage3-opcodes:
4440 @if [ $(current_stage) = stage3 ]; then \
4441 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4442 else \
4443 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4444 $(MAKE) stage3-start; \
4445 fi; \
4446 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4447 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4448@endif opcodes-bootstrap
4449
4450
4451.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4452.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4453maybe-all-stage4-opcodes:
4454maybe-clean-stage4-opcodes:
4455@if opcodes-bootstrap
4456maybe-all-stage4-opcodes: all-stage4-opcodes
4457all-stage4: all-stage4-opcodes
4458TARGET-stage4-opcodes = $(TARGET-opcodes)
4459all-stage4-opcodes: configure-stage4-opcodes
4460 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4461 @r=`${PWD_COMMAND}`; export r; \
4462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4463 TFLAGS="$(STAGE4_TFLAGS)"; \
4464 $(HOST_EXPORTS) \
4465 $(POSTSTAGE1_HOST_EXPORTS) \
4466 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4467 \
a90ef4bf
JM
4468 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4469 CFLAGS="$(STAGE4_CFLAGS)" \
4470 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4471 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4472 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4473 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4474 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4475 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4476 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
4477 $(TARGET-stage4-opcodes)
4478
4479maybe-clean-stage4-opcodes: clean-stage4-opcodes
4480clean-stage4: clean-stage4-opcodes
4481clean-stage4-opcodes:
4482 @if [ $(current_stage) = stage4 ]; then \
4483 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4484 else \
4485 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4486 $(MAKE) stage4-start; \
4487 fi; \
4488 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4489 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4490@endif opcodes-bootstrap
4491
4492
4493.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4494.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4495maybe-all-stageprofile-opcodes:
4496maybe-clean-stageprofile-opcodes:
4497@if opcodes-bootstrap
4498maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4499all-stageprofile: all-stageprofile-opcodes
4500TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4501all-stageprofile-opcodes: configure-stageprofile-opcodes
4502 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4503 @r=`${PWD_COMMAND}`; export r; \
4504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4505 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4506 $(HOST_EXPORTS) \
4507 $(POSTSTAGE1_HOST_EXPORTS) \
4508 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4509 \
a90ef4bf
JM
4510 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4511 CFLAGS="$(STAGEprofile_CFLAGS)" \
4512 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4513 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4514 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4515 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4516 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4517 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4518 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
4519 $(TARGET-stageprofile-opcodes)
4520
4521maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4522clean-stageprofile: clean-stageprofile-opcodes
4523clean-stageprofile-opcodes:
4524 @if [ $(current_stage) = stageprofile ]; then \
4525 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4526 else \
4527 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4528 $(MAKE) stageprofile-start; \
4529 fi; \
4530 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4531 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4532@endif opcodes-bootstrap
4533
4534
4535.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4536.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4537maybe-all-stagefeedback-opcodes:
4538maybe-clean-stagefeedback-opcodes:
4539@if opcodes-bootstrap
4540maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4541all-stagefeedback: all-stagefeedback-opcodes
4542TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4543all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4544 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4545 @r=`${PWD_COMMAND}`; export r; \
4546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4547 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4548 $(HOST_EXPORTS) \
4549 $(POSTSTAGE1_HOST_EXPORTS) \
4550 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4551 \
a90ef4bf
JM
4552 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4553 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4554 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4555 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4556 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4557 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4558 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4559 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4560 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
4561 $(TARGET-stagefeedback-opcodes)
4562
4563maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4564clean-stagefeedback: clean-stagefeedback-opcodes
4565clean-stagefeedback-opcodes:
4566 @if [ $(current_stage) = stagefeedback ]; then \
4567 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4568 else \
4569 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4570 $(MAKE) stagefeedback-start; \
4571 fi; \
4572 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4573 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4574@endif opcodes-bootstrap
4575
4576
4577
4578
4579
4580.PHONY: check-opcodes maybe-check-opcodes
4581maybe-check-opcodes:
4582@if opcodes
4583maybe-check-opcodes: check-opcodes
4584
4585check-opcodes:
0aed8855 4586 @: $(MAKE); $(unstage)
a90ef4bf 4587 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4589 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4590 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4591 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4592
a90ef4bf 4593@endif opcodes
2a4cbe27 4594
a90ef4bf
JM
4595.PHONY: install-opcodes maybe-install-opcodes
4596maybe-install-opcodes:
4597@if opcodes
4598maybe-install-opcodes: install-opcodes
56a8fe78 4599
a90ef4bf 4600install-opcodes: installdirs
56a8fe78 4601 @: $(MAKE); $(unstage)
a90ef4bf 4602 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4604 $(HOST_EXPORTS) \
a90ef4bf
JM
4605 (cd $(HOST_SUBDIR)/opcodes && \
4606 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4607
a90ef4bf 4608@endif opcodes
56a8fe78 4609
a90ef4bf
JM
4610.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4611maybe-install-strip-opcodes:
4612@if opcodes
4613maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4614
a90ef4bf 4615install-strip-opcodes: installdirs
0aed8855 4616 @: $(MAKE); $(unstage)
a90ef4bf
JM
4617 @r=`${PWD_COMMAND}`; export r; \
4618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4619 $(HOST_EXPORTS) \
4620 (cd $(HOST_SUBDIR)/opcodes && \
4621 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4622
4623@endif opcodes
4624
4625# Other targets (info, dvi, pdf, etc.)
4626
4627.PHONY: maybe-info-opcodes info-opcodes
4628maybe-info-opcodes:
4629@if opcodes
4630maybe-info-opcodes: info-opcodes
4631
4632info-opcodes: \
4633 configure-opcodes
4634 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4635 r=`${PWD_COMMAND}`; export r; \
4636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4637 $(HOST_EXPORTS) \
4638 for flag in $(EXTRA_HOST_FLAGS) ; do \
4639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4640 done; \
22121df0 4641 echo "Doing info in opcodes"; \
a90ef4bf 4642 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4645 "RANLIB=$${RANLIB}" \
0c24b341 4646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4647 info) \
6d389afc
MS
4648 || exit 1
4649
a90ef4bf 4650@endif opcodes
6d389afc 4651
a90ef4bf
JM
4652.PHONY: maybe-dvi-opcodes dvi-opcodes
4653maybe-dvi-opcodes:
4654@if opcodes
4655maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4656
a90ef4bf
JM
4657dvi-opcodes: \
4658 configure-opcodes
4659 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4660 r=`${PWD_COMMAND}`; export r; \
4661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4662 $(HOST_EXPORTS) \
b813574b 4663 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4665 done; \
22121df0 4666 echo "Doing dvi in opcodes"; \
a90ef4bf 4667 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4670 "RANLIB=$${RANLIB}" \
0c24b341 4671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4672 dvi) \
2a4cbe27
NN
4673 || exit 1
4674
a90ef4bf 4675@endif opcodes
2a4cbe27 4676
a90ef4bf
JM
4677.PHONY: maybe-pdf-opcodes pdf-opcodes
4678maybe-pdf-opcodes:
4679@if opcodes
4680maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4681
a90ef4bf
JM
4682pdf-opcodes: \
4683 configure-opcodes
4684 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4685 r=`${PWD_COMMAND}`; export r; \
4686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4687 $(HOST_EXPORTS) \
b813574b 4688 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4690 done; \
22121df0 4691 echo "Doing pdf in opcodes"; \
a90ef4bf 4692 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4695 "RANLIB=$${RANLIB}" \
0c24b341 4696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4697 pdf) \
2a4cbe27
NN
4698 || exit 1
4699
a90ef4bf 4700@endif opcodes
2a4cbe27 4701
a90ef4bf
JM
4702.PHONY: maybe-html-opcodes html-opcodes
4703maybe-html-opcodes:
4704@if opcodes
4705maybe-html-opcodes: html-opcodes
a3ca38d2 4706
a90ef4bf
JM
4707html-opcodes: \
4708 configure-opcodes
4709 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4710 r=`${PWD_COMMAND}`; export r; \
4711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4712 $(HOST_EXPORTS) \
4713 for flag in $(EXTRA_HOST_FLAGS) ; do \
4714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4715 done; \
22121df0 4716 echo "Doing html in opcodes"; \
a90ef4bf 4717 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4720 "RANLIB=$${RANLIB}" \
0c24b341 4721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4722 html) \
a3ca38d2
DD
4723 || exit 1
4724
a90ef4bf 4725@endif opcodes
a3ca38d2 4726
a90ef4bf
JM
4727.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4728maybe-TAGS-opcodes:
4729@if opcodes
4730maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4731
a90ef4bf
JM
4732TAGS-opcodes: \
4733 configure-opcodes
4734 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4735 r=`${PWD_COMMAND}`; export r; \
4736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4737 $(HOST_EXPORTS) \
4738 for flag in $(EXTRA_HOST_FLAGS) ; do \
4739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4740 done; \
22121df0 4741 echo "Doing TAGS in opcodes"; \
a90ef4bf 4742 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4745 "RANLIB=$${RANLIB}" \
0c24b341 4746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4747 TAGS) \
108a6f8e
CD
4748 || exit 1
4749
a90ef4bf 4750@endif opcodes
108a6f8e 4751
a90ef4bf
JM
4752.PHONY: maybe-install-info-opcodes install-info-opcodes
4753maybe-install-info-opcodes:
4754@if opcodes
4755maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4756
a90ef4bf
JM
4757install-info-opcodes: \
4758 configure-opcodes \
4759 info-opcodes
4760 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4761 r=`${PWD_COMMAND}`; export r; \
4762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4763 $(HOST_EXPORTS) \
b813574b 4764 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4766 done; \
22121df0 4767 echo "Doing install-info in opcodes"; \
a90ef4bf 4768 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4771 "RANLIB=$${RANLIB}" \
0c24b341 4772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4773 install-info) \
2a4cbe27
NN
4774 || exit 1
4775
a90ef4bf 4776@endif opcodes
2a4cbe27 4777
a90ef4bf
JM
4778.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4779maybe-install-pdf-opcodes:
4780@if opcodes
4781maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4782
a90ef4bf
JM
4783install-pdf-opcodes: \
4784 configure-opcodes \
4785 pdf-opcodes
4786 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4787 r=`${PWD_COMMAND}`; export r; \
4788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4789 $(HOST_EXPORTS) \
b813574b 4790 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4792 done; \
22121df0 4793 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4794 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4797 "RANLIB=$${RANLIB}" \
0c24b341 4798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4799 install-pdf) \
2a4cbe27
NN
4800 || exit 1
4801
a90ef4bf 4802@endif opcodes
2a4cbe27 4803
a90ef4bf
JM
4804.PHONY: maybe-install-html-opcodes install-html-opcodes
4805maybe-install-html-opcodes:
4806@if opcodes
4807maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4808
a90ef4bf
JM
4809install-html-opcodes: \
4810 configure-opcodes \
4811 html-opcodes
4812 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4813 r=`${PWD_COMMAND}`; export r; \
4814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4815 $(HOST_EXPORTS) \
b813574b 4816 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4818 done; \
22121df0 4819 echo "Doing install-html in opcodes"; \
a90ef4bf 4820 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4823 "RANLIB=$${RANLIB}" \
0c24b341 4824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4825 install-html) \
2a4cbe27
NN
4826 || exit 1
4827
a90ef4bf 4828@endif opcodes
2a4cbe27 4829
a90ef4bf
JM
4830.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4831maybe-installcheck-opcodes:
4832@if opcodes
4833maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4834
a90ef4bf
JM
4835installcheck-opcodes: \
4836 configure-opcodes
4837 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4838 r=`${PWD_COMMAND}`; export r; \
4839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4840 $(HOST_EXPORTS) \
b813574b 4841 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4843 done; \
22121df0 4844 echo "Doing installcheck in opcodes"; \
a90ef4bf 4845 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4848 "RANLIB=$${RANLIB}" \
0c24b341 4849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4850 installcheck) \
2a4cbe27
NN
4851 || exit 1
4852
a90ef4bf 4853@endif opcodes
2a4cbe27 4854
a90ef4bf
JM
4855.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4856maybe-mostlyclean-opcodes:
4857@if opcodes
4858maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4859
a90ef4bf
JM
4860mostlyclean-opcodes:
4861 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4862 r=`${PWD_COMMAND}`; export r; \
4863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4864 $(HOST_EXPORTS) \
b813574b 4865 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4867 done; \
22121df0 4868 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4869 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4872 "RANLIB=$${RANLIB}" \
0c24b341 4873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4874 mostlyclean) \
2a4cbe27
NN
4875 || exit 1
4876
a90ef4bf 4877@endif opcodes
2a4cbe27 4878
a90ef4bf
JM
4879.PHONY: maybe-clean-opcodes clean-opcodes
4880maybe-clean-opcodes:
4881@if opcodes
4882maybe-clean-opcodes: clean-opcodes
2a4cbe27 4883
a90ef4bf
JM
4884clean-opcodes:
4885 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4886 r=`${PWD_COMMAND}`; export r; \
4887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4888 $(HOST_EXPORTS) \
b813574b 4889 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4891 done; \
22121df0 4892 echo "Doing clean in opcodes"; \
a90ef4bf 4893 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4896 "RANLIB=$${RANLIB}" \
0c24b341 4897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4898 clean) \
2a4cbe27
NN
4899 || exit 1
4900
a90ef4bf 4901@endif opcodes
2a4cbe27 4902
a90ef4bf
JM
4903.PHONY: maybe-distclean-opcodes distclean-opcodes
4904maybe-distclean-opcodes:
4905@if opcodes
4906maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4907
a90ef4bf
JM
4908distclean-opcodes:
4909 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4910 r=`${PWD_COMMAND}`; export r; \
4911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4912 $(HOST_EXPORTS) \
b813574b 4913 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4915 done; \
22121df0 4916 echo "Doing distclean in opcodes"; \
a90ef4bf 4917 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4920 "RANLIB=$${RANLIB}" \
0c24b341 4921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4922 distclean) \
2a4cbe27
NN
4923 || exit 1
4924
a90ef4bf 4925@endif opcodes
2a4cbe27 4926
a90ef4bf
JM
4927.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4928maybe-maintainer-clean-opcodes:
4929@if opcodes
4930maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4931
a90ef4bf
JM
4932maintainer-clean-opcodes:
4933 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4934 r=`${PWD_COMMAND}`; export r; \
4935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4936 $(HOST_EXPORTS) \
b813574b 4937 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4939 done; \
22121df0 4940 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 4941 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4944 "RANLIB=$${RANLIB}" \
0c24b341 4945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4946 maintainer-clean) \
2a4cbe27
NN
4947 || exit 1
4948
a90ef4bf 4949@endif opcodes
2a4cbe27 4950
2a4cbe27 4951
a7254363 4952
a90ef4bf
JM
4953.PHONY: configure-binutils maybe-configure-binutils
4954maybe-configure-binutils:
4f0ef2d8 4955@if gcc-bootstrap
a90ef4bf 4956configure-binutils: stage_current
4f0ef2d8 4957@endif gcc-bootstrap
a90ef4bf
JM
4958@if binutils
4959maybe-configure-binutils: configure-binutils
4960configure-binutils:
c52c6897
PB
4961 @r=`${PWD_COMMAND}`; export r; \
4962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4963 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 4964 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 4965 $(HOST_EXPORTS) \
a90ef4bf
JM
4966 echo Configuring in $(HOST_SUBDIR)/binutils; \
4967 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4968 case $(srcdir) in \
b00612cc 4969 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4970 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4971 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4972 esac; \
1b6c0831
L
4973 module_srcdir=binutils; \
4974 $(SHELL) \
4975 $$s/$$module_srcdir/configure \
4976 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4977 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4978 --target=${target_alias} \
2a4cbe27 4979 || exit 1
a90ef4bf 4980@endif binutils
2a4cbe27 4981
a7254363
PB
4982
4983
a90ef4bf
JM
4984.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4985maybe-configure-stage1-binutils:
4986@if binutils-bootstrap
4987maybe-configure-stage1-binutils: configure-stage1-binutils
4988configure-stage1-binutils:
c52c6897 4989 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4990 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4991 @r=`${PWD_COMMAND}`; export r; \
4992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4993 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4994 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4995 $(HOST_EXPORTS) \
8ee82aff 4996 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4997 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4998 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4999 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
5000 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5001 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5002 case $(srcdir) in \
5003 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5004 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5005 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5006 esac; \
1b6c0831
L
5007 module_srcdir=binutils; \
5008 $(SHELL) $$s/$$module_srcdir/configure \
5009 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5010 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5011 --target=${target_alias} \
5012 \
1b05fbbd 5013 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 5014@endif binutils-bootstrap
d545f33b 5015
a90ef4bf
JM
5016.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
5017maybe-configure-stage2-binutils:
5018@if binutils-bootstrap
5019maybe-configure-stage2-binutils: configure-stage2-binutils
5020configure-stage2-binutils:
c52c6897 5021 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 5022 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5023 @r=`${PWD_COMMAND}`; export r; \
5024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5025 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 5026 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5027 $(HOST_EXPORTS) \
1b05fbbd 5028 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5029 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5030 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
5031 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5032 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
5033 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5034 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5035 case $(srcdir) in \
5036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5037 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5039 esac; \
1b6c0831
L
5040 module_srcdir=binutils; \
5041 $(SHELL) $$s/$$module_srcdir/configure \
5042 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5043 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5044 --target=${target_alias} \
22121df0 5045 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5046 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5047@endif binutils-bootstrap
8520c408 5048
a90ef4bf
JM
5049.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5050maybe-configure-stage3-binutils:
5051@if binutils-bootstrap
5052maybe-configure-stage3-binutils: configure-stage3-binutils
5053configure-stage3-binutils:
c52c6897 5054 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5055 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5056 @r=`${PWD_COMMAND}`; export r; \
5057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5058 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5059 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5060 $(HOST_EXPORTS) \
1b05fbbd 5061 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5062 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5063 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5064 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5065 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5066 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5067 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5068 case $(srcdir) in \
5069 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5070 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5071 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5072 esac; \
1b6c0831
L
5073 module_srcdir=binutils; \
5074 $(SHELL) $$s/$$module_srcdir/configure \
5075 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5076 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5077 --target=${target_alias} \
22121df0 5078 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5079 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5080@endif binutils-bootstrap
8520c408 5081
a90ef4bf
JM
5082.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5083maybe-configure-stage4-binutils:
5084@if binutils-bootstrap
5085maybe-configure-stage4-binutils: configure-stage4-binutils
5086configure-stage4-binutils:
c52c6897 5087 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5088 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5089 @r=`${PWD_COMMAND}`; export r; \
5090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5091 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5092 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5093 $(HOST_EXPORTS) \
1b05fbbd 5094 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5095 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5096 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5097 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5098 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5099 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5100 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5101 case $(srcdir) in \
5102 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5103 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5104 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5105 esac; \
1b6c0831
L
5106 module_srcdir=binutils; \
5107 $(SHELL) $$s/$$module_srcdir/configure \
5108 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5109 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5110 --target=${target_alias} \
22121df0 5111 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5112 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5113@endif binutils-bootstrap
d545f33b 5114
a90ef4bf
JM
5115.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5116maybe-configure-stageprofile-binutils:
5117@if binutils-bootstrap
5118maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5119configure-stageprofile-binutils:
c52c6897 5120 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5121 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5122 @r=`${PWD_COMMAND}`; export r; \
5123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5124 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5125 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5126 $(HOST_EXPORTS) \
1b05fbbd
AO
5127 $(POSTSTAGE1_HOST_EXPORTS) \
5128 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5129 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5130 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5131 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5132 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5133 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5134 case $(srcdir) in \
5135 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5136 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5137 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5138 esac; \
1b6c0831
L
5139 module_srcdir=binutils; \
5140 $(SHELL) $$s/$$module_srcdir/configure \
5141 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5142 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5143 --target=${target_alias} \
22121df0 5144 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5145 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5146@endif binutils-bootstrap
d545f33b 5147
a90ef4bf
JM
5148.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5149maybe-configure-stagefeedback-binutils:
5150@if binutils-bootstrap
5151maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5152configure-stagefeedback-binutils:
c52c6897 5153 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5154 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5155 @r=`${PWD_COMMAND}`; export r; \
5156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5157 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5158 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5159 $(HOST_EXPORTS) \
1b05fbbd
AO
5160 $(POSTSTAGE1_HOST_EXPORTS) \
5161 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5162 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5163 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5164 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5165 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5166 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5167 case $(srcdir) in \
5168 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5169 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5170 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5171 esac; \
1b6c0831
L
5172 module_srcdir=binutils; \
5173 $(SHELL) $$s/$$module_srcdir/configure \
5174 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5175 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5176 --target=${target_alias} \
22121df0 5177 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5178 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5179@endif binutils-bootstrap
d545f33b
PB
5180
5181
5182
5183
5184
a90ef4bf
JM
5185.PHONY: all-binutils maybe-all-binutils
5186maybe-all-binutils:
4f0ef2d8 5187@if gcc-bootstrap
a90ef4bf 5188all-binutils: stage_current
4f0ef2d8 5189@endif gcc-bootstrap
a90ef4bf
JM
5190@if binutils
5191TARGET-binutils=all
5192maybe-all-binutils: all-binutils
5193all-binutils: configure-binutils
c52c6897 5194 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5196 $(HOST_EXPORTS) \
a90ef4bf 5197 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5198 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5199 $(TARGET-binutils))
5200@endif binutils
2a4cbe27 5201
a7254363 5202
d545f33b 5203
a90ef4bf
JM
5204.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5205.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5206maybe-all-stage1-binutils:
5207maybe-clean-stage1-binutils:
5208@if binutils-bootstrap
5209maybe-all-stage1-binutils: all-stage1-binutils
5210all-stage1: all-stage1-binutils
5211TARGET-stage1-binutils = $(TARGET-binutils)
5212all-stage1-binutils: configure-stage1-binutils
c52c6897 5213 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5214 @r=`${PWD_COMMAND}`; export r; \
5215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5216 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5217 $(HOST_EXPORTS) \
a90ef4bf 5218 cd $(HOST_SUBDIR)/binutils && \
05a13254 5219 \
7f6ef0c0 5220 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5221 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5222 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5223 LIBCFLAGS="$(LIBCFLAGS)" \
5224 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5225 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5226 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5227 $(EXTRA_HOST_FLAGS) \
5228 $(STAGE1_FLAGS_TO_PASS) \
05a13254 5229 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5230 $(TARGET-stage1-binutils)
d545f33b 5231
a90ef4bf
JM
5232maybe-clean-stage1-binutils: clean-stage1-binutils
5233clean-stage1: clean-stage1-binutils
5234clean-stage1-binutils:
9dbaa842 5235 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5236 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5237 else \
a90ef4bf 5238 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5239 $(MAKE) stage1-start; \
5240 fi; \
a90ef4bf 5241 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5242 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5243 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5244@endif binutils-bootstrap
d545f33b
PB
5245
5246
a90ef4bf
JM
5247.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5248.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5249maybe-all-stage2-binutils:
5250maybe-clean-stage2-binutils:
5251@if binutils-bootstrap
5252maybe-all-stage2-binutils: all-stage2-binutils
5253all-stage2: all-stage2-binutils
5254TARGET-stage2-binutils = $(TARGET-binutils)
5255all-stage2-binutils: configure-stage2-binutils
c52c6897 5256 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5257 @r=`${PWD_COMMAND}`; export r; \
5258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5259 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5260 $(HOST_EXPORTS) \
1f53ca9a 5261 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5262 cd $(HOST_SUBDIR)/binutils && \
05a13254 5263 \
7f6ef0c0 5264 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5265 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5266 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5267 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5268 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5269 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5270 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5271 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5272 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5273 $(TARGET-stage2-binutils)
d545f33b 5274
a90ef4bf
JM
5275maybe-clean-stage2-binutils: clean-stage2-binutils
5276clean-stage2: clean-stage2-binutils
5277clean-stage2-binutils:
9dbaa842 5278 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5279 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5280 else \
a90ef4bf 5281 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5282 $(MAKE) stage2-start; \
5283 fi; \
a90ef4bf 5284 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5285 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5286@endif binutils-bootstrap
d545f33b
PB
5287
5288
a90ef4bf
JM
5289.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5290.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5291maybe-all-stage3-binutils:
5292maybe-clean-stage3-binutils:
5293@if binutils-bootstrap
5294maybe-all-stage3-binutils: all-stage3-binutils
5295all-stage3: all-stage3-binutils
5296TARGET-stage3-binutils = $(TARGET-binutils)
5297all-stage3-binutils: configure-stage3-binutils
c52c6897 5298 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5299 @r=`${PWD_COMMAND}`; export r; \
5300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5301 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5302 $(HOST_EXPORTS) \
1f53ca9a 5303 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5304 cd $(HOST_SUBDIR)/binutils && \
05a13254 5305 \
7f6ef0c0 5306 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5307 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5308 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5309 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5310 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5311 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5312 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5313 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5314 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5315 $(TARGET-stage3-binutils)
d545f33b 5316
a90ef4bf
JM
5317maybe-clean-stage3-binutils: clean-stage3-binutils
5318clean-stage3: clean-stage3-binutils
5319clean-stage3-binutils:
9dbaa842 5320 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5321 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5322 else \
a90ef4bf 5323 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5324 $(MAKE) stage3-start; \
5325 fi; \
a90ef4bf 5326 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5327 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5328@endif binutils-bootstrap
d545f33b
PB
5329
5330
a90ef4bf
JM
5331.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5332.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5333maybe-all-stage4-binutils:
5334maybe-clean-stage4-binutils:
5335@if binutils-bootstrap
5336maybe-all-stage4-binutils: all-stage4-binutils
5337all-stage4: all-stage4-binutils
5338TARGET-stage4-binutils = $(TARGET-binutils)
5339all-stage4-binutils: configure-stage4-binutils
c52c6897 5340 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5341 @r=`${PWD_COMMAND}`; export r; \
5342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5343 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5344 $(HOST_EXPORTS) \
1f53ca9a 5345 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5346 cd $(HOST_SUBDIR)/binutils && \
05a13254 5347 \
7f6ef0c0 5348 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5349 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5350 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5351 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5352 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5353 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5354 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5355 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5356 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5357 $(TARGET-stage4-binutils)
d545f33b 5358
a90ef4bf
JM
5359maybe-clean-stage4-binutils: clean-stage4-binutils
5360clean-stage4: clean-stage4-binutils
5361clean-stage4-binutils:
9dbaa842 5362 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5363 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5364 else \
a90ef4bf 5365 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5366 $(MAKE) stage4-start; \
5367 fi; \
a90ef4bf 5368 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5369 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5370@endif binutils-bootstrap
d545f33b
PB
5371
5372
a90ef4bf
JM
5373.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5374.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5375maybe-all-stageprofile-binutils:
5376maybe-clean-stageprofile-binutils:
5377@if binutils-bootstrap
5378maybe-all-stageprofile-binutils: all-stageprofile-binutils
5379all-stageprofile: all-stageprofile-binutils
5380TARGET-stageprofile-binutils = $(TARGET-binutils)
5381all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5382 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5383 @r=`${PWD_COMMAND}`; export r; \
5384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5385 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5386 $(HOST_EXPORTS) \
1f53ca9a 5387 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5388 cd $(HOST_SUBDIR)/binutils && \
05a13254 5389 \
7f6ef0c0 5390 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5391 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5392 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5393 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5394 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5395 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5396 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5397 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5398 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5399 $(TARGET-stageprofile-binutils)
d545f33b 5400
a90ef4bf
JM
5401maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5402clean-stageprofile: clean-stageprofile-binutils
5403clean-stageprofile-binutils:
9dbaa842 5404 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5405 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5406 else \
a90ef4bf 5407 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5408 $(MAKE) stageprofile-start; \
5409 fi; \
a90ef4bf 5410 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5411 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5412@endif binutils-bootstrap
d545f33b
PB
5413
5414
a90ef4bf
JM
5415.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5416.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5417maybe-all-stagefeedback-binutils:
5418maybe-clean-stagefeedback-binutils:
5419@if binutils-bootstrap
5420maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5421all-stagefeedback: all-stagefeedback-binutils
5422TARGET-stagefeedback-binutils = $(TARGET-binutils)
5423all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5424 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5425 @r=`${PWD_COMMAND}`; export r; \
5426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5427 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5428 $(HOST_EXPORTS) \
1f53ca9a 5429 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5430 cd $(HOST_SUBDIR)/binutils && \
05a13254 5431 \
7f6ef0c0 5432 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5433 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5434 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5435 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5436 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5437 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5438 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5439 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5440 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5441 $(TARGET-stagefeedback-binutils)
d545f33b 5442
a90ef4bf
JM
5443maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5444clean-stagefeedback: clean-stagefeedback-binutils
5445clean-stagefeedback-binutils:
9dbaa842 5446 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5447 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5448 else \
a90ef4bf 5449 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5450 $(MAKE) stagefeedback-start; \
5451 fi; \
a90ef4bf 5452 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5453 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5454@endif binutils-bootstrap
d545f33b
PB
5455
5456
5457
5458
5459
a90ef4bf
JM
5460.PHONY: check-binutils maybe-check-binutils
5461maybe-check-binutils:
5462@if binutils
5463maybe-check-binutils: check-binutils
2a4cbe27 5464
a90ef4bf 5465check-binutils:
0aed8855 5466 @: $(MAKE); $(unstage)
4fa63067 5467 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5469 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5470 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5471 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5472
a90ef4bf 5473@endif binutils
2a4cbe27 5474
a90ef4bf
JM
5475.PHONY: install-binutils maybe-install-binutils
5476maybe-install-binutils:
5477@if binutils
5478maybe-install-binutils: install-binutils
2a4cbe27 5479
a90ef4bf 5480install-binutils: installdirs
0aed8855 5481 @: $(MAKE); $(unstage)
4fa63067 5482 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5484 $(HOST_EXPORTS) \
a90ef4bf 5485 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5486 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5487
a90ef4bf 5488@endif binutils
2a4cbe27 5489
a90ef4bf
JM
5490.PHONY: install-strip-binutils maybe-install-strip-binutils
5491maybe-install-strip-binutils:
5492@if binutils
5493maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5494
a90ef4bf 5495install-strip-binutils: installdirs
9b980aa1
RW
5496 @: $(MAKE); $(unstage)
5497 @r=`${PWD_COMMAND}`; export r; \
5498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5499 $(HOST_EXPORTS) \
a90ef4bf 5500 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5501 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5502
a90ef4bf 5503@endif binutils
9b980aa1 5504
56a8fe78 5505# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5506
a90ef4bf
JM
5507.PHONY: maybe-info-binutils info-binutils
5508maybe-info-binutils:
5509@if binutils
5510maybe-info-binutils: info-binutils
4fa63067 5511
a90ef4bf
JM
5512info-binutils: \
5513 configure-binutils
5514 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5515 r=`${PWD_COMMAND}`; export r; \
5516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5517 $(HOST_EXPORTS) \
b813574b 5518 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5520 done; \
22121df0 5521 echo "Doing info in binutils"; \
a90ef4bf 5522 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5525 "RANLIB=$${RANLIB}" \
0c24b341 5526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5527 info) \
2a4cbe27
NN
5528 || exit 1
5529
a90ef4bf 5530@endif binutils
2a4cbe27 5531
a90ef4bf
JM
5532.PHONY: maybe-dvi-binutils dvi-binutils
5533maybe-dvi-binutils:
5534@if binutils
5535maybe-dvi-binutils: dvi-binutils
2a4cbe27 5536
a90ef4bf
JM
5537dvi-binutils: \
5538 configure-binutils
5539 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5540 r=`${PWD_COMMAND}`; export r; \
5541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5542 $(HOST_EXPORTS) \
b813574b 5543 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5545 done; \
22121df0 5546 echo "Doing dvi in binutils"; \
a90ef4bf 5547 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5550 "RANLIB=$${RANLIB}" \
0c24b341 5551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5552 dvi) \
2a4cbe27
NN
5553 || exit 1
5554
a90ef4bf 5555@endif binutils
2a4cbe27 5556
a90ef4bf
JM
5557.PHONY: maybe-pdf-binutils pdf-binutils
5558maybe-pdf-binutils:
5559@if binutils
5560maybe-pdf-binutils: pdf-binutils
56a8fe78 5561
a90ef4bf
JM
5562pdf-binutils: \
5563 configure-binutils
5564 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5565 r=`${PWD_COMMAND}`; export r; \
5566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5567 $(HOST_EXPORTS) \
5568 for flag in $(EXTRA_HOST_FLAGS) ; do \
5569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5570 done; \
22121df0 5571 echo "Doing pdf in binutils"; \
a90ef4bf 5572 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5575 "RANLIB=$${RANLIB}" \
0c24b341 5576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5577 pdf) \
5578 || exit 1
5579
a90ef4bf 5580@endif binutils
56a8fe78 5581
a90ef4bf
JM
5582.PHONY: maybe-html-binutils html-binutils
5583maybe-html-binutils:
5584@if binutils
5585maybe-html-binutils: html-binutils
6d389afc 5586
a90ef4bf
JM
5587html-binutils: \
5588 configure-binutils
5589 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5590 r=`${PWD_COMMAND}`; export r; \
5591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5592 $(HOST_EXPORTS) \
5593 for flag in $(EXTRA_HOST_FLAGS) ; do \
5594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5595 done; \
22121df0 5596 echo "Doing html in binutils"; \
a90ef4bf 5597 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5600 "RANLIB=$${RANLIB}" \
0c24b341 5601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5602 html) \
5603 || exit 1
5604
a90ef4bf 5605@endif binutils
6d389afc 5606
a90ef4bf
JM
5607.PHONY: maybe-TAGS-binutils TAGS-binutils
5608maybe-TAGS-binutils:
5609@if binutils
5610maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5611
a90ef4bf
JM
5612TAGS-binutils: \
5613 configure-binutils
5614 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5615 r=`${PWD_COMMAND}`; export r; \
5616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5617 $(HOST_EXPORTS) \
b813574b 5618 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5620 done; \
22121df0 5621 echo "Doing TAGS in binutils"; \
a90ef4bf 5622 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5625 "RANLIB=$${RANLIB}" \
0c24b341 5626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5627 TAGS) \
2a4cbe27
NN
5628 || exit 1
5629
a90ef4bf 5630@endif binutils
2a4cbe27 5631
a90ef4bf
JM
5632.PHONY: maybe-install-info-binutils install-info-binutils
5633maybe-install-info-binutils:
5634@if binutils
5635maybe-install-info-binutils: install-info-binutils
2a4cbe27 5636
a90ef4bf
JM
5637install-info-binutils: \
5638 configure-binutils \
5639 info-binutils
5640 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5641 r=`${PWD_COMMAND}`; export r; \
5642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5643 $(HOST_EXPORTS) \
b813574b 5644 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5646 done; \
22121df0 5647 echo "Doing install-info in binutils"; \
a90ef4bf 5648 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5651 "RANLIB=$${RANLIB}" \
0c24b341 5652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5653 install-info) \
2a4cbe27
NN
5654 || exit 1
5655
a90ef4bf 5656@endif binutils
2a4cbe27 5657
a90ef4bf
JM
5658.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5659maybe-install-pdf-binutils:
5660@if binutils
5661maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5662
a90ef4bf
JM
5663install-pdf-binutils: \
5664 configure-binutils \
5665 pdf-binutils
5666 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5667 r=`${PWD_COMMAND}`; export r; \
5668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5669 $(HOST_EXPORTS) \
5670 for flag in $(EXTRA_HOST_FLAGS) ; do \
5671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5672 done; \
22121df0 5673 echo "Doing install-pdf in binutils"; \
a90ef4bf 5674 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5677 "RANLIB=$${RANLIB}" \
0c24b341 5678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5679 install-pdf) \
5680 || exit 1
5681
a90ef4bf 5682@endif binutils
a3ca38d2 5683
a90ef4bf
JM
5684.PHONY: maybe-install-html-binutils install-html-binutils
5685maybe-install-html-binutils:
5686@if binutils
5687maybe-install-html-binutils: install-html-binutils
108a6f8e 5688
a90ef4bf
JM
5689install-html-binutils: \
5690 configure-binutils \
5691 html-binutils
5692 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5693 r=`${PWD_COMMAND}`; export r; \
5694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5695 $(HOST_EXPORTS) \
5696 for flag in $(EXTRA_HOST_FLAGS) ; do \
5697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5698 done; \
22121df0 5699 echo "Doing install-html in binutils"; \
a90ef4bf 5700 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5703 "RANLIB=$${RANLIB}" \
0c24b341 5704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5705 install-html) \
5706 || exit 1
5707
a90ef4bf 5708@endif binutils
108a6f8e 5709
a90ef4bf
JM
5710.PHONY: maybe-installcheck-binutils installcheck-binutils
5711maybe-installcheck-binutils:
5712@if binutils
5713maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5714
a90ef4bf
JM
5715installcheck-binutils: \
5716 configure-binutils
5717 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5718 r=`${PWD_COMMAND}`; export r; \
5719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5720 $(HOST_EXPORTS) \
b813574b 5721 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5723 done; \
22121df0 5724 echo "Doing installcheck in binutils"; \
a90ef4bf 5725 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5728 "RANLIB=$${RANLIB}" \
0c24b341 5729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5730 installcheck) \
2a4cbe27
NN
5731 || exit 1
5732
a90ef4bf 5733@endif binutils
2a4cbe27 5734
a90ef4bf
JM
5735.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5736maybe-mostlyclean-binutils:
5737@if binutils
5738maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5739
a90ef4bf
JM
5740mostlyclean-binutils:
5741 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5742 r=`${PWD_COMMAND}`; export r; \
5743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5744 $(HOST_EXPORTS) \
b813574b 5745 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5747 done; \
22121df0 5748 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5749 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5752 "RANLIB=$${RANLIB}" \
0c24b341 5753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5754 mostlyclean) \
2a4cbe27
NN
5755 || exit 1
5756
a90ef4bf 5757@endif binutils
2a4cbe27 5758
a90ef4bf
JM
5759.PHONY: maybe-clean-binutils clean-binutils
5760maybe-clean-binutils:
5761@if binutils
5762maybe-clean-binutils: clean-binutils
2a4cbe27 5763
a90ef4bf
JM
5764clean-binutils:
5765 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5766 r=`${PWD_COMMAND}`; export r; \
5767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5768 $(HOST_EXPORTS) \
b813574b 5769 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5771 done; \
22121df0 5772 echo "Doing clean in binutils"; \
a90ef4bf 5773 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5776 "RANLIB=$${RANLIB}" \
0c24b341 5777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5778 clean) \
2a4cbe27
NN
5779 || exit 1
5780
a90ef4bf 5781@endif binutils
2a4cbe27 5782
a90ef4bf
JM
5783.PHONY: maybe-distclean-binutils distclean-binutils
5784maybe-distclean-binutils:
5785@if binutils
5786maybe-distclean-binutils: distclean-binutils
2a4cbe27 5787
a90ef4bf
JM
5788distclean-binutils:
5789 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5790 r=`${PWD_COMMAND}`; export r; \
5791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5792 $(HOST_EXPORTS) \
b813574b 5793 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5795 done; \
22121df0 5796 echo "Doing distclean in binutils"; \
a90ef4bf 5797 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5800 "RANLIB=$${RANLIB}" \
0c24b341 5801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5802 distclean) \
2a4cbe27
NN
5803 || exit 1
5804
a90ef4bf 5805@endif binutils
2a4cbe27 5806
a90ef4bf
JM
5807.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5808maybe-maintainer-clean-binutils:
5809@if binutils
5810maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5811
a90ef4bf
JM
5812maintainer-clean-binutils:
5813 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5814 r=`${PWD_COMMAND}`; export r; \
5815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5816 $(HOST_EXPORTS) \
b813574b 5817 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5819 done; \
22121df0 5820 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5821 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5824 "RANLIB=$${RANLIB}" \
0c24b341 5825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5826 maintainer-clean) \
a2592b1b
DD
5827 || exit 1
5828
a90ef4bf 5829@endif binutils
a2592b1b 5830
2a4cbe27 5831
a7254363 5832
a90ef4bf
JM
5833.PHONY: configure-bison maybe-configure-bison
5834maybe-configure-bison:
4f0ef2d8 5835@if gcc-bootstrap
a90ef4bf 5836configure-bison: stage_current
4f0ef2d8 5837@endif gcc-bootstrap
a90ef4bf
JM
5838@if bison
5839maybe-configure-bison: configure-bison
5840configure-bison:
5841 @: $(MAKE); $(unstage)
c52c6897
PB
5842 @r=`${PWD_COMMAND}`; export r; \
5843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5844 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5845 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5846 $(HOST_EXPORTS) \
a90ef4bf
JM
5847 echo Configuring in $(HOST_SUBDIR)/bison; \
5848 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5849 case $(srcdir) in \
b00612cc 5850 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5851 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5852 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5853 esac; \
1b6c0831
L
5854 module_srcdir=bison; \
5855 $(SHELL) \
5856 $$s/$$module_srcdir/configure \
5857 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5858 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5859 --target=${target_alias} \
4fa63067 5860 || exit 1
a90ef4bf 5861@endif bison
2a4cbe27 5862
a7254363
PB
5863
5864
d545f33b 5865
8520c408 5866
a90ef4bf
JM
5867.PHONY: all-bison maybe-all-bison
5868maybe-all-bison:
5869@if gcc-bootstrap
5870all-bison: stage_current
5871@endif gcc-bootstrap
5872@if bison
5873TARGET-bison=all
5874maybe-all-bison: all-bison
5875all-bison: configure-bison
5876 @: $(MAKE); $(unstage)
c52c6897
PB
5877 @r=`${PWD_COMMAND}`; export r; \
5878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5879 $(HOST_EXPORTS) \
5880 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5881 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5882 $(TARGET-bison))
5883@endif bison
8520c408 5884
d545f33b 5885
d545f33b 5886
d545f33b 5887
a90ef4bf
JM
5888.PHONY: check-bison maybe-check-bison
5889maybe-check-bison:
5890@if bison
5891maybe-check-bison: check-bison
d545f33b 5892
a90ef4bf
JM
5893# This module is only tested in a native toolchain.
5894check-bison:
5895 @: $(MAKE); $(unstage)
22121df0 5896 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5897 r=`${PWD_COMMAND}`; export r; \
5898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5899 $(HOST_EXPORTS) \
a90ef4bf 5900 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5901 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5902 fi
d545f33b 5903
a90ef4bf 5904@endif bison
d545f33b 5905
a90ef4bf
JM
5906.PHONY: install-bison maybe-install-bison
5907maybe-install-bison:
5908@if bison
5909maybe-install-bison: install-bison
d545f33b 5910
a90ef4bf
JM
5911install-bison: installdirs
5912 @: $(MAKE); $(unstage)
c52c6897 5913 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5915 $(HOST_EXPORTS) \
5916 (cd $(HOST_SUBDIR)/bison && \
5917 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5918
a90ef4bf 5919@endif bison
a7254363 5920
a90ef4bf
JM
5921.PHONY: install-strip-bison maybe-install-strip-bison
5922maybe-install-strip-bison:
5923@if bison
5924maybe-install-strip-bison: install-strip-bison
d545f33b 5925
a90ef4bf
JM
5926install-strip-bison: installdirs
5927 @: $(MAKE); $(unstage)
d545f33b
PB
5928 @r=`${PWD_COMMAND}`; export r; \
5929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5930 $(HOST_EXPORTS) \
5931 (cd $(HOST_SUBDIR)/bison && \
5932 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5933
a90ef4bf 5934@endif bison
d545f33b 5935
a90ef4bf 5936# Other targets (info, dvi, pdf, etc.)
d545f33b 5937
a90ef4bf
JM
5938.PHONY: maybe-info-bison info-bison
5939maybe-info-bison:
5940@if bison
5941maybe-info-bison: info-bison
5942
5943info-bison: \
5944 configure-bison
5945 @: $(MAKE); $(unstage)
5946 @[ -f ./bison/Makefile ] || exit 0; \
5947 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5949 $(HOST_EXPORTS) \
a90ef4bf
JM
5950 for flag in $(EXTRA_HOST_FLAGS) ; do \
5951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5952 done; \
22121df0 5953 echo "Doing info in bison"; \
a90ef4bf
JM
5954 (cd $(HOST_SUBDIR)/bison && \
5955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5957 "RANLIB=$${RANLIB}" \
5958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5959 info) \
5960 || exit 1
d545f33b 5961
a90ef4bf 5962@endif bison
d545f33b 5963
a90ef4bf
JM
5964.PHONY: maybe-dvi-bison dvi-bison
5965maybe-dvi-bison:
5966@if bison
5967maybe-dvi-bison: dvi-bison
d545f33b 5968
a90ef4bf
JM
5969dvi-bison: \
5970 configure-bison
5971 @: $(MAKE); $(unstage)
5972 @[ -f ./bison/Makefile ] || exit 0; \
5973 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5975 $(HOST_EXPORTS) \
a90ef4bf
JM
5976 for flag in $(EXTRA_HOST_FLAGS) ; do \
5977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5978 done; \
22121df0 5979 echo "Doing dvi in bison"; \
a90ef4bf
JM
5980 (cd $(HOST_SUBDIR)/bison && \
5981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5983 "RANLIB=$${RANLIB}" \
5984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5985 dvi) \
5986 || exit 1
d545f33b 5987
a90ef4bf 5988@endif bison
d545f33b 5989
a90ef4bf
JM
5990.PHONY: maybe-pdf-bison pdf-bison
5991maybe-pdf-bison:
5992@if bison
5993maybe-pdf-bison: pdf-bison
d545f33b 5994
a90ef4bf
JM
5995pdf-bison: \
5996 configure-bison
5997 @: $(MAKE); $(unstage)
5998 @[ -f ./bison/Makefile ] || exit 0; \
5999 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6001 $(HOST_EXPORTS) \
a90ef4bf
JM
6002 for flag in $(EXTRA_HOST_FLAGS) ; do \
6003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6004 done; \
22121df0 6005 echo "Doing pdf in bison"; \
a90ef4bf
JM
6006 (cd $(HOST_SUBDIR)/bison && \
6007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6009 "RANLIB=$${RANLIB}" \
6010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6011 pdf) \
6012 || exit 1
d545f33b 6013
a90ef4bf 6014@endif bison
d545f33b 6015
a90ef4bf
JM
6016.PHONY: maybe-html-bison html-bison
6017maybe-html-bison:
6018@if bison
6019maybe-html-bison: html-bison
d545f33b 6020
a90ef4bf
JM
6021html-bison: \
6022 configure-bison
6023 @: $(MAKE); $(unstage)
6024 @[ -f ./bison/Makefile ] || exit 0; \
6025 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6027 $(HOST_EXPORTS) \
a90ef4bf
JM
6028 for flag in $(EXTRA_HOST_FLAGS) ; do \
6029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6030 done; \
22121df0 6031 echo "Doing html in bison"; \
a90ef4bf
JM
6032 (cd $(HOST_SUBDIR)/bison && \
6033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6035 "RANLIB=$${RANLIB}" \
6036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6037 html) \
6038 || exit 1
d545f33b 6039
a90ef4bf 6040@endif bison
2a4cbe27 6041
a90ef4bf
JM
6042.PHONY: maybe-TAGS-bison TAGS-bison
6043maybe-TAGS-bison:
6044@if bison
6045maybe-TAGS-bison: TAGS-bison
2a4cbe27 6046
a90ef4bf
JM
6047TAGS-bison: \
6048 configure-bison
0aed8855 6049 @: $(MAKE); $(unstage)
a90ef4bf
JM
6050 @[ -f ./bison/Makefile ] || exit 0; \
6051 r=`${PWD_COMMAND}`; export r; \
4fa63067 6052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6053 $(HOST_EXPORTS) \
a90ef4bf
JM
6054 for flag in $(EXTRA_HOST_FLAGS) ; do \
6055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6056 done; \
22121df0 6057 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6058 (cd $(HOST_SUBDIR)/bison && \
6059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6061 "RANLIB=$${RANLIB}" \
6062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6063 TAGS) \
6064 || exit 1
4fa63067 6065
a90ef4bf 6066@endif bison
4fa63067 6067
a90ef4bf
JM
6068.PHONY: maybe-install-info-bison install-info-bison
6069maybe-install-info-bison:
6070@if bison
6071maybe-install-info-bison: install-info-bison
9b980aa1 6072
a90ef4bf
JM
6073install-info-bison: \
6074 configure-bison \
6075 info-bison
9b980aa1 6076 @: $(MAKE); $(unstage)
a90ef4bf 6077 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6078 r=`${PWD_COMMAND}`; export r; \
6079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6080 $(HOST_EXPORTS) \
b813574b 6081 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6083 done; \
22121df0 6084 echo "Doing install-info in bison"; \
a90ef4bf 6085 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6088 "RANLIB=$${RANLIB}" \
0c24b341 6089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6090 install-info) \
2a4cbe27
NN
6091 || exit 1
6092
a90ef4bf 6093@endif bison
2a4cbe27 6094
a90ef4bf
JM
6095.PHONY: maybe-install-pdf-bison install-pdf-bison
6096maybe-install-pdf-bison:
6097@if bison
6098maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6099
a90ef4bf
JM
6100install-pdf-bison: \
6101 configure-bison \
6102 pdf-bison
6103 @: $(MAKE); $(unstage)
6104 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6105 r=`${PWD_COMMAND}`; export r; \
6106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6107 $(HOST_EXPORTS) \
b813574b 6108 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6110 done; \
22121df0 6111 echo "Doing install-pdf in bison"; \
a90ef4bf 6112 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6115 "RANLIB=$${RANLIB}" \
0c24b341 6116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6117 install-pdf) \
2a4cbe27
NN
6118 || exit 1
6119
a90ef4bf 6120@endif bison
2a4cbe27 6121
a90ef4bf
JM
6122.PHONY: maybe-install-html-bison install-html-bison
6123maybe-install-html-bison:
6124@if bison
6125maybe-install-html-bison: install-html-bison
56a8fe78 6126
a90ef4bf
JM
6127install-html-bison: \
6128 configure-bison \
6129 html-bison
6130 @: $(MAKE); $(unstage)
6131 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6132 r=`${PWD_COMMAND}`; export r; \
6133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6134 $(HOST_EXPORTS) \
6135 for flag in $(EXTRA_HOST_FLAGS) ; do \
6136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6137 done; \
22121df0 6138 echo "Doing install-html in bison"; \
a90ef4bf 6139 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6142 "RANLIB=$${RANLIB}" \
0c24b341 6143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6144 install-html) \
56a8fe78
DD
6145 || exit 1
6146
a90ef4bf 6147@endif bison
56a8fe78 6148
a90ef4bf
JM
6149.PHONY: maybe-installcheck-bison installcheck-bison
6150maybe-installcheck-bison:
6151@if bison
6152maybe-installcheck-bison: installcheck-bison
6d389afc 6153
a90ef4bf
JM
6154installcheck-bison: \
6155 configure-bison
6156 @: $(MAKE); $(unstage)
6157 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6158 r=`${PWD_COMMAND}`; export r; \
6159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6160 $(HOST_EXPORTS) \
6161 for flag in $(EXTRA_HOST_FLAGS) ; do \
6162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6163 done; \
22121df0 6164 echo "Doing installcheck in bison"; \
a90ef4bf 6165 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6168 "RANLIB=$${RANLIB}" \
0c24b341 6169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6170 installcheck) \
6d389afc
MS
6171 || exit 1
6172
a90ef4bf 6173@endif bison
6d389afc 6174
a90ef4bf
JM
6175.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6176maybe-mostlyclean-bison:
6177@if bison
6178maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6179
a90ef4bf
JM
6180mostlyclean-bison:
6181 @: $(MAKE); $(unstage)
6182 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6183 r=`${PWD_COMMAND}`; export r; \
6184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6185 $(HOST_EXPORTS) \
b813574b 6186 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6188 done; \
22121df0 6189 echo "Doing mostlyclean in bison"; \
a90ef4bf 6190 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6193 "RANLIB=$${RANLIB}" \
0c24b341 6194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6195 mostlyclean) \
2a4cbe27
NN
6196 || exit 1
6197
a90ef4bf 6198@endif bison
2a4cbe27 6199
a90ef4bf
JM
6200.PHONY: maybe-clean-bison clean-bison
6201maybe-clean-bison:
6202@if bison
6203maybe-clean-bison: clean-bison
2a4cbe27 6204
a90ef4bf
JM
6205clean-bison:
6206 @: $(MAKE); $(unstage)
6207 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6208 r=`${PWD_COMMAND}`; export r; \
6209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6210 $(HOST_EXPORTS) \
b813574b 6211 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6213 done; \
22121df0 6214 echo "Doing clean in bison"; \
a90ef4bf 6215 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6218 "RANLIB=$${RANLIB}" \
0c24b341 6219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6220 clean) \
2a4cbe27
NN
6221 || exit 1
6222
a90ef4bf 6223@endif bison
2a4cbe27 6224
a90ef4bf
JM
6225.PHONY: maybe-distclean-bison distclean-bison
6226maybe-distclean-bison:
6227@if bison
6228maybe-distclean-bison: distclean-bison
a3ca38d2 6229
a90ef4bf
JM
6230distclean-bison:
6231 @: $(MAKE); $(unstage)
6232 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6233 r=`${PWD_COMMAND}`; export r; \
6234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6235 $(HOST_EXPORTS) \
6236 for flag in $(EXTRA_HOST_FLAGS) ; do \
6237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6238 done; \
22121df0 6239 echo "Doing distclean in bison"; \
a90ef4bf 6240 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6243 "RANLIB=$${RANLIB}" \
0c24b341 6244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6245 distclean) \
a3ca38d2
DD
6246 || exit 1
6247
a90ef4bf 6248@endif bison
a3ca38d2 6249
a90ef4bf
JM
6250.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6251maybe-maintainer-clean-bison:
6252@if bison
6253maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6254
a90ef4bf
JM
6255maintainer-clean-bison:
6256 @: $(MAKE); $(unstage)
6257 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6258 r=`${PWD_COMMAND}`; export r; \
6259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6260 $(HOST_EXPORTS) \
6261 for flag in $(EXTRA_HOST_FLAGS) ; do \
6262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6263 done; \
22121df0 6264 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6265 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6268 "RANLIB=$${RANLIB}" \
0c24b341 6269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6270 maintainer-clean) \
108a6f8e
CD
6271 || exit 1
6272
a90ef4bf 6273@endif bison
108a6f8e 6274
2a4cbe27 6275
a90ef4bf
JM
6276
6277.PHONY: configure-cgen maybe-configure-cgen
6278maybe-configure-cgen:
6279@if gcc-bootstrap
6280configure-cgen: stage_current
6281@endif gcc-bootstrap
6282@if cgen
6283maybe-configure-cgen: configure-cgen
6284configure-cgen:
6285 @: $(MAKE); $(unstage)
6286 @r=`${PWD_COMMAND}`; export r; \
6287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6288 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6289 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6290 $(HOST_EXPORTS) \
6291 echo Configuring in $(HOST_SUBDIR)/cgen; \
6292 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6293 case $(srcdir) in \
6294 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6295 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6296 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6297 esac; \
1b6c0831
L
6298 module_srcdir=cgen; \
6299 $(SHELL) \
6300 $$s/$$module_srcdir/configure \
6301 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6302 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6303 --target=${target_alias} \
a90ef4bf
JM
6304 || exit 1
6305@endif cgen
6306
6307
6308
6309
6310
6311.PHONY: all-cgen maybe-all-cgen
6312maybe-all-cgen:
6313@if gcc-bootstrap
6314all-cgen: stage_current
6315@endif gcc-bootstrap
6316@if cgen
6317TARGET-cgen=all
6318maybe-all-cgen: all-cgen
6319all-cgen: configure-cgen
6320 @: $(MAKE); $(unstage)
6321 @r=`${PWD_COMMAND}`; export r; \
6322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6323 $(HOST_EXPORTS) \
6324 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6325 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6326 $(TARGET-cgen))
6327@endif cgen
6328
6329
6330
6331
6332.PHONY: check-cgen maybe-check-cgen
6333maybe-check-cgen:
6334@if cgen
6335maybe-check-cgen: check-cgen
6336
6337check-cgen:
6338 @: $(MAKE); $(unstage)
6339 @r=`${PWD_COMMAND}`; export r; \
6340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6341 $(HOST_EXPORTS) \
a90ef4bf
JM
6342 (cd $(HOST_SUBDIR)/cgen && \
6343 $(MAKE) $(FLAGS_TO_PASS) check)
6344
6345@endif cgen
6346
6347.PHONY: install-cgen maybe-install-cgen
6348maybe-install-cgen:
6349@if cgen
6350maybe-install-cgen: install-cgen
6351
6352install-cgen: installdirs
6353 @: $(MAKE); $(unstage)
6354 @r=`${PWD_COMMAND}`; export r; \
6355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6356 $(HOST_EXPORTS) \
6357 (cd $(HOST_SUBDIR)/cgen && \
6358 $(MAKE) $(FLAGS_TO_PASS) install)
6359
6360@endif cgen
6361
6362.PHONY: install-strip-cgen maybe-install-strip-cgen
6363maybe-install-strip-cgen:
6364@if cgen
6365maybe-install-strip-cgen: install-strip-cgen
6366
6367install-strip-cgen: installdirs
6368 @: $(MAKE); $(unstage)
6369 @r=`${PWD_COMMAND}`; export r; \
6370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6371 $(HOST_EXPORTS) \
6372 (cd $(HOST_SUBDIR)/cgen && \
6373 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6374
6375@endif cgen
6376
6377# Other targets (info, dvi, pdf, etc.)
6378
6379.PHONY: maybe-info-cgen info-cgen
6380maybe-info-cgen:
6381@if cgen
6382maybe-info-cgen: info-cgen
6383
6384info-cgen: \
6385 configure-cgen
6386 @: $(MAKE); $(unstage)
6387 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6388 r=`${PWD_COMMAND}`; export r; \
6389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6390 $(HOST_EXPORTS) \
b813574b 6391 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6393 done; \
22121df0 6394 echo "Doing info in cgen"; \
a90ef4bf 6395 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6398 "RANLIB=$${RANLIB}" \
0c24b341 6399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6400 info) \
2a4cbe27
NN
6401 || exit 1
6402
a90ef4bf 6403@endif cgen
2a4cbe27 6404
a90ef4bf
JM
6405.PHONY: maybe-dvi-cgen dvi-cgen
6406maybe-dvi-cgen:
6407@if cgen
6408maybe-dvi-cgen: dvi-cgen
2a4cbe27 6409
a90ef4bf
JM
6410dvi-cgen: \
6411 configure-cgen
6412 @: $(MAKE); $(unstage)
6413 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6414 r=`${PWD_COMMAND}`; export r; \
6415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6416 $(HOST_EXPORTS) \
b813574b 6417 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6419 done; \
22121df0 6420 echo "Doing dvi in cgen"; \
a90ef4bf 6421 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6424 "RANLIB=$${RANLIB}" \
0c24b341 6425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6426 dvi) \
2a4cbe27
NN
6427 || exit 1
6428
a90ef4bf 6429@endif cgen
2a4cbe27 6430
a90ef4bf
JM
6431.PHONY: maybe-pdf-cgen pdf-cgen
6432maybe-pdf-cgen:
6433@if cgen
6434maybe-pdf-cgen: pdf-cgen
2a4cbe27 6435
a90ef4bf
JM
6436pdf-cgen: \
6437 configure-cgen
6438 @: $(MAKE); $(unstage)
6439 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6440 r=`${PWD_COMMAND}`; export r; \
6441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6442 $(HOST_EXPORTS) \
b813574b 6443 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6445 done; \
22121df0 6446 echo "Doing pdf in cgen"; \
a90ef4bf 6447 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6450 "RANLIB=$${RANLIB}" \
0c24b341 6451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6452 pdf) \
2a4cbe27
NN
6453 || exit 1
6454
a90ef4bf 6455@endif cgen
2a4cbe27 6456
a90ef4bf
JM
6457.PHONY: maybe-html-cgen html-cgen
6458maybe-html-cgen:
6459@if cgen
6460maybe-html-cgen: html-cgen
2a4cbe27 6461
a90ef4bf
JM
6462html-cgen: \
6463 configure-cgen
6464 @: $(MAKE); $(unstage)
6465 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6466 r=`${PWD_COMMAND}`; export r; \
6467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6468 $(HOST_EXPORTS) \
b813574b 6469 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6471 done; \
22121df0 6472 echo "Doing html in cgen"; \
a90ef4bf 6473 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6476 "RANLIB=$${RANLIB}" \
0c24b341 6477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6478 html) \
2a4cbe27
NN
6479 || exit 1
6480
a90ef4bf 6481@endif cgen
2a4cbe27 6482
a90ef4bf
JM
6483.PHONY: maybe-TAGS-cgen TAGS-cgen
6484maybe-TAGS-cgen:
6485@if cgen
6486maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6487
a90ef4bf
JM
6488TAGS-cgen: \
6489 configure-cgen
6490 @: $(MAKE); $(unstage)
6491 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6492 r=`${PWD_COMMAND}`; export r; \
6493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6494 $(HOST_EXPORTS) \
b813574b 6495 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6497 done; \
22121df0 6498 echo "Doing TAGS in cgen"; \
a90ef4bf 6499 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6502 "RANLIB=$${RANLIB}" \
0c24b341 6503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6504 TAGS) \
2a4cbe27
NN
6505 || exit 1
6506
a90ef4bf 6507@endif cgen
2a4cbe27 6508
a90ef4bf
JM
6509.PHONY: maybe-install-info-cgen install-info-cgen
6510maybe-install-info-cgen:
6511@if cgen
6512maybe-install-info-cgen: install-info-cgen
2a4cbe27 6513
a90ef4bf
JM
6514install-info-cgen: \
6515 configure-cgen \
6516 info-cgen
6517 @: $(MAKE); $(unstage)
6518 @[ -f ./cgen/Makefile ] || exit 0; \
6519 r=`${PWD_COMMAND}`; export r; \
6520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6521 $(HOST_EXPORTS) \
6522 for flag in $(EXTRA_HOST_FLAGS) ; do \
6523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6524 done; \
22121df0 6525 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6526 (cd $(HOST_SUBDIR)/cgen && \
6527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6529 "RANLIB=$${RANLIB}" \
6530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6531 install-info) \
6532 || exit 1
a7254363 6533
a90ef4bf
JM
6534@endif cgen
6535
6536.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6537maybe-install-pdf-cgen:
6538@if cgen
6539maybe-install-pdf-cgen: install-pdf-cgen
6540
6541install-pdf-cgen: \
6542 configure-cgen \
6543 pdf-cgen
6544 @: $(MAKE); $(unstage)
6545 @[ -f ./cgen/Makefile ] || exit 0; \
6546 r=`${PWD_COMMAND}`; export r; \
c52c6897 6547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6548 $(HOST_EXPORTS) \
6549 for flag in $(EXTRA_HOST_FLAGS) ; do \
6550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6551 done; \
22121df0 6552 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6553 (cd $(HOST_SUBDIR)/cgen && \
6554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6556 "RANLIB=$${RANLIB}" \
6557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6558 install-pdf) \
2a4cbe27
NN
6559 || exit 1
6560
a90ef4bf 6561@endif cgen
a7254363 6562
a90ef4bf
JM
6563.PHONY: maybe-install-html-cgen install-html-cgen
6564maybe-install-html-cgen:
6565@if cgen
6566maybe-install-html-cgen: install-html-cgen
a7254363 6567
a90ef4bf
JM
6568install-html-cgen: \
6569 configure-cgen \
6570 html-cgen
6571 @: $(MAKE); $(unstage)
6572 @[ -f ./cgen/Makefile ] || exit 0; \
6573 r=`${PWD_COMMAND}`; export r; \
c52c6897 6574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6575 $(HOST_EXPORTS) \
a90ef4bf
JM
6576 for flag in $(EXTRA_HOST_FLAGS) ; do \
6577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6578 done; \
22121df0 6579 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6580 (cd $(HOST_SUBDIR)/cgen && \
6581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6583 "RANLIB=$${RANLIB}" \
6584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6585 install-html) \
6586 || exit 1
d545f33b 6587
a90ef4bf
JM
6588@endif cgen
6589
6590.PHONY: maybe-installcheck-cgen installcheck-cgen
6591maybe-installcheck-cgen:
6592@if cgen
6593maybe-installcheck-cgen: installcheck-cgen
6594
6595installcheck-cgen: \
6596 configure-cgen
6597 @: $(MAKE); $(unstage)
6598 @[ -f ./cgen/Makefile ] || exit 0; \
6599 r=`${PWD_COMMAND}`; export r; \
c52c6897 6600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6601 $(HOST_EXPORTS) \
a90ef4bf
JM
6602 for flag in $(EXTRA_HOST_FLAGS) ; do \
6603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6604 done; \
22121df0 6605 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6606 (cd $(HOST_SUBDIR)/cgen && \
6607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6609 "RANLIB=$${RANLIB}" \
6610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6611 installcheck) \
6612 || exit 1
8520c408 6613
a90ef4bf
JM
6614@endif cgen
6615
6616.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6617maybe-mostlyclean-cgen:
6618@if cgen
6619maybe-mostlyclean-cgen: mostlyclean-cgen
6620
6621mostlyclean-cgen:
6622 @: $(MAKE); $(unstage)
6623 @[ -f ./cgen/Makefile ] || exit 0; \
6624 r=`${PWD_COMMAND}`; export r; \
c52c6897 6625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6626 $(HOST_EXPORTS) \
a90ef4bf
JM
6627 for flag in $(EXTRA_HOST_FLAGS) ; do \
6628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6629 done; \
22121df0 6630 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6631 (cd $(HOST_SUBDIR)/cgen && \
6632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6634 "RANLIB=$${RANLIB}" \
6635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6636 mostlyclean) \
6637 || exit 1
8520c408 6638
a90ef4bf
JM
6639@endif cgen
6640
6641.PHONY: maybe-clean-cgen clean-cgen
6642maybe-clean-cgen:
6643@if cgen
6644maybe-clean-cgen: clean-cgen
6645
6646clean-cgen:
6647 @: $(MAKE); $(unstage)
6648 @[ -f ./cgen/Makefile ] || exit 0; \
6649 r=`${PWD_COMMAND}`; export r; \
c52c6897 6650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6651 $(HOST_EXPORTS) \
a90ef4bf
JM
6652 for flag in $(EXTRA_HOST_FLAGS) ; do \
6653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6654 done; \
22121df0 6655 echo "Doing clean in cgen"; \
a90ef4bf
JM
6656 (cd $(HOST_SUBDIR)/cgen && \
6657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6659 "RANLIB=$${RANLIB}" \
6660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6661 clean) \
6662 || exit 1
d545f33b 6663
a90ef4bf
JM
6664@endif cgen
6665
6666.PHONY: maybe-distclean-cgen distclean-cgen
6667maybe-distclean-cgen:
6668@if cgen
6669maybe-distclean-cgen: distclean-cgen
6670
6671distclean-cgen:
6672 @: $(MAKE); $(unstage)
6673 @[ -f ./cgen/Makefile ] || exit 0; \
6674 r=`${PWD_COMMAND}`; export r; \
c52c6897 6675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6676 $(HOST_EXPORTS) \
a90ef4bf
JM
6677 for flag in $(EXTRA_HOST_FLAGS) ; do \
6678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6679 done; \
22121df0 6680 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6681 (cd $(HOST_SUBDIR)/cgen && \
6682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6684 "RANLIB=$${RANLIB}" \
6685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6686 distclean) \
6687 || exit 1
d545f33b 6688
a90ef4bf
JM
6689@endif cgen
6690
6691.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6692maybe-maintainer-clean-cgen:
6693@if cgen
6694maybe-maintainer-clean-cgen: maintainer-clean-cgen
6695
6696maintainer-clean-cgen:
6697 @: $(MAKE); $(unstage)
6698 @[ -f ./cgen/Makefile ] || exit 0; \
6699 r=`${PWD_COMMAND}`; export r; \
c52c6897 6700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6701 $(HOST_EXPORTS) \
a90ef4bf
JM
6702 for flag in $(EXTRA_HOST_FLAGS) ; do \
6703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6704 done; \
22121df0 6705 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6706 (cd $(HOST_SUBDIR)/cgen && \
6707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6709 "RANLIB=$${RANLIB}" \
6710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6711 maintainer-clean) \
6712 || exit 1
6713
6714@endif cgen
6715
6716
6717
6718.PHONY: configure-dejagnu maybe-configure-dejagnu
6719maybe-configure-dejagnu:
6720@if gcc-bootstrap
6721configure-dejagnu: stage_current
6722@endif gcc-bootstrap
6723@if dejagnu
6724maybe-configure-dejagnu: configure-dejagnu
6725configure-dejagnu:
6726 @: $(MAKE); $(unstage)
6727 @r=`${PWD_COMMAND}`; export r; \
6728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6729 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6730 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6731 $(HOST_EXPORTS) \
6732 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6733 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6734 case $(srcdir) in \
6735 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6736 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6737 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6738 esac; \
1b6c0831
L
6739 module_srcdir=dejagnu; \
6740 $(SHELL) \
6741 $$s/$$module_srcdir/configure \
6742 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6743 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6744 --target=${target_alias} \
a90ef4bf
JM
6745 || exit 1
6746@endif dejagnu
d545f33b
PB
6747
6748
6749
6750
6751
a90ef4bf
JM
6752.PHONY: all-dejagnu maybe-all-dejagnu
6753maybe-all-dejagnu:
4f0ef2d8 6754@if gcc-bootstrap
a90ef4bf 6755all-dejagnu: stage_current
4f0ef2d8 6756@endif gcc-bootstrap
a90ef4bf
JM
6757@if dejagnu
6758TARGET-dejagnu=all
6759maybe-all-dejagnu: all-dejagnu
6760all-dejagnu: configure-dejagnu
6761 @: $(MAKE); $(unstage)
c52c6897 6762 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6764 $(HOST_EXPORTS) \
a90ef4bf 6765 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6766 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6767 $(TARGET-dejagnu))
6768@endif dejagnu
4fa63067 6769
a7254363 6770
4fa63067 6771
a90ef4bf
JM
6772
6773.PHONY: check-dejagnu maybe-check-dejagnu
6774maybe-check-dejagnu:
6775@if dejagnu
6776maybe-check-dejagnu: check-dejagnu
6777
6778check-dejagnu:
6779 @: $(MAKE); $(unstage)
4fa63067
NN
6780 @r=`${PWD_COMMAND}`; export r; \
6781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6782 $(HOST_EXPORTS) \
a90ef4bf
JM
6783 (cd $(HOST_SUBDIR)/dejagnu && \
6784 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6785
a90ef4bf 6786@endif dejagnu
2a4cbe27 6787
a90ef4bf
JM
6788.PHONY: install-dejagnu maybe-install-dejagnu
6789maybe-install-dejagnu:
6790@if dejagnu
6791maybe-install-dejagnu: install-dejagnu
2a4cbe27 6792
a90ef4bf
JM
6793install-dejagnu: installdirs
6794 @: $(MAKE); $(unstage)
4fa63067 6795 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6797 $(HOST_EXPORTS) \
a90ef4bf
JM
6798 (cd $(HOST_SUBDIR)/dejagnu && \
6799 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6800
a90ef4bf 6801@endif dejagnu
d545f33b 6802
a90ef4bf
JM
6803.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6804maybe-install-strip-dejagnu:
6805@if dejagnu
6806maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6807
a90ef4bf 6808install-strip-dejagnu: installdirs
9b980aa1
RW
6809 @: $(MAKE); $(unstage)
6810 @r=`${PWD_COMMAND}`; export r; \
6811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6812 $(HOST_EXPORTS) \
a90ef4bf 6813 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6814 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6815
a90ef4bf 6816@endif dejagnu
9b980aa1 6817
56a8fe78 6818# Other targets (info, dvi, pdf, etc.)
d545f33b 6819
a90ef4bf
JM
6820.PHONY: maybe-info-dejagnu info-dejagnu
6821maybe-info-dejagnu:
6822@if dejagnu
6823maybe-info-dejagnu: info-dejagnu
d545f33b 6824
a90ef4bf
JM
6825info-dejagnu: \
6826 configure-dejagnu
6827 @: $(MAKE); $(unstage)
6828 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6829 r=`${PWD_COMMAND}`; export r; \
6830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6831 $(HOST_EXPORTS) \
6832 for flag in $(EXTRA_HOST_FLAGS) ; do \
6833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6834 done; \
22121df0 6835 echo "Doing info in dejagnu"; \
a90ef4bf 6836 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6839 "RANLIB=$${RANLIB}" \
0c24b341 6840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6841 info) \
6842 || exit 1
6843
a90ef4bf 6844@endif dejagnu
d545f33b 6845
a90ef4bf
JM
6846.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6847maybe-dvi-dejagnu:
6848@if dejagnu
6849maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6850
a90ef4bf
JM
6851dvi-dejagnu: \
6852 configure-dejagnu
6853 @: $(MAKE); $(unstage)
6854 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6855 r=`${PWD_COMMAND}`; export r; \
6856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6857 $(HOST_EXPORTS) \
6858 for flag in $(EXTRA_HOST_FLAGS) ; do \
6859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6860 done; \
22121df0 6861 echo "Doing dvi in dejagnu"; \
a90ef4bf 6862 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6865 "RANLIB=$${RANLIB}" \
0c24b341 6866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6867 dvi) \
2a4cbe27
NN
6868 || exit 1
6869
a90ef4bf 6870@endif dejagnu
2a4cbe27 6871
a90ef4bf
JM
6872.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6873maybe-pdf-dejagnu:
6874@if dejagnu
6875maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6876
a90ef4bf
JM
6877pdf-dejagnu: \
6878 configure-dejagnu
6879 @: $(MAKE); $(unstage)
6880 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6881 r=`${PWD_COMMAND}`; export r; \
6882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6883 $(HOST_EXPORTS) \
6884 for flag in $(EXTRA_HOST_FLAGS) ; do \
6885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6886 done; \
22121df0 6887 echo "Doing pdf in dejagnu"; \
a90ef4bf 6888 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6891 "RANLIB=$${RANLIB}" \
0c24b341 6892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6893 pdf) \
6894 || exit 1
6895
a90ef4bf 6896@endif dejagnu
56a8fe78 6897
a90ef4bf
JM
6898.PHONY: maybe-html-dejagnu html-dejagnu
6899maybe-html-dejagnu:
6900@if dejagnu
6901maybe-html-dejagnu: html-dejagnu
6d389afc 6902
a90ef4bf
JM
6903html-dejagnu: \
6904 configure-dejagnu
6905 @: $(MAKE); $(unstage)
6906 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6907 r=`${PWD_COMMAND}`; export r; \
6908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6909 $(HOST_EXPORTS) \
6910 for flag in $(EXTRA_HOST_FLAGS) ; do \
6911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6912 done; \
22121df0 6913 echo "Doing html in dejagnu"; \
a90ef4bf 6914 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6917 "RANLIB=$${RANLIB}" \
0c24b341 6918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6919 html) \
6920 || exit 1
6921
a90ef4bf 6922@endif dejagnu
6d389afc 6923
a90ef4bf
JM
6924.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6925maybe-TAGS-dejagnu:
6926@if dejagnu
6927maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6928
a90ef4bf
JM
6929TAGS-dejagnu: \
6930 configure-dejagnu
6931 @: $(MAKE); $(unstage)
6932 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6933 r=`${PWD_COMMAND}`; export r; \
6934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6935 $(HOST_EXPORTS) \
b813574b 6936 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6938 done; \
22121df0 6939 echo "Doing TAGS in dejagnu"; \
a90ef4bf 6940 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6943 "RANLIB=$${RANLIB}" \
0c24b341 6944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6945 TAGS) \
2a4cbe27
NN
6946 || exit 1
6947
a90ef4bf 6948@endif dejagnu
2a4cbe27 6949
a90ef4bf
JM
6950.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6951maybe-install-info-dejagnu:
6952@if dejagnu
6953maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6954
a90ef4bf
JM
6955install-info-dejagnu: \
6956 configure-dejagnu \
6957 info-dejagnu
6958 @: $(MAKE); $(unstage)
6959 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6960 r=`${PWD_COMMAND}`; export r; \
6961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6962 $(HOST_EXPORTS) \
b813574b 6963 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6965 done; \
22121df0 6966 echo "Doing install-info in dejagnu"; \
a90ef4bf 6967 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6970 "RANLIB=$${RANLIB}" \
0c24b341 6971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6972 install-info) \
2a4cbe27
NN
6973 || exit 1
6974
a90ef4bf 6975@endif dejagnu
2a4cbe27 6976
a90ef4bf
JM
6977.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6978maybe-install-pdf-dejagnu:
6979@if dejagnu
6980maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6981
a90ef4bf
JM
6982install-pdf-dejagnu: \
6983 configure-dejagnu \
6984 pdf-dejagnu
6985 @: $(MAKE); $(unstage)
6986 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6987 r=`${PWD_COMMAND}`; export r; \
6988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6989 $(HOST_EXPORTS) \
6990 for flag in $(EXTRA_HOST_FLAGS) ; do \
6991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6992 done; \
22121df0 6993 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 6994 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6997 "RANLIB=$${RANLIB}" \
0c24b341 6998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6999 install-pdf) \
7000 || exit 1
7001
a90ef4bf 7002@endif dejagnu
a3ca38d2 7003
a90ef4bf
JM
7004.PHONY: maybe-install-html-dejagnu install-html-dejagnu
7005maybe-install-html-dejagnu:
7006@if dejagnu
7007maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 7008
a90ef4bf
JM
7009install-html-dejagnu: \
7010 configure-dejagnu \
7011 html-dejagnu
7012 @: $(MAKE); $(unstage)
7013 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
7014 r=`${PWD_COMMAND}`; export r; \
7015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7016 $(HOST_EXPORTS) \
7017 for flag in $(EXTRA_HOST_FLAGS) ; do \
7018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7019 done; \
22121df0 7020 echo "Doing install-html in dejagnu"; \
a90ef4bf 7021 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
7022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7024 "RANLIB=$${RANLIB}" \
0c24b341 7025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7026 install-html) \
7027 || exit 1
7028
a90ef4bf 7029@endif dejagnu
108a6f8e 7030
a90ef4bf
JM
7031.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
7032maybe-installcheck-dejagnu:
7033@if dejagnu
7034maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 7035
a90ef4bf
JM
7036installcheck-dejagnu: \
7037 configure-dejagnu
7038 @: $(MAKE); $(unstage)
7039 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7040 r=`${PWD_COMMAND}`; export r; \
7041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7042 $(HOST_EXPORTS) \
b813574b 7043 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7045 done; \
22121df0 7046 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7047 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7050 "RANLIB=$${RANLIB}" \
0c24b341 7051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7052 installcheck) \
2a4cbe27
NN
7053 || exit 1
7054
a90ef4bf 7055@endif dejagnu
2a4cbe27 7056
a90ef4bf
JM
7057.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7058maybe-mostlyclean-dejagnu:
7059@if dejagnu
7060maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7061
a90ef4bf
JM
7062mostlyclean-dejagnu:
7063 @: $(MAKE); $(unstage)
7064 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7065 r=`${PWD_COMMAND}`; export r; \
7066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7067 $(HOST_EXPORTS) \
b813574b 7068 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7070 done; \
22121df0 7071 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7072 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7075 "RANLIB=$${RANLIB}" \
0c24b341 7076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7077 mostlyclean) \
2a4cbe27
NN
7078 || exit 1
7079
a90ef4bf 7080@endif dejagnu
2a4cbe27 7081
a90ef4bf
JM
7082.PHONY: maybe-clean-dejagnu clean-dejagnu
7083maybe-clean-dejagnu:
7084@if dejagnu
7085maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7086
a90ef4bf
JM
7087clean-dejagnu:
7088 @: $(MAKE); $(unstage)
7089 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7090 r=`${PWD_COMMAND}`; export r; \
7091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7092 $(HOST_EXPORTS) \
b813574b 7093 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7095 done; \
22121df0 7096 echo "Doing clean in dejagnu"; \
a90ef4bf 7097 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7100 "RANLIB=$${RANLIB}" \
0c24b341 7101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7102 clean) \
2a4cbe27
NN
7103 || exit 1
7104
a90ef4bf 7105@endif dejagnu
2a4cbe27 7106
a90ef4bf
JM
7107.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7108maybe-distclean-dejagnu:
7109@if dejagnu
7110maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7111
a90ef4bf
JM
7112distclean-dejagnu:
7113 @: $(MAKE); $(unstage)
7114 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7115 r=`${PWD_COMMAND}`; export r; \
7116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7117 $(HOST_EXPORTS) \
b813574b 7118 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7120 done; \
22121df0 7121 echo "Doing distclean in dejagnu"; \
a90ef4bf 7122 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7125 "RANLIB=$${RANLIB}" \
0c24b341 7126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7127 distclean) \
2a4cbe27
NN
7128 || exit 1
7129
a90ef4bf 7130@endif dejagnu
2a4cbe27 7131
a90ef4bf
JM
7132.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7133maybe-maintainer-clean-dejagnu:
7134@if dejagnu
7135maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7136
a90ef4bf
JM
7137maintainer-clean-dejagnu:
7138 @: $(MAKE); $(unstage)
7139 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7140 r=`${PWD_COMMAND}`; export r; \
7141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7142 $(HOST_EXPORTS) \
b813574b 7143 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7145 done; \
22121df0 7146 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7147 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7150 "RANLIB=$${RANLIB}" \
0c24b341 7151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7152 maintainer-clean) \
2a4cbe27
NN
7153 || exit 1
7154
a90ef4bf 7155@endif dejagnu
2a4cbe27 7156
2a4cbe27 7157
a7254363 7158
a90ef4bf
JM
7159.PHONY: configure-etc maybe-configure-etc
7160maybe-configure-etc:
4f0ef2d8 7161@if gcc-bootstrap
a90ef4bf 7162configure-etc: stage_current
4f0ef2d8 7163@endif gcc-bootstrap
a90ef4bf
JM
7164@if etc
7165maybe-configure-etc: configure-etc
7166configure-etc:
0aed8855 7167 @: $(MAKE); $(unstage)
c52c6897 7168 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7170 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7171 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7172 $(HOST_EXPORTS) \
a90ef4bf
JM
7173 echo Configuring in $(HOST_SUBDIR)/etc; \
7174 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7175 case $(srcdir) in \
b00612cc 7176 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7177 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7178 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7179 esac; \
1b6c0831
L
7180 module_srcdir=etc; \
7181 $(SHELL) \
7182 $$s/$$module_srcdir/configure \
7183 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7184 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7185 --target=${target_alias} \
2a4cbe27 7186 || exit 1
a90ef4bf 7187@endif etc
2a4cbe27 7188
a7254363
PB
7189
7190
d545f33b
PB
7191
7192
a90ef4bf
JM
7193.PHONY: all-etc maybe-all-etc
7194maybe-all-etc:
4f0ef2d8 7195@if gcc-bootstrap
a90ef4bf 7196all-etc: stage_current
4f0ef2d8 7197@endif gcc-bootstrap
a90ef4bf
JM
7198@if etc
7199TARGET-etc=all
7200maybe-all-etc: all-etc
7201all-etc: configure-etc
0aed8855 7202 @: $(MAKE); $(unstage)
4fa63067
NN
7203 @r=`${PWD_COMMAND}`; export r; \
7204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7205 $(HOST_EXPORTS) \
a90ef4bf 7206 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7207 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7208 $(TARGET-etc))
7209@endif etc
2a4cbe27 7210
a7254363 7211
d545f33b
PB
7212
7213
a90ef4bf
JM
7214.PHONY: check-etc maybe-check-etc
7215maybe-check-etc:
7216@if etc
7217maybe-check-etc: check-etc
2a4cbe27 7218
a90ef4bf 7219check-etc:
0aed8855 7220 @: $(MAKE); $(unstage)
a90ef4bf
JM
7221 @r=`${PWD_COMMAND}`; export r; \
7222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7223 $(HOST_EXPORTS) \
a90ef4bf
JM
7224 (cd $(HOST_SUBDIR)/etc && \
7225 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7226
a90ef4bf 7227@endif etc
4fa63067 7228
a90ef4bf
JM
7229.PHONY: install-etc maybe-install-etc
7230maybe-install-etc:
7231@if etc
7232maybe-install-etc: install-etc
4fa63067 7233
a90ef4bf 7234install-etc: installdirs
0aed8855 7235 @: $(MAKE); $(unstage)
4fa63067 7236 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7238 $(HOST_EXPORTS) \
a90ef4bf 7239 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7240 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7241
a90ef4bf 7242@endif etc
2a4cbe27 7243
a90ef4bf
JM
7244.PHONY: install-strip-etc maybe-install-strip-etc
7245maybe-install-strip-etc:
7246@if etc
7247maybe-install-strip-etc: install-strip-etc
9b980aa1 7248
a90ef4bf 7249install-strip-etc: installdirs
9b980aa1
RW
7250 @: $(MAKE); $(unstage)
7251 @r=`${PWD_COMMAND}`; export r; \
7252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7253 $(HOST_EXPORTS) \
a90ef4bf 7254 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7255 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7256
a90ef4bf 7257@endif etc
9b980aa1 7258
56a8fe78 7259# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7260
a90ef4bf
JM
7261.PHONY: maybe-info-etc info-etc
7262maybe-info-etc:
7263@if etc
7264maybe-info-etc: info-etc
4fa63067 7265
a90ef4bf
JM
7266info-etc: \
7267 configure-etc
0aed8855 7268 @: $(MAKE); $(unstage)
a90ef4bf 7269 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7270 r=`${PWD_COMMAND}`; export r; \
7271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7272 $(HOST_EXPORTS) \
b813574b 7273 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7275 done; \
22121df0 7276 echo "Doing info in etc"; \
a90ef4bf 7277 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7280 "RANLIB=$${RANLIB}" \
0c24b341 7281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7282 info) \
2a4cbe27
NN
7283 || exit 1
7284
a90ef4bf 7285@endif etc
2a4cbe27 7286
a90ef4bf
JM
7287.PHONY: maybe-dvi-etc dvi-etc
7288maybe-dvi-etc:
7289@if etc
7290maybe-dvi-etc: dvi-etc
2a4cbe27 7291
a90ef4bf
JM
7292dvi-etc: \
7293 configure-etc
0aed8855 7294 @: $(MAKE); $(unstage)
a90ef4bf 7295 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7296 r=`${PWD_COMMAND}`; export r; \
7297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7298 $(HOST_EXPORTS) \
b813574b 7299 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7301 done; \
22121df0 7302 echo "Doing dvi in etc"; \
a90ef4bf 7303 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7306 "RANLIB=$${RANLIB}" \
0c24b341 7307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7308 dvi) \
2a4cbe27
NN
7309 || exit 1
7310
a90ef4bf 7311@endif etc
2a4cbe27 7312
a90ef4bf
JM
7313.PHONY: maybe-pdf-etc pdf-etc
7314maybe-pdf-etc:
7315@if etc
7316maybe-pdf-etc: pdf-etc
56a8fe78 7317
a90ef4bf
JM
7318pdf-etc: \
7319 configure-etc
56a8fe78 7320 @: $(MAKE); $(unstage)
a90ef4bf 7321 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7322 r=`${PWD_COMMAND}`; export r; \
7323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7324 $(HOST_EXPORTS) \
7325 for flag in $(EXTRA_HOST_FLAGS) ; do \
7326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7327 done; \
22121df0 7328 echo "Doing pdf in etc"; \
a90ef4bf 7329 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7332 "RANLIB=$${RANLIB}" \
0c24b341 7333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7334 pdf) \
7335 || exit 1
7336
a90ef4bf 7337@endif etc
56a8fe78 7338
a90ef4bf
JM
7339.PHONY: maybe-html-etc html-etc
7340maybe-html-etc:
7341@if etc
7342maybe-html-etc: html-etc
6d389afc 7343
a90ef4bf
JM
7344html-etc: \
7345 configure-etc
0aed8855 7346 @: $(MAKE); $(unstage)
a90ef4bf 7347 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7348 r=`${PWD_COMMAND}`; export r; \
7349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7350 $(HOST_EXPORTS) \
7351 for flag in $(EXTRA_HOST_FLAGS) ; do \
7352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7353 done; \
22121df0 7354 echo "Doing html in etc"; \
a90ef4bf 7355 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7358 "RANLIB=$${RANLIB}" \
0c24b341 7359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7360 html) \
7361 || exit 1
7362
a90ef4bf 7363@endif etc
6d389afc 7364
a90ef4bf
JM
7365.PHONY: maybe-TAGS-etc TAGS-etc
7366maybe-TAGS-etc:
7367@if etc
7368maybe-TAGS-etc: TAGS-etc
2a4cbe27 7369
a90ef4bf
JM
7370TAGS-etc: \
7371 configure-etc
0aed8855 7372 @: $(MAKE); $(unstage)
a90ef4bf 7373 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7374 r=`${PWD_COMMAND}`; export r; \
7375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7376 $(HOST_EXPORTS) \
b813574b 7377 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7379 done; \
22121df0 7380 echo "Doing TAGS in etc"; \
a90ef4bf 7381 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7384 "RANLIB=$${RANLIB}" \
0c24b341 7385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7386 TAGS) \
2a4cbe27
NN
7387 || exit 1
7388
a90ef4bf 7389@endif etc
2a4cbe27 7390
a90ef4bf
JM
7391.PHONY: maybe-install-info-etc install-info-etc
7392maybe-install-info-etc:
7393@if etc
7394maybe-install-info-etc: install-info-etc
2a4cbe27 7395
a90ef4bf
JM
7396install-info-etc: \
7397 configure-etc \
7398 info-etc
0aed8855 7399 @: $(MAKE); $(unstage)
a90ef4bf 7400 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7401 r=`${PWD_COMMAND}`; export r; \
7402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7403 $(HOST_EXPORTS) \
b813574b 7404 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7406 done; \
22121df0 7407 echo "Doing install-info in etc"; \
a90ef4bf 7408 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7411 "RANLIB=$${RANLIB}" \
0c24b341 7412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7413 install-info) \
2a4cbe27
NN
7414 || exit 1
7415
a90ef4bf 7416@endif etc
2a4cbe27 7417
a90ef4bf
JM
7418.PHONY: maybe-install-pdf-etc install-pdf-etc
7419maybe-install-pdf-etc:
7420@if etc
7421maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7422
a90ef4bf
JM
7423install-pdf-etc: \
7424 configure-etc \
7425 pdf-etc
a3ca38d2 7426 @: $(MAKE); $(unstage)
a90ef4bf 7427 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7428 r=`${PWD_COMMAND}`; export r; \
7429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7430 $(HOST_EXPORTS) \
7431 for flag in $(EXTRA_HOST_FLAGS) ; do \
7432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7433 done; \
22121df0 7434 echo "Doing install-pdf in etc"; \
a90ef4bf 7435 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7438 "RANLIB=$${RANLIB}" \
0c24b341 7439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7440 install-pdf) \
7441 || exit 1
7442
a90ef4bf 7443@endif etc
a3ca38d2 7444
a90ef4bf
JM
7445.PHONY: maybe-install-html-etc install-html-etc
7446maybe-install-html-etc:
7447@if etc
7448maybe-install-html-etc: install-html-etc
108a6f8e 7449
a90ef4bf
JM
7450install-html-etc: \
7451 configure-etc \
7452 html-etc
108a6f8e 7453 @: $(MAKE); $(unstage)
a90ef4bf 7454 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7455 r=`${PWD_COMMAND}`; export r; \
7456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7457 $(HOST_EXPORTS) \
7458 for flag in $(EXTRA_HOST_FLAGS) ; do \
7459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7460 done; \
22121df0 7461 echo "Doing install-html in etc"; \
a90ef4bf 7462 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7465 "RANLIB=$${RANLIB}" \
0c24b341 7466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7467 install-html) \
7468 || exit 1
7469
a90ef4bf 7470@endif etc
108a6f8e 7471
a90ef4bf
JM
7472.PHONY: maybe-installcheck-etc installcheck-etc
7473maybe-installcheck-etc:
7474@if etc
7475maybe-installcheck-etc: installcheck-etc
2a4cbe27 7476
a90ef4bf
JM
7477installcheck-etc: \
7478 configure-etc
0aed8855 7479 @: $(MAKE); $(unstage)
a90ef4bf 7480 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7481 r=`${PWD_COMMAND}`; export r; \
7482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7483 $(HOST_EXPORTS) \
b813574b 7484 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7486 done; \
22121df0 7487 echo "Doing installcheck in etc"; \
a90ef4bf 7488 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7491 "RANLIB=$${RANLIB}" \
0c24b341 7492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7493 installcheck) \
2a4cbe27
NN
7494 || exit 1
7495
a90ef4bf 7496@endif etc
2a4cbe27 7497
a90ef4bf
JM
7498.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7499maybe-mostlyclean-etc:
7500@if etc
7501maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7502
a90ef4bf 7503mostlyclean-etc:
0aed8855 7504 @: $(MAKE); $(unstage)
a90ef4bf 7505 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7506 r=`${PWD_COMMAND}`; export r; \
7507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7508 $(HOST_EXPORTS) \
b813574b 7509 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7511 done; \
22121df0 7512 echo "Doing mostlyclean in etc"; \
a90ef4bf 7513 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7516 "RANLIB=$${RANLIB}" \
0c24b341 7517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7518 mostlyclean) \
2a4cbe27
NN
7519 || exit 1
7520
a90ef4bf 7521@endif etc
2a4cbe27 7522
a90ef4bf
JM
7523.PHONY: maybe-clean-etc clean-etc
7524maybe-clean-etc:
7525@if etc
7526maybe-clean-etc: clean-etc
2a4cbe27 7527
a90ef4bf 7528clean-etc:
0aed8855 7529 @: $(MAKE); $(unstage)
a90ef4bf 7530 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7531 r=`${PWD_COMMAND}`; export r; \
7532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7533 $(HOST_EXPORTS) \
b813574b 7534 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7536 done; \
22121df0 7537 echo "Doing clean in etc"; \
a90ef4bf 7538 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7541 "RANLIB=$${RANLIB}" \
0c24b341 7542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7543 clean) \
2a4cbe27
NN
7544 || exit 1
7545
a90ef4bf 7546@endif etc
2a4cbe27 7547
a90ef4bf
JM
7548.PHONY: maybe-distclean-etc distclean-etc
7549maybe-distclean-etc:
7550@if etc
7551maybe-distclean-etc: distclean-etc
2a4cbe27 7552
a90ef4bf 7553distclean-etc:
0aed8855 7554 @: $(MAKE); $(unstage)
a90ef4bf 7555 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7556 r=`${PWD_COMMAND}`; export r; \
7557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7558 $(HOST_EXPORTS) \
b813574b 7559 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7561 done; \
22121df0 7562 echo "Doing distclean in etc"; \
a90ef4bf 7563 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7566 "RANLIB=$${RANLIB}" \
0c24b341 7567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7568 distclean) \
2a4cbe27
NN
7569 || exit 1
7570
a90ef4bf 7571@endif etc
2a4cbe27 7572
a90ef4bf
JM
7573.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7574maybe-maintainer-clean-etc:
7575@if etc
7576maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7577
a90ef4bf 7578maintainer-clean-etc:
0aed8855 7579 @: $(MAKE); $(unstage)
a90ef4bf 7580 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7581 r=`${PWD_COMMAND}`; export r; \
7582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7583 $(HOST_EXPORTS) \
b813574b 7584 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7586 done; \
22121df0 7587 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7588 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7591 "RANLIB=$${RANLIB}" \
0c24b341 7592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7593 maintainer-clean) \
2a4cbe27
NN
7594 || exit 1
7595
a90ef4bf 7596@endif etc
2a4cbe27 7597
2a4cbe27 7598
a7254363 7599
a90ef4bf
JM
7600.PHONY: configure-fastjar maybe-configure-fastjar
7601maybe-configure-fastjar:
4f0ef2d8 7602@if gcc-bootstrap
a90ef4bf 7603configure-fastjar: stage_current
4f0ef2d8 7604@endif gcc-bootstrap
a90ef4bf
JM
7605@if fastjar
7606maybe-configure-fastjar: configure-fastjar
7607configure-fastjar:
0aed8855 7608 @: $(MAKE); $(unstage)
c52c6897 7609 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7611 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7612 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7613 $(HOST_EXPORTS) \
a90ef4bf
JM
7614 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7615 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7616 case $(srcdir) in \
b00612cc 7617 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7618 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7619 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7620 esac; \
1b6c0831
L
7621 module_srcdir=fastjar; \
7622 $(SHELL) \
7623 $$s/$$module_srcdir/configure \
7624 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7625 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7626 --target=${target_alias} \
4fa63067 7627 || exit 1
a90ef4bf 7628@endif fastjar
4fa63067 7629
a7254363
PB
7630
7631
d545f33b
PB
7632
7633
a90ef4bf
JM
7634.PHONY: all-fastjar maybe-all-fastjar
7635maybe-all-fastjar:
4f0ef2d8 7636@if gcc-bootstrap
a90ef4bf 7637all-fastjar: stage_current
4f0ef2d8 7638@endif gcc-bootstrap
a90ef4bf
JM
7639@if fastjar
7640TARGET-fastjar=all
7641maybe-all-fastjar: all-fastjar
7642all-fastjar: configure-fastjar
0aed8855 7643 @: $(MAKE); $(unstage)
4fa63067
NN
7644 @r=`${PWD_COMMAND}`; export r; \
7645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7646 $(HOST_EXPORTS) \
a90ef4bf 7647 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7648 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7649 $(TARGET-fastjar))
7650@endif fastjar
4fa63067 7651
a7254363 7652
d545f33b
PB
7653
7654
a90ef4bf
JM
7655.PHONY: check-fastjar maybe-check-fastjar
7656maybe-check-fastjar:
7657@if fastjar
7658maybe-check-fastjar: check-fastjar
4fa63067
NN
7659
7660# This module is only tested in a native toolchain.
a90ef4bf 7661check-fastjar:
0aed8855 7662 @: $(MAKE); $(unstage)
22121df0 7663 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7664 r=`${PWD_COMMAND}`; export r; \
7665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7666 $(HOST_EXPORTS) \
a90ef4bf 7667 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7668 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7669 fi
7670
a90ef4bf 7671@endif fastjar
4fa63067 7672
a90ef4bf
JM
7673.PHONY: install-fastjar maybe-install-fastjar
7674maybe-install-fastjar:
7675@if fastjar
7676maybe-install-fastjar: install-fastjar
4fa63067 7677
a90ef4bf 7678install-fastjar: installdirs
0aed8855 7679 @: $(MAKE); $(unstage)
4fa63067
NN
7680 @r=`${PWD_COMMAND}`; export r; \
7681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7682 $(HOST_EXPORTS) \
a90ef4bf 7683 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7684 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7685
a90ef4bf 7686@endif fastjar
4fa63067 7687
a90ef4bf
JM
7688.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7689maybe-install-strip-fastjar:
7690@if fastjar
7691maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7692
a90ef4bf 7693install-strip-fastjar: installdirs
9b980aa1
RW
7694 @: $(MAKE); $(unstage)
7695 @r=`${PWD_COMMAND}`; export r; \
7696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7697 $(HOST_EXPORTS) \
a90ef4bf 7698 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7699 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7700
a90ef4bf 7701@endif fastjar
9b980aa1 7702
56a8fe78 7703# Other targets (info, dvi, pdf, etc.)
4fa63067 7704
a90ef4bf
JM
7705.PHONY: maybe-info-fastjar info-fastjar
7706maybe-info-fastjar:
7707@if fastjar
7708maybe-info-fastjar: info-fastjar
4fa63067 7709
a90ef4bf
JM
7710info-fastjar: \
7711 configure-fastjar
0aed8855 7712 @: $(MAKE); $(unstage)
a90ef4bf 7713 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7714 r=`${PWD_COMMAND}`; export r; \
7715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7716 $(HOST_EXPORTS) \
b813574b 7717 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7719 done; \
22121df0 7720 echo "Doing info in fastjar"; \
a90ef4bf 7721 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7724 "RANLIB=$${RANLIB}" \
0c24b341 7725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7726 info) \
2a4cbe27
NN
7727 || exit 1
7728
a90ef4bf 7729@endif fastjar
2a4cbe27 7730
a90ef4bf
JM
7731.PHONY: maybe-dvi-fastjar dvi-fastjar
7732maybe-dvi-fastjar:
7733@if fastjar
7734maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7735
a90ef4bf
JM
7736dvi-fastjar: \
7737 configure-fastjar
0aed8855 7738 @: $(MAKE); $(unstage)
a90ef4bf 7739 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7740 r=`${PWD_COMMAND}`; export r; \
7741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7742 $(HOST_EXPORTS) \
b813574b 7743 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7745 done; \
22121df0 7746 echo "Doing dvi in fastjar"; \
a90ef4bf 7747 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7750 "RANLIB=$${RANLIB}" \
0c24b341 7751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7752 dvi) \
2a4cbe27
NN
7753 || exit 1
7754
a90ef4bf 7755@endif fastjar
2a4cbe27 7756
a90ef4bf
JM
7757.PHONY: maybe-pdf-fastjar pdf-fastjar
7758maybe-pdf-fastjar:
7759@if fastjar
7760maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7761
a90ef4bf
JM
7762pdf-fastjar: \
7763 configure-fastjar
56a8fe78 7764 @: $(MAKE); $(unstage)
a90ef4bf 7765 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7766 r=`${PWD_COMMAND}`; export r; \
7767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7768 $(HOST_EXPORTS) \
7769 for flag in $(EXTRA_HOST_FLAGS) ; do \
7770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7771 done; \
22121df0 7772 echo "Doing pdf in fastjar"; \
a90ef4bf 7773 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7776 "RANLIB=$${RANLIB}" \
0c24b341 7777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7778 pdf) \
7779 || exit 1
7780
a90ef4bf 7781@endif fastjar
56a8fe78 7782
a90ef4bf
JM
7783.PHONY: maybe-html-fastjar html-fastjar
7784maybe-html-fastjar:
7785@if fastjar
7786maybe-html-fastjar: html-fastjar
6d389afc 7787
a90ef4bf
JM
7788html-fastjar: \
7789 configure-fastjar
0aed8855 7790 @: $(MAKE); $(unstage)
a90ef4bf 7791 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7792 r=`${PWD_COMMAND}`; export r; \
7793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7794 $(HOST_EXPORTS) \
7795 for flag in $(EXTRA_HOST_FLAGS) ; do \
7796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7797 done; \
22121df0 7798 echo "Doing html in fastjar"; \
a90ef4bf 7799 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7802 "RANLIB=$${RANLIB}" \
0c24b341 7803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7804 html) \
7805 || exit 1
7806
a90ef4bf 7807@endif fastjar
6d389afc 7808
a90ef4bf
JM
7809.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7810maybe-TAGS-fastjar:
7811@if fastjar
7812maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7813
a90ef4bf
JM
7814TAGS-fastjar: \
7815 configure-fastjar
0aed8855 7816 @: $(MAKE); $(unstage)
a90ef4bf 7817 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7818 r=`${PWD_COMMAND}`; export r; \
7819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7820 $(HOST_EXPORTS) \
b813574b 7821 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7823 done; \
22121df0 7824 echo "Doing TAGS in fastjar"; \
a90ef4bf 7825 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7828 "RANLIB=$${RANLIB}" \
0c24b341 7829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7830 TAGS) \
2a4cbe27
NN
7831 || exit 1
7832
a90ef4bf 7833@endif fastjar
2a4cbe27 7834
a90ef4bf
JM
7835.PHONY: maybe-install-info-fastjar install-info-fastjar
7836maybe-install-info-fastjar:
7837@if fastjar
7838maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7839
a90ef4bf
JM
7840install-info-fastjar: \
7841 configure-fastjar \
7842 info-fastjar
0aed8855 7843 @: $(MAKE); $(unstage)
a90ef4bf 7844 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7845 r=`${PWD_COMMAND}`; export r; \
7846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7847 $(HOST_EXPORTS) \
b813574b 7848 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7850 done; \
22121df0 7851 echo "Doing install-info in fastjar"; \
a90ef4bf 7852 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7855 "RANLIB=$${RANLIB}" \
0c24b341 7856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7857 install-info) \
2a4cbe27
NN
7858 || exit 1
7859
a90ef4bf 7860@endif fastjar
2a4cbe27 7861
a90ef4bf
JM
7862.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7863maybe-install-pdf-fastjar:
7864@if fastjar
7865maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7866
a90ef4bf
JM
7867install-pdf-fastjar: \
7868 configure-fastjar \
7869 pdf-fastjar
a3ca38d2 7870 @: $(MAKE); $(unstage)
a90ef4bf 7871 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7872 r=`${PWD_COMMAND}`; export r; \
7873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7874 $(HOST_EXPORTS) \
7875 for flag in $(EXTRA_HOST_FLAGS) ; do \
7876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7877 done; \
22121df0 7878 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7879 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7882 "RANLIB=$${RANLIB}" \
0c24b341 7883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7884 install-pdf) \
7885 || exit 1
7886
a90ef4bf 7887@endif fastjar
a3ca38d2 7888
a90ef4bf
JM
7889.PHONY: maybe-install-html-fastjar install-html-fastjar
7890maybe-install-html-fastjar:
7891@if fastjar
7892maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7893
a90ef4bf
JM
7894install-html-fastjar: \
7895 configure-fastjar \
7896 html-fastjar
108a6f8e 7897 @: $(MAKE); $(unstage)
a90ef4bf 7898 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7899 r=`${PWD_COMMAND}`; export r; \
7900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7901 $(HOST_EXPORTS) \
7902 for flag in $(EXTRA_HOST_FLAGS) ; do \
7903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7904 done; \
22121df0 7905 echo "Doing install-html in fastjar"; \
a90ef4bf 7906 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7909 "RANLIB=$${RANLIB}" \
0c24b341 7910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7911 install-html) \
7912 || exit 1
7913
a90ef4bf 7914@endif fastjar
108a6f8e 7915
a90ef4bf
JM
7916.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7917maybe-installcheck-fastjar:
7918@if fastjar
7919maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7920
a90ef4bf
JM
7921installcheck-fastjar: \
7922 configure-fastjar
0aed8855 7923 @: $(MAKE); $(unstage)
a90ef4bf 7924 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7925 r=`${PWD_COMMAND}`; export r; \
7926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7927 $(HOST_EXPORTS) \
b813574b 7928 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7930 done; \
22121df0 7931 echo "Doing installcheck in fastjar"; \
a90ef4bf 7932 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7935 "RANLIB=$${RANLIB}" \
0c24b341 7936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7937 installcheck) \
2a4cbe27
NN
7938 || exit 1
7939
a90ef4bf 7940@endif fastjar
2a4cbe27 7941
a90ef4bf
JM
7942.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7943maybe-mostlyclean-fastjar:
7944@if fastjar
7945maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7946
a90ef4bf 7947mostlyclean-fastjar:
0aed8855 7948 @: $(MAKE); $(unstage)
a90ef4bf 7949 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7950 r=`${PWD_COMMAND}`; export r; \
7951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7952 $(HOST_EXPORTS) \
b813574b 7953 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7955 done; \
22121df0 7956 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 7957 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7960 "RANLIB=$${RANLIB}" \
0c24b341 7961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7962 mostlyclean) \
2a4cbe27
NN
7963 || exit 1
7964
a90ef4bf 7965@endif fastjar
2a4cbe27 7966
a90ef4bf
JM
7967.PHONY: maybe-clean-fastjar clean-fastjar
7968maybe-clean-fastjar:
7969@if fastjar
7970maybe-clean-fastjar: clean-fastjar
2a4cbe27 7971
a90ef4bf 7972clean-fastjar:
0aed8855 7973 @: $(MAKE); $(unstage)
a90ef4bf 7974 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7975 r=`${PWD_COMMAND}`; export r; \
7976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7977 $(HOST_EXPORTS) \
b813574b 7978 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7980 done; \
22121df0 7981 echo "Doing clean in fastjar"; \
a90ef4bf 7982 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7985 "RANLIB=$${RANLIB}" \
0c24b341 7986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7987 clean) \
2a4cbe27
NN
7988 || exit 1
7989
a90ef4bf 7990@endif fastjar
2a4cbe27 7991
a90ef4bf
JM
7992.PHONY: maybe-distclean-fastjar distclean-fastjar
7993maybe-distclean-fastjar:
7994@if fastjar
7995maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7996
a90ef4bf 7997distclean-fastjar:
0aed8855 7998 @: $(MAKE); $(unstage)
a90ef4bf 7999 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8000 r=`${PWD_COMMAND}`; export r; \
8001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8002 $(HOST_EXPORTS) \
b813574b 8003 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8005 done; \
22121df0 8006 echo "Doing distclean in fastjar"; \
a90ef4bf 8007 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8010 "RANLIB=$${RANLIB}" \
0c24b341 8011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8012 distclean) \
2a4cbe27
NN
8013 || exit 1
8014
a90ef4bf 8015@endif fastjar
2a4cbe27 8016
a90ef4bf
JM
8017.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
8018maybe-maintainer-clean-fastjar:
8019@if fastjar
8020maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
8021
8022maintainer-clean-fastjar:
0aed8855 8023 @: $(MAKE); $(unstage)
a90ef4bf 8024 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8025 r=`${PWD_COMMAND}`; export r; \
8026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8027 $(HOST_EXPORTS) \
b813574b 8028 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8030 done; \
22121df0 8031 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 8032 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8035 "RANLIB=$${RANLIB}" \
0c24b341 8036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8037 maintainer-clean) \
2a4cbe27
NN
8038 || exit 1
8039
a90ef4bf 8040@endif fastjar
2a4cbe27 8041
2a4cbe27 8042
a7254363 8043
a90ef4bf
JM
8044.PHONY: configure-fixincludes maybe-configure-fixincludes
8045maybe-configure-fixincludes:
4f0ef2d8 8046@if gcc-bootstrap
a90ef4bf 8047configure-fixincludes: stage_current
4f0ef2d8 8048@endif gcc-bootstrap
a90ef4bf
JM
8049@if fixincludes
8050maybe-configure-fixincludes: configure-fixincludes
8051configure-fixincludes:
c52c6897 8052 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8054 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8055 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8056 $(HOST_EXPORTS) \
a90ef4bf
JM
8057 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8058 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8059 case $(srcdir) in \
b00612cc 8060 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8061 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8062 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8063 esac; \
1b6c0831
L
8064 module_srcdir=fixincludes; \
8065 $(SHELL) \
8066 $$s/$$module_srcdir/configure \
8067 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8068 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8069 --target=${target_alias} \
4fa63067 8070 || exit 1
a90ef4bf 8071@endif fixincludes
4fa63067 8072
a7254363
PB
8073
8074
201f096f 8075.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8076maybe-configure-stage1-fixincludes:
8077@if fixincludes-bootstrap
8078maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8079configure-stage1-fixincludes:
8080 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8081 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8082 @r=`${PWD_COMMAND}`; export r; \
8083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8084 TFLAGS="$(STAGE1_TFLAGS)"; \
8085 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8086 $(HOST_EXPORTS) \
8087 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8088 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8089 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8090 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8091 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8092 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8093 case $(srcdir) in \
8094 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8095 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8096 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8097 esac; \
1b6c0831
L
8098 module_srcdir=fixincludes; \
8099 $(SHELL) $$s/$$module_srcdir/configure \
8100 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8101 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8102 --target=${target_alias} \
8103 \
201f096f 8104 $(STAGE1_CONFIGURE_FLAGS)
8105@endif fixincludes-bootstrap
8106
8107.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8108maybe-configure-stage2-fixincludes:
8109@if fixincludes-bootstrap
8110maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8111configure-stage2-fixincludes:
8112 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8113 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8114 @r=`${PWD_COMMAND}`; export r; \
8115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8116 TFLAGS="$(STAGE2_TFLAGS)"; \
8117 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8118 $(HOST_EXPORTS) \
8119 $(POSTSTAGE1_HOST_EXPORTS) \
8120 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8121 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8122 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8123 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8124 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8125 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8126 case $(srcdir) in \
8127 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8128 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8129 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8130 esac; \
1b6c0831
L
8131 module_srcdir=fixincludes; \
8132 $(SHELL) $$s/$$module_srcdir/configure \
8133 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8134 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8135 --target=${target_alias} \
22121df0 8136 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8137 $(STAGE2_CONFIGURE_FLAGS)
8138@endif fixincludes-bootstrap
8139
8140.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8141maybe-configure-stage3-fixincludes:
8142@if fixincludes-bootstrap
8143maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8144configure-stage3-fixincludes:
8145 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8146 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8147 @r=`${PWD_COMMAND}`; export r; \
8148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8149 TFLAGS="$(STAGE3_TFLAGS)"; \
8150 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8151 $(HOST_EXPORTS) \
8152 $(POSTSTAGE1_HOST_EXPORTS) \
8153 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8154 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8155 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8156 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8157 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8158 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8159 case $(srcdir) in \
8160 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8161 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8162 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8163 esac; \
1b6c0831
L
8164 module_srcdir=fixincludes; \
8165 $(SHELL) $$s/$$module_srcdir/configure \
8166 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8167 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8168 --target=${target_alias} \
22121df0 8169 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8170 $(STAGE3_CONFIGURE_FLAGS)
8171@endif fixincludes-bootstrap
8172
8173.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8174maybe-configure-stage4-fixincludes:
8175@if fixincludes-bootstrap
8176maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8177configure-stage4-fixincludes:
8178 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8179 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8180 @r=`${PWD_COMMAND}`; export r; \
8181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8182 TFLAGS="$(STAGE4_TFLAGS)"; \
8183 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8184 $(HOST_EXPORTS) \
8185 $(POSTSTAGE1_HOST_EXPORTS) \
8186 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8187 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8188 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8189 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8190 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8191 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8192 case $(srcdir) in \
8193 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8194 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8195 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8196 esac; \
1b6c0831
L
8197 module_srcdir=fixincludes; \
8198 $(SHELL) $$s/$$module_srcdir/configure \
8199 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8200 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8201 --target=${target_alias} \
22121df0 8202 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8203 $(STAGE4_CONFIGURE_FLAGS)
8204@endif fixincludes-bootstrap
8205
8206.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8207maybe-configure-stageprofile-fixincludes:
8208@if fixincludes-bootstrap
8209maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8210configure-stageprofile-fixincludes:
8211 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8212 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8213 @r=`${PWD_COMMAND}`; export r; \
8214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8215 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8216 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8217 $(HOST_EXPORTS) \
8218 $(POSTSTAGE1_HOST_EXPORTS) \
8219 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8220 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8221 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8222 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8223 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8224 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8225 case $(srcdir) in \
8226 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8227 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8228 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8229 esac; \
1b6c0831
L
8230 module_srcdir=fixincludes; \
8231 $(SHELL) $$s/$$module_srcdir/configure \
8232 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8233 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8234 --target=${target_alias} \
22121df0 8235 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8236 $(STAGEprofile_CONFIGURE_FLAGS)
8237@endif fixincludes-bootstrap
8238
8239.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8240maybe-configure-stagefeedback-fixincludes:
8241@if fixincludes-bootstrap
8242maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8243configure-stagefeedback-fixincludes:
8244 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8245 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8246 @r=`${PWD_COMMAND}`; export r; \
8247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8248 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8249 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8250 $(HOST_EXPORTS) \
8251 $(POSTSTAGE1_HOST_EXPORTS) \
8252 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8253 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8254 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8255 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8256 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8257 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8258 case $(srcdir) in \
8259 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8260 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8261 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8262 esac; \
1b6c0831
L
8263 module_srcdir=fixincludes; \
8264 $(SHELL) $$s/$$module_srcdir/configure \
8265 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8266 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8267 --target=${target_alias} \
22121df0 8268 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8269 $(STAGEfeedback_CONFIGURE_FLAGS)
8270@endif fixincludes-bootstrap
8271
8272
8273
d545f33b
PB
8274
8275
a90ef4bf
JM
8276.PHONY: all-fixincludes maybe-all-fixincludes
8277maybe-all-fixincludes:
4f0ef2d8 8278@if gcc-bootstrap
a90ef4bf 8279all-fixincludes: stage_current
4f0ef2d8 8280@endif gcc-bootstrap
a90ef4bf
JM
8281@if fixincludes
8282TARGET-fixincludes=all
8283maybe-all-fixincludes: all-fixincludes
8284all-fixincludes: configure-fixincludes
4fa63067
NN
8285 @r=`${PWD_COMMAND}`; export r; \
8286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8287 $(HOST_EXPORTS) \
a90ef4bf 8288 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8289 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8290 $(TARGET-fixincludes))
8291@endif fixincludes
4fa63067 8292
a7254363 8293
d545f33b 8294
201f096f 8295.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8296.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8297maybe-all-stage1-fixincludes:
8298maybe-clean-stage1-fixincludes:
8299@if fixincludes-bootstrap
8300maybe-all-stage1-fixincludes: all-stage1-fixincludes
8301all-stage1: all-stage1-fixincludes
8302TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8303all-stage1-fixincludes: configure-stage1-fixincludes
8304 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8305 @r=`${PWD_COMMAND}`; export r; \
8306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8307 TFLAGS="$(STAGE1_TFLAGS)"; \
8308 $(HOST_EXPORTS) \
8309 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8310 \
201f096f 8311 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8312 CFLAGS="$(STAGE1_CFLAGS)" \
8313 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8314 LIBCFLAGS="$(LIBCFLAGS)" \
8315 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8316 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8317 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8318 $(EXTRA_HOST_FLAGS) \
8319 $(STAGE1_FLAGS_TO_PASS) \
05a13254 8320 TFLAGS="$(STAGE1_TFLAGS)" \
201f096f 8321 $(TARGET-stage1-fixincludes)
8322
8323maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8324clean-stage1: clean-stage1-fixincludes
8325clean-stage1-fixincludes:
8326 @if [ $(current_stage) = stage1 ]; then \
8327 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8328 else \
8329 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8330 $(MAKE) stage1-start; \
8331 fi; \
8332 cd $(HOST_SUBDIR)/fixincludes && \
8333 $(MAKE) $(EXTRA_HOST_FLAGS) \
8334 $(STAGE1_FLAGS_TO_PASS) clean
8335@endif fixincludes-bootstrap
8336
8337
8338.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8339.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8340maybe-all-stage2-fixincludes:
8341maybe-clean-stage2-fixincludes:
8342@if fixincludes-bootstrap
8343maybe-all-stage2-fixincludes: all-stage2-fixincludes
8344all-stage2: all-stage2-fixincludes
8345TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8346all-stage2-fixincludes: configure-stage2-fixincludes
8347 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8348 @r=`${PWD_COMMAND}`; export r; \
8349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8350 TFLAGS="$(STAGE2_TFLAGS)"; \
8351 $(HOST_EXPORTS) \
8352 $(POSTSTAGE1_HOST_EXPORTS) \
8353 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8354 \
201f096f 8355 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8356 CFLAGS="$(STAGE2_CFLAGS)" \
8357 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8358 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8359 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8360 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8361 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8362 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8363 TFLAGS="$(STAGE2_TFLAGS)" \
201f096f 8364 $(TARGET-stage2-fixincludes)
8365
8366maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8367clean-stage2: clean-stage2-fixincludes
8368clean-stage2-fixincludes:
8369 @if [ $(current_stage) = stage2 ]; then \
8370 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8371 else \
8372 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8373 $(MAKE) stage2-start; \
8374 fi; \
8375 cd $(HOST_SUBDIR)/fixincludes && \
8376 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8377@endif fixincludes-bootstrap
8378
8379
8380.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8381.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8382maybe-all-stage3-fixincludes:
8383maybe-clean-stage3-fixincludes:
8384@if fixincludes-bootstrap
8385maybe-all-stage3-fixincludes: all-stage3-fixincludes
8386all-stage3: all-stage3-fixincludes
8387TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8388all-stage3-fixincludes: configure-stage3-fixincludes
8389 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8390 @r=`${PWD_COMMAND}`; export r; \
8391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8392 TFLAGS="$(STAGE3_TFLAGS)"; \
8393 $(HOST_EXPORTS) \
8394 $(POSTSTAGE1_HOST_EXPORTS) \
8395 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8396 \
201f096f 8397 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8398 CFLAGS="$(STAGE3_CFLAGS)" \
8399 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8400 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8401 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8402 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8403 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8404 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8405 TFLAGS="$(STAGE3_TFLAGS)" \
201f096f 8406 $(TARGET-stage3-fixincludes)
8407
8408maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8409clean-stage3: clean-stage3-fixincludes
8410clean-stage3-fixincludes:
8411 @if [ $(current_stage) = stage3 ]; then \
8412 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8413 else \
8414 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8415 $(MAKE) stage3-start; \
8416 fi; \
8417 cd $(HOST_SUBDIR)/fixincludes && \
8418 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8419@endif fixincludes-bootstrap
8420
8421
8422.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8423.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8424maybe-all-stage4-fixincludes:
8425maybe-clean-stage4-fixincludes:
8426@if fixincludes-bootstrap
8427maybe-all-stage4-fixincludes: all-stage4-fixincludes
8428all-stage4: all-stage4-fixincludes
8429TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8430all-stage4-fixincludes: configure-stage4-fixincludes
8431 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8432 @r=`${PWD_COMMAND}`; export r; \
8433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8434 TFLAGS="$(STAGE4_TFLAGS)"; \
8435 $(HOST_EXPORTS) \
8436 $(POSTSTAGE1_HOST_EXPORTS) \
8437 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8438 \
201f096f 8439 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8440 CFLAGS="$(STAGE4_CFLAGS)" \
8441 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8442 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8443 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8444 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8445 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8446 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8447 TFLAGS="$(STAGE4_TFLAGS)" \
201f096f 8448 $(TARGET-stage4-fixincludes)
8449
8450maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8451clean-stage4: clean-stage4-fixincludes
8452clean-stage4-fixincludes:
8453 @if [ $(current_stage) = stage4 ]; then \
8454 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8455 else \
8456 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8457 $(MAKE) stage4-start; \
8458 fi; \
8459 cd $(HOST_SUBDIR)/fixincludes && \
8460 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8461@endif fixincludes-bootstrap
8462
8463
8464.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8465.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8466maybe-all-stageprofile-fixincludes:
8467maybe-clean-stageprofile-fixincludes:
8468@if fixincludes-bootstrap
8469maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8470all-stageprofile: all-stageprofile-fixincludes
8471TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8472all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8473 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8474 @r=`${PWD_COMMAND}`; export r; \
8475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8476 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8477 $(HOST_EXPORTS) \
8478 $(POSTSTAGE1_HOST_EXPORTS) \
8479 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8480 \
201f096f 8481 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8482 CFLAGS="$(STAGEprofile_CFLAGS)" \
8483 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8484 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8485 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8486 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8487 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8488 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8489 TFLAGS="$(STAGEprofile_TFLAGS)" \
201f096f 8490 $(TARGET-stageprofile-fixincludes)
8491
8492maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8493clean-stageprofile: clean-stageprofile-fixincludes
8494clean-stageprofile-fixincludes:
8495 @if [ $(current_stage) = stageprofile ]; then \
8496 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8497 else \
8498 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8499 $(MAKE) stageprofile-start; \
8500 fi; \
8501 cd $(HOST_SUBDIR)/fixincludes && \
8502 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8503@endif fixincludes-bootstrap
8504
8505
8506.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8507.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8508maybe-all-stagefeedback-fixincludes:
8509maybe-clean-stagefeedback-fixincludes:
8510@if fixincludes-bootstrap
8511maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8512all-stagefeedback: all-stagefeedback-fixincludes
8513TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8514all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8515 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8516 @r=`${PWD_COMMAND}`; export r; \
8517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8518 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8519 $(HOST_EXPORTS) \
8520 $(POSTSTAGE1_HOST_EXPORTS) \
8521 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8522 \
201f096f 8523 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8524 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8525 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8526 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8527 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8528 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8529 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8530 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8531 TFLAGS="$(STAGEfeedback_TFLAGS)" \
201f096f 8532 $(TARGET-stagefeedback-fixincludes)
8533
8534maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8535clean-stagefeedback: clean-stagefeedback-fixincludes
8536clean-stagefeedback-fixincludes:
8537 @if [ $(current_stage) = stagefeedback ]; then \
8538 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8539 else \
8540 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8541 $(MAKE) stagefeedback-start; \
8542 fi; \
8543 cd $(HOST_SUBDIR)/fixincludes && \
8544 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8545@endif fixincludes-bootstrap
8546
8547
8548
8549
d545f33b 8550
a90ef4bf
JM
8551.PHONY: check-fixincludes maybe-check-fixincludes
8552maybe-check-fixincludes:
8553@if fixincludes
8554maybe-check-fixincludes: check-fixincludes
4fa63067 8555
a90ef4bf 8556check-fixincludes:
0aed8855 8557 @: $(MAKE); $(unstage)
4fa63067
NN
8558 @r=`${PWD_COMMAND}`; export r; \
8559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8560 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8561 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8562 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8563
a90ef4bf 8564@endif fixincludes
4fa63067 8565
a90ef4bf
JM
8566.PHONY: install-fixincludes maybe-install-fixincludes
8567maybe-install-fixincludes:
8568@if fixincludes
8569maybe-install-fixincludes: install-fixincludes
4fa63067 8570
a90ef4bf 8571install-fixincludes: installdirs
0aed8855 8572 @: $(MAKE); $(unstage)
4fa63067
NN
8573 @r=`${PWD_COMMAND}`; export r; \
8574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8575 $(HOST_EXPORTS) \
a90ef4bf 8576 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8577 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8578
a90ef4bf 8579@endif fixincludes
4fa63067 8580
a90ef4bf
JM
8581.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8582maybe-install-strip-fixincludes:
8583@if fixincludes
8584maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8585
a90ef4bf 8586install-strip-fixincludes: installdirs
9b980aa1
RW
8587 @: $(MAKE); $(unstage)
8588 @r=`${PWD_COMMAND}`; export r; \
8589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8590 $(HOST_EXPORTS) \
a90ef4bf 8591 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8592 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8593
a90ef4bf 8594@endif fixincludes
9b980aa1 8595
56a8fe78 8596# Other targets (info, dvi, pdf, etc.)
4fa63067 8597
a90ef4bf
JM
8598.PHONY: maybe-info-fixincludes info-fixincludes
8599maybe-info-fixincludes:
8600@if fixincludes
8601maybe-info-fixincludes: info-fixincludes
4fa63067 8602
a90ef4bf
JM
8603info-fixincludes: \
8604 configure-fixincludes
a90ef4bf 8605 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8606 r=`${PWD_COMMAND}`; export r; \
8607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8608 $(HOST_EXPORTS) \
b813574b 8609 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8611 done; \
22121df0 8612 echo "Doing info in fixincludes"; \
a90ef4bf 8613 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8616 "RANLIB=$${RANLIB}" \
0c24b341 8617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8618 info) \
2a4cbe27
NN
8619 || exit 1
8620
a90ef4bf 8621@endif fixincludes
2a4cbe27 8622
a90ef4bf
JM
8623.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8624maybe-dvi-fixincludes:
8625@if fixincludes
8626maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8627
a90ef4bf
JM
8628dvi-fixincludes: \
8629 configure-fixincludes
a90ef4bf 8630 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8631 r=`${PWD_COMMAND}`; export r; \
8632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8633 $(HOST_EXPORTS) \
b813574b 8634 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8636 done; \
22121df0 8637 echo "Doing dvi in fixincludes"; \
a90ef4bf 8638 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8641 "RANLIB=$${RANLIB}" \
0c24b341 8642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8643 dvi) \
2a4cbe27
NN
8644 || exit 1
8645
a90ef4bf 8646@endif fixincludes
2a4cbe27 8647
a90ef4bf
JM
8648.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8649maybe-pdf-fixincludes:
8650@if fixincludes
8651maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8652
a90ef4bf
JM
8653pdf-fixincludes: \
8654 configure-fixincludes
a90ef4bf 8655 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8656 r=`${PWD_COMMAND}`; export r; \
8657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8658 $(HOST_EXPORTS) \
8659 for flag in $(EXTRA_HOST_FLAGS) ; do \
8660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8661 done; \
22121df0 8662 echo "Doing pdf in fixincludes"; \
a90ef4bf 8663 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8666 "RANLIB=$${RANLIB}" \
0c24b341 8667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8668 pdf) \
8669 || exit 1
8670
a90ef4bf 8671@endif fixincludes
56a8fe78 8672
a90ef4bf
JM
8673.PHONY: maybe-html-fixincludes html-fixincludes
8674maybe-html-fixincludes:
8675@if fixincludes
8676maybe-html-fixincludes: html-fixincludes
6d389afc 8677
a90ef4bf
JM
8678html-fixincludes: \
8679 configure-fixincludes
a90ef4bf 8680 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8681 r=`${PWD_COMMAND}`; export r; \
8682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8683 $(HOST_EXPORTS) \
8684 for flag in $(EXTRA_HOST_FLAGS) ; do \
8685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8686 done; \
22121df0 8687 echo "Doing html in fixincludes"; \
a90ef4bf 8688 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8691 "RANLIB=$${RANLIB}" \
0c24b341 8692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8693 html) \
8694 || exit 1
8695
a90ef4bf 8696@endif fixincludes
6d389afc 8697
a90ef4bf
JM
8698.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8699maybe-TAGS-fixincludes:
8700@if fixincludes
8701maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8702
a90ef4bf
JM
8703# fixincludes doesn't support TAGS.
8704TAGS-fixincludes:
2a4cbe27 8705
a90ef4bf 8706@endif fixincludes
2a4cbe27 8707
a90ef4bf
JM
8708.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8709maybe-install-info-fixincludes:
8710@if fixincludes
8711maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8712
a90ef4bf
JM
8713install-info-fixincludes: \
8714 configure-fixincludes \
8715 info-fixincludes
a90ef4bf 8716 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8717 r=`${PWD_COMMAND}`; export r; \
8718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8719 $(HOST_EXPORTS) \
b813574b 8720 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8722 done; \
22121df0 8723 echo "Doing install-info in fixincludes"; \
a90ef4bf 8724 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8727 "RANLIB=$${RANLIB}" \
0c24b341 8728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8729 install-info) \
2a4cbe27
NN
8730 || exit 1
8731
a90ef4bf 8732@endif fixincludes
2a4cbe27 8733
a90ef4bf
JM
8734.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8735maybe-install-pdf-fixincludes:
8736@if fixincludes
8737maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8738
a90ef4bf
JM
8739install-pdf-fixincludes: \
8740 configure-fixincludes \
8741 pdf-fixincludes
a90ef4bf 8742 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8743 r=`${PWD_COMMAND}`; export r; \
8744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8745 $(HOST_EXPORTS) \
8746 for flag in $(EXTRA_HOST_FLAGS) ; do \
8747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8748 done; \
22121df0 8749 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8750 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8753 "RANLIB=$${RANLIB}" \
0c24b341 8754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8755 install-pdf) \
8756 || exit 1
8757
a90ef4bf 8758@endif fixincludes
a3ca38d2 8759
a90ef4bf
JM
8760.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8761maybe-install-html-fixincludes:
8762@if fixincludes
8763maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8764
a90ef4bf
JM
8765install-html-fixincludes: \
8766 configure-fixincludes \
8767 html-fixincludes
a90ef4bf 8768 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8769 r=`${PWD_COMMAND}`; export r; \
8770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8771 $(HOST_EXPORTS) \
8772 for flag in $(EXTRA_HOST_FLAGS) ; do \
8773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8774 done; \
22121df0 8775 echo "Doing install-html in fixincludes"; \
a90ef4bf 8776 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8779 "RANLIB=$${RANLIB}" \
0c24b341 8780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8781 install-html) \
8782 || exit 1
8783
a90ef4bf 8784@endif fixincludes
108a6f8e 8785
a90ef4bf
JM
8786.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8787maybe-installcheck-fixincludes:
8788@if fixincludes
8789maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8790
a90ef4bf
JM
8791installcheck-fixincludes: \
8792 configure-fixincludes
a90ef4bf 8793 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8794 r=`${PWD_COMMAND}`; export r; \
8795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8796 $(HOST_EXPORTS) \
b813574b 8797 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8799 done; \
22121df0 8800 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8801 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8804 "RANLIB=$${RANLIB}" \
0c24b341 8805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8806 installcheck) \
2a4cbe27
NN
8807 || exit 1
8808
a90ef4bf 8809@endif fixincludes
2a4cbe27 8810
a90ef4bf
JM
8811.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8812maybe-mostlyclean-fixincludes:
8813@if fixincludes
8814maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8815
a90ef4bf 8816mostlyclean-fixincludes:
a90ef4bf 8817 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8818 r=`${PWD_COMMAND}`; export r; \
8819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8820 $(HOST_EXPORTS) \
b813574b 8821 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8823 done; \
22121df0 8824 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8825 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8828 "RANLIB=$${RANLIB}" \
0c24b341 8829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8830 mostlyclean) \
2a4cbe27
NN
8831 || exit 1
8832
a90ef4bf 8833@endif fixincludes
2a4cbe27 8834
a90ef4bf
JM
8835.PHONY: maybe-clean-fixincludes clean-fixincludes
8836maybe-clean-fixincludes:
8837@if fixincludes
8838maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8839
a90ef4bf 8840clean-fixincludes:
a90ef4bf 8841 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8842 r=`${PWD_COMMAND}`; export r; \
8843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8844 $(HOST_EXPORTS) \
b813574b 8845 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8847 done; \
22121df0 8848 echo "Doing clean in fixincludes"; \
a90ef4bf 8849 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8852 "RANLIB=$${RANLIB}" \
0c24b341 8853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8854 clean) \
2a4cbe27
NN
8855 || exit 1
8856
a90ef4bf 8857@endif fixincludes
2a4cbe27 8858
a90ef4bf
JM
8859.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8860maybe-distclean-fixincludes:
8861@if fixincludes
8862maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8863
a90ef4bf 8864distclean-fixincludes:
a90ef4bf 8865 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8866 r=`${PWD_COMMAND}`; export r; \
8867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8868 $(HOST_EXPORTS) \
b813574b 8869 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8871 done; \
22121df0 8872 echo "Doing distclean in fixincludes"; \
a90ef4bf 8873 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8876 "RANLIB=$${RANLIB}" \
0c24b341 8877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8878 distclean) \
2a4cbe27
NN
8879 || exit 1
8880
a90ef4bf 8881@endif fixincludes
2a4cbe27 8882
a90ef4bf
JM
8883.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8884maybe-maintainer-clean-fixincludes:
8885@if fixincludes
8886maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8887
a90ef4bf 8888maintainer-clean-fixincludes:
a90ef4bf 8889 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8890 r=`${PWD_COMMAND}`; export r; \
8891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8892 $(HOST_EXPORTS) \
b813574b 8893 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8895 done; \
22121df0 8896 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8897 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8900 "RANLIB=$${RANLIB}" \
0c24b341 8901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8902 maintainer-clean) \
2a4cbe27
NN
8903 || exit 1
8904
a90ef4bf 8905@endif fixincludes
2a4cbe27 8906
2a4cbe27 8907
a7254363 8908
a90ef4bf
JM
8909.PHONY: configure-flex maybe-configure-flex
8910maybe-configure-flex:
f9806fa5 8911@if gcc-bootstrap
a90ef4bf 8912configure-flex: stage_current
f9806fa5 8913@endif gcc-bootstrap
a90ef4bf
JM
8914@if flex
8915maybe-configure-flex: configure-flex
8916configure-flex:
f9806fa5
DE
8917 @: $(MAKE); $(unstage)
8918 @r=`${PWD_COMMAND}`; export r; \
8919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8920 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8921 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 8922 $(HOST_EXPORTS) \
a90ef4bf
JM
8923 echo Configuring in $(HOST_SUBDIR)/flex; \
8924 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8925 case $(srcdir) in \
8926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8927 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8929 esac; \
1b6c0831
L
8930 module_srcdir=flex; \
8931 $(SHELL) \
8932 $$s/$$module_srcdir/configure \
8933 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8934 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8935 --target=${target_alias} \
f9806fa5 8936 || exit 1
a90ef4bf 8937@endif flex
f9806fa5
DE
8938
8939
8940
8941
8942
a90ef4bf
JM
8943.PHONY: all-flex maybe-all-flex
8944maybe-all-flex:
f9806fa5 8945@if gcc-bootstrap
a90ef4bf 8946all-flex: stage_current
f9806fa5 8947@endif gcc-bootstrap
a90ef4bf
JM
8948@if flex
8949TARGET-flex=all
8950maybe-all-flex: all-flex
8951all-flex: configure-flex
f9806fa5
DE
8952 @: $(MAKE); $(unstage)
8953 @r=`${PWD_COMMAND}`; export r; \
8954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8955 $(HOST_EXPORTS) \
a90ef4bf 8956 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8957 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8958 $(TARGET-flex))
8959@endif flex
f9806fa5
DE
8960
8961
8962
8963
a90ef4bf
JM
8964.PHONY: check-flex maybe-check-flex
8965maybe-check-flex:
8966@if flex
8967maybe-check-flex: check-flex
f9806fa5 8968
a90ef4bf
JM
8969# This module is only tested in a native toolchain.
8970check-flex:
f9806fa5 8971 @: $(MAKE); $(unstage)
22121df0 8972 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
8973 r=`${PWD_COMMAND}`; export r; \
8974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8975 $(HOST_EXPORTS) \
a90ef4bf 8976 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8977 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8978 fi
f9806fa5 8979
a90ef4bf 8980@endif flex
f9806fa5 8981
a90ef4bf
JM
8982.PHONY: install-flex maybe-install-flex
8983maybe-install-flex:
8984@if flex
8985maybe-install-flex: install-flex
f9806fa5 8986
a90ef4bf 8987install-flex: installdirs
f9806fa5
DE
8988 @: $(MAKE); $(unstage)
8989 @r=`${PWD_COMMAND}`; export r; \
8990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8991 $(HOST_EXPORTS) \
a90ef4bf 8992 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8993 $(MAKE) $(FLAGS_TO_PASS) install)
8994
a90ef4bf 8995@endif flex
f9806fa5 8996
a90ef4bf
JM
8997.PHONY: install-strip-flex maybe-install-strip-flex
8998maybe-install-strip-flex:
8999@if flex
9000maybe-install-strip-flex: install-strip-flex
9b980aa1 9001
a90ef4bf 9002install-strip-flex: installdirs
9b980aa1
RW
9003 @: $(MAKE); $(unstage)
9004 @r=`${PWD_COMMAND}`; export r; \
9005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9006 $(HOST_EXPORTS) \
a90ef4bf 9007 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
9008 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9009
a90ef4bf 9010@endif flex
9b980aa1 9011
f9806fa5
DE
9012# Other targets (info, dvi, pdf, etc.)
9013
a90ef4bf
JM
9014.PHONY: maybe-info-flex info-flex
9015maybe-info-flex:
9016@if flex
9017maybe-info-flex: info-flex
f9806fa5 9018
a90ef4bf
JM
9019info-flex: \
9020 configure-flex
f9806fa5 9021 @: $(MAKE); $(unstage)
a90ef4bf 9022 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9023 r=`${PWD_COMMAND}`; export r; \
9024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9025 $(HOST_EXPORTS) \
9026 for flag in $(EXTRA_HOST_FLAGS) ; do \
9027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9028 done; \
22121df0 9029 echo "Doing info in flex"; \
a90ef4bf 9030 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9033 "RANLIB=$${RANLIB}" \
9034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9035 info) \
9036 || exit 1
9037
a90ef4bf 9038@endif flex
f9806fa5 9039
a90ef4bf
JM
9040.PHONY: maybe-dvi-flex dvi-flex
9041maybe-dvi-flex:
9042@if flex
9043maybe-dvi-flex: dvi-flex
f9806fa5 9044
a90ef4bf
JM
9045dvi-flex: \
9046 configure-flex
f9806fa5 9047 @: $(MAKE); $(unstage)
a90ef4bf 9048 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9049 r=`${PWD_COMMAND}`; export r; \
9050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9051 $(HOST_EXPORTS) \
9052 for flag in $(EXTRA_HOST_FLAGS) ; do \
9053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9054 done; \
22121df0 9055 echo "Doing dvi in flex"; \
a90ef4bf 9056 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9059 "RANLIB=$${RANLIB}" \
9060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9061 dvi) \
9062 || exit 1
9063
a90ef4bf 9064@endif flex
f9806fa5 9065
a90ef4bf
JM
9066.PHONY: maybe-pdf-flex pdf-flex
9067maybe-pdf-flex:
9068@if flex
9069maybe-pdf-flex: pdf-flex
f9806fa5 9070
a90ef4bf
JM
9071pdf-flex: \
9072 configure-flex
f9806fa5 9073 @: $(MAKE); $(unstage)
a90ef4bf 9074 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9075 r=`${PWD_COMMAND}`; export r; \
9076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9077 $(HOST_EXPORTS) \
9078 for flag in $(EXTRA_HOST_FLAGS) ; do \
9079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9080 done; \
22121df0 9081 echo "Doing pdf in flex"; \
a90ef4bf 9082 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9085 "RANLIB=$${RANLIB}" \
9086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9087 pdf) \
9088 || exit 1
9089
a90ef4bf 9090@endif flex
f9806fa5 9091
a90ef4bf
JM
9092.PHONY: maybe-html-flex html-flex
9093maybe-html-flex:
9094@if flex
9095maybe-html-flex: html-flex
f9806fa5 9096
a90ef4bf
JM
9097html-flex: \
9098 configure-flex
f9806fa5 9099 @: $(MAKE); $(unstage)
a90ef4bf 9100 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9101 r=`${PWD_COMMAND}`; export r; \
9102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9103 $(HOST_EXPORTS) \
9104 for flag in $(EXTRA_HOST_FLAGS) ; do \
9105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9106 done; \
22121df0 9107 echo "Doing html in flex"; \
a90ef4bf 9108 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9111 "RANLIB=$${RANLIB}" \
9112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9113 html) \
9114 || exit 1
9115
a90ef4bf 9116@endif flex
f9806fa5 9117
a90ef4bf
JM
9118.PHONY: maybe-TAGS-flex TAGS-flex
9119maybe-TAGS-flex:
9120@if flex
9121maybe-TAGS-flex: TAGS-flex
f9806fa5 9122
a90ef4bf
JM
9123TAGS-flex: \
9124 configure-flex
f9806fa5 9125 @: $(MAKE); $(unstage)
a90ef4bf 9126 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9127 r=`${PWD_COMMAND}`; export r; \
9128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9129 $(HOST_EXPORTS) \
9130 for flag in $(EXTRA_HOST_FLAGS) ; do \
9131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9132 done; \
22121df0 9133 echo "Doing TAGS in flex"; \
a90ef4bf 9134 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9137 "RANLIB=$${RANLIB}" \
9138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9139 TAGS) \
9140 || exit 1
9141
a90ef4bf 9142@endif flex
f9806fa5 9143
a90ef4bf
JM
9144.PHONY: maybe-install-info-flex install-info-flex
9145maybe-install-info-flex:
9146@if flex
9147maybe-install-info-flex: install-info-flex
f9806fa5 9148
a90ef4bf
JM
9149install-info-flex: \
9150 configure-flex \
9151 info-flex
f9806fa5 9152 @: $(MAKE); $(unstage)
a90ef4bf 9153 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9154 r=`${PWD_COMMAND}`; export r; \
9155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9156 $(HOST_EXPORTS) \
9157 for flag in $(EXTRA_HOST_FLAGS) ; do \
9158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9159 done; \
22121df0 9160 echo "Doing install-info in flex"; \
a90ef4bf 9161 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9164 "RANLIB=$${RANLIB}" \
9165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9166 install-info) \
9167 || exit 1
9168
a90ef4bf 9169@endif flex
f9806fa5 9170
a90ef4bf
JM
9171.PHONY: maybe-install-pdf-flex install-pdf-flex
9172maybe-install-pdf-flex:
9173@if flex
9174maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9175
a90ef4bf
JM
9176install-pdf-flex: \
9177 configure-flex \
9178 pdf-flex
f9806fa5 9179 @: $(MAKE); $(unstage)
a90ef4bf 9180 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9181 r=`${PWD_COMMAND}`; export r; \
9182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9183 $(HOST_EXPORTS) \
9184 for flag in $(EXTRA_HOST_FLAGS) ; do \
9185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9186 done; \
22121df0 9187 echo "Doing install-pdf in flex"; \
a90ef4bf 9188 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9191 "RANLIB=$${RANLIB}" \
9192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9193 install-pdf) \
9194 || exit 1
9195
a90ef4bf 9196@endif flex
f9806fa5 9197
a90ef4bf
JM
9198.PHONY: maybe-install-html-flex install-html-flex
9199maybe-install-html-flex:
9200@if flex
9201maybe-install-html-flex: install-html-flex
f9806fa5 9202
a90ef4bf
JM
9203install-html-flex: \
9204 configure-flex \
9205 html-flex
f9806fa5 9206 @: $(MAKE); $(unstage)
a90ef4bf 9207 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9208 r=`${PWD_COMMAND}`; export r; \
9209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9210 $(HOST_EXPORTS) \
9211 for flag in $(EXTRA_HOST_FLAGS) ; do \
9212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9213 done; \
22121df0 9214 echo "Doing install-html in flex"; \
a90ef4bf 9215 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9218 "RANLIB=$${RANLIB}" \
9219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9220 install-html) \
9221 || exit 1
9222
a90ef4bf 9223@endif flex
f9806fa5 9224
a90ef4bf
JM
9225.PHONY: maybe-installcheck-flex installcheck-flex
9226maybe-installcheck-flex:
9227@if flex
9228maybe-installcheck-flex: installcheck-flex
f9806fa5 9229
a90ef4bf
JM
9230installcheck-flex: \
9231 configure-flex
f9806fa5 9232 @: $(MAKE); $(unstage)
a90ef4bf 9233 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9234 r=`${PWD_COMMAND}`; export r; \
9235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9236 $(HOST_EXPORTS) \
9237 for flag in $(EXTRA_HOST_FLAGS) ; do \
9238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9239 done; \
22121df0 9240 echo "Doing installcheck in flex"; \
a90ef4bf 9241 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9244 "RANLIB=$${RANLIB}" \
9245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9246 installcheck) \
9247 || exit 1
9248
a90ef4bf 9249@endif flex
f9806fa5 9250
a90ef4bf
JM
9251.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9252maybe-mostlyclean-flex:
9253@if flex
9254maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9255
a90ef4bf 9256mostlyclean-flex:
f9806fa5 9257 @: $(MAKE); $(unstage)
a90ef4bf 9258 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9259 r=`${PWD_COMMAND}`; export r; \
9260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9261 $(HOST_EXPORTS) \
9262 for flag in $(EXTRA_HOST_FLAGS) ; do \
9263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9264 done; \
22121df0 9265 echo "Doing mostlyclean in flex"; \
a90ef4bf 9266 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9269 "RANLIB=$${RANLIB}" \
9270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9271 mostlyclean) \
9272 || exit 1
9273
a90ef4bf 9274@endif flex
f9806fa5 9275
a90ef4bf
JM
9276.PHONY: maybe-clean-flex clean-flex
9277maybe-clean-flex:
9278@if flex
9279maybe-clean-flex: clean-flex
f9806fa5 9280
a90ef4bf 9281clean-flex:
f9806fa5 9282 @: $(MAKE); $(unstage)
a90ef4bf 9283 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9284 r=`${PWD_COMMAND}`; export r; \
9285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9286 $(HOST_EXPORTS) \
9287 for flag in $(EXTRA_HOST_FLAGS) ; do \
9288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9289 done; \
22121df0 9290 echo "Doing clean in flex"; \
a90ef4bf 9291 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9294 "RANLIB=$${RANLIB}" \
9295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9296 clean) \
9297 || exit 1
9298
a90ef4bf 9299@endif flex
f9806fa5 9300
a90ef4bf
JM
9301.PHONY: maybe-distclean-flex distclean-flex
9302maybe-distclean-flex:
9303@if flex
9304maybe-distclean-flex: distclean-flex
f9806fa5 9305
a90ef4bf 9306distclean-flex:
f9806fa5 9307 @: $(MAKE); $(unstage)
a90ef4bf 9308 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9309 r=`${PWD_COMMAND}`; export r; \
9310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9311 $(HOST_EXPORTS) \
9312 for flag in $(EXTRA_HOST_FLAGS) ; do \
9313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9314 done; \
22121df0 9315 echo "Doing distclean in flex"; \
a90ef4bf 9316 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9319 "RANLIB=$${RANLIB}" \
9320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9321 distclean) \
9322 || exit 1
9323
a90ef4bf 9324@endif flex
f9806fa5 9325
a90ef4bf
JM
9326.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9327maybe-maintainer-clean-flex:
9328@if flex
9329maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9330
a90ef4bf 9331maintainer-clean-flex:
f9806fa5 9332 @: $(MAKE); $(unstage)
a90ef4bf 9333 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9334 r=`${PWD_COMMAND}`; export r; \
9335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9336 $(HOST_EXPORTS) \
9337 for flag in $(EXTRA_HOST_FLAGS) ; do \
9338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9339 done; \
22121df0 9340 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9341 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9344 "RANLIB=$${RANLIB}" \
9345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9346 maintainer-clean) \
9347 || exit 1
9348
a90ef4bf 9349@endif flex
f9806fa5
DE
9350
9351
9352
a90ef4bf
JM
9353.PHONY: configure-gas maybe-configure-gas
9354maybe-configure-gas:
4f0ef2d8 9355@if gcc-bootstrap
a90ef4bf 9356configure-gas: stage_current
4f0ef2d8 9357@endif gcc-bootstrap
a90ef4bf
JM
9358@if gas
9359maybe-configure-gas: configure-gas
9360configure-gas:
c52c6897 9361 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9363 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9364 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9365 $(HOST_EXPORTS) \
a90ef4bf
JM
9366 echo Configuring in $(HOST_SUBDIR)/gas; \
9367 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9368 case $(srcdir) in \
b00612cc 9369 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9370 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9371 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9372 esac; \
1b6c0831
L
9373 module_srcdir=gas; \
9374 $(SHELL) \
9375 $$s/$$module_srcdir/configure \
9376 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9377 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9378 --target=${target_alias} \
4fa63067 9379 || exit 1
a90ef4bf 9380@endif gas
a7254363 9381
d545f33b
PB
9382
9383
a90ef4bf
JM
9384.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9385maybe-configure-stage1-gas:
9386@if gas-bootstrap
9387maybe-configure-stage1-gas: configure-stage1-gas
9388configure-stage1-gas:
9389 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9390 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9391 @r=`${PWD_COMMAND}`; export r; \
9392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9393 TFLAGS="$(STAGE1_TFLAGS)"; \
9394 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9395 $(HOST_EXPORTS) \
9396 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9397 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9398 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9399 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9400 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9401 cd $(HOST_SUBDIR)/gas || exit 1; \
9402 case $(srcdir) in \
9403 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9404 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9405 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9406 esac; \
1b6c0831
L
9407 module_srcdir=gas; \
9408 $(SHELL) $$s/$$module_srcdir/configure \
9409 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9410 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9411 --target=${target_alias} \
9412 \
a90ef4bf
JM
9413 $(STAGE1_CONFIGURE_FLAGS)
9414@endif gas-bootstrap
4fa63067 9415
a90ef4bf
JM
9416.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9417maybe-configure-stage2-gas:
9418@if gas-bootstrap
9419maybe-configure-stage2-gas: configure-stage2-gas
9420configure-stage2-gas:
9421 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9422 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9423 @r=`${PWD_COMMAND}`; export r; \
9424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9425 TFLAGS="$(STAGE2_TFLAGS)"; \
9426 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9427 $(HOST_EXPORTS) \
a90ef4bf
JM
9428 $(POSTSTAGE1_HOST_EXPORTS) \
9429 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9430 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9431 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9432 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9433 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9434 cd $(HOST_SUBDIR)/gas || exit 1; \
9435 case $(srcdir) in \
9436 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9437 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9438 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9439 esac; \
1b6c0831
L
9440 module_srcdir=gas; \
9441 $(SHELL) $$s/$$module_srcdir/configure \
9442 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9443 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9444 --target=${target_alias} \
22121df0 9445 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9446 $(STAGE2_CONFIGURE_FLAGS)
9447@endif gas-bootstrap
4fa63067 9448
a90ef4bf
JM
9449.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9450maybe-configure-stage3-gas:
9451@if gas-bootstrap
9452maybe-configure-stage3-gas: configure-stage3-gas
9453configure-stage3-gas:
9454 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9455 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9456 @r=`${PWD_COMMAND}`; export r; \
9457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9458 TFLAGS="$(STAGE3_TFLAGS)"; \
9459 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9460 $(HOST_EXPORTS) \
a90ef4bf
JM
9461 $(POSTSTAGE1_HOST_EXPORTS) \
9462 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9463 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9464 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9465 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9466 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9467 cd $(HOST_SUBDIR)/gas || exit 1; \
9468 case $(srcdir) in \
9469 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9470 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9471 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9472 esac; \
1b6c0831
L
9473 module_srcdir=gas; \
9474 $(SHELL) $$s/$$module_srcdir/configure \
9475 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9476 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9477 --target=${target_alias} \
22121df0 9478 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9479 $(STAGE3_CONFIGURE_FLAGS)
9480@endif gas-bootstrap
9b980aa1 9481
a90ef4bf
JM
9482.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9483maybe-configure-stage4-gas:
9484@if gas-bootstrap
9485maybe-configure-stage4-gas: configure-stage4-gas
9486configure-stage4-gas:
9487 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9488 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9489 @r=`${PWD_COMMAND}`; export r; \
9490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9491 TFLAGS="$(STAGE4_TFLAGS)"; \
9492 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9493 $(HOST_EXPORTS) \
a90ef4bf
JM
9494 $(POSTSTAGE1_HOST_EXPORTS) \
9495 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9496 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9497 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9498 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9499 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9500 cd $(HOST_SUBDIR)/gas || exit 1; \
9501 case $(srcdir) in \
9502 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9503 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9504 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9505 esac; \
1b6c0831
L
9506 module_srcdir=gas; \
9507 $(SHELL) $$s/$$module_srcdir/configure \
9508 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9509 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9510 --target=${target_alias} \
22121df0 9511 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9512 $(STAGE4_CONFIGURE_FLAGS)
9513@endif gas-bootstrap
4fa63067 9514
a90ef4bf
JM
9515.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9516maybe-configure-stageprofile-gas:
9517@if gas-bootstrap
9518maybe-configure-stageprofile-gas: configure-stageprofile-gas
9519configure-stageprofile-gas:
9520 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9521 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9522 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9524 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9525 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9526 $(HOST_EXPORTS) \
a90ef4bf
JM
9527 $(POSTSTAGE1_HOST_EXPORTS) \
9528 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9529 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9530 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9531 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9532 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9533 cd $(HOST_SUBDIR)/gas || exit 1; \
9534 case $(srcdir) in \
9535 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9536 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9537 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9538 esac; \
1b6c0831
L
9539 module_srcdir=gas; \
9540 $(SHELL) $$s/$$module_srcdir/configure \
9541 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9542 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9543 --target=${target_alias} \
22121df0 9544 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9545 $(STAGEprofile_CONFIGURE_FLAGS)
9546@endif gas-bootstrap
2a4cbe27 9547
a90ef4bf
JM
9548.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9549maybe-configure-stagefeedback-gas:
9550@if gas-bootstrap
9551maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9552configure-stagefeedback-gas:
9553 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9554 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9555 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9557 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9558 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9559 $(HOST_EXPORTS) \
a90ef4bf
JM
9560 $(POSTSTAGE1_HOST_EXPORTS) \
9561 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9562 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9563 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9564 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9565 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9566 cd $(HOST_SUBDIR)/gas || exit 1; \
9567 case $(srcdir) in \
9568 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9569 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9570 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9571 esac; \
1b6c0831
L
9572 module_srcdir=gas; \
9573 $(SHELL) $$s/$$module_srcdir/configure \
9574 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9575 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9576 --target=${target_alias} \
22121df0 9577 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9578 $(STAGEfeedback_CONFIGURE_FLAGS)
9579@endif gas-bootstrap
2a4cbe27 9580
56a8fe78 9581
56a8fe78 9582
56a8fe78 9583
6d389afc 9584
a90ef4bf
JM
9585.PHONY: all-gas maybe-all-gas
9586maybe-all-gas:
9587@if gcc-bootstrap
9588all-gas: stage_current
9589@endif gcc-bootstrap
9590@if gas
9591TARGET-gas=all
9592maybe-all-gas: all-gas
9593all-gas: configure-gas
9594 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9596 $(HOST_EXPORTS) \
9597 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9598 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9599 $(TARGET-gas))
9600@endif gas
6d389afc 9601
6d389afc 9602
2a4cbe27 9603
a90ef4bf
JM
9604.PHONY: all-stage1-gas maybe-all-stage1-gas
9605.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9606maybe-all-stage1-gas:
9607maybe-clean-stage1-gas:
9608@if gas-bootstrap
9609maybe-all-stage1-gas: all-stage1-gas
9610all-stage1: all-stage1-gas
9611TARGET-stage1-gas = $(TARGET-gas)
9612all-stage1-gas: configure-stage1-gas
9613 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9614 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9616 TFLAGS="$(STAGE1_TFLAGS)"; \
9617 $(HOST_EXPORTS) \
9618 cd $(HOST_SUBDIR)/gas && \
05a13254 9619 \
a90ef4bf
JM
9620 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9621 CFLAGS="$(STAGE1_CFLAGS)" \
9622 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9623 LIBCFLAGS="$(LIBCFLAGS)" \
9624 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9625 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9626 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9627 $(EXTRA_HOST_FLAGS) \
9628 $(STAGE1_FLAGS_TO_PASS) \
05a13254 9629 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 9630 $(TARGET-stage1-gas)
2a4cbe27 9631
a90ef4bf
JM
9632maybe-clean-stage1-gas: clean-stage1-gas
9633clean-stage1: clean-stage1-gas
9634clean-stage1-gas:
9635 @if [ $(current_stage) = stage1 ]; then \
9636 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9637 else \
9638 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9639 $(MAKE) stage1-start; \
9640 fi; \
9641 cd $(HOST_SUBDIR)/gas && \
9642 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9643 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9644@endif gas-bootstrap
2a4cbe27 9645
2a4cbe27 9646
a90ef4bf
JM
9647.PHONY: all-stage2-gas maybe-all-stage2-gas
9648.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9649maybe-all-stage2-gas:
9650maybe-clean-stage2-gas:
9651@if gas-bootstrap
9652maybe-all-stage2-gas: all-stage2-gas
9653all-stage2: all-stage2-gas
9654TARGET-stage2-gas = $(TARGET-gas)
9655all-stage2-gas: configure-stage2-gas
9656 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9657 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9659 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9660 $(HOST_EXPORTS) \
a90ef4bf
JM
9661 $(POSTSTAGE1_HOST_EXPORTS) \
9662 cd $(HOST_SUBDIR)/gas && \
05a13254 9663 \
a90ef4bf
JM
9664 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9665 CFLAGS="$(STAGE2_CFLAGS)" \
9666 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9667 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9668 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9669 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9670 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9671 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9672 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 9673 $(TARGET-stage2-gas)
2a4cbe27 9674
a90ef4bf
JM
9675maybe-clean-stage2-gas: clean-stage2-gas
9676clean-stage2: clean-stage2-gas
9677clean-stage2-gas:
9678 @if [ $(current_stage) = stage2 ]; then \
9679 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9680 else \
9681 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9682 $(MAKE) stage2-start; \
9683 fi; \
9684 cd $(HOST_SUBDIR)/gas && \
b3676d82 9685 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9686@endif gas-bootstrap
2a4cbe27 9687
2a4cbe27 9688
a90ef4bf
JM
9689.PHONY: all-stage3-gas maybe-all-stage3-gas
9690.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9691maybe-all-stage3-gas:
9692maybe-clean-stage3-gas:
9693@if gas-bootstrap
9694maybe-all-stage3-gas: all-stage3-gas
9695all-stage3: all-stage3-gas
9696TARGET-stage3-gas = $(TARGET-gas)
9697all-stage3-gas: configure-stage3-gas
9698 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9699 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9701 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9702 $(HOST_EXPORTS) \
a90ef4bf
JM
9703 $(POSTSTAGE1_HOST_EXPORTS) \
9704 cd $(HOST_SUBDIR)/gas && \
05a13254 9705 \
a90ef4bf
JM
9706 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9707 CFLAGS="$(STAGE3_CFLAGS)" \
9708 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9709 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9710 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9711 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9712 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9713 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9714 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 9715 $(TARGET-stage3-gas)
2a4cbe27 9716
a90ef4bf
JM
9717maybe-clean-stage3-gas: clean-stage3-gas
9718clean-stage3: clean-stage3-gas
9719clean-stage3-gas:
9720 @if [ $(current_stage) = stage3 ]; then \
9721 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9722 else \
9723 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9724 $(MAKE) stage3-start; \
9725 fi; \
9726 cd $(HOST_SUBDIR)/gas && \
b3676d82 9727 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9728@endif gas-bootstrap
2a4cbe27 9729
2a4cbe27 9730
a90ef4bf
JM
9731.PHONY: all-stage4-gas maybe-all-stage4-gas
9732.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9733maybe-all-stage4-gas:
9734maybe-clean-stage4-gas:
9735@if gas-bootstrap
9736maybe-all-stage4-gas: all-stage4-gas
9737all-stage4: all-stage4-gas
9738TARGET-stage4-gas = $(TARGET-gas)
9739all-stage4-gas: configure-stage4-gas
9740 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9741 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9743 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9744 $(HOST_EXPORTS) \
a90ef4bf
JM
9745 $(POSTSTAGE1_HOST_EXPORTS) \
9746 cd $(HOST_SUBDIR)/gas && \
05a13254 9747 \
a90ef4bf
JM
9748 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9749 CFLAGS="$(STAGE4_CFLAGS)" \
9750 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9751 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9752 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9753 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9754 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9755 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9756 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 9757 $(TARGET-stage4-gas)
2a4cbe27 9758
a90ef4bf
JM
9759maybe-clean-stage4-gas: clean-stage4-gas
9760clean-stage4: clean-stage4-gas
9761clean-stage4-gas:
9762 @if [ $(current_stage) = stage4 ]; then \
9763 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9764 else \
9765 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9766 $(MAKE) stage4-start; \
9767 fi; \
9768 cd $(HOST_SUBDIR)/gas && \
b3676d82 9769 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9770@endif gas-bootstrap
2a4cbe27 9771
2a4cbe27 9772
a90ef4bf
JM
9773.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9774.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9775maybe-all-stageprofile-gas:
9776maybe-clean-stageprofile-gas:
9777@if gas-bootstrap
9778maybe-all-stageprofile-gas: all-stageprofile-gas
9779all-stageprofile: all-stageprofile-gas
9780TARGET-stageprofile-gas = $(TARGET-gas)
9781all-stageprofile-gas: configure-stageprofile-gas
9782 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9783 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9785 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9786 $(HOST_EXPORTS) \
a90ef4bf
JM
9787 $(POSTSTAGE1_HOST_EXPORTS) \
9788 cd $(HOST_SUBDIR)/gas && \
05a13254 9789 \
a90ef4bf
JM
9790 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9791 CFLAGS="$(STAGEprofile_CFLAGS)" \
9792 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9793 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9794 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9795 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9796 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9797 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9798 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 9799 $(TARGET-stageprofile-gas)
4fa63067 9800
a90ef4bf
JM
9801maybe-clean-stageprofile-gas: clean-stageprofile-gas
9802clean-stageprofile: clean-stageprofile-gas
9803clean-stageprofile-gas:
9804 @if [ $(current_stage) = stageprofile ]; then \
9805 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9806 else \
9807 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9808 $(MAKE) stageprofile-start; \
9809 fi; \
9810 cd $(HOST_SUBDIR)/gas && \
b3676d82 9811 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9812@endif gas-bootstrap
4fa63067 9813
a7254363 9814
a90ef4bf
JM
9815.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9816.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9817maybe-all-stagefeedback-gas:
9818maybe-clean-stagefeedback-gas:
9819@if gas-bootstrap
9820maybe-all-stagefeedback-gas: all-stagefeedback-gas
9821all-stagefeedback: all-stagefeedback-gas
9822TARGET-stagefeedback-gas = $(TARGET-gas)
9823all-stagefeedback-gas: configure-stagefeedback-gas
9824 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9825 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9827 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9828 $(HOST_EXPORTS) \
9829 $(POSTSTAGE1_HOST_EXPORTS) \
9830 cd $(HOST_SUBDIR)/gas && \
05a13254 9831 \
a90ef4bf
JM
9832 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9833 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9834 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9835 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9836 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9837 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9838 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9839 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9840 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 9841 $(TARGET-stagefeedback-gas)
d545f33b 9842
a90ef4bf
JM
9843maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9844clean-stagefeedback: clean-stagefeedback-gas
9845clean-stagefeedback-gas:
9846 @if [ $(current_stage) = stagefeedback ]; then \
9847 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9848 else \
9849 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9850 $(MAKE) stagefeedback-start; \
9851 fi; \
9852 cd $(HOST_SUBDIR)/gas && \
b3676d82 9853 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9854@endif gas-bootstrap
d545f33b 9855
2a4cbe27 9856
a7254363 9857
d545f33b
PB
9858
9859
a90ef4bf
JM
9860.PHONY: check-gas maybe-check-gas
9861maybe-check-gas:
9862@if gas
9863maybe-check-gas: check-gas
2a4cbe27 9864
a90ef4bf 9865check-gas:
0aed8855 9866 @: $(MAKE); $(unstage)
4fa63067 9867 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9869 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9870 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9871 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9872
a90ef4bf 9873@endif gas
2a4cbe27 9874
a90ef4bf
JM
9875.PHONY: install-gas maybe-install-gas
9876maybe-install-gas:
9877@if gas
9878maybe-install-gas: install-gas
2a4cbe27 9879
a90ef4bf 9880install-gas: installdirs
0aed8855 9881 @: $(MAKE); $(unstage)
4fa63067 9882 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9884 $(HOST_EXPORTS) \
a90ef4bf 9885 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9886 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9887
a90ef4bf 9888@endif gas
2a4cbe27 9889
a90ef4bf
JM
9890.PHONY: install-strip-gas maybe-install-strip-gas
9891maybe-install-strip-gas:
9892@if gas
9893maybe-install-strip-gas: install-strip-gas
9b980aa1 9894
a90ef4bf 9895install-strip-gas: installdirs
9b980aa1
RW
9896 @: $(MAKE); $(unstage)
9897 @r=`${PWD_COMMAND}`; export r; \
9898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9899 $(HOST_EXPORTS) \
a90ef4bf 9900 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9901 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9902
a90ef4bf 9903@endif gas
9b980aa1 9904
56a8fe78 9905# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9906
a90ef4bf
JM
9907.PHONY: maybe-info-gas info-gas
9908maybe-info-gas:
9909@if gas
9910maybe-info-gas: info-gas
2a4cbe27 9911
a90ef4bf
JM
9912info-gas: \
9913 configure-gas
9914 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9915 r=`${PWD_COMMAND}`; export r; \
9916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9917 $(HOST_EXPORTS) \
b813574b 9918 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9920 done; \
22121df0 9921 echo "Doing info in gas"; \
a90ef4bf 9922 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9925 "RANLIB=$${RANLIB}" \
0c24b341 9926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9927 info) \
2a4cbe27
NN
9928 || exit 1
9929
a90ef4bf 9930@endif gas
2a4cbe27 9931
a90ef4bf
JM
9932.PHONY: maybe-dvi-gas dvi-gas
9933maybe-dvi-gas:
9934@if gas
9935maybe-dvi-gas: dvi-gas
2a4cbe27 9936
a90ef4bf
JM
9937dvi-gas: \
9938 configure-gas
9939 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9940 r=`${PWD_COMMAND}`; export r; \
9941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9942 $(HOST_EXPORTS) \
b813574b 9943 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9945 done; \
22121df0 9946 echo "Doing dvi in gas"; \
a90ef4bf 9947 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9950 "RANLIB=$${RANLIB}" \
0c24b341 9951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9952 dvi) \
2a4cbe27
NN
9953 || exit 1
9954
a90ef4bf 9955@endif gas
2a4cbe27 9956
a90ef4bf
JM
9957.PHONY: maybe-pdf-gas pdf-gas
9958maybe-pdf-gas:
9959@if gas
9960maybe-pdf-gas: pdf-gas
56a8fe78 9961
a90ef4bf
JM
9962pdf-gas: \
9963 configure-gas
9964 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9965 r=`${PWD_COMMAND}`; export r; \
9966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9967 $(HOST_EXPORTS) \
9968 for flag in $(EXTRA_HOST_FLAGS) ; do \
9969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9970 done; \
22121df0 9971 echo "Doing pdf in gas"; \
a90ef4bf 9972 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9975 "RANLIB=$${RANLIB}" \
0c24b341 9976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9977 pdf) \
9978 || exit 1
9979
a90ef4bf 9980@endif gas
56a8fe78 9981
a90ef4bf
JM
9982.PHONY: maybe-html-gas html-gas
9983maybe-html-gas:
9984@if gas
9985maybe-html-gas: html-gas
6d389afc 9986
a90ef4bf
JM
9987html-gas: \
9988 configure-gas
9989 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9990 r=`${PWD_COMMAND}`; export r; \
9991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9992 $(HOST_EXPORTS) \
9993 for flag in $(EXTRA_HOST_FLAGS) ; do \
9994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9995 done; \
22121df0 9996 echo "Doing html in gas"; \
a90ef4bf 9997 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10000 "RANLIB=$${RANLIB}" \
0c24b341 10001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10002 html) \
10003 || exit 1
10004
a90ef4bf 10005@endif gas
6d389afc 10006
a90ef4bf
JM
10007.PHONY: maybe-TAGS-gas TAGS-gas
10008maybe-TAGS-gas:
10009@if gas
10010maybe-TAGS-gas: TAGS-gas
2a4cbe27 10011
a90ef4bf
JM
10012TAGS-gas: \
10013 configure-gas
10014 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10015 r=`${PWD_COMMAND}`; export r; \
10016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10017 $(HOST_EXPORTS) \
b813574b 10018 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10020 done; \
22121df0 10021 echo "Doing TAGS in gas"; \
a90ef4bf 10022 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10025 "RANLIB=$${RANLIB}" \
0c24b341 10026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10027 TAGS) \
2a4cbe27
NN
10028 || exit 1
10029
a90ef4bf 10030@endif gas
2a4cbe27 10031
a90ef4bf
JM
10032.PHONY: maybe-install-info-gas install-info-gas
10033maybe-install-info-gas:
10034@if gas
10035maybe-install-info-gas: install-info-gas
2a4cbe27 10036
a90ef4bf
JM
10037install-info-gas: \
10038 configure-gas \
10039 info-gas
10040 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10041 r=`${PWD_COMMAND}`; export r; \
10042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10043 $(HOST_EXPORTS) \
b813574b 10044 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10046 done; \
22121df0 10047 echo "Doing install-info in gas"; \
a90ef4bf 10048 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10051 "RANLIB=$${RANLIB}" \
0c24b341 10052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10053 install-info) \
2a4cbe27
NN
10054 || exit 1
10055
a90ef4bf 10056@endif gas
2a4cbe27 10057
a90ef4bf
JM
10058.PHONY: maybe-install-pdf-gas install-pdf-gas
10059maybe-install-pdf-gas:
10060@if gas
10061maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 10062
a90ef4bf
JM
10063install-pdf-gas: \
10064 configure-gas \
10065 pdf-gas
10066 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
10067 r=`${PWD_COMMAND}`; export r; \
10068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10069 $(HOST_EXPORTS) \
10070 for flag in $(EXTRA_HOST_FLAGS) ; do \
10071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10072 done; \
22121df0 10073 echo "Doing install-pdf in gas"; \
a90ef4bf 10074 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10077 "RANLIB=$${RANLIB}" \
0c24b341 10078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10079 install-pdf) \
10080 || exit 1
10081
a90ef4bf 10082@endif gas
a3ca38d2 10083
a90ef4bf
JM
10084.PHONY: maybe-install-html-gas install-html-gas
10085maybe-install-html-gas:
10086@if gas
10087maybe-install-html-gas: install-html-gas
108a6f8e 10088
a90ef4bf
JM
10089install-html-gas: \
10090 configure-gas \
10091 html-gas
10092 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10093 r=`${PWD_COMMAND}`; export r; \
10094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10095 $(HOST_EXPORTS) \
10096 for flag in $(EXTRA_HOST_FLAGS) ; do \
10097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10098 done; \
22121df0 10099 echo "Doing install-html in gas"; \
a90ef4bf 10100 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10103 "RANLIB=$${RANLIB}" \
0c24b341 10104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10105 install-html) \
10106 || exit 1
10107
a90ef4bf 10108@endif gas
108a6f8e 10109
a90ef4bf
JM
10110.PHONY: maybe-installcheck-gas installcheck-gas
10111maybe-installcheck-gas:
10112@if gas
10113maybe-installcheck-gas: installcheck-gas
2a4cbe27 10114
a90ef4bf
JM
10115installcheck-gas: \
10116 configure-gas
10117 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10118 r=`${PWD_COMMAND}`; export r; \
10119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10120 $(HOST_EXPORTS) \
b813574b 10121 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10123 done; \
22121df0 10124 echo "Doing installcheck in gas"; \
a90ef4bf 10125 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10128 "RANLIB=$${RANLIB}" \
0c24b341 10129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10130 installcheck) \
2a4cbe27
NN
10131 || exit 1
10132
a90ef4bf 10133@endif gas
2a4cbe27 10134
a90ef4bf
JM
10135.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10136maybe-mostlyclean-gas:
10137@if gas
10138maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10139
a90ef4bf
JM
10140mostlyclean-gas:
10141 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10142 r=`${PWD_COMMAND}`; export r; \
10143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10144 $(HOST_EXPORTS) \
b813574b 10145 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10147 done; \
22121df0 10148 echo "Doing mostlyclean in gas"; \
a90ef4bf 10149 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10152 "RANLIB=$${RANLIB}" \
0c24b341 10153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10154 mostlyclean) \
2a4cbe27
NN
10155 || exit 1
10156
a90ef4bf 10157@endif gas
2a4cbe27 10158
a90ef4bf
JM
10159.PHONY: maybe-clean-gas clean-gas
10160maybe-clean-gas:
10161@if gas
10162maybe-clean-gas: clean-gas
2a4cbe27 10163
a90ef4bf
JM
10164clean-gas:
10165 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10166 r=`${PWD_COMMAND}`; export r; \
10167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10168 $(HOST_EXPORTS) \
b813574b 10169 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10171 done; \
22121df0 10172 echo "Doing clean in gas"; \
a90ef4bf 10173 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10176 "RANLIB=$${RANLIB}" \
0c24b341 10177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10178 clean) \
2a4cbe27
NN
10179 || exit 1
10180
a90ef4bf 10181@endif gas
2a4cbe27 10182
a90ef4bf
JM
10183.PHONY: maybe-distclean-gas distclean-gas
10184maybe-distclean-gas:
10185@if gas
10186maybe-distclean-gas: distclean-gas
2a4cbe27 10187
a90ef4bf
JM
10188distclean-gas:
10189 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10190 r=`${PWD_COMMAND}`; export r; \
10191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10192 $(HOST_EXPORTS) \
b813574b 10193 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10195 done; \
22121df0 10196 echo "Doing distclean in gas"; \
a90ef4bf 10197 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10200 "RANLIB=$${RANLIB}" \
0c24b341 10201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10202 distclean) \
2a4cbe27
NN
10203 || exit 1
10204
a90ef4bf 10205@endif gas
2a4cbe27 10206
a90ef4bf
JM
10207.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10208maybe-maintainer-clean-gas:
10209@if gas
10210maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10211
a90ef4bf
JM
10212maintainer-clean-gas:
10213 @[ -f ./gas/Makefile ] || exit 0; \
10214 r=`${PWD_COMMAND}`; export r; \
b40e3958 10215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10216 $(HOST_EXPORTS) \
b813574b 10217 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10219 done; \
22121df0 10220 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10221 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10224 "RANLIB=$${RANLIB}" \
0c24b341 10225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10226 maintainer-clean) \
2a4cbe27
NN
10227 || exit 1
10228
a90ef4bf 10229@endif gas
2a4cbe27 10230
2a4cbe27 10231
a7254363 10232
a90ef4bf
JM
10233.PHONY: configure-gcc maybe-configure-gcc
10234maybe-configure-gcc:
4f0ef2d8 10235@if gcc-bootstrap
a90ef4bf 10236configure-gcc: stage_current
4f0ef2d8 10237@endif gcc-bootstrap
a90ef4bf
JM
10238@if gcc
10239maybe-configure-gcc: configure-gcc
10240configure-gcc:
c52c6897 10241 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10243 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10244 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10245 $(HOST_EXPORTS) \
a90ef4bf
JM
10246 echo Configuring in $(HOST_SUBDIR)/gcc; \
10247 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10248 case $(srcdir) in \
b00612cc 10249 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10250 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10251 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10252 esac; \
1b6c0831
L
10253 module_srcdir=gcc; \
10254 $(SHELL) \
10255 $$s/$$module_srcdir/configure \
10256 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10257 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10258 --target=${target_alias} \
4fa63067 10259 || exit 1
a90ef4bf 10260@endif gcc
a7254363 10261
d545f33b
PB
10262
10263
a90ef4bf
JM
10264.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10265maybe-configure-stage1-gcc:
4f0ef2d8 10266@if gcc-bootstrap
a90ef4bf
JM
10267maybe-configure-stage1-gcc: configure-stage1-gcc
10268configure-stage1-gcc:
10269 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10270 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10271 @r=`${PWD_COMMAND}`; export r; \
10272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10273 TFLAGS="$(STAGE1_TFLAGS)"; \
10274 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10275 $(HOST_EXPORTS) \
10276 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10277 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10278 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10279 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10280 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10281 cd $(HOST_SUBDIR)/gcc || exit 1; \
10282 case $(srcdir) in \
10283 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10284 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10285 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10286 esac; \
1b6c0831
L
10287 module_srcdir=gcc; \
10288 $(SHELL) $$s/$$module_srcdir/configure \
10289 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10290 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10291 --target=${target_alias} \
10292 \
a90ef4bf
JM
10293 $(STAGE1_CONFIGURE_FLAGS)
10294@endif gcc-bootstrap
4fa63067 10295
a90ef4bf
JM
10296.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10297maybe-configure-stage2-gcc:
10298@if gcc-bootstrap
10299maybe-configure-stage2-gcc: configure-stage2-gcc
10300configure-stage2-gcc:
10301 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10302 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10303 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10305 TFLAGS="$(STAGE2_TFLAGS)"; \
10306 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10307 $(HOST_EXPORTS) \
a90ef4bf
JM
10308 $(POSTSTAGE1_HOST_EXPORTS) \
10309 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10310 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10311 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10312 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10313 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10314 cd $(HOST_SUBDIR)/gcc || exit 1; \
10315 case $(srcdir) in \
10316 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10317 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10318 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10319 esac; \
1b6c0831
L
10320 module_srcdir=gcc; \
10321 $(SHELL) $$s/$$module_srcdir/configure \
10322 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10323 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10324 --target=${target_alias} \
22121df0 10325 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10326 $(STAGE2_CONFIGURE_FLAGS)
10327@endif gcc-bootstrap
9b980aa1 10328
a90ef4bf
JM
10329.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10330maybe-configure-stage3-gcc:
10331@if gcc-bootstrap
10332maybe-configure-stage3-gcc: configure-stage3-gcc
10333configure-stage3-gcc:
10334 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10335 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10336 @r=`${PWD_COMMAND}`; export r; \
10337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10338 TFLAGS="$(STAGE3_TFLAGS)"; \
10339 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10340 $(HOST_EXPORTS) \
a90ef4bf
JM
10341 $(POSTSTAGE1_HOST_EXPORTS) \
10342 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10343 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10344 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10345 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10346 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10347 cd $(HOST_SUBDIR)/gcc || exit 1; \
10348 case $(srcdir) in \
10349 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10350 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10351 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10352 esac; \
1b6c0831
L
10353 module_srcdir=gcc; \
10354 $(SHELL) $$s/$$module_srcdir/configure \
10355 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10356 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10357 --target=${target_alias} \
22121df0 10358 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10359 $(STAGE3_CONFIGURE_FLAGS)
10360@endif gcc-bootstrap
4fa63067 10361
a90ef4bf
JM
10362.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10363maybe-configure-stage4-gcc:
10364@if gcc-bootstrap
10365maybe-configure-stage4-gcc: configure-stage4-gcc
10366configure-stage4-gcc:
10367 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10368 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10369 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10371 TFLAGS="$(STAGE4_TFLAGS)"; \
10372 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10373 $(HOST_EXPORTS) \
a90ef4bf
JM
10374 $(POSTSTAGE1_HOST_EXPORTS) \
10375 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10376 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10377 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10378 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10379 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10380 cd $(HOST_SUBDIR)/gcc || exit 1; \
10381 case $(srcdir) in \
10382 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10383 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10384 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10385 esac; \
1b6c0831
L
10386 module_srcdir=gcc; \
10387 $(SHELL) $$s/$$module_srcdir/configure \
10388 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10389 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10390 --target=${target_alias} \
22121df0 10391 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10392 $(STAGE4_CONFIGURE_FLAGS)
10393@endif gcc-bootstrap
2a4cbe27 10394
a90ef4bf
JM
10395.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10396maybe-configure-stageprofile-gcc:
10397@if gcc-bootstrap
10398maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10399configure-stageprofile-gcc:
10400 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10401 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10402 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10404 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10405 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10406 $(HOST_EXPORTS) \
a90ef4bf
JM
10407 $(POSTSTAGE1_HOST_EXPORTS) \
10408 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10409 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10410 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10411 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10412 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10413 cd $(HOST_SUBDIR)/gcc || exit 1; \
10414 case $(srcdir) in \
10415 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10416 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10417 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10418 esac; \
1b6c0831
L
10419 module_srcdir=gcc; \
10420 $(SHELL) $$s/$$module_srcdir/configure \
10421 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10422 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10423 --target=${target_alias} \
22121df0 10424 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10425 $(STAGEprofile_CONFIGURE_FLAGS)
10426@endif gcc-bootstrap
56a8fe78 10427
a90ef4bf
JM
10428.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10429maybe-configure-stagefeedback-gcc:
10430@if gcc-bootstrap
10431maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10432configure-stagefeedback-gcc:
10433 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10434 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10435 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10437 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10438 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10439 $(HOST_EXPORTS) \
a90ef4bf
JM
10440 $(POSTSTAGE1_HOST_EXPORTS) \
10441 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10442 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10443 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10444 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10445 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10446 cd $(HOST_SUBDIR)/gcc || exit 1; \
10447 case $(srcdir) in \
10448 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10449 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10450 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10451 esac; \
1b6c0831
L
10452 module_srcdir=gcc; \
10453 $(SHELL) $$s/$$module_srcdir/configure \
10454 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10455 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10456 --target=${target_alias} \
22121df0 10457 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10458 $(STAGEfeedback_CONFIGURE_FLAGS)
10459@endif gcc-bootstrap
56a8fe78 10460
2a4cbe27 10461
2a4cbe27
NN
10462
10463
2a4cbe27 10464
a90ef4bf
JM
10465.PHONY: all-gcc maybe-all-gcc
10466maybe-all-gcc:
10467@if gcc-bootstrap
10468all-gcc: stage_current
10469@endif gcc-bootstrap
10470@if gcc
10471TARGET-gcc=all
10472maybe-all-gcc: all-gcc
10473all-gcc: configure-gcc
10474 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10476 $(HOST_EXPORTS) \
10477 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10478 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10479 $(TARGET-gcc))
10480@endif gcc
6d389afc 10481
6d389afc 10482
6d389afc 10483
a90ef4bf
JM
10484.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10485.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10486maybe-all-stage1-gcc:
10487maybe-clean-stage1-gcc:
10488@if gcc-bootstrap
10489maybe-all-stage1-gcc: all-stage1-gcc
10490all-stage1: all-stage1-gcc
10491TARGET-stage1-gcc = $(TARGET-gcc)
10492all-stage1-gcc: configure-stage1-gcc
10493 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10494 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10496 TFLAGS="$(STAGE1_TFLAGS)"; \
10497 $(HOST_EXPORTS) \
10498 cd $(HOST_SUBDIR)/gcc && \
05a13254 10499 \
a90ef4bf
JM
10500 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10501 CFLAGS="$(STAGE1_CFLAGS)" \
10502 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10503 LIBCFLAGS="$(LIBCFLAGS)" \
10504 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10505 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10506 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10507 $(EXTRA_HOST_FLAGS) \
10508 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10509 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 10510 $(TARGET-stage1-gcc)
2a4cbe27 10511
a90ef4bf
JM
10512maybe-clean-stage1-gcc: clean-stage1-gcc
10513clean-stage1: clean-stage1-gcc
10514clean-stage1-gcc:
10515 @if [ $(current_stage) = stage1 ]; then \
10516 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10517 else \
10518 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10519 $(MAKE) stage1-start; \
10520 fi; \
10521 cd $(HOST_SUBDIR)/gcc && \
10522 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10523 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10524@endif gcc-bootstrap
2a4cbe27 10525
a3ca38d2 10526
a90ef4bf
JM
10527.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10528.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10529maybe-all-stage2-gcc:
10530maybe-clean-stage2-gcc:
10531@if gcc-bootstrap
10532maybe-all-stage2-gcc: all-stage2-gcc
10533all-stage2: all-stage2-gcc
10534TARGET-stage2-gcc = $(TARGET-gcc)
10535all-stage2-gcc: configure-stage2-gcc
10536 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10537 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10539 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10540 $(HOST_EXPORTS) \
a90ef4bf
JM
10541 $(POSTSTAGE1_HOST_EXPORTS) \
10542 cd $(HOST_SUBDIR)/gcc && \
05a13254 10543 \
a90ef4bf
JM
10544 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10545 CFLAGS="$(STAGE2_CFLAGS)" \
10546 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10547 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10548 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10549 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10550 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10551 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10552 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 10553 $(TARGET-stage2-gcc)
a3ca38d2 10554
a90ef4bf
JM
10555maybe-clean-stage2-gcc: clean-stage2-gcc
10556clean-stage2: clean-stage2-gcc
10557clean-stage2-gcc:
10558 @if [ $(current_stage) = stage2 ]; then \
10559 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10560 else \
10561 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10562 $(MAKE) stage2-start; \
10563 fi; \
10564 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10565 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10566@endif gcc-bootstrap
a3ca38d2 10567
108a6f8e 10568
a90ef4bf
JM
10569.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10570.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10571maybe-all-stage3-gcc:
10572maybe-clean-stage3-gcc:
10573@if gcc-bootstrap
10574maybe-all-stage3-gcc: all-stage3-gcc
10575all-stage3: all-stage3-gcc
10576TARGET-stage3-gcc = $(TARGET-gcc)
10577all-stage3-gcc: configure-stage3-gcc
10578 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10579 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10581 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10582 $(HOST_EXPORTS) \
a90ef4bf
JM
10583 $(POSTSTAGE1_HOST_EXPORTS) \
10584 cd $(HOST_SUBDIR)/gcc && \
05a13254 10585 \
a90ef4bf
JM
10586 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10587 CFLAGS="$(STAGE3_CFLAGS)" \
10588 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10589 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10590 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10591 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10592 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10593 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10594 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 10595 $(TARGET-stage3-gcc)
108a6f8e 10596
a90ef4bf
JM
10597maybe-clean-stage3-gcc: clean-stage3-gcc
10598clean-stage3: clean-stage3-gcc
10599clean-stage3-gcc:
10600 @if [ $(current_stage) = stage3 ]; then \
10601 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10602 else \
10603 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10604 $(MAKE) stage3-start; \
10605 fi; \
10606 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10607 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10608@endif gcc-bootstrap
108a6f8e 10609
2a4cbe27 10610
a90ef4bf
JM
10611.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10612.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10613maybe-all-stage4-gcc:
10614maybe-clean-stage4-gcc:
10615@if gcc-bootstrap
10616maybe-all-stage4-gcc: all-stage4-gcc
10617all-stage4: all-stage4-gcc
10618TARGET-stage4-gcc = $(TARGET-gcc)
10619all-stage4-gcc: configure-stage4-gcc
10620 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10621 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10623 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10624 $(HOST_EXPORTS) \
a90ef4bf
JM
10625 $(POSTSTAGE1_HOST_EXPORTS) \
10626 cd $(HOST_SUBDIR)/gcc && \
05a13254 10627 \
a90ef4bf
JM
10628 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10629 CFLAGS="$(STAGE4_CFLAGS)" \
10630 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10631 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10632 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10633 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10634 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10635 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10636 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 10637 $(TARGET-stage4-gcc)
2a4cbe27 10638
a90ef4bf
JM
10639maybe-clean-stage4-gcc: clean-stage4-gcc
10640clean-stage4: clean-stage4-gcc
10641clean-stage4-gcc:
10642 @if [ $(current_stage) = stage4 ]; then \
10643 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10644 else \
10645 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10646 $(MAKE) stage4-start; \
10647 fi; \
10648 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10649 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10650@endif gcc-bootstrap
2a4cbe27 10651
a2592b1b 10652
a90ef4bf
JM
10653.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10654.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10655maybe-all-stageprofile-gcc:
10656maybe-clean-stageprofile-gcc:
10657@if gcc-bootstrap
10658maybe-all-stageprofile-gcc: all-stageprofile-gcc
10659all-stageprofile: all-stageprofile-gcc
10660TARGET-stageprofile-gcc = $(TARGET-gcc)
10661all-stageprofile-gcc: configure-stageprofile-gcc
10662 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10663 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10665 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10666 $(HOST_EXPORTS) \
a90ef4bf
JM
10667 $(POSTSTAGE1_HOST_EXPORTS) \
10668 cd $(HOST_SUBDIR)/gcc && \
05a13254 10669 \
a90ef4bf
JM
10670 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10671 CFLAGS="$(STAGEprofile_CFLAGS)" \
10672 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10673 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10674 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10675 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10676 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10677 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10678 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 10679 $(TARGET-stageprofile-gcc)
2a4cbe27 10680
a90ef4bf
JM
10681maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10682clean-stageprofile: clean-stageprofile-gcc
10683clean-stageprofile-gcc:
10684 @if [ $(current_stage) = stageprofile ]; then \
10685 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10686 else \
10687 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10688 $(MAKE) stageprofile-start; \
10689 fi; \
10690 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10691 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10692@endif gcc-bootstrap
2a4cbe27 10693
a7254363 10694
a90ef4bf
JM
10695.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10696.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10697maybe-all-stagefeedback-gcc:
10698maybe-clean-stagefeedback-gcc:
4f0ef2d8 10699@if gcc-bootstrap
a90ef4bf
JM
10700maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10701all-stagefeedback: all-stagefeedback-gcc
10702TARGET-stagefeedback-gcc = $(TARGET-gcc)
10703all-stagefeedback-gcc: configure-stagefeedback-gcc
10704 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10705 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10707 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10708 $(HOST_EXPORTS) \
10709 $(POSTSTAGE1_HOST_EXPORTS) \
10710 cd $(HOST_SUBDIR)/gcc && \
05a13254 10711 \
a90ef4bf
JM
10712 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10713 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10714 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10715 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10716 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10717 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10718 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10719 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10720 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 10721 $(TARGET-stagefeedback-gcc)
d545f33b 10722
a90ef4bf
JM
10723maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10724clean-stagefeedback: clean-stagefeedback-gcc
10725clean-stagefeedback-gcc:
10726 @if [ $(current_stage) = stagefeedback ]; then \
10727 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10728 else \
10729 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10730 $(MAKE) stagefeedback-start; \
10731 fi; \
10732 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10733 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10734@endif gcc-bootstrap
4fa63067 10735
a7254363 10736
d545f33b
PB
10737
10738
4fa63067 10739
a90ef4bf
JM
10740.PHONY: check-gcc maybe-check-gcc
10741maybe-check-gcc:
10742@if gcc
10743maybe-check-gcc: check-gcc
10744
10745check-gcc:
0aed8855 10746 @: $(MAKE); $(unstage)
4fa63067
NN
10747 @r=`${PWD_COMMAND}`; export r; \
10748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10749 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10750 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10751 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10752
a90ef4bf 10753@endif gcc
4fa63067 10754
a90ef4bf
JM
10755.PHONY: install-gcc maybe-install-gcc
10756maybe-install-gcc:
10757@if gcc
10758maybe-install-gcc: install-gcc
4fa63067 10759
a90ef4bf 10760install-gcc: installdirs
0aed8855 10761 @: $(MAKE); $(unstage)
4fa63067
NN
10762 @r=`${PWD_COMMAND}`; export r; \
10763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10764 $(HOST_EXPORTS) \
a90ef4bf
JM
10765 (cd $(HOST_SUBDIR)/gcc && \
10766 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10767
a90ef4bf 10768@endif gcc
4fa63067 10769
a90ef4bf
JM
10770.PHONY: install-strip-gcc maybe-install-strip-gcc
10771maybe-install-strip-gcc:
10772@if gcc
10773maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10774
a90ef4bf 10775install-strip-gcc: installdirs
9b980aa1
RW
10776 @: $(MAKE); $(unstage)
10777 @r=`${PWD_COMMAND}`; export r; \
10778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10779 $(HOST_EXPORTS) \
a90ef4bf
JM
10780 (cd $(HOST_SUBDIR)/gcc && \
10781 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10782
a90ef4bf 10783@endif gcc
9b980aa1 10784
56a8fe78 10785# Other targets (info, dvi, pdf, etc.)
4fa63067 10786
a90ef4bf
JM
10787.PHONY: maybe-info-gcc info-gcc
10788maybe-info-gcc:
10789@if gcc
10790maybe-info-gcc: info-gcc
4fa63067 10791
a90ef4bf
JM
10792info-gcc: \
10793 configure-gcc
10794 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10795 r=`${PWD_COMMAND}`; export r; \
10796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10797 $(HOST_EXPORTS) \
a90ef4bf 10798 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10800 done; \
22121df0 10801 echo "Doing info in gcc"; \
a90ef4bf 10802 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10805 "RANLIB=$${RANLIB}" \
0c24b341 10806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10807 info) \
2a4cbe27
NN
10808 || exit 1
10809
a90ef4bf 10810@endif gcc
2a4cbe27 10811
a90ef4bf
JM
10812.PHONY: maybe-dvi-gcc dvi-gcc
10813maybe-dvi-gcc:
10814@if gcc
10815maybe-dvi-gcc: dvi-gcc
2a4cbe27 10816
a90ef4bf
JM
10817dvi-gcc: \
10818 configure-gcc
10819 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10820 r=`${PWD_COMMAND}`; export r; \
10821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10822 $(HOST_EXPORTS) \
a90ef4bf 10823 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10825 done; \
22121df0 10826 echo "Doing dvi in gcc"; \
a90ef4bf 10827 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10830 "RANLIB=$${RANLIB}" \
0c24b341 10831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10832 dvi) \
2a4cbe27
NN
10833 || exit 1
10834
a90ef4bf 10835@endif gcc
2a4cbe27 10836
a90ef4bf
JM
10837.PHONY: maybe-pdf-gcc pdf-gcc
10838maybe-pdf-gcc:
10839@if gcc
10840maybe-pdf-gcc: pdf-gcc
56a8fe78 10841
a90ef4bf
JM
10842pdf-gcc: \
10843 configure-gcc
10844 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10845 r=`${PWD_COMMAND}`; export r; \
10846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10847 $(HOST_EXPORTS) \
a90ef4bf 10848 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10850 done; \
22121df0 10851 echo "Doing pdf in gcc"; \
a90ef4bf 10852 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10855 "RANLIB=$${RANLIB}" \
0c24b341 10856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10857 pdf) \
10858 || exit 1
10859
a90ef4bf 10860@endif gcc
56a8fe78 10861
a90ef4bf
JM
10862.PHONY: maybe-html-gcc html-gcc
10863maybe-html-gcc:
10864@if gcc
10865maybe-html-gcc: html-gcc
6d389afc 10866
a90ef4bf
JM
10867html-gcc: \
10868 configure-gcc
10869 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10870 r=`${PWD_COMMAND}`; export r; \
10871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10872 $(HOST_EXPORTS) \
a90ef4bf 10873 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10875 done; \
22121df0 10876 echo "Doing html in gcc"; \
a90ef4bf 10877 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10880 "RANLIB=$${RANLIB}" \
0c24b341 10881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10882 html) \
10883 || exit 1
10884
a90ef4bf 10885@endif gcc
6d389afc 10886
a90ef4bf
JM
10887.PHONY: maybe-TAGS-gcc TAGS-gcc
10888maybe-TAGS-gcc:
10889@if gcc
10890maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10891
a90ef4bf
JM
10892TAGS-gcc: \
10893 configure-gcc
10894 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10895 r=`${PWD_COMMAND}`; export r; \
10896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10897 $(HOST_EXPORTS) \
a90ef4bf 10898 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10900 done; \
22121df0 10901 echo "Doing TAGS in gcc"; \
a90ef4bf 10902 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10905 "RANLIB=$${RANLIB}" \
0c24b341 10906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10907 TAGS) \
2a4cbe27
NN
10908 || exit 1
10909
a90ef4bf 10910@endif gcc
2a4cbe27 10911
a90ef4bf
JM
10912.PHONY: maybe-install-info-gcc install-info-gcc
10913maybe-install-info-gcc:
10914@if gcc
10915maybe-install-info-gcc: install-info-gcc
2a4cbe27 10916
a90ef4bf
JM
10917install-info-gcc: \
10918 configure-gcc \
10919 info-gcc
10920 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10921 r=`${PWD_COMMAND}`; export r; \
10922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10923 $(HOST_EXPORTS) \
a90ef4bf 10924 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10926 done; \
22121df0 10927 echo "Doing install-info in gcc"; \
a90ef4bf 10928 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10931 "RANLIB=$${RANLIB}" \
0c24b341 10932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10933 install-info) \
2a4cbe27
NN
10934 || exit 1
10935
a90ef4bf 10936@endif gcc
2a4cbe27 10937
a90ef4bf
JM
10938.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10939maybe-install-pdf-gcc:
10940@if gcc
10941maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10942
a90ef4bf
JM
10943install-pdf-gcc: \
10944 configure-gcc \
10945 pdf-gcc
10946 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10947 r=`${PWD_COMMAND}`; export r; \
10948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10949 $(HOST_EXPORTS) \
a90ef4bf 10950 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10952 done; \
22121df0 10953 echo "Doing install-pdf in gcc"; \
a90ef4bf 10954 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10957 "RANLIB=$${RANLIB}" \
0c24b341 10958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10959 install-pdf) \
10960 || exit 1
10961
a90ef4bf 10962@endif gcc
a3ca38d2 10963
a90ef4bf
JM
10964.PHONY: maybe-install-html-gcc install-html-gcc
10965maybe-install-html-gcc:
10966@if gcc
10967maybe-install-html-gcc: install-html-gcc
108a6f8e 10968
a90ef4bf
JM
10969install-html-gcc: \
10970 configure-gcc \
10971 html-gcc
10972 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10973 r=`${PWD_COMMAND}`; export r; \
10974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10975 $(HOST_EXPORTS) \
a90ef4bf 10976 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10978 done; \
22121df0 10979 echo "Doing install-html in gcc"; \
a90ef4bf 10980 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10983 "RANLIB=$${RANLIB}" \
0c24b341 10984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10985 install-html) \
10986 || exit 1
10987
a90ef4bf 10988@endif gcc
108a6f8e 10989
a90ef4bf
JM
10990.PHONY: maybe-installcheck-gcc installcheck-gcc
10991maybe-installcheck-gcc:
10992@if gcc
10993maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10994
a90ef4bf
JM
10995installcheck-gcc: \
10996 configure-gcc
10997 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10998 r=`${PWD_COMMAND}`; export r; \
10999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11000 $(HOST_EXPORTS) \
a90ef4bf 11001 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11003 done; \
22121df0 11004 echo "Doing installcheck in gcc"; \
a90ef4bf 11005 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11008 "RANLIB=$${RANLIB}" \
0c24b341 11009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11010 installcheck) \
2a4cbe27
NN
11011 || exit 1
11012
a90ef4bf 11013@endif gcc
2a4cbe27 11014
a90ef4bf
JM
11015.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
11016maybe-mostlyclean-gcc:
11017@if gcc
11018maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 11019
a90ef4bf
JM
11020mostlyclean-gcc:
11021 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11022 r=`${PWD_COMMAND}`; export r; \
11023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11024 $(HOST_EXPORTS) \
a90ef4bf 11025 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11027 done; \
22121df0 11028 echo "Doing mostlyclean in gcc"; \
a90ef4bf 11029 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11032 "RANLIB=$${RANLIB}" \
0c24b341 11033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11034 mostlyclean) \
2a4cbe27
NN
11035 || exit 1
11036
a90ef4bf 11037@endif gcc
2a4cbe27 11038
a90ef4bf
JM
11039.PHONY: maybe-clean-gcc clean-gcc
11040maybe-clean-gcc:
11041@if gcc
11042maybe-clean-gcc: clean-gcc
2a4cbe27 11043
a90ef4bf
JM
11044clean-gcc:
11045 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11046 r=`${PWD_COMMAND}`; export r; \
11047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11048 $(HOST_EXPORTS) \
a90ef4bf 11049 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11051 done; \
22121df0 11052 echo "Doing clean in gcc"; \
a90ef4bf 11053 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11056 "RANLIB=$${RANLIB}" \
0c24b341 11057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11058 clean) \
2a4cbe27
NN
11059 || exit 1
11060
a90ef4bf 11061@endif gcc
2a4cbe27 11062
a90ef4bf
JM
11063.PHONY: maybe-distclean-gcc distclean-gcc
11064maybe-distclean-gcc:
11065@if gcc
11066maybe-distclean-gcc: distclean-gcc
2a4cbe27 11067
a90ef4bf
JM
11068distclean-gcc:
11069 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11070 r=`${PWD_COMMAND}`; export r; \
11071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11072 $(HOST_EXPORTS) \
a90ef4bf 11073 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11075 done; \
22121df0 11076 echo "Doing distclean in gcc"; \
a90ef4bf 11077 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11080 "RANLIB=$${RANLIB}" \
0c24b341 11081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11082 distclean) \
2a4cbe27
NN
11083 || exit 1
11084
a90ef4bf 11085@endif gcc
2a4cbe27 11086
a90ef4bf
JM
11087.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11088maybe-maintainer-clean-gcc:
11089@if gcc
11090maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11091
a90ef4bf
JM
11092maintainer-clean-gcc:
11093 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11094 r=`${PWD_COMMAND}`; export r; \
11095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11096 $(HOST_EXPORTS) \
a90ef4bf 11097 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11099 done; \
22121df0 11100 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11101 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11104 "RANLIB=$${RANLIB}" \
0c24b341 11105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11106 maintainer-clean) \
2a4cbe27
NN
11107 || exit 1
11108
a90ef4bf 11109@endif gcc
2a4cbe27 11110
2a4cbe27 11111
a7254363 11112
a90ef4bf
JM
11113.PHONY: configure-gmp maybe-configure-gmp
11114maybe-configure-gmp:
4f0ef2d8 11115@if gcc-bootstrap
a90ef4bf 11116configure-gmp: stage_current
4f0ef2d8 11117@endif gcc-bootstrap
a90ef4bf
JM
11118@if gmp
11119maybe-configure-gmp: configure-gmp
11120configure-gmp:
c52c6897 11121 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11123 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11124 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11125 $(HOST_EXPORTS) \
a90ef4bf
JM
11126 echo Configuring in $(HOST_SUBDIR)/gmp; \
11127 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11128 case $(srcdir) in \
b00612cc 11129 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11130 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11131 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11132 esac; \
1b6c0831
L
11133 module_srcdir=gmp; \
11134 $(SHELL) \
11135 $$s/$$module_srcdir/configure \
11136 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11137 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11138 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11139 || exit 1
a90ef4bf 11140@endif gmp
a7254363 11141
d545f33b
PB
11142
11143
a90ef4bf
JM
11144.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11145maybe-configure-stage1-gmp:
11146@if gmp-bootstrap
11147maybe-configure-stage1-gmp: configure-stage1-gmp
11148configure-stage1-gmp:
11149 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11150 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11151 @r=`${PWD_COMMAND}`; export r; \
11152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11153 TFLAGS="$(STAGE1_TFLAGS)"; \
11154 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11155 $(HOST_EXPORTS) \
11156 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11157 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11158 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11159 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11160 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11161 cd $(HOST_SUBDIR)/gmp || exit 1; \
11162 case $(srcdir) in \
11163 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11164 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11165 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11166 esac; \
1b6c0831
L
11167 module_srcdir=gmp; \
11168 $(SHELL) $$s/$$module_srcdir/configure \
11169 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11170 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11171 --target=none-${host_vendor}-${host_os} \
11172 \
a90ef4bf 11173 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11174 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11175@endif gmp-bootstrap
4fa63067 11176
a90ef4bf
JM
11177.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11178maybe-configure-stage2-gmp:
11179@if gmp-bootstrap
11180maybe-configure-stage2-gmp: configure-stage2-gmp
11181configure-stage2-gmp:
11182 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11183 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11184 @r=`${PWD_COMMAND}`; export r; \
11185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11186 TFLAGS="$(STAGE2_TFLAGS)"; \
11187 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11188 $(HOST_EXPORTS) \
11189 $(POSTSTAGE1_HOST_EXPORTS) \
11190 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11191 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11192 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11193 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11194 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11195 cd $(HOST_SUBDIR)/gmp || exit 1; \
11196 case $(srcdir) in \
11197 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11198 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11199 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11200 esac; \
1b6c0831
L
11201 module_srcdir=gmp; \
11202 $(SHELL) $$s/$$module_srcdir/configure \
11203 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11204 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11205 --target=none-${host_vendor}-${host_os} \
22121df0 11206 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11207 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11208 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11209@endif gmp-bootstrap
4fa63067 11210
a90ef4bf
JM
11211.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11212maybe-configure-stage3-gmp:
11213@if gmp-bootstrap
11214maybe-configure-stage3-gmp: configure-stage3-gmp
11215configure-stage3-gmp:
11216 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11217 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11218 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11220 TFLAGS="$(STAGE3_TFLAGS)"; \
11221 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11222 $(HOST_EXPORTS) \
a90ef4bf
JM
11223 $(POSTSTAGE1_HOST_EXPORTS) \
11224 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11225 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11226 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11227 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11228 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11229 cd $(HOST_SUBDIR)/gmp || exit 1; \
11230 case $(srcdir) in \
11231 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11232 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11233 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11234 esac; \
1b6c0831
L
11235 module_srcdir=gmp; \
11236 $(SHELL) $$s/$$module_srcdir/configure \
11237 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11238 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11239 --target=none-${host_vendor}-${host_os} \
22121df0 11240 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11241 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11242 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11243@endif gmp-bootstrap
2a4cbe27 11244
a90ef4bf
JM
11245.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11246maybe-configure-stage4-gmp:
11247@if gmp-bootstrap
11248maybe-configure-stage4-gmp: configure-stage4-gmp
11249configure-stage4-gmp:
11250 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11251 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11252 @r=`${PWD_COMMAND}`; export r; \
11253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11254 TFLAGS="$(STAGE4_TFLAGS)"; \
11255 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11256 $(HOST_EXPORTS) \
11257 $(POSTSTAGE1_HOST_EXPORTS) \
11258 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11259 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11260 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11261 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11262 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11263 cd $(HOST_SUBDIR)/gmp || exit 1; \
11264 case $(srcdir) in \
11265 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11266 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11267 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11268 esac; \
1b6c0831
L
11269 module_srcdir=gmp; \
11270 $(SHELL) $$s/$$module_srcdir/configure \
11271 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11272 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11273 --target=none-${host_vendor}-${host_os} \
22121df0 11274 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11275 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11276 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11277@endif gmp-bootstrap
2a4cbe27 11278
a90ef4bf
JM
11279.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11280maybe-configure-stageprofile-gmp:
11281@if gmp-bootstrap
11282maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11283configure-stageprofile-gmp:
11284 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11285 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11286 @r=`${PWD_COMMAND}`; export r; \
11287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11288 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11289 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11290 $(HOST_EXPORTS) \
11291 $(POSTSTAGE1_HOST_EXPORTS) \
11292 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11293 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11294 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11295 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11296 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11297 cd $(HOST_SUBDIR)/gmp || exit 1; \
11298 case $(srcdir) in \
11299 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11300 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11301 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11302 esac; \
1b6c0831
L
11303 module_srcdir=gmp; \
11304 $(SHELL) $$s/$$module_srcdir/configure \
11305 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11306 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11307 --target=none-${host_vendor}-${host_os} \
22121df0 11308 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11309 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11310 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11311@endif gmp-bootstrap
9b980aa1 11312
a90ef4bf
JM
11313.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11314maybe-configure-stagefeedback-gmp:
11315@if gmp-bootstrap
11316maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11317configure-stagefeedback-gmp:
11318 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11319 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11320 @r=`${PWD_COMMAND}`; export r; \
11321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11322 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11323 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11324 $(HOST_EXPORTS) \
a90ef4bf
JM
11325 $(POSTSTAGE1_HOST_EXPORTS) \
11326 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11327 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11328 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11329 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11330 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11331 cd $(HOST_SUBDIR)/gmp || exit 1; \
11332 case $(srcdir) in \
11333 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11334 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11335 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11336 esac; \
1b6c0831
L
11337 module_srcdir=gmp; \
11338 $(SHELL) $$s/$$module_srcdir/configure \
11339 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11340 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11341 --target=none-${host_vendor}-${host_os} \
22121df0 11342 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11343 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11344 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11345@endif gmp-bootstrap
9b980aa1 11346
9b980aa1 11347
2a4cbe27 11348
4fa63067 11349
a90ef4bf
JM
11350
11351.PHONY: all-gmp maybe-all-gmp
11352maybe-all-gmp:
11353@if gcc-bootstrap
11354all-gmp: stage_current
11355@endif gcc-bootstrap
11356@if gmp
11357TARGET-gmp=all
11358maybe-all-gmp: all-gmp
11359all-gmp: configure-gmp
11360 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11362 $(HOST_EXPORTS) \
11363 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11364 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
11365 $(TARGET-gmp))
11366@endif gmp
2a4cbe27
NN
11367
11368
2a4cbe27 11369
a90ef4bf
JM
11370.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11371.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11372maybe-all-stage1-gmp:
11373maybe-clean-stage1-gmp:
11374@if gmp-bootstrap
11375maybe-all-stage1-gmp: all-stage1-gmp
11376all-stage1: all-stage1-gmp
11377TARGET-stage1-gmp = $(TARGET-gmp)
11378all-stage1-gmp: configure-stage1-gmp
11379 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11380 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11382 TFLAGS="$(STAGE1_TFLAGS)"; \
11383 $(HOST_EXPORTS) \
11384 cd $(HOST_SUBDIR)/gmp && \
05a13254 11385 \
a90ef4bf
JM
11386 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11387 CFLAGS="$(STAGE1_CFLAGS)" \
11388 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11389 LIBCFLAGS="$(LIBCFLAGS)" \
11390 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11391 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11392 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 11393 $(EXTRA_HOST_FLAGS) \
05a13254
NC
11394 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11395 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 11396 $(TARGET-stage1-gmp)
2a4cbe27 11397
a90ef4bf
JM
11398maybe-clean-stage1-gmp: clean-stage1-gmp
11399clean-stage1: clean-stage1-gmp
11400clean-stage1-gmp:
11401 @if [ $(current_stage) = stage1 ]; then \
11402 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11403 else \
11404 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11405 $(MAKE) stage1-start; \
11406 fi; \
11407 cd $(HOST_SUBDIR)/gmp && \
11408 $(MAKE) $(EXTRA_HOST_FLAGS) \
05a13254 11409 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11410@endif gmp-bootstrap
2a4cbe27 11411
56a8fe78 11412
a90ef4bf
JM
11413.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11414.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11415maybe-all-stage2-gmp:
11416maybe-clean-stage2-gmp:
11417@if gmp-bootstrap
11418maybe-all-stage2-gmp: all-stage2-gmp
11419all-stage2: all-stage2-gmp
11420TARGET-stage2-gmp = $(TARGET-gmp)
11421all-stage2-gmp: configure-stage2-gmp
11422 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11423 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11425 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11426 $(HOST_EXPORTS) \
a90ef4bf
JM
11427 $(POSTSTAGE1_HOST_EXPORTS) \
11428 cd $(HOST_SUBDIR)/gmp && \
05a13254 11429 \
a90ef4bf
JM
11430 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11431 CFLAGS="$(STAGE2_CFLAGS)" \
11432 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11433 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11434 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11435 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11436 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11437 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11438 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 11439 $(TARGET-stage2-gmp)
56a8fe78 11440
a90ef4bf
JM
11441maybe-clean-stage2-gmp: clean-stage2-gmp
11442clean-stage2: clean-stage2-gmp
11443clean-stage2-gmp:
11444 @if [ $(current_stage) = stage2 ]; then \
11445 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11446 else \
11447 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11448 $(MAKE) stage2-start; \
11449 fi; \
11450 cd $(HOST_SUBDIR)/gmp && \
05a13254 11451 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11452@endif gmp-bootstrap
56a8fe78 11453
6d389afc 11454
a90ef4bf
JM
11455.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11456.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11457maybe-all-stage3-gmp:
11458maybe-clean-stage3-gmp:
11459@if gmp-bootstrap
11460maybe-all-stage3-gmp: all-stage3-gmp
11461all-stage3: all-stage3-gmp
11462TARGET-stage3-gmp = $(TARGET-gmp)
11463all-stage3-gmp: configure-stage3-gmp
11464 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11465 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11467 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11468 $(HOST_EXPORTS) \
a90ef4bf
JM
11469 $(POSTSTAGE1_HOST_EXPORTS) \
11470 cd $(HOST_SUBDIR)/gmp && \
05a13254 11471 \
a90ef4bf
JM
11472 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11473 CFLAGS="$(STAGE3_CFLAGS)" \
11474 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11475 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11476 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11477 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11478 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11479 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11480 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 11481 $(TARGET-stage3-gmp)
6d389afc 11482
a90ef4bf
JM
11483maybe-clean-stage3-gmp: clean-stage3-gmp
11484clean-stage3: clean-stage3-gmp
11485clean-stage3-gmp:
11486 @if [ $(current_stage) = stage3 ]; then \
11487 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11488 else \
11489 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11490 $(MAKE) stage3-start; \
11491 fi; \
11492 cd $(HOST_SUBDIR)/gmp && \
05a13254 11493 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11494@endif gmp-bootstrap
6d389afc 11495
2a4cbe27 11496
a90ef4bf
JM
11497.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11498.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11499maybe-all-stage4-gmp:
11500maybe-clean-stage4-gmp:
11501@if gmp-bootstrap
11502maybe-all-stage4-gmp: all-stage4-gmp
11503all-stage4: all-stage4-gmp
11504TARGET-stage4-gmp = $(TARGET-gmp)
11505all-stage4-gmp: configure-stage4-gmp
11506 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11507 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11509 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11510 $(HOST_EXPORTS) \
a90ef4bf
JM
11511 $(POSTSTAGE1_HOST_EXPORTS) \
11512 cd $(HOST_SUBDIR)/gmp && \
05a13254 11513 \
a90ef4bf
JM
11514 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11515 CFLAGS="$(STAGE4_CFLAGS)" \
11516 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11517 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11518 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11519 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11520 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11521 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11522 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 11523 $(TARGET-stage4-gmp)
2a4cbe27 11524
a90ef4bf
JM
11525maybe-clean-stage4-gmp: clean-stage4-gmp
11526clean-stage4: clean-stage4-gmp
11527clean-stage4-gmp:
11528 @if [ $(current_stage) = stage4 ]; then \
11529 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11530 else \
11531 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11532 $(MAKE) stage4-start; \
11533 fi; \
11534 cd $(HOST_SUBDIR)/gmp && \
05a13254 11535 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11536@endif gmp-bootstrap
2a4cbe27 11537
2a4cbe27 11538
a90ef4bf
JM
11539.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11540.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11541maybe-all-stageprofile-gmp:
11542maybe-clean-stageprofile-gmp:
11543@if gmp-bootstrap
11544maybe-all-stageprofile-gmp: all-stageprofile-gmp
11545all-stageprofile: all-stageprofile-gmp
11546TARGET-stageprofile-gmp = $(TARGET-gmp)
11547all-stageprofile-gmp: configure-stageprofile-gmp
11548 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11549 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11551 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11552 $(HOST_EXPORTS) \
a90ef4bf
JM
11553 $(POSTSTAGE1_HOST_EXPORTS) \
11554 cd $(HOST_SUBDIR)/gmp && \
05a13254 11555 \
a90ef4bf
JM
11556 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11557 CFLAGS="$(STAGEprofile_CFLAGS)" \
11558 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11559 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11560 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11561 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11562 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11563 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11564 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 11565 $(TARGET-stageprofile-gmp)
2a4cbe27 11566
a90ef4bf
JM
11567maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11568clean-stageprofile: clean-stageprofile-gmp
11569clean-stageprofile-gmp:
11570 @if [ $(current_stage) = stageprofile ]; then \
11571 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11572 else \
11573 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11574 $(MAKE) stageprofile-start; \
11575 fi; \
11576 cd $(HOST_SUBDIR)/gmp && \
05a13254 11577 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11578@endif gmp-bootstrap
2a4cbe27 11579
a7254363 11580
a90ef4bf
JM
11581.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11582.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11583maybe-all-stagefeedback-gmp:
11584maybe-clean-stagefeedback-gmp:
11585@if gmp-bootstrap
11586maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11587all-stagefeedback: all-stagefeedback-gmp
11588TARGET-stagefeedback-gmp = $(TARGET-gmp)
11589all-stagefeedback-gmp: configure-stagefeedback-gmp
11590 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11591 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11593 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11594 $(HOST_EXPORTS) \
11595 $(POSTSTAGE1_HOST_EXPORTS) \
11596 cd $(HOST_SUBDIR)/gmp && \
05a13254 11597 \
a90ef4bf
JM
11598 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11599 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11600 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11601 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11602 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11603 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11604 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11605 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11606 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 11607 $(TARGET-stagefeedback-gmp)
d545f33b 11608
a90ef4bf
JM
11609maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11610clean-stagefeedback: clean-stagefeedback-gmp
11611clean-stagefeedback-gmp:
11612 @if [ $(current_stage) = stagefeedback ]; then \
11613 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11614 else \
11615 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11616 $(MAKE) stagefeedback-start; \
11617 fi; \
11618 cd $(HOST_SUBDIR)/gmp && \
05a13254 11619 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11620@endif gmp-bootstrap
d545f33b 11621
4fa63067 11622
a7254363 11623
d545f33b
PB
11624
11625
a90ef4bf
JM
11626.PHONY: check-gmp maybe-check-gmp
11627maybe-check-gmp:
11628@if gmp
11629maybe-check-gmp: check-gmp
4fa63067 11630
a90ef4bf 11631check-gmp:
0aed8855 11632 @: $(MAKE); $(unstage)
4fa63067
NN
11633 @r=`${PWD_COMMAND}`; export r; \
11634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11635 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11636 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11637 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11638
a90ef4bf 11639@endif gmp
2a4cbe27 11640
a90ef4bf
JM
11641.PHONY: install-gmp maybe-install-gmp
11642maybe-install-gmp:
11643@if gmp
11644maybe-install-gmp: install-gmp
2a4cbe27 11645
a90ef4bf 11646install-gmp:
2a4cbe27 11647
a90ef4bf 11648@endif gmp
2a4cbe27 11649
a90ef4bf
JM
11650.PHONY: install-strip-gmp maybe-install-strip-gmp
11651maybe-install-strip-gmp:
11652@if gmp
11653maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11654
a90ef4bf 11655install-strip-gmp:
9b980aa1 11656
a90ef4bf 11657@endif gmp
9b980aa1 11658
56a8fe78 11659# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11660
a90ef4bf
JM
11661.PHONY: maybe-info-gmp info-gmp
11662maybe-info-gmp:
11663@if gmp
11664maybe-info-gmp: info-gmp
4fa63067 11665
a90ef4bf
JM
11666info-gmp: \
11667 configure-gmp
11668 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11669 r=`${PWD_COMMAND}`; export r; \
11670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11671 $(HOST_EXPORTS) \
05a13254 11672 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11674 done; \
22121df0 11675 echo "Doing info in gmp"; \
a90ef4bf 11676 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11679 "RANLIB=$${RANLIB}" \
0c24b341 11680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11681 info) \
2a4cbe27
NN
11682 || exit 1
11683
a90ef4bf 11684@endif gmp
2a4cbe27 11685
a90ef4bf
JM
11686.PHONY: maybe-dvi-gmp dvi-gmp
11687maybe-dvi-gmp:
11688@if gmp
11689maybe-dvi-gmp: dvi-gmp
2a4cbe27 11690
a90ef4bf
JM
11691dvi-gmp: \
11692 configure-gmp
11693 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11694 r=`${PWD_COMMAND}`; export r; \
11695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11696 $(HOST_EXPORTS) \
05a13254 11697 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11699 done; \
22121df0 11700 echo "Doing dvi in gmp"; \
a90ef4bf 11701 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11704 "RANLIB=$${RANLIB}" \
0c24b341 11705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11706 dvi) \
2a4cbe27
NN
11707 || exit 1
11708
a90ef4bf 11709@endif gmp
2a4cbe27 11710
a90ef4bf
JM
11711.PHONY: maybe-pdf-gmp pdf-gmp
11712maybe-pdf-gmp:
11713@if gmp
11714maybe-pdf-gmp: pdf-gmp
56a8fe78 11715
a90ef4bf
JM
11716pdf-gmp: \
11717 configure-gmp
11718 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11719 r=`${PWD_COMMAND}`; export r; \
11720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11721 $(HOST_EXPORTS) \
05a13254 11722 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
11723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11724 done; \
22121df0 11725 echo "Doing pdf in gmp"; \
a90ef4bf 11726 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11729 "RANLIB=$${RANLIB}" \
0c24b341 11730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11731 pdf) \
11732 || exit 1
11733
a90ef4bf 11734@endif gmp
56a8fe78 11735
a90ef4bf
JM
11736.PHONY: maybe-html-gmp html-gmp
11737maybe-html-gmp:
11738@if gmp
11739maybe-html-gmp: html-gmp
6d389afc 11740
a90ef4bf
JM
11741html-gmp: \
11742 configure-gmp
11743 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11744 r=`${PWD_COMMAND}`; export r; \
11745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 11746 $(HOST_EXPORTS) \
05a13254 11747 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
11748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11749 done; \
22121df0 11750 echo "Doing html in gmp"; \
a90ef4bf 11751 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11754 "RANLIB=$${RANLIB}" \
0c24b341 11755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11756 html) \
11757 || exit 1
11758
a90ef4bf 11759@endif gmp
6d389afc 11760
a90ef4bf
JM
11761.PHONY: maybe-TAGS-gmp TAGS-gmp
11762maybe-TAGS-gmp:
11763@if gmp
11764maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11765
a90ef4bf
JM
11766TAGS-gmp: \
11767 configure-gmp
11768 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11769 r=`${PWD_COMMAND}`; export r; \
11770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11771 $(HOST_EXPORTS) \
05a13254 11772 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11774 done; \
22121df0 11775 echo "Doing TAGS in gmp"; \
a90ef4bf 11776 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11779 "RANLIB=$${RANLIB}" \
0c24b341 11780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11781 TAGS) \
2a4cbe27
NN
11782 || exit 1
11783
a90ef4bf 11784@endif gmp
2a4cbe27 11785
a90ef4bf
JM
11786.PHONY: maybe-install-info-gmp install-info-gmp
11787maybe-install-info-gmp:
11788@if gmp
11789maybe-install-info-gmp: install-info-gmp
2a4cbe27 11790
a90ef4bf
JM
11791install-info-gmp: \
11792 configure-gmp \
11793 info-gmp
11794 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11795 r=`${PWD_COMMAND}`; export r; \
11796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11797 $(HOST_EXPORTS) \
05a13254 11798 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11800 done; \
22121df0 11801 echo "Doing install-info in gmp"; \
a90ef4bf 11802 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11805 "RANLIB=$${RANLIB}" \
0c24b341 11806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11807 install-info) \
2a4cbe27
NN
11808 || exit 1
11809
a90ef4bf 11810@endif gmp
2a4cbe27 11811
a90ef4bf
JM
11812.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11813maybe-install-pdf-gmp:
11814@if gmp
11815maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11816
a90ef4bf
JM
11817install-pdf-gmp: \
11818 configure-gmp \
11819 pdf-gmp
11820 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11821 r=`${PWD_COMMAND}`; export r; \
11822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11823 $(HOST_EXPORTS) \
05a13254 11824 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
11825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11826 done; \
22121df0 11827 echo "Doing install-pdf in gmp"; \
a90ef4bf 11828 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11831 "RANLIB=$${RANLIB}" \
0c24b341 11832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11833 install-pdf) \
11834 || exit 1
11835
a90ef4bf 11836@endif gmp
a3ca38d2 11837
a90ef4bf
JM
11838.PHONY: maybe-install-html-gmp install-html-gmp
11839maybe-install-html-gmp:
11840@if gmp
11841maybe-install-html-gmp: install-html-gmp
108a6f8e 11842
a90ef4bf
JM
11843install-html-gmp: \
11844 configure-gmp \
11845 html-gmp
11846 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11847 r=`${PWD_COMMAND}`; export r; \
11848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11849 $(HOST_EXPORTS) \
05a13254 11850 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
11851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11852 done; \
22121df0 11853 echo "Doing install-html in gmp"; \
a90ef4bf 11854 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11857 "RANLIB=$${RANLIB}" \
0c24b341 11858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11859 install-html) \
11860 || exit 1
11861
a90ef4bf 11862@endif gmp
108a6f8e 11863
a90ef4bf
JM
11864.PHONY: maybe-installcheck-gmp installcheck-gmp
11865maybe-installcheck-gmp:
11866@if gmp
11867maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11868
a90ef4bf
JM
11869installcheck-gmp: \
11870 configure-gmp
11871 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11872 r=`${PWD_COMMAND}`; export r; \
11873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11874 $(HOST_EXPORTS) \
05a13254 11875 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11877 done; \
22121df0 11878 echo "Doing installcheck in gmp"; \
a90ef4bf 11879 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11882 "RANLIB=$${RANLIB}" \
0c24b341 11883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11884 installcheck) \
2a4cbe27
NN
11885 || exit 1
11886
a90ef4bf 11887@endif gmp
2a4cbe27 11888
a90ef4bf
JM
11889.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11890maybe-mostlyclean-gmp:
11891@if gmp
11892maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11893
a90ef4bf
JM
11894mostlyclean-gmp:
11895 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11896 r=`${PWD_COMMAND}`; export r; \
11897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11898 $(HOST_EXPORTS) \
05a13254 11899 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11901 done; \
22121df0 11902 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11903 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11906 "RANLIB=$${RANLIB}" \
0c24b341 11907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11908 mostlyclean) \
2a4cbe27
NN
11909 || exit 1
11910
a90ef4bf 11911@endif gmp
2a4cbe27 11912
a90ef4bf
JM
11913.PHONY: maybe-clean-gmp clean-gmp
11914maybe-clean-gmp:
11915@if gmp
11916maybe-clean-gmp: clean-gmp
2a4cbe27 11917
a90ef4bf
JM
11918clean-gmp:
11919 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11920 r=`${PWD_COMMAND}`; export r; \
11921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11922 $(HOST_EXPORTS) \
05a13254 11923 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11925 done; \
22121df0 11926 echo "Doing clean in gmp"; \
a90ef4bf 11927 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11930 "RANLIB=$${RANLIB}" \
0c24b341 11931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11932 clean) \
2a4cbe27
NN
11933 || exit 1
11934
a90ef4bf 11935@endif gmp
2a4cbe27 11936
a90ef4bf
JM
11937.PHONY: maybe-distclean-gmp distclean-gmp
11938maybe-distclean-gmp:
11939@if gmp
11940maybe-distclean-gmp: distclean-gmp
2a4cbe27 11941
a90ef4bf
JM
11942distclean-gmp:
11943 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11944 r=`${PWD_COMMAND}`; export r; \
11945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11946 $(HOST_EXPORTS) \
05a13254 11947 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11949 done; \
22121df0 11950 echo "Doing distclean in gmp"; \
a90ef4bf 11951 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11954 "RANLIB=$${RANLIB}" \
0c24b341 11955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11956 distclean) \
2a4cbe27
NN
11957 || exit 1
11958
a90ef4bf 11959@endif gmp
2a4cbe27 11960
a90ef4bf
JM
11961.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11962maybe-maintainer-clean-gmp:
11963@if gmp
11964maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11965
a90ef4bf
JM
11966maintainer-clean-gmp:
11967 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11968 r=`${PWD_COMMAND}`; export r; \
11969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11970 $(HOST_EXPORTS) \
05a13254 11971 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11973 done; \
22121df0 11974 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 11975 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11978 "RANLIB=$${RANLIB}" \
0c24b341 11979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11980 maintainer-clean) \
2a4cbe27
NN
11981 || exit 1
11982
a90ef4bf 11983@endif gmp
2a4cbe27 11984
2a4cbe27 11985
a7254363 11986
a90ef4bf
JM
11987.PHONY: configure-mpfr maybe-configure-mpfr
11988maybe-configure-mpfr:
4f0ef2d8 11989@if gcc-bootstrap
a90ef4bf 11990configure-mpfr: stage_current
4f0ef2d8 11991@endif gcc-bootstrap
a90ef4bf
JM
11992@if mpfr
11993maybe-configure-mpfr: configure-mpfr
11994configure-mpfr:
11995 @r=`${PWD_COMMAND}`; export r; \
11996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11997 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 11998 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 11999 $(HOST_EXPORTS) \
a90ef4bf
JM
12000 echo Configuring in $(HOST_SUBDIR)/mpfr; \
12001 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 12002 case $(srcdir) in \
b00612cc 12003 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12004 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 12005 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 12006 esac; \
1b6c0831
L
12007 module_srcdir=mpfr; \
12008 $(SHELL) \
12009 $$s/$$module_srcdir/configure \
12010 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12011 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12012 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 12013 || exit 1
a90ef4bf 12014@endif mpfr
d545f33b
PB
12015
12016
2a4cbe27 12017
a90ef4bf
JM
12018.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
12019maybe-configure-stage1-mpfr:
12020@if mpfr-bootstrap
12021maybe-configure-stage1-mpfr: configure-stage1-mpfr
12022configure-stage1-mpfr:
12023 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12024 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12025 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12027 TFLAGS="$(STAGE1_TFLAGS)"; \
12028 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12029 $(HOST_EXPORTS) \
a90ef4bf
JM
12030 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12031 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12032 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12033 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
12034 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12035 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12036 case $(srcdir) in \
12037 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12038 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12039 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12040 esac; \
1b6c0831
L
12041 module_srcdir=mpfr; \
12042 $(SHELL) $$s/$$module_srcdir/configure \
12043 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12044 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12045 --target=${target_alias} \
12046 \
a90ef4bf
JM
12047 $(STAGE1_CONFIGURE_FLAGS) \
12048 --disable-shared @extra_mpfr_configure_flags@
12049@endif mpfr-bootstrap
2a4cbe27 12050
a90ef4bf
JM
12051.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
12052maybe-configure-stage2-mpfr:
12053@if mpfr-bootstrap
12054maybe-configure-stage2-mpfr: configure-stage2-mpfr
12055configure-stage2-mpfr:
12056 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12057 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12058 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12060 TFLAGS="$(STAGE2_TFLAGS)"; \
12061 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12062 $(HOST_EXPORTS) \
a90ef4bf
JM
12063 $(POSTSTAGE1_HOST_EXPORTS) \
12064 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12065 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12066 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12067 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
12068 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12069 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12070 case $(srcdir) in \
12071 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12072 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12073 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12074 esac; \
1b6c0831
L
12075 module_srcdir=mpfr; \
12076 $(SHELL) $$s/$$module_srcdir/configure \
12077 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12078 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12079 --target=${target_alias} \
22121df0 12080 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12081 $(STAGE2_CONFIGURE_FLAGS) \
12082 --disable-shared @extra_mpfr_configure_flags@
12083@endif mpfr-bootstrap
9b980aa1 12084
a90ef4bf
JM
12085.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12086maybe-configure-stage3-mpfr:
12087@if mpfr-bootstrap
12088maybe-configure-stage3-mpfr: configure-stage3-mpfr
12089configure-stage3-mpfr:
12090 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12091 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12092 @r=`${PWD_COMMAND}`; export r; \
12093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12094 TFLAGS="$(STAGE3_TFLAGS)"; \
12095 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12096 $(HOST_EXPORTS) \
a90ef4bf
JM
12097 $(POSTSTAGE1_HOST_EXPORTS) \
12098 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12099 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12100 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12101 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12102 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12103 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12104 case $(srcdir) in \
12105 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12106 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12107 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12108 esac; \
1b6c0831
L
12109 module_srcdir=mpfr; \
12110 $(SHELL) $$s/$$module_srcdir/configure \
12111 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12112 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12113 --target=${target_alias} \
22121df0 12114 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12115 $(STAGE3_CONFIGURE_FLAGS) \
12116 --disable-shared @extra_mpfr_configure_flags@
12117@endif mpfr-bootstrap
2a4cbe27 12118
a90ef4bf
JM
12119.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12120maybe-configure-stage4-mpfr:
12121@if mpfr-bootstrap
12122maybe-configure-stage4-mpfr: configure-stage4-mpfr
12123configure-stage4-mpfr:
12124 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12125 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12126 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12128 TFLAGS="$(STAGE4_TFLAGS)"; \
12129 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12130 $(HOST_EXPORTS) \
a90ef4bf
JM
12131 $(POSTSTAGE1_HOST_EXPORTS) \
12132 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12133 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12134 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12135 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12136 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12137 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12138 case $(srcdir) in \
12139 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12140 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12141 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12142 esac; \
1b6c0831
L
12143 module_srcdir=mpfr; \
12144 $(SHELL) $$s/$$module_srcdir/configure \
12145 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12146 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12147 --target=${target_alias} \
22121df0 12148 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12149 $(STAGE4_CONFIGURE_FLAGS) \
12150 --disable-shared @extra_mpfr_configure_flags@
12151@endif mpfr-bootstrap
2a4cbe27 12152
a90ef4bf
JM
12153.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12154maybe-configure-stageprofile-mpfr:
12155@if mpfr-bootstrap
12156maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12157configure-stageprofile-mpfr:
12158 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12159 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12160 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12162 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12163 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12164 $(HOST_EXPORTS) \
a90ef4bf
JM
12165 $(POSTSTAGE1_HOST_EXPORTS) \
12166 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12167 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12168 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12169 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12170 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12171 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12172 case $(srcdir) in \
12173 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12174 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12175 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12176 esac; \
1b6c0831
L
12177 module_srcdir=mpfr; \
12178 $(SHELL) $$s/$$module_srcdir/configure \
12179 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12180 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12181 --target=${target_alias} \
22121df0 12182 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12183 $(STAGEprofile_CONFIGURE_FLAGS) \
12184 --disable-shared @extra_mpfr_configure_flags@
12185@endif mpfr-bootstrap
56a8fe78 12186
a90ef4bf
JM
12187.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12188maybe-configure-stagefeedback-mpfr:
12189@if mpfr-bootstrap
12190maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12191configure-stagefeedback-mpfr:
12192 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12193 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12194 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12196 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12197 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12198 $(HOST_EXPORTS) \
a90ef4bf
JM
12199 $(POSTSTAGE1_HOST_EXPORTS) \
12200 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12201 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12202 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12203 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12204 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12205 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12206 case $(srcdir) in \
12207 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12208 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12209 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12210 esac; \
1b6c0831
L
12211 module_srcdir=mpfr; \
12212 $(SHELL) $$s/$$module_srcdir/configure \
12213 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12214 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12215 --target=${target_alias} \
22121df0 12216 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12217 $(STAGEfeedback_CONFIGURE_FLAGS) \
12218 --disable-shared @extra_mpfr_configure_flags@
12219@endif mpfr-bootstrap
56a8fe78 12220
6d389afc 12221
6d389afc 12222
6d389afc 12223
2a4cbe27 12224
a90ef4bf
JM
12225.PHONY: all-mpfr maybe-all-mpfr
12226maybe-all-mpfr:
12227@if gcc-bootstrap
12228all-mpfr: stage_current
12229@endif gcc-bootstrap
12230@if mpfr
12231TARGET-mpfr=all
12232maybe-all-mpfr: all-mpfr
12233all-mpfr: configure-mpfr
12234 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12236 $(HOST_EXPORTS) \
12237 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12238 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12239 $(TARGET-mpfr))
12240@endif mpfr
2a4cbe27
NN
12241
12242
2a4cbe27 12243
a90ef4bf
JM
12244.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12245.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12246maybe-all-stage1-mpfr:
12247maybe-clean-stage1-mpfr:
12248@if mpfr-bootstrap
12249maybe-all-stage1-mpfr: all-stage1-mpfr
12250all-stage1: all-stage1-mpfr
12251TARGET-stage1-mpfr = $(TARGET-mpfr)
12252all-stage1-mpfr: configure-stage1-mpfr
12253 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12254 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12256 TFLAGS="$(STAGE1_TFLAGS)"; \
12257 $(HOST_EXPORTS) \
12258 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12259 \
a90ef4bf
JM
12260 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12261 CFLAGS="$(STAGE1_CFLAGS)" \
12262 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12263 LIBCFLAGS="$(LIBCFLAGS)" \
12264 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12265 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12266 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 12267 $(EXTRA_HOST_FLAGS) \
ce5e165e 12268 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12269 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 12270 $(TARGET-stage1-mpfr)
2a4cbe27 12271
a90ef4bf
JM
12272maybe-clean-stage1-mpfr: clean-stage1-mpfr
12273clean-stage1: clean-stage1-mpfr
12274clean-stage1-mpfr:
12275 @if [ $(current_stage) = stage1 ]; then \
12276 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12277 else \
12278 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12279 $(MAKE) stage1-start; \
12280 fi; \
12281 cd $(HOST_SUBDIR)/mpfr && \
12282 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce5e165e 12283 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12284@endif mpfr-bootstrap
2a4cbe27 12285
a3ca38d2 12286
a90ef4bf
JM
12287.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12288.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12289maybe-all-stage2-mpfr:
12290maybe-clean-stage2-mpfr:
12291@if mpfr-bootstrap
12292maybe-all-stage2-mpfr: all-stage2-mpfr
12293all-stage2: all-stage2-mpfr
12294TARGET-stage2-mpfr = $(TARGET-mpfr)
12295all-stage2-mpfr: configure-stage2-mpfr
12296 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12297 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12299 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12300 $(HOST_EXPORTS) \
a90ef4bf
JM
12301 $(POSTSTAGE1_HOST_EXPORTS) \
12302 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12303 \
a90ef4bf
JM
12304 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12305 CFLAGS="$(STAGE2_CFLAGS)" \
12306 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12307 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12308 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12309 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12310 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12311 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12312 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 12313 $(TARGET-stage2-mpfr)
a3ca38d2 12314
a90ef4bf
JM
12315maybe-clean-stage2-mpfr: clean-stage2-mpfr
12316clean-stage2: clean-stage2-mpfr
12317clean-stage2-mpfr:
12318 @if [ $(current_stage) = stage2 ]; then \
12319 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12320 else \
12321 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12322 $(MAKE) stage2-start; \
12323 fi; \
12324 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12325 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12326@endif mpfr-bootstrap
a3ca38d2 12327
108a6f8e 12328
a90ef4bf
JM
12329.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12330.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12331maybe-all-stage3-mpfr:
12332maybe-clean-stage3-mpfr:
12333@if mpfr-bootstrap
12334maybe-all-stage3-mpfr: all-stage3-mpfr
12335all-stage3: all-stage3-mpfr
12336TARGET-stage3-mpfr = $(TARGET-mpfr)
12337all-stage3-mpfr: configure-stage3-mpfr
12338 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12339 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12341 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12342 $(HOST_EXPORTS) \
a90ef4bf
JM
12343 $(POSTSTAGE1_HOST_EXPORTS) \
12344 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12345 \
a90ef4bf
JM
12346 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12347 CFLAGS="$(STAGE3_CFLAGS)" \
12348 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12349 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12350 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12351 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12352 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12353 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12354 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 12355 $(TARGET-stage3-mpfr)
108a6f8e 12356
a90ef4bf
JM
12357maybe-clean-stage3-mpfr: clean-stage3-mpfr
12358clean-stage3: clean-stage3-mpfr
12359clean-stage3-mpfr:
12360 @if [ $(current_stage) = stage3 ]; then \
12361 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12362 else \
12363 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12364 $(MAKE) stage3-start; \
12365 fi; \
12366 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12367 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12368@endif mpfr-bootstrap
108a6f8e 12369
2a4cbe27 12370
a90ef4bf
JM
12371.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12372.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12373maybe-all-stage4-mpfr:
12374maybe-clean-stage4-mpfr:
12375@if mpfr-bootstrap
12376maybe-all-stage4-mpfr: all-stage4-mpfr
12377all-stage4: all-stage4-mpfr
12378TARGET-stage4-mpfr = $(TARGET-mpfr)
12379all-stage4-mpfr: configure-stage4-mpfr
12380 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12381 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12383 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12384 $(HOST_EXPORTS) \
a90ef4bf
JM
12385 $(POSTSTAGE1_HOST_EXPORTS) \
12386 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12387 \
a90ef4bf
JM
12388 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12389 CFLAGS="$(STAGE4_CFLAGS)" \
12390 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12391 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12392 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12393 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12394 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12395 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12396 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 12397 $(TARGET-stage4-mpfr)
2a4cbe27 12398
a90ef4bf
JM
12399maybe-clean-stage4-mpfr: clean-stage4-mpfr
12400clean-stage4: clean-stage4-mpfr
12401clean-stage4-mpfr:
12402 @if [ $(current_stage) = stage4 ]; then \
12403 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12404 else \
12405 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12406 $(MAKE) stage4-start; \
12407 fi; \
12408 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12409 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12410@endif mpfr-bootstrap
2a4cbe27 12411
2a4cbe27 12412
a90ef4bf
JM
12413.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12414.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12415maybe-all-stageprofile-mpfr:
12416maybe-clean-stageprofile-mpfr:
12417@if mpfr-bootstrap
12418maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12419all-stageprofile: all-stageprofile-mpfr
12420TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12421all-stageprofile-mpfr: configure-stageprofile-mpfr
12422 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12423 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12425 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12426 $(HOST_EXPORTS) \
a90ef4bf
JM
12427 $(POSTSTAGE1_HOST_EXPORTS) \
12428 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12429 \
a90ef4bf
JM
12430 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12431 CFLAGS="$(STAGEprofile_CFLAGS)" \
12432 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12433 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12434 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12435 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12436 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12437 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12438 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 12439 $(TARGET-stageprofile-mpfr)
2a4cbe27 12440
a90ef4bf
JM
12441maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12442clean-stageprofile: clean-stageprofile-mpfr
12443clean-stageprofile-mpfr:
12444 @if [ $(current_stage) = stageprofile ]; then \
12445 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12446 else \
12447 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12448 $(MAKE) stageprofile-start; \
12449 fi; \
12450 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12451 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12452@endif mpfr-bootstrap
2a4cbe27 12453
a7254363 12454
a90ef4bf
JM
12455.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12456.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12457maybe-all-stagefeedback-mpfr:
12458maybe-clean-stagefeedback-mpfr:
12459@if mpfr-bootstrap
12460maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12461all-stagefeedback: all-stagefeedback-mpfr
12462TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12463all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12464 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12465 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12467 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12468 $(HOST_EXPORTS) \
12469 $(POSTSTAGE1_HOST_EXPORTS) \
12470 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12471 \
a90ef4bf
JM
12472 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12473 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12474 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12475 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12476 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12477 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12478 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12479 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12480 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 12481 $(TARGET-stagefeedback-mpfr)
d545f33b 12482
a90ef4bf
JM
12483maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12484clean-stagefeedback: clean-stagefeedback-mpfr
12485clean-stagefeedback-mpfr:
12486 @if [ $(current_stage) = stagefeedback ]; then \
12487 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12488 else \
12489 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12490 $(MAKE) stagefeedback-start; \
12491 fi; \
12492 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12493 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12494@endif mpfr-bootstrap
d545f33b 12495
2a4cbe27 12496
a7254363 12497
d545f33b
PB
12498
12499
a90ef4bf
JM
12500.PHONY: check-mpfr maybe-check-mpfr
12501maybe-check-mpfr:
12502@if mpfr
12503maybe-check-mpfr: check-mpfr
2a4cbe27 12504
a90ef4bf 12505check-mpfr:
0aed8855 12506 @: $(MAKE); $(unstage)
4fa63067 12507 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12509 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12510 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12511 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12512
a90ef4bf 12513@endif mpfr
2a4cbe27 12514
a90ef4bf
JM
12515.PHONY: install-mpfr maybe-install-mpfr
12516maybe-install-mpfr:
12517@if mpfr
12518maybe-install-mpfr: install-mpfr
2a4cbe27 12519
a90ef4bf 12520install-mpfr:
4fa63067 12521
a90ef4bf 12522@endif mpfr
4fa63067 12523
a90ef4bf
JM
12524.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12525maybe-install-strip-mpfr:
12526@if mpfr
12527maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12528
a90ef4bf 12529install-strip-mpfr:
9b980aa1 12530
a90ef4bf 12531@endif mpfr
9b980aa1 12532
56a8fe78 12533# Other targets (info, dvi, pdf, etc.)
4fa63067 12534
a90ef4bf
JM
12535.PHONY: maybe-info-mpfr info-mpfr
12536maybe-info-mpfr:
12537@if mpfr
12538maybe-info-mpfr: info-mpfr
4fa63067 12539
a90ef4bf
JM
12540info-mpfr: \
12541 configure-mpfr
12542 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12543 r=`${PWD_COMMAND}`; export r; \
12544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12545 $(HOST_EXPORTS) \
ce5e165e 12546 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12548 done; \
22121df0 12549 echo "Doing info in mpfr"; \
a90ef4bf 12550 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12553 "RANLIB=$${RANLIB}" \
0c24b341 12554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12555 info) \
2a4cbe27
NN
12556 || exit 1
12557
a90ef4bf 12558@endif mpfr
2a4cbe27 12559
a90ef4bf
JM
12560.PHONY: maybe-dvi-mpfr dvi-mpfr
12561maybe-dvi-mpfr:
12562@if mpfr
12563maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12564
a90ef4bf
JM
12565dvi-mpfr: \
12566 configure-mpfr
12567 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12568 r=`${PWD_COMMAND}`; export r; \
12569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12570 $(HOST_EXPORTS) \
ce5e165e 12571 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12573 done; \
22121df0 12574 echo "Doing dvi in mpfr"; \
a90ef4bf 12575 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12578 "RANLIB=$${RANLIB}" \
0c24b341 12579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12580 dvi) \
2a4cbe27
NN
12581 || exit 1
12582
a90ef4bf 12583@endif mpfr
2a4cbe27 12584
a90ef4bf
JM
12585.PHONY: maybe-pdf-mpfr pdf-mpfr
12586maybe-pdf-mpfr:
12587@if mpfr
12588maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12589
a90ef4bf
JM
12590pdf-mpfr: \
12591 configure-mpfr
12592 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12593 r=`${PWD_COMMAND}`; export r; \
12594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12595 $(HOST_EXPORTS) \
ce5e165e 12596 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
12597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12598 done; \
22121df0 12599 echo "Doing pdf in mpfr"; \
a90ef4bf 12600 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12603 "RANLIB=$${RANLIB}" \
0c24b341 12604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12605 pdf) \
12606 || exit 1
12607
a90ef4bf 12608@endif mpfr
56a8fe78 12609
a90ef4bf
JM
12610.PHONY: maybe-html-mpfr html-mpfr
12611maybe-html-mpfr:
12612@if mpfr
12613maybe-html-mpfr: html-mpfr
6d389afc 12614
a90ef4bf
JM
12615html-mpfr: \
12616 configure-mpfr
12617 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12618 r=`${PWD_COMMAND}`; export r; \
12619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 12620 $(HOST_EXPORTS) \
ce5e165e 12621 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
12622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12623 done; \
22121df0 12624 echo "Doing html in mpfr"; \
a90ef4bf 12625 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12628 "RANLIB=$${RANLIB}" \
0c24b341 12629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12630 html) \
12631 || exit 1
12632
a90ef4bf 12633@endif mpfr
6d389afc 12634
a90ef4bf
JM
12635.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12636maybe-TAGS-mpfr:
12637@if mpfr
12638maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12639
a90ef4bf
JM
12640TAGS-mpfr: \
12641 configure-mpfr
12642 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12643 r=`${PWD_COMMAND}`; export r; \
12644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12645 $(HOST_EXPORTS) \
ce5e165e 12646 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12648 done; \
22121df0 12649 echo "Doing TAGS in mpfr"; \
a90ef4bf 12650 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12653 "RANLIB=$${RANLIB}" \
0c24b341 12654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12655 TAGS) \
2a4cbe27
NN
12656 || exit 1
12657
a90ef4bf 12658@endif mpfr
2a4cbe27 12659
a90ef4bf
JM
12660.PHONY: maybe-install-info-mpfr install-info-mpfr
12661maybe-install-info-mpfr:
12662@if mpfr
12663maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12664
a90ef4bf
JM
12665install-info-mpfr: \
12666 configure-mpfr \
12667 info-mpfr
12668 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12669 r=`${PWD_COMMAND}`; export r; \
12670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12671 $(HOST_EXPORTS) \
ce5e165e 12672 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12674 done; \
22121df0 12675 echo "Doing install-info in mpfr"; \
a90ef4bf 12676 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12679 "RANLIB=$${RANLIB}" \
0c24b341 12680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12681 install-info) \
2a4cbe27
NN
12682 || exit 1
12683
a90ef4bf 12684@endif mpfr
2a4cbe27 12685
a90ef4bf
JM
12686.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12687maybe-install-pdf-mpfr:
12688@if mpfr
12689maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12690
a90ef4bf
JM
12691install-pdf-mpfr: \
12692 configure-mpfr \
12693 pdf-mpfr
12694 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12695 r=`${PWD_COMMAND}`; export r; \
12696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12697 $(HOST_EXPORTS) \
ce5e165e 12698 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
12699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12700 done; \
22121df0 12701 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12702 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12705 "RANLIB=$${RANLIB}" \
0c24b341 12706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12707 install-pdf) \
12708 || exit 1
12709
a90ef4bf 12710@endif mpfr
a3ca38d2 12711
a90ef4bf
JM
12712.PHONY: maybe-install-html-mpfr install-html-mpfr
12713maybe-install-html-mpfr:
12714@if mpfr
12715maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12716
a90ef4bf
JM
12717install-html-mpfr: \
12718 configure-mpfr \
12719 html-mpfr
12720 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12721 r=`${PWD_COMMAND}`; export r; \
12722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12723 $(HOST_EXPORTS) \
ce5e165e 12724 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
12725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12726 done; \
22121df0 12727 echo "Doing install-html in mpfr"; \
a90ef4bf 12728 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12731 "RANLIB=$${RANLIB}" \
0c24b341 12732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12733 install-html) \
12734 || exit 1
12735
a90ef4bf 12736@endif mpfr
108a6f8e 12737
a90ef4bf
JM
12738.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12739maybe-installcheck-mpfr:
12740@if mpfr
12741maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12742
a90ef4bf
JM
12743installcheck-mpfr: \
12744 configure-mpfr
12745 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12746 r=`${PWD_COMMAND}`; export r; \
12747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12748 $(HOST_EXPORTS) \
ce5e165e 12749 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12751 done; \
22121df0 12752 echo "Doing installcheck in mpfr"; \
a90ef4bf 12753 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12756 "RANLIB=$${RANLIB}" \
0c24b341 12757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12758 installcheck) \
2a4cbe27
NN
12759 || exit 1
12760
a90ef4bf 12761@endif mpfr
2a4cbe27 12762
a90ef4bf
JM
12763.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12764maybe-mostlyclean-mpfr:
12765@if mpfr
12766maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12767
a90ef4bf
JM
12768mostlyclean-mpfr:
12769 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12770 r=`${PWD_COMMAND}`; export r; \
12771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12772 $(HOST_EXPORTS) \
ce5e165e 12773 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12775 done; \
22121df0 12776 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12777 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12780 "RANLIB=$${RANLIB}" \
0c24b341 12781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12782 mostlyclean) \
2a4cbe27
NN
12783 || exit 1
12784
a90ef4bf 12785@endif mpfr
2a4cbe27 12786
a90ef4bf
JM
12787.PHONY: maybe-clean-mpfr clean-mpfr
12788maybe-clean-mpfr:
12789@if mpfr
12790maybe-clean-mpfr: clean-mpfr
2a4cbe27 12791
a90ef4bf
JM
12792clean-mpfr:
12793 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12794 r=`${PWD_COMMAND}`; export r; \
12795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12796 $(HOST_EXPORTS) \
ce5e165e 12797 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12799 done; \
22121df0 12800 echo "Doing clean in mpfr"; \
a90ef4bf 12801 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12804 "RANLIB=$${RANLIB}" \
0c24b341 12805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12806 clean) \
2a4cbe27
NN
12807 || exit 1
12808
a90ef4bf 12809@endif mpfr
2a4cbe27 12810
a90ef4bf
JM
12811.PHONY: maybe-distclean-mpfr distclean-mpfr
12812maybe-distclean-mpfr:
12813@if mpfr
12814maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12815
a90ef4bf
JM
12816distclean-mpfr:
12817 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12818 r=`${PWD_COMMAND}`; export r; \
12819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12820 $(HOST_EXPORTS) \
ce5e165e 12821 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12823 done; \
22121df0 12824 echo "Doing distclean in mpfr"; \
a90ef4bf 12825 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12828 "RANLIB=$${RANLIB}" \
0c24b341 12829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12830 distclean) \
2a4cbe27
NN
12831 || exit 1
12832
a90ef4bf 12833@endif mpfr
2a4cbe27 12834
a90ef4bf
JM
12835.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12836maybe-maintainer-clean-mpfr:
12837@if mpfr
12838maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12839
a90ef4bf
JM
12840maintainer-clean-mpfr:
12841 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12842 r=`${PWD_COMMAND}`; export r; \
12843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12844 $(HOST_EXPORTS) \
ce5e165e 12845 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12847 done; \
22121df0 12848 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12849 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12852 "RANLIB=$${RANLIB}" \
0c24b341 12853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12854 maintainer-clean) \
2a4cbe27
NN
12855 || exit 1
12856
a90ef4bf 12857@endif mpfr
2a4cbe27 12858
2a4cbe27 12859
a7254363 12860
a90ef4bf
JM
12861.PHONY: configure-mpc maybe-configure-mpc
12862maybe-configure-mpc:
4f0ef2d8 12863@if gcc-bootstrap
a90ef4bf 12864configure-mpc: stage_current
4f0ef2d8 12865@endif gcc-bootstrap
a90ef4bf
JM
12866@if mpc
12867maybe-configure-mpc: configure-mpc
12868configure-mpc:
c52c6897 12869 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12871 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12872 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12873 $(HOST_EXPORTS) \
a90ef4bf
JM
12874 echo Configuring in $(HOST_SUBDIR)/mpc; \
12875 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12876 case $(srcdir) in \
b00612cc 12877 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12878 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12879 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12880 esac; \
1b6c0831
L
12881 module_srcdir=mpc; \
12882 $(SHELL) \
12883 $$s/$$module_srcdir/configure \
12884 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12885 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e3f56a99 12886 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12887 || exit 1
a90ef4bf 12888@endif mpc
d545f33b
PB
12889
12890
d3ed111c 12891
a90ef4bf
JM
12892.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12893maybe-configure-stage1-mpc:
12894@if mpc-bootstrap
12895maybe-configure-stage1-mpc: configure-stage1-mpc
12896configure-stage1-mpc:
12897 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12898 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12899 @r=`${PWD_COMMAND}`; export r; \
12900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12901 TFLAGS="$(STAGE1_TFLAGS)"; \
12902 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12903 $(HOST_EXPORTS) \
a90ef4bf
JM
12904 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12905 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12906 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12907 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12908 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12909 cd $(HOST_SUBDIR)/mpc || exit 1; \
12910 case $(srcdir) in \
12911 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12912 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12913 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12914 esac; \
1b6c0831
L
12915 module_srcdir=mpc; \
12916 $(SHELL) $$s/$$module_srcdir/configure \
12917 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12918 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12919 --target=${target_alias} \
12920 \
a90ef4bf 12921 $(STAGE1_CONFIGURE_FLAGS) \
e3f56a99 12922 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12923@endif mpc-bootstrap
d3ed111c 12924
a90ef4bf
JM
12925.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12926maybe-configure-stage2-mpc:
12927@if mpc-bootstrap
12928maybe-configure-stage2-mpc: configure-stage2-mpc
12929configure-stage2-mpc:
12930 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12931 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12932 @r=`${PWD_COMMAND}`; export r; \
12933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12934 TFLAGS="$(STAGE2_TFLAGS)"; \
12935 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12936 $(HOST_EXPORTS) \
a90ef4bf
JM
12937 $(POSTSTAGE1_HOST_EXPORTS) \
12938 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12939 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12940 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12941 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
12942 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12943 cd $(HOST_SUBDIR)/mpc || exit 1; \
12944 case $(srcdir) in \
12945 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12946 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12947 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12948 esac; \
1b6c0831
L
12949 module_srcdir=mpc; \
12950 $(SHELL) $$s/$$module_srcdir/configure \
12951 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12952 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12953 --target=${target_alias} \
22121df0 12954 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12955 $(STAGE2_CONFIGURE_FLAGS) \
e3f56a99 12956 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12957@endif mpc-bootstrap
9b980aa1 12958
a90ef4bf
JM
12959.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12960maybe-configure-stage3-mpc:
12961@if mpc-bootstrap
12962maybe-configure-stage3-mpc: configure-stage3-mpc
12963configure-stage3-mpc:
12964 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12965 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12966 @r=`${PWD_COMMAND}`; export r; \
12967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12968 TFLAGS="$(STAGE3_TFLAGS)"; \
12969 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12970 $(HOST_EXPORTS) \
a90ef4bf
JM
12971 $(POSTSTAGE1_HOST_EXPORTS) \
12972 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12973 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12974 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12975 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
12976 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12977 cd $(HOST_SUBDIR)/mpc || exit 1; \
12978 case $(srcdir) in \
12979 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12980 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12981 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12982 esac; \
1b6c0831
L
12983 module_srcdir=mpc; \
12984 $(SHELL) $$s/$$module_srcdir/configure \
12985 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12986 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12987 --target=${target_alias} \
22121df0 12988 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12989 $(STAGE3_CONFIGURE_FLAGS) \
e3f56a99 12990 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12991@endif mpc-bootstrap
d3ed111c 12992
a90ef4bf
JM
12993.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12994maybe-configure-stage4-mpc:
12995@if mpc-bootstrap
12996maybe-configure-stage4-mpc: configure-stage4-mpc
12997configure-stage4-mpc:
12998 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12999 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13000 @r=`${PWD_COMMAND}`; export r; \
13001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13002 TFLAGS="$(STAGE4_TFLAGS)"; \
13003 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13004 $(HOST_EXPORTS) \
13005 $(POSTSTAGE1_HOST_EXPORTS) \
13006 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13007 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13008 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13009 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
13010 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13011 cd $(HOST_SUBDIR)/mpc || exit 1; \
13012 case $(srcdir) in \
13013 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13014 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13015 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13016 esac; \
1b6c0831
L
13017 module_srcdir=mpc; \
13018 $(SHELL) $$s/$$module_srcdir/configure \
13019 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13020 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13021 --target=${target_alias} \
22121df0 13022 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13023 $(STAGE4_CONFIGURE_FLAGS) \
e3f56a99 13024 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13025@endif mpc-bootstrap
13026
13027.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
13028maybe-configure-stageprofile-mpc:
13029@if mpc-bootstrap
13030maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
13031configure-stageprofile-mpc:
13032 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13033 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13034 @r=`${PWD_COMMAND}`; export r; \
13035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13036 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13037 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13038 $(HOST_EXPORTS) \
13039 $(POSTSTAGE1_HOST_EXPORTS) \
13040 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13041 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13042 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13043 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
13044 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13045 cd $(HOST_SUBDIR)/mpc || exit 1; \
13046 case $(srcdir) in \
13047 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13048 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13049 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13050 esac; \
1b6c0831
L
13051 module_srcdir=mpc; \
13052 $(SHELL) $$s/$$module_srcdir/configure \
13053 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13054 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13055 --target=${target_alias} \
22121df0 13056 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13057 $(STAGEprofile_CONFIGURE_FLAGS) \
e3f56a99 13058 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13059@endif mpc-bootstrap
13060
13061.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
13062maybe-configure-stagefeedback-mpc:
13063@if mpc-bootstrap
13064maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
13065configure-stagefeedback-mpc:
13066 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13067 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13068 @r=`${PWD_COMMAND}`; export r; \
13069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13070 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13071 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13072 $(HOST_EXPORTS) \
13073 $(POSTSTAGE1_HOST_EXPORTS) \
13074 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13075 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13076 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13077 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
13078 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13079 cd $(HOST_SUBDIR)/mpc || exit 1; \
13080 case $(srcdir) in \
13081 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13082 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13083 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13084 esac; \
1b6c0831
L
13085 module_srcdir=mpc; \
13086 $(SHELL) $$s/$$module_srcdir/configure \
13087 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13088 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13089 --target=${target_alias} \
22121df0 13090 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13091 $(STAGEfeedback_CONFIGURE_FLAGS) \
e3f56a99 13092 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13093@endif mpc-bootstrap
13094
13095
13096
13097
13098
13099.PHONY: all-mpc maybe-all-mpc
13100maybe-all-mpc:
13101@if gcc-bootstrap
13102all-mpc: stage_current
13103@endif gcc-bootstrap
13104@if mpc
13105TARGET-mpc=all
13106maybe-all-mpc: all-mpc
13107all-mpc: configure-mpc
13108 @r=`${PWD_COMMAND}`; export r; \
13109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13110 $(HOST_EXPORTS) \
13111 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13112 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13113 $(TARGET-mpc))
13114@endif mpc
13115
13116
13117
13118.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13119.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13120maybe-all-stage1-mpc:
13121maybe-clean-stage1-mpc:
13122@if mpc-bootstrap
13123maybe-all-stage1-mpc: all-stage1-mpc
13124all-stage1: all-stage1-mpc
13125TARGET-stage1-mpc = $(TARGET-mpc)
13126all-stage1-mpc: configure-stage1-mpc
13127 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13128 @r=`${PWD_COMMAND}`; export r; \
13129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13130 TFLAGS="$(STAGE1_TFLAGS)"; \
13131 $(HOST_EXPORTS) \
13132 cd $(HOST_SUBDIR)/mpc && \
05a13254 13133 \
a90ef4bf
JM
13134 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13135 CFLAGS="$(STAGE1_CFLAGS)" \
13136 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13137 LIBCFLAGS="$(LIBCFLAGS)" \
13138 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13139 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13140 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13141 $(EXTRA_HOST_FLAGS) \
13142 $(STAGE1_FLAGS_TO_PASS) \
05a13254 13143 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
13144 $(TARGET-stage1-mpc)
13145
13146maybe-clean-stage1-mpc: clean-stage1-mpc
13147clean-stage1: clean-stage1-mpc
13148clean-stage1-mpc:
13149 @if [ $(current_stage) = stage1 ]; then \
13150 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13151 else \
13152 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13153 $(MAKE) stage1-start; \
13154 fi; \
13155 cd $(HOST_SUBDIR)/mpc && \
13156 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13157 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13158@endif mpc-bootstrap
13159
13160
13161.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13162.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13163maybe-all-stage2-mpc:
13164maybe-clean-stage2-mpc:
13165@if mpc-bootstrap
13166maybe-all-stage2-mpc: all-stage2-mpc
13167all-stage2: all-stage2-mpc
13168TARGET-stage2-mpc = $(TARGET-mpc)
13169all-stage2-mpc: configure-stage2-mpc
13170 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13171 @r=`${PWD_COMMAND}`; export r; \
13172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13173 TFLAGS="$(STAGE2_TFLAGS)"; \
13174 $(HOST_EXPORTS) \
13175 $(POSTSTAGE1_HOST_EXPORTS) \
13176 cd $(HOST_SUBDIR)/mpc && \
05a13254 13177 \
a90ef4bf
JM
13178 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13179 CFLAGS="$(STAGE2_CFLAGS)" \
13180 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13181 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13182 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13183 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13184 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13185 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13186 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
13187 $(TARGET-stage2-mpc)
13188
13189maybe-clean-stage2-mpc: clean-stage2-mpc
13190clean-stage2: clean-stage2-mpc
13191clean-stage2-mpc:
13192 @if [ $(current_stage) = stage2 ]; then \
13193 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13194 else \
13195 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13196 $(MAKE) stage2-start; \
13197 fi; \
13198 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13199 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13200@endif mpc-bootstrap
13201
13202
13203.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13204.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13205maybe-all-stage3-mpc:
13206maybe-clean-stage3-mpc:
13207@if mpc-bootstrap
13208maybe-all-stage3-mpc: all-stage3-mpc
13209all-stage3: all-stage3-mpc
13210TARGET-stage3-mpc = $(TARGET-mpc)
13211all-stage3-mpc: configure-stage3-mpc
13212 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13213 @r=`${PWD_COMMAND}`; export r; \
13214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13215 TFLAGS="$(STAGE3_TFLAGS)"; \
13216 $(HOST_EXPORTS) \
13217 $(POSTSTAGE1_HOST_EXPORTS) \
13218 cd $(HOST_SUBDIR)/mpc && \
05a13254 13219 \
a90ef4bf
JM
13220 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13221 CFLAGS="$(STAGE3_CFLAGS)" \
13222 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13223 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13224 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13225 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13226 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13227 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13228 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
13229 $(TARGET-stage3-mpc)
13230
13231maybe-clean-stage3-mpc: clean-stage3-mpc
13232clean-stage3: clean-stage3-mpc
13233clean-stage3-mpc:
13234 @if [ $(current_stage) = stage3 ]; then \
13235 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13236 else \
13237 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13238 $(MAKE) stage3-start; \
13239 fi; \
13240 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13241 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13242@endif mpc-bootstrap
13243
13244
13245.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13246.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13247maybe-all-stage4-mpc:
13248maybe-clean-stage4-mpc:
13249@if mpc-bootstrap
13250maybe-all-stage4-mpc: all-stage4-mpc
13251all-stage4: all-stage4-mpc
13252TARGET-stage4-mpc = $(TARGET-mpc)
13253all-stage4-mpc: configure-stage4-mpc
13254 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13255 @r=`${PWD_COMMAND}`; export r; \
13256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13257 TFLAGS="$(STAGE4_TFLAGS)"; \
13258 $(HOST_EXPORTS) \
13259 $(POSTSTAGE1_HOST_EXPORTS) \
13260 cd $(HOST_SUBDIR)/mpc && \
05a13254 13261 \
a90ef4bf
JM
13262 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13263 CFLAGS="$(STAGE4_CFLAGS)" \
13264 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13265 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13266 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13267 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13268 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13269 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13270 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
13271 $(TARGET-stage4-mpc)
13272
13273maybe-clean-stage4-mpc: clean-stage4-mpc
13274clean-stage4: clean-stage4-mpc
13275clean-stage4-mpc:
13276 @if [ $(current_stage) = stage4 ]; then \
13277 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13278 else \
13279 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13280 $(MAKE) stage4-start; \
13281 fi; \
13282 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13283 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13284@endif mpc-bootstrap
13285
13286
13287.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13288.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13289maybe-all-stageprofile-mpc:
13290maybe-clean-stageprofile-mpc:
13291@if mpc-bootstrap
13292maybe-all-stageprofile-mpc: all-stageprofile-mpc
13293all-stageprofile: all-stageprofile-mpc
13294TARGET-stageprofile-mpc = $(TARGET-mpc)
13295all-stageprofile-mpc: configure-stageprofile-mpc
13296 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13297 @r=`${PWD_COMMAND}`; export r; \
13298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13299 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13300 $(HOST_EXPORTS) \
13301 $(POSTSTAGE1_HOST_EXPORTS) \
13302 cd $(HOST_SUBDIR)/mpc && \
05a13254 13303 \
a90ef4bf
JM
13304 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13305 CFLAGS="$(STAGEprofile_CFLAGS)" \
13306 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13307 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13308 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13309 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13310 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13311 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13312 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
13313 $(TARGET-stageprofile-mpc)
13314
13315maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13316clean-stageprofile: clean-stageprofile-mpc
13317clean-stageprofile-mpc:
13318 @if [ $(current_stage) = stageprofile ]; then \
13319 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13320 else \
13321 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13322 $(MAKE) stageprofile-start; \
13323 fi; \
13324 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13325 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13326@endif mpc-bootstrap
13327
13328
13329.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13330.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13331maybe-all-stagefeedback-mpc:
13332maybe-clean-stagefeedback-mpc:
13333@if mpc-bootstrap
13334maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13335all-stagefeedback: all-stagefeedback-mpc
13336TARGET-stagefeedback-mpc = $(TARGET-mpc)
13337all-stagefeedback-mpc: configure-stagefeedback-mpc
13338 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13339 @r=`${PWD_COMMAND}`; export r; \
13340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13341 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13342 $(HOST_EXPORTS) \
13343 $(POSTSTAGE1_HOST_EXPORTS) \
13344 cd $(HOST_SUBDIR)/mpc && \
05a13254 13345 \
a90ef4bf
JM
13346 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13347 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13348 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13349 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13350 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13351 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13352 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13353 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13354 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
13355 $(TARGET-stagefeedback-mpc)
13356
13357maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13358clean-stagefeedback: clean-stagefeedback-mpc
13359clean-stagefeedback-mpc:
13360 @if [ $(current_stage) = stagefeedback ]; then \
13361 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13362 else \
13363 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13364 $(MAKE) stagefeedback-start; \
13365 fi; \
13366 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13367 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13368@endif mpc-bootstrap
13369
13370
13371
13372
13373
13374.PHONY: check-mpc maybe-check-mpc
13375maybe-check-mpc:
13376@if mpc
13377maybe-check-mpc: check-mpc
13378
13379check-mpc:
13380 @: $(MAKE); $(unstage)
13381 @r=`${PWD_COMMAND}`; export r; \
13382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13383 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13384 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13385 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13386
13387@endif mpc
13388
13389.PHONY: install-mpc maybe-install-mpc
13390maybe-install-mpc:
13391@if mpc
13392maybe-install-mpc: install-mpc
13393
13394install-mpc:
13395
13396@endif mpc
13397
13398.PHONY: install-strip-mpc maybe-install-strip-mpc
13399maybe-install-strip-mpc:
13400@if mpc
13401maybe-install-strip-mpc: install-strip-mpc
13402
13403install-strip-mpc:
13404
13405@endif mpc
13406
13407# Other targets (info, dvi, pdf, etc.)
13408
13409.PHONY: maybe-info-mpc info-mpc
13410maybe-info-mpc:
13411@if mpc
13412maybe-info-mpc: info-mpc
13413
13414info-mpc: \
13415 configure-mpc
13416 @[ -f ./mpc/Makefile ] || exit 0; \
13417 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13419 $(HOST_EXPORTS) \
13420 for flag in $(EXTRA_HOST_FLAGS) ; do \
13421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13422 done; \
22121df0 13423 echo "Doing info in mpc"; \
a90ef4bf 13424 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13427 "RANLIB=$${RANLIB}" \
0c24b341 13428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13429 info) \
13430 || exit 1
d3ed111c 13431
a90ef4bf 13432@endif mpc
d3ed111c 13433
a90ef4bf
JM
13434.PHONY: maybe-dvi-mpc dvi-mpc
13435maybe-dvi-mpc:
13436@if mpc
13437maybe-dvi-mpc: dvi-mpc
d3ed111c 13438
a90ef4bf
JM
13439dvi-mpc: \
13440 configure-mpc
13441 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13442 r=`${PWD_COMMAND}`; export r; \
13443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13444 $(HOST_EXPORTS) \
13445 for flag in $(EXTRA_HOST_FLAGS) ; do \
13446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13447 done; \
22121df0 13448 echo "Doing dvi in mpc"; \
a90ef4bf 13449 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13452 "RANLIB=$${RANLIB}" \
0c24b341 13453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13454 dvi) \
13455 || exit 1
d3ed111c 13456
a90ef4bf 13457@endif mpc
d3ed111c 13458
a90ef4bf
JM
13459.PHONY: maybe-pdf-mpc pdf-mpc
13460maybe-pdf-mpc:
13461@if mpc
13462maybe-pdf-mpc: pdf-mpc
56a8fe78 13463
a90ef4bf
JM
13464pdf-mpc: \
13465 configure-mpc
13466 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13467 r=`${PWD_COMMAND}`; export r; \
13468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13469 $(HOST_EXPORTS) \
13470 for flag in $(EXTRA_HOST_FLAGS) ; do \
13471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13472 done; \
22121df0 13473 echo "Doing pdf in mpc"; \
a90ef4bf 13474 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13477 "RANLIB=$${RANLIB}" \
0c24b341 13478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13479 pdf) \
13480 || exit 1
56a8fe78 13481
a90ef4bf 13482@endif mpc
56a8fe78 13483
a90ef4bf
JM
13484.PHONY: maybe-html-mpc html-mpc
13485maybe-html-mpc:
13486@if mpc
13487maybe-html-mpc: html-mpc
6d389afc 13488
a90ef4bf
JM
13489html-mpc: \
13490 configure-mpc
13491 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13492 r=`${PWD_COMMAND}`; export r; \
13493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13494 $(HOST_EXPORTS) \
13495 for flag in $(EXTRA_HOST_FLAGS) ; do \
13496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13497 done; \
22121df0 13498 echo "Doing html in mpc"; \
a90ef4bf 13499 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13502 "RANLIB=$${RANLIB}" \
0c24b341 13503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13504 html) \
13505 || exit 1
13506
a90ef4bf 13507@endif mpc
d3ed111c 13508
a90ef4bf
JM
13509.PHONY: maybe-TAGS-mpc TAGS-mpc
13510maybe-TAGS-mpc:
13511@if mpc
13512maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13513
a90ef4bf
JM
13514TAGS-mpc: \
13515 configure-mpc
13516 @[ -f ./mpc/Makefile ] || exit 0; \
13517 r=`${PWD_COMMAND}`; export r; \
13518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13519 $(HOST_EXPORTS) \
13520 for flag in $(EXTRA_HOST_FLAGS) ; do \
13521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13522 done; \
22121df0 13523 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13524 (cd $(HOST_SUBDIR)/mpc && \
13525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13527 "RANLIB=$${RANLIB}" \
13528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13529 TAGS) \
13530 || exit 1
13531
13532@endif mpc
13533
13534.PHONY: maybe-install-info-mpc install-info-mpc
13535maybe-install-info-mpc:
13536@if mpc
13537maybe-install-info-mpc: install-info-mpc
13538
13539install-info-mpc: \
13540 configure-mpc \
13541 info-mpc
13542 @[ -f ./mpc/Makefile ] || exit 0; \
13543 r=`${PWD_COMMAND}`; export r; \
13544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13545 $(HOST_EXPORTS) \
13546 for flag in $(EXTRA_HOST_FLAGS) ; do \
13547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13548 done; \
22121df0 13549 echo "Doing install-info in mpc"; \
a90ef4bf 13550 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13553 "RANLIB=$${RANLIB}" \
0c24b341 13554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13555 install-info) \
13556 || exit 1
d3ed111c 13557
a90ef4bf 13558@endif mpc
d3ed111c 13559
a90ef4bf
JM
13560.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13561maybe-install-pdf-mpc:
13562@if mpc
13563maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13564
a90ef4bf
JM
13565install-pdf-mpc: \
13566 configure-mpc \
13567 pdf-mpc
13568 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13569 r=`${PWD_COMMAND}`; export r; \
13570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13571 $(HOST_EXPORTS) \
13572 for flag in $(EXTRA_HOST_FLAGS) ; do \
13573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13574 done; \
22121df0 13575 echo "Doing install-pdf in mpc"; \
a90ef4bf 13576 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13579 "RANLIB=$${RANLIB}" \
0c24b341 13580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13581 install-pdf) \
13582 || exit 1
a3ca38d2 13583
a90ef4bf 13584@endif mpc
a3ca38d2 13585
a90ef4bf
JM
13586.PHONY: maybe-install-html-mpc install-html-mpc
13587maybe-install-html-mpc:
13588@if mpc
13589maybe-install-html-mpc: install-html-mpc
108a6f8e 13590
a90ef4bf
JM
13591install-html-mpc: \
13592 configure-mpc \
13593 html-mpc
13594 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13595 r=`${PWD_COMMAND}`; export r; \
13596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13597 $(HOST_EXPORTS) \
13598 for flag in $(EXTRA_HOST_FLAGS) ; do \
13599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13600 done; \
22121df0 13601 echo "Doing install-html in mpc"; \
a90ef4bf 13602 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13605 "RANLIB=$${RANLIB}" \
0c24b341 13606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13607 install-html) \
13608 || exit 1
13609
a90ef4bf 13610@endif mpc
108a6f8e 13611
a90ef4bf
JM
13612.PHONY: maybe-installcheck-mpc installcheck-mpc
13613maybe-installcheck-mpc:
13614@if mpc
13615maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13616
a90ef4bf
JM
13617installcheck-mpc: \
13618 configure-mpc
13619 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13620 r=`${PWD_COMMAND}`; export r; \
13621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13622 $(HOST_EXPORTS) \
13623 for flag in $(EXTRA_HOST_FLAGS) ; do \
13624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13625 done; \
22121df0 13626 echo "Doing installcheck in mpc"; \
a90ef4bf 13627 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13630 "RANLIB=$${RANLIB}" \
0c24b341 13631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13632 installcheck) \
13633 || exit 1
d3ed111c 13634
a90ef4bf 13635@endif mpc
d3ed111c 13636
a90ef4bf
JM
13637.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13638maybe-mostlyclean-mpc:
13639@if mpc
13640maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13641
a90ef4bf
JM
13642mostlyclean-mpc:
13643 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13644 r=`${PWD_COMMAND}`; export r; \
13645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13646 $(HOST_EXPORTS) \
13647 for flag in $(EXTRA_HOST_FLAGS) ; do \
13648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13649 done; \
22121df0 13650 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13651 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13654 "RANLIB=$${RANLIB}" \
0c24b341 13655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13656 mostlyclean) \
13657 || exit 1
13658
a90ef4bf 13659@endif mpc
d3ed111c 13660
a90ef4bf
JM
13661.PHONY: maybe-clean-mpc clean-mpc
13662maybe-clean-mpc:
13663@if mpc
13664maybe-clean-mpc: clean-mpc
d3ed111c 13665
a90ef4bf
JM
13666clean-mpc:
13667 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13668 r=`${PWD_COMMAND}`; export r; \
13669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13670 $(HOST_EXPORTS) \
13671 for flag in $(EXTRA_HOST_FLAGS) ; do \
13672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13673 done; \
22121df0 13674 echo "Doing clean in mpc"; \
a90ef4bf 13675 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13678 "RANLIB=$${RANLIB}" \
0c24b341 13679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13680 clean) \
13681 || exit 1
13682
a90ef4bf 13683@endif mpc
d3ed111c 13684
a90ef4bf
JM
13685.PHONY: maybe-distclean-mpc distclean-mpc
13686maybe-distclean-mpc:
13687@if mpc
13688maybe-distclean-mpc: distclean-mpc
d3ed111c 13689
a90ef4bf
JM
13690distclean-mpc:
13691 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13692 r=`${PWD_COMMAND}`; export r; \
13693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13694 $(HOST_EXPORTS) \
13695 for flag in $(EXTRA_HOST_FLAGS) ; do \
13696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13697 done; \
22121df0 13698 echo "Doing distclean in mpc"; \
a90ef4bf 13699 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13702 "RANLIB=$${RANLIB}" \
0c24b341 13703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13704 distclean) \
13705 || exit 1
13706
a90ef4bf 13707@endif mpc
d3ed111c 13708
a90ef4bf
JM
13709.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13710maybe-maintainer-clean-mpc:
13711@if mpc
13712maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13713
a90ef4bf
JM
13714maintainer-clean-mpc:
13715 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13716 r=`${PWD_COMMAND}`; export r; \
13717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13718 $(HOST_EXPORTS) \
13719 for flag in $(EXTRA_HOST_FLAGS) ; do \
13720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13721 done; \
22121df0 13722 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13723 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13726 "RANLIB=$${RANLIB}" \
0c24b341 13727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13728 maintainer-clean) \
13729 || exit 1
13730
a90ef4bf 13731@endif mpc
d3ed111c
GK
13732
13733
a7254363 13734
7ec59b9e
L
13735.PHONY: configure-isl maybe-configure-isl
13736maybe-configure-isl:
4f0ef2d8 13737@if gcc-bootstrap
7ec59b9e 13738configure-isl: stage_current
4f0ef2d8 13739@endif gcc-bootstrap
7ec59b9e
L
13740@if isl
13741maybe-configure-isl: configure-isl
13742configure-isl:
c52c6897 13743 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13745 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13746 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13747 $(HOST_EXPORTS) \
7ec59b9e
L
13748 echo Configuring in $(HOST_SUBDIR)/isl; \
13749 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13750 case $(srcdir) in \
b00612cc 13751 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13752 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13753 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13754 esac; \
1b6c0831
L
13755 module_srcdir=isl; \
13756 $(SHELL) \
13757 $$s/$$module_srcdir/configure \
13758 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13759 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13760 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13761 || exit 1
7ec59b9e 13762@endif isl
4fa63067 13763
a7254363
PB
13764
13765
7ec59b9e
L
13766.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13767maybe-configure-stage1-isl:
13768@if isl-bootstrap
13769maybe-configure-stage1-isl: configure-stage1-isl
13770configure-stage1-isl:
a90ef4bf 13771 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13772 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13773 @r=`${PWD_COMMAND}`; export r; \
13774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13775 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13776 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13777 $(HOST_EXPORTS) \
13778 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13779 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13780 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13781 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13782 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13783 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13784 case $(srcdir) in \
13785 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13786 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13787 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13788 esac; \
1b6c0831
L
13789 module_srcdir=isl; \
13790 $(SHELL) $$s/$$module_srcdir/configure \
13791 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13792 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13793 --target=${target_alias} \
13794 \
a90ef4bf 13795 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13796 --disable-shared @extra_isl_gmp_configure_flags@
13797@endif isl-bootstrap
13798
13799.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13800maybe-configure-stage2-isl:
13801@if isl-bootstrap
13802maybe-configure-stage2-isl: configure-stage2-isl
13803configure-stage2-isl:
a90ef4bf 13804 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13805 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13806 @r=`${PWD_COMMAND}`; export r; \
13807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13808 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13809 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13810 $(HOST_EXPORTS) \
13811 $(POSTSTAGE1_HOST_EXPORTS) \
13812 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13813 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13814 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13815 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13816 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13817 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13818 case $(srcdir) in \
13819 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13820 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13821 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13822 esac; \
1b6c0831
L
13823 module_srcdir=isl; \
13824 $(SHELL) $$s/$$module_srcdir/configure \
13825 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13826 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13827 --target=${target_alias} \
22121df0 13828 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13829 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13830 --disable-shared @extra_isl_gmp_configure_flags@
13831@endif isl-bootstrap
13832
13833.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13834maybe-configure-stage3-isl:
13835@if isl-bootstrap
13836maybe-configure-stage3-isl: configure-stage3-isl
13837configure-stage3-isl:
a90ef4bf 13838 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13839 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13840 @r=`${PWD_COMMAND}`; export r; \
13841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13842 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13843 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13844 $(HOST_EXPORTS) \
13845 $(POSTSTAGE1_HOST_EXPORTS) \
13846 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13847 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13848 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13849 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13850 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13851 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13852 case $(srcdir) in \
13853 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13854 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13855 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13856 esac; \
1b6c0831
L
13857 module_srcdir=isl; \
13858 $(SHELL) $$s/$$module_srcdir/configure \
13859 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13860 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13861 --target=${target_alias} \
22121df0 13862 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13863 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13864 --disable-shared @extra_isl_gmp_configure_flags@
13865@endif isl-bootstrap
13866
13867.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13868maybe-configure-stage4-isl:
13869@if isl-bootstrap
13870maybe-configure-stage4-isl: configure-stage4-isl
13871configure-stage4-isl:
a90ef4bf 13872 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13873 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13874 @r=`${PWD_COMMAND}`; export r; \
13875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13876 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13877 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13878 $(HOST_EXPORTS) \
13879 $(POSTSTAGE1_HOST_EXPORTS) \
13880 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13881 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13882 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13883 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13884 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13885 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13886 case $(srcdir) in \
13887 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13888 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13889 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13890 esac; \
1b6c0831
L
13891 module_srcdir=isl; \
13892 $(SHELL) $$s/$$module_srcdir/configure \
13893 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13894 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13895 --target=${target_alias} \
22121df0 13896 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13897 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13898 --disable-shared @extra_isl_gmp_configure_flags@
13899@endif isl-bootstrap
13900
13901.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13902maybe-configure-stageprofile-isl:
13903@if isl-bootstrap
13904maybe-configure-stageprofile-isl: configure-stageprofile-isl
13905configure-stageprofile-isl:
a90ef4bf 13906 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13907 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13908 @r=`${PWD_COMMAND}`; export r; \
13909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13910 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13911 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13912 $(HOST_EXPORTS) \
13913 $(POSTSTAGE1_HOST_EXPORTS) \
13914 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13915 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13916 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13917 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13918 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13919 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13920 case $(srcdir) in \
13921 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13922 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13923 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13924 esac; \
1b6c0831
L
13925 module_srcdir=isl; \
13926 $(SHELL) $$s/$$module_srcdir/configure \
13927 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13928 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13929 --target=${target_alias} \
22121df0 13930 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13931 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13932 --disable-shared @extra_isl_gmp_configure_flags@
13933@endif isl-bootstrap
13934
13935.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13936maybe-configure-stagefeedback-isl:
13937@if isl-bootstrap
13938maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13939configure-stagefeedback-isl:
a90ef4bf 13940 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13941 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13942 @r=`${PWD_COMMAND}`; export r; \
13943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13944 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13945 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13946 $(HOST_EXPORTS) \
13947 $(POSTSTAGE1_HOST_EXPORTS) \
13948 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13949 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13950 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13951 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
13952 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13953 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13954 case $(srcdir) in \
13955 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13956 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13957 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13958 esac; \
1b6c0831
L
13959 module_srcdir=isl; \
13960 $(SHELL) $$s/$$module_srcdir/configure \
13961 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13962 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13963 --target=${target_alias} \
22121df0 13964 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13965 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13966 --disable-shared @extra_isl_gmp_configure_flags@
13967@endif isl-bootstrap
d545f33b 13968
4fa63067 13969
4fa63067
NN
13970
13971
4fa63067 13972
7ec59b9e
L
13973.PHONY: all-isl maybe-all-isl
13974maybe-all-isl:
a90ef4bf 13975@if gcc-bootstrap
7ec59b9e 13976all-isl: stage_current
a90ef4bf 13977@endif gcc-bootstrap
7ec59b9e
L
13978@if isl
13979TARGET-isl=all
13980maybe-all-isl: all-isl
13981all-isl: configure-isl
4fa63067
NN
13982 @r=`${PWD_COMMAND}`; export r; \
13983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13984 $(HOST_EXPORTS) \
7ec59b9e 13985 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13986 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13987 $(TARGET-isl))
13988@endif isl
13989
13990
13991
13992.PHONY: all-stage1-isl maybe-all-stage1-isl
13993.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13994maybe-all-stage1-isl:
13995maybe-clean-stage1-isl:
13996@if isl-bootstrap
13997maybe-all-stage1-isl: all-stage1-isl
13998all-stage1: all-stage1-isl
13999TARGET-stage1-isl = $(TARGET-isl)
14000all-stage1-isl: configure-stage1-isl
a90ef4bf 14001 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
14002 @r=`${PWD_COMMAND}`; export r; \
14003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14004 TFLAGS="$(STAGE1_TFLAGS)"; \
14005 $(HOST_EXPORTS) \
7ec59b9e 14006 cd $(HOST_SUBDIR)/isl && \
05a13254 14007 \
a90ef4bf
JM
14008 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14009 CFLAGS="$(STAGE1_CFLAGS)" \
14010 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
14011 LIBCFLAGS="$(LIBCFLAGS)" \
14012 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14013 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14014 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14015 $(EXTRA_HOST_FLAGS) \
14016 $(STAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14017 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 14018 $(TARGET-stage1-isl)
9b980aa1 14019
7ec59b9e
L
14020maybe-clean-stage1-isl: clean-stage1-isl
14021clean-stage1: clean-stage1-isl
14022clean-stage1-isl:
a90ef4bf 14023 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 14024 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14025 else \
7ec59b9e 14026 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14027 $(MAKE) stage1-start; \
14028 fi; \
7ec59b9e 14029 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 14030 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14031 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14032@endif isl-bootstrap
14033
14034
14035.PHONY: all-stage2-isl maybe-all-stage2-isl
14036.PHONY: clean-stage2-isl maybe-clean-stage2-isl
14037maybe-all-stage2-isl:
14038maybe-clean-stage2-isl:
14039@if isl-bootstrap
14040maybe-all-stage2-isl: all-stage2-isl
14041all-stage2: all-stage2-isl
14042TARGET-stage2-isl = $(TARGET-isl)
14043all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
14044 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
14045 @r=`${PWD_COMMAND}`; export r; \
14046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14047 TFLAGS="$(STAGE2_TFLAGS)"; \
14048 $(HOST_EXPORTS) \
14049 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14050 cd $(HOST_SUBDIR)/isl && \
05a13254 14051 \
a90ef4bf
JM
14052 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14053 CFLAGS="$(STAGE2_CFLAGS)" \
14054 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
14055 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14056 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14057 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14058 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14059 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14060 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 14061 $(TARGET-stage2-isl)
a90ef4bf 14062
7ec59b9e
L
14063maybe-clean-stage2-isl: clean-stage2-isl
14064clean-stage2: clean-stage2-isl
14065clean-stage2-isl:
a90ef4bf 14066 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 14067 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14068 else \
7ec59b9e 14069 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14070 $(MAKE) stage2-start; \
14071 fi; \
7ec59b9e 14072 cd $(HOST_SUBDIR)/isl && \
b3676d82 14073 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14074@endif isl-bootstrap
14075
14076
14077.PHONY: all-stage3-isl maybe-all-stage3-isl
14078.PHONY: clean-stage3-isl maybe-clean-stage3-isl
14079maybe-all-stage3-isl:
14080maybe-clean-stage3-isl:
14081@if isl-bootstrap
14082maybe-all-stage3-isl: all-stage3-isl
14083all-stage3: all-stage3-isl
14084TARGET-stage3-isl = $(TARGET-isl)
14085all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
14086 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14087 @r=`${PWD_COMMAND}`; export r; \
14088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14089 TFLAGS="$(STAGE3_TFLAGS)"; \
14090 $(HOST_EXPORTS) \
14091 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14092 cd $(HOST_SUBDIR)/isl && \
05a13254 14093 \
a90ef4bf
JM
14094 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14095 CFLAGS="$(STAGE3_CFLAGS)" \
14096 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14097 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14098 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14099 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14100 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14101 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14102 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14103 $(TARGET-stage3-isl)
a90ef4bf 14104
7ec59b9e
L
14105maybe-clean-stage3-isl: clean-stage3-isl
14106clean-stage3: clean-stage3-isl
14107clean-stage3-isl:
a90ef4bf 14108 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14109 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14110 else \
7ec59b9e 14111 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14112 $(MAKE) stage3-start; \
14113 fi; \
7ec59b9e 14114 cd $(HOST_SUBDIR)/isl && \
b3676d82 14115 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14116@endif isl-bootstrap
14117
14118
14119.PHONY: all-stage4-isl maybe-all-stage4-isl
14120.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14121maybe-all-stage4-isl:
14122maybe-clean-stage4-isl:
14123@if isl-bootstrap
14124maybe-all-stage4-isl: all-stage4-isl
14125all-stage4: all-stage4-isl
14126TARGET-stage4-isl = $(TARGET-isl)
14127all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14128 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14129 @r=`${PWD_COMMAND}`; export r; \
14130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14131 TFLAGS="$(STAGE4_TFLAGS)"; \
14132 $(HOST_EXPORTS) \
14133 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14134 cd $(HOST_SUBDIR)/isl && \
05a13254 14135 \
a90ef4bf
JM
14136 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14137 CFLAGS="$(STAGE4_CFLAGS)" \
14138 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14139 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14140 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14141 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14142 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14143 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14144 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14145 $(TARGET-stage4-isl)
a90ef4bf 14146
7ec59b9e
L
14147maybe-clean-stage4-isl: clean-stage4-isl
14148clean-stage4: clean-stage4-isl
14149clean-stage4-isl:
a90ef4bf 14150 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14151 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14152 else \
7ec59b9e 14153 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14154 $(MAKE) stage4-start; \
14155 fi; \
7ec59b9e 14156 cd $(HOST_SUBDIR)/isl && \
b3676d82 14157 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14158@endif isl-bootstrap
14159
14160
14161.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14162.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14163maybe-all-stageprofile-isl:
14164maybe-clean-stageprofile-isl:
14165@if isl-bootstrap
14166maybe-all-stageprofile-isl: all-stageprofile-isl
14167all-stageprofile: all-stageprofile-isl
14168TARGET-stageprofile-isl = $(TARGET-isl)
14169all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14170 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14171 @r=`${PWD_COMMAND}`; export r; \
14172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14173 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14174 $(HOST_EXPORTS) \
14175 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14176 cd $(HOST_SUBDIR)/isl && \
05a13254 14177 \
a90ef4bf
JM
14178 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14179 CFLAGS="$(STAGEprofile_CFLAGS)" \
14180 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14181 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14182 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14183 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14184 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14185 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14186 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14187 $(TARGET-stageprofile-isl)
a90ef4bf 14188
7ec59b9e
L
14189maybe-clean-stageprofile-isl: clean-stageprofile-isl
14190clean-stageprofile: clean-stageprofile-isl
14191clean-stageprofile-isl:
a90ef4bf 14192 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14193 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14194 else \
7ec59b9e 14195 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14196 $(MAKE) stageprofile-start; \
14197 fi; \
7ec59b9e 14198 cd $(HOST_SUBDIR)/isl && \
b3676d82 14199 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14200@endif isl-bootstrap
14201
14202
14203.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14204.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14205maybe-all-stagefeedback-isl:
14206maybe-clean-stagefeedback-isl:
14207@if isl-bootstrap
14208maybe-all-stagefeedback-isl: all-stagefeedback-isl
14209all-stagefeedback: all-stagefeedback-isl
14210TARGET-stagefeedback-isl = $(TARGET-isl)
14211all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14212 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14213 @r=`${PWD_COMMAND}`; export r; \
14214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14215 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14216 $(HOST_EXPORTS) \
14217 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14218 cd $(HOST_SUBDIR)/isl && \
05a13254 14219 \
a90ef4bf
JM
14220 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14221 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14222 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14223 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14224 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14225 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14226 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14227 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14228 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14229 $(TARGET-stagefeedback-isl)
a90ef4bf 14230
7ec59b9e
L
14231maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14232clean-stagefeedback: clean-stagefeedback-isl
14233clean-stagefeedback-isl:
a90ef4bf 14234 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14235 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14236 else \
7ec59b9e 14237 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14238 $(MAKE) stagefeedback-start; \
14239 fi; \
7ec59b9e 14240 cd $(HOST_SUBDIR)/isl && \
b3676d82 14241 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14242@endif isl-bootstrap
a90ef4bf
JM
14243
14244
14245
14246
14247
7ec59b9e
L
14248.PHONY: check-isl maybe-check-isl
14249maybe-check-isl:
14250@if isl
14251maybe-check-isl: check-isl
a90ef4bf 14252
7ec59b9e 14253check-isl:
0aed8855 14254 @: $(MAKE); $(unstage)
a90ef4bf
JM
14255 @r=`${PWD_COMMAND}`; export r; \
14256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14257 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14258 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14259 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14260
7ec59b9e 14261@endif isl
a90ef4bf 14262
7ec59b9e
L
14263.PHONY: install-isl maybe-install-isl
14264maybe-install-isl:
14265@if isl
14266maybe-install-isl: install-isl
a90ef4bf 14267
7ec59b9e 14268install-isl:
a90ef4bf 14269
7ec59b9e 14270@endif isl
a90ef4bf 14271
7ec59b9e
L
14272.PHONY: install-strip-isl maybe-install-strip-isl
14273maybe-install-strip-isl:
14274@if isl
14275maybe-install-strip-isl: install-strip-isl
a90ef4bf 14276
7ec59b9e 14277install-strip-isl:
a90ef4bf 14278
7ec59b9e 14279@endif isl
a90ef4bf
JM
14280
14281# Other targets (info, dvi, pdf, etc.)
14282
7ec59b9e
L
14283.PHONY: maybe-info-isl info-isl
14284maybe-info-isl:
14285@if isl
14286maybe-info-isl: info-isl
a90ef4bf 14287
7ec59b9e
L
14288info-isl: \
14289 configure-isl
14290 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14291 r=`${PWD_COMMAND}`; export r; \
14292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14293 $(HOST_EXPORTS) \
7ec59b9e 14294 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14296 done; \
22121df0 14297 echo "Doing info in isl"; \
7ec59b9e 14298 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14301 "RANLIB=$${RANLIB}" \
0c24b341 14302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14303 info) \
2a4cbe27
NN
14304 || exit 1
14305
7ec59b9e 14306@endif isl
2a4cbe27 14307
7ec59b9e
L
14308.PHONY: maybe-dvi-isl dvi-isl
14309maybe-dvi-isl:
14310@if isl
14311maybe-dvi-isl: dvi-isl
2a4cbe27 14312
7ec59b9e
L
14313dvi-isl: \
14314 configure-isl
14315 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14316 r=`${PWD_COMMAND}`; export r; \
14317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14318 $(HOST_EXPORTS) \
7ec59b9e 14319 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14321 done; \
22121df0 14322 echo "Doing dvi in isl"; \
7ec59b9e 14323 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14326 "RANLIB=$${RANLIB}" \
0c24b341 14327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14328 dvi) \
2a4cbe27
NN
14329 || exit 1
14330
7ec59b9e 14331@endif isl
2a4cbe27 14332
7ec59b9e
L
14333.PHONY: maybe-pdf-isl pdf-isl
14334maybe-pdf-isl:
14335@if isl
14336maybe-pdf-isl: pdf-isl
56a8fe78 14337
7ec59b9e
L
14338pdf-isl: \
14339 configure-isl
14340 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14341 r=`${PWD_COMMAND}`; export r; \
14342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14343 $(HOST_EXPORTS) \
7ec59b9e 14344 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14346 done; \
22121df0 14347 echo "Doing pdf in isl"; \
7ec59b9e 14348 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14351 "RANLIB=$${RANLIB}" \
0c24b341 14352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14353 pdf) \
14354 || exit 1
14355
7ec59b9e 14356@endif isl
56a8fe78 14357
7ec59b9e
L
14358.PHONY: maybe-html-isl html-isl
14359maybe-html-isl:
14360@if isl
14361maybe-html-isl: html-isl
6d389afc 14362
7ec59b9e
L
14363html-isl: \
14364 configure-isl
14365 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14366 r=`${PWD_COMMAND}`; export r; \
14367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14368 $(HOST_EXPORTS) \
7ec59b9e 14369 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14371 done; \
22121df0 14372 echo "Doing html in isl"; \
7ec59b9e 14373 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14376 "RANLIB=$${RANLIB}" \
0c24b341 14377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14378 html) \
14379 || exit 1
14380
7ec59b9e 14381@endif isl
6d389afc 14382
7ec59b9e
L
14383.PHONY: maybe-TAGS-isl TAGS-isl
14384maybe-TAGS-isl:
14385@if isl
14386maybe-TAGS-isl: TAGS-isl
2a4cbe27 14387
7ec59b9e
L
14388TAGS-isl: \
14389 configure-isl
14390 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14391 r=`${PWD_COMMAND}`; export r; \
14392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14393 $(HOST_EXPORTS) \
7ec59b9e 14394 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14396 done; \
22121df0 14397 echo "Doing TAGS in isl"; \
7ec59b9e 14398 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14401 "RANLIB=$${RANLIB}" \
0c24b341 14402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14403 TAGS) \
2a4cbe27
NN
14404 || exit 1
14405
7ec59b9e 14406@endif isl
2a4cbe27 14407
7ec59b9e
L
14408.PHONY: maybe-install-info-isl install-info-isl
14409maybe-install-info-isl:
14410@if isl
14411maybe-install-info-isl: install-info-isl
2a4cbe27 14412
7ec59b9e
L
14413install-info-isl: \
14414 configure-isl \
14415 info-isl
14416 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14417 r=`${PWD_COMMAND}`; export r; \
14418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14419 $(HOST_EXPORTS) \
7ec59b9e 14420 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14422 done; \
22121df0 14423 echo "Doing install-info in isl"; \
7ec59b9e 14424 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14427 "RANLIB=$${RANLIB}" \
0c24b341 14428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14429 install-info) \
2a4cbe27
NN
14430 || exit 1
14431
7ec59b9e 14432@endif isl
2a4cbe27 14433
7ec59b9e
L
14434.PHONY: maybe-install-pdf-isl install-pdf-isl
14435maybe-install-pdf-isl:
14436@if isl
14437maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14438
7ec59b9e
L
14439install-pdf-isl: \
14440 configure-isl \
14441 pdf-isl
14442 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14443 r=`${PWD_COMMAND}`; export r; \
14444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14445 $(HOST_EXPORTS) \
7ec59b9e 14446 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14448 done; \
22121df0 14449 echo "Doing install-pdf in isl"; \
7ec59b9e 14450 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14453 "RANLIB=$${RANLIB}" \
0c24b341 14454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14455 install-pdf) \
14456 || exit 1
14457
7ec59b9e 14458@endif isl
a3ca38d2 14459
7ec59b9e
L
14460.PHONY: maybe-install-html-isl install-html-isl
14461maybe-install-html-isl:
14462@if isl
14463maybe-install-html-isl: install-html-isl
108a6f8e 14464
7ec59b9e
L
14465install-html-isl: \
14466 configure-isl \
14467 html-isl
14468 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14469 r=`${PWD_COMMAND}`; export r; \
14470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14471 $(HOST_EXPORTS) \
7ec59b9e 14472 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14474 done; \
22121df0 14475 echo "Doing install-html in isl"; \
7ec59b9e 14476 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14479 "RANLIB=$${RANLIB}" \
0c24b341 14480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14481 install-html) \
14482 || exit 1
14483
7ec59b9e 14484@endif isl
108a6f8e 14485
7ec59b9e
L
14486.PHONY: maybe-installcheck-isl installcheck-isl
14487maybe-installcheck-isl:
14488@if isl
14489maybe-installcheck-isl: installcheck-isl
2a4cbe27 14490
7ec59b9e
L
14491installcheck-isl: \
14492 configure-isl
14493 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14494 r=`${PWD_COMMAND}`; export r; \
14495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14496 $(HOST_EXPORTS) \
7ec59b9e 14497 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14499 done; \
22121df0 14500 echo "Doing installcheck in isl"; \
7ec59b9e 14501 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14504 "RANLIB=$${RANLIB}" \
0c24b341 14505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14506 installcheck) \
2a4cbe27
NN
14507 || exit 1
14508
7ec59b9e 14509@endif isl
2a4cbe27 14510
7ec59b9e
L
14511.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14512maybe-mostlyclean-isl:
14513@if isl
14514maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14515
7ec59b9e
L
14516mostlyclean-isl:
14517 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14518 r=`${PWD_COMMAND}`; export r; \
14519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14520 $(HOST_EXPORTS) \
7ec59b9e 14521 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14523 done; \
22121df0 14524 echo "Doing mostlyclean in isl"; \
7ec59b9e 14525 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14528 "RANLIB=$${RANLIB}" \
0c24b341 14529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14530 mostlyclean) \
2a4cbe27
NN
14531 || exit 1
14532
7ec59b9e 14533@endif isl
2a4cbe27 14534
7ec59b9e
L
14535.PHONY: maybe-clean-isl clean-isl
14536maybe-clean-isl:
14537@if isl
14538maybe-clean-isl: clean-isl
2a4cbe27 14539
7ec59b9e
L
14540clean-isl:
14541 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14542 r=`${PWD_COMMAND}`; export r; \
14543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14544 $(HOST_EXPORTS) \
7ec59b9e 14545 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14547 done; \
22121df0 14548 echo "Doing clean in isl"; \
7ec59b9e 14549 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14552 "RANLIB=$${RANLIB}" \
0c24b341 14553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14554 clean) \
2a4cbe27
NN
14555 || exit 1
14556
7ec59b9e 14557@endif isl
2a4cbe27 14558
7ec59b9e
L
14559.PHONY: maybe-distclean-isl distclean-isl
14560maybe-distclean-isl:
14561@if isl
14562maybe-distclean-isl: distclean-isl
2a4cbe27 14563
7ec59b9e
L
14564distclean-isl:
14565 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14566 r=`${PWD_COMMAND}`; export r; \
14567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14568 $(HOST_EXPORTS) \
7ec59b9e 14569 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14571 done; \
22121df0 14572 echo "Doing distclean in isl"; \
7ec59b9e 14573 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14576 "RANLIB=$${RANLIB}" \
0c24b341 14577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14578 distclean) \
2a4cbe27
NN
14579 || exit 1
14580
7ec59b9e 14581@endif isl
2a4cbe27 14582
7ec59b9e
L
14583.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14584maybe-maintainer-clean-isl:
14585@if isl
14586maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14587
7ec59b9e
L
14588maintainer-clean-isl:
14589 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14590 r=`${PWD_COMMAND}`; export r; \
14591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14592 $(HOST_EXPORTS) \
7ec59b9e 14593 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14595 done; \
22121df0 14596 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14597 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14600 "RANLIB=$${RANLIB}" \
0c24b341 14601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14602 maintainer-clean) \
2a4cbe27
NN
14603 || exit 1
14604
7ec59b9e 14605@endif isl
2a4cbe27 14606
2a4cbe27 14607
a7254363 14608
a90ef4bf
JM
14609.PHONY: configure-libelf maybe-configure-libelf
14610maybe-configure-libelf:
c52c6897 14611@if gcc-bootstrap
a90ef4bf 14612configure-libelf: stage_current
c52c6897 14613@endif gcc-bootstrap
a90ef4bf
JM
14614@if libelf
14615maybe-configure-libelf: configure-libelf
14616configure-libelf:
c52c6897
PB
14617 @r=`${PWD_COMMAND}`; export r; \
14618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14619 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14620 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14621 $(HOST_EXPORTS) \
a90ef4bf
JM
14622 echo Configuring in $(HOST_SUBDIR)/libelf; \
14623 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14624 case $(srcdir) in \
b00612cc 14625 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14626 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14627 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14628 esac; \
1b6c0831
L
14629 module_srcdir=libelf; \
14630 $(SHELL) \
14631 $$s/$$module_srcdir/configure \
14632 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14633 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14634 --target=${target_alias} --disable-shared \
4fa63067 14635 || exit 1
a90ef4bf 14636@endif libelf
4fa63067 14637
a7254363
PB
14638
14639
a90ef4bf
JM
14640.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14641maybe-configure-stage1-libelf:
14642@if libelf-bootstrap
14643maybe-configure-stage1-libelf: configure-stage1-libelf
14644configure-stage1-libelf:
c52c6897 14645 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14646 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14647 @r=`${PWD_COMMAND}`; export r; \
14648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14649 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14650 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14651 $(HOST_EXPORTS) \
8ee82aff 14652 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14653 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14654 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14655 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14656 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14657 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14658 case $(srcdir) in \
14659 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14660 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14661 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14662 esac; \
1b6c0831
L
14663 module_srcdir=libelf; \
14664 $(SHELL) $$s/$$module_srcdir/configure \
14665 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14666 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14667 --target=${target_alias} \
14668 \
a90ef4bf
JM
14669 $(STAGE1_CONFIGURE_FLAGS) \
14670 --disable-shared
14671@endif libelf-bootstrap
d545f33b 14672
a90ef4bf
JM
14673.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14674maybe-configure-stage2-libelf:
14675@if libelf-bootstrap
14676maybe-configure-stage2-libelf: configure-stage2-libelf
14677configure-stage2-libelf:
c52c6897 14678 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14679 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14680 @r=`${PWD_COMMAND}`; export r; \
14681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14682 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14683 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14684 $(HOST_EXPORTS) \
1b05fbbd 14685 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14686 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14687 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14688 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14689 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14690 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14691 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14692 case $(srcdir) in \
14693 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14694 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14695 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14696 esac; \
1b6c0831
L
14697 module_srcdir=libelf; \
14698 $(SHELL) $$s/$$module_srcdir/configure \
14699 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14700 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14701 --target=${target_alias} \
22121df0 14702 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14703 $(STAGE2_CONFIGURE_FLAGS) \
14704 --disable-shared
14705@endif libelf-bootstrap
8520c408 14706
a90ef4bf
JM
14707.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14708maybe-configure-stage3-libelf:
14709@if libelf-bootstrap
14710maybe-configure-stage3-libelf: configure-stage3-libelf
14711configure-stage3-libelf:
c52c6897 14712 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14713 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14714 @r=`${PWD_COMMAND}`; export r; \
14715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14716 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14717 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14718 $(HOST_EXPORTS) \
1b05fbbd 14719 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14720 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14721 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14722 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14723 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14724 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14725 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14726 case $(srcdir) in \
14727 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14728 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14729 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14730 esac; \
1b6c0831
L
14731 module_srcdir=libelf; \
14732 $(SHELL) $$s/$$module_srcdir/configure \
14733 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14734 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14735 --target=${target_alias} \
22121df0 14736 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14737 $(STAGE3_CONFIGURE_FLAGS) \
14738 --disable-shared
14739@endif libelf-bootstrap
8520c408 14740
a90ef4bf
JM
14741.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14742maybe-configure-stage4-libelf:
14743@if libelf-bootstrap
14744maybe-configure-stage4-libelf: configure-stage4-libelf
14745configure-stage4-libelf:
c52c6897 14746 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14747 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14748 @r=`${PWD_COMMAND}`; export r; \
14749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14750 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14751 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14752 $(HOST_EXPORTS) \
1b05fbbd 14753 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14754 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14755 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14756 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14757 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14758 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14759 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14760 case $(srcdir) in \
14761 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14762 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14763 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14764 esac; \
1b6c0831
L
14765 module_srcdir=libelf; \
14766 $(SHELL) $$s/$$module_srcdir/configure \
14767 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14768 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14769 --target=${target_alias} \
22121df0 14770 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14771 $(STAGE4_CONFIGURE_FLAGS) \
14772 --disable-shared
14773@endif libelf-bootstrap
d545f33b 14774
a90ef4bf
JM
14775.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14776maybe-configure-stageprofile-libelf:
14777@if libelf-bootstrap
14778maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14779configure-stageprofile-libelf:
c52c6897 14780 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14781 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14782 @r=`${PWD_COMMAND}`; export r; \
14783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14784 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14785 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14786 $(HOST_EXPORTS) \
1b05fbbd
AO
14787 $(POSTSTAGE1_HOST_EXPORTS) \
14788 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14789 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14790 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14791 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14792 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14793 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14794 case $(srcdir) in \
14795 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14796 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14797 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14798 esac; \
1b6c0831
L
14799 module_srcdir=libelf; \
14800 $(SHELL) $$s/$$module_srcdir/configure \
14801 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14802 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14803 --target=${target_alias} \
22121df0 14804 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14805 $(STAGEprofile_CONFIGURE_FLAGS) \
14806 --disable-shared
14807@endif libelf-bootstrap
d545f33b 14808
a90ef4bf
JM
14809.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14810maybe-configure-stagefeedback-libelf:
14811@if libelf-bootstrap
14812maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14813configure-stagefeedback-libelf:
c52c6897 14814 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14815 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14816 @r=`${PWD_COMMAND}`; export r; \
14817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14818 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14819 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14820 $(HOST_EXPORTS) \
1b05fbbd
AO
14821 $(POSTSTAGE1_HOST_EXPORTS) \
14822 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14823 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14824 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14825 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14826 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14827 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14828 case $(srcdir) in \
14829 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14830 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14831 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14832 esac; \
1b6c0831
L
14833 module_srcdir=libelf; \
14834 $(SHELL) $$s/$$module_srcdir/configure \
14835 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14836 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14837 --target=${target_alias} \
22121df0 14838 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14839 $(STAGEfeedback_CONFIGURE_FLAGS) \
14840 --disable-shared
14841@endif libelf-bootstrap
d545f33b
PB
14842
14843
14844
14845
14846
a90ef4bf
JM
14847.PHONY: all-libelf maybe-all-libelf
14848maybe-all-libelf:
4f0ef2d8 14849@if gcc-bootstrap
a90ef4bf 14850all-libelf: stage_current
4f0ef2d8 14851@endif gcc-bootstrap
a90ef4bf
JM
14852@if libelf
14853TARGET-libelf=all
14854maybe-all-libelf: all-libelf
14855all-libelf: configure-libelf
c52c6897 14856 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14858 $(HOST_EXPORTS) \
a90ef4bf 14859 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14860 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14861 $(TARGET-libelf))
14862@endif libelf
4fa63067 14863
a7254363 14864
d545f33b 14865
a90ef4bf
JM
14866.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14867.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14868maybe-all-stage1-libelf:
14869maybe-clean-stage1-libelf:
14870@if libelf-bootstrap
14871maybe-all-stage1-libelf: all-stage1-libelf
14872all-stage1: all-stage1-libelf
14873TARGET-stage1-libelf = $(TARGET-libelf)
14874all-stage1-libelf: configure-stage1-libelf
c52c6897 14875 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14876 @r=`${PWD_COMMAND}`; export r; \
14877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14878 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14879 $(HOST_EXPORTS) \
a90ef4bf 14880 cd $(HOST_SUBDIR)/libelf && \
05a13254 14881 \
7f6ef0c0 14882 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14883 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14884 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14885 LIBCFLAGS="$(LIBCFLAGS)" \
14886 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14887 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14888 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14889 $(EXTRA_HOST_FLAGS) \
14890 $(STAGE1_FLAGS_TO_PASS) \
05a13254 14891 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14892 $(TARGET-stage1-libelf)
d545f33b 14893
a90ef4bf
JM
14894maybe-clean-stage1-libelf: clean-stage1-libelf
14895clean-stage1: clean-stage1-libelf
14896clean-stage1-libelf:
9dbaa842 14897 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14898 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14899 else \
a90ef4bf 14900 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14901 $(MAKE) stage1-start; \
14902 fi; \
a90ef4bf 14903 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14904 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14905 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14906@endif libelf-bootstrap
d545f33b
PB
14907
14908
a90ef4bf
JM
14909.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14910.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14911maybe-all-stage2-libelf:
14912maybe-clean-stage2-libelf:
14913@if libelf-bootstrap
14914maybe-all-stage2-libelf: all-stage2-libelf
14915all-stage2: all-stage2-libelf
14916TARGET-stage2-libelf = $(TARGET-libelf)
14917all-stage2-libelf: configure-stage2-libelf
c52c6897 14918 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14919 @r=`${PWD_COMMAND}`; export r; \
14920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14921 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14922 $(HOST_EXPORTS) \
1f53ca9a 14923 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14924 cd $(HOST_SUBDIR)/libelf && \
05a13254 14925 \
7f6ef0c0 14926 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14927 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14928 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14929 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14930 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14931 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14932 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14933 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14934 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14935 $(TARGET-stage2-libelf)
d545f33b 14936
a90ef4bf
JM
14937maybe-clean-stage2-libelf: clean-stage2-libelf
14938clean-stage2: clean-stage2-libelf
14939clean-stage2-libelf:
9dbaa842 14940 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14941 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14942 else \
a90ef4bf 14943 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14944 $(MAKE) stage2-start; \
14945 fi; \
a90ef4bf 14946 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14947 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14948@endif libelf-bootstrap
d545f33b
PB
14949
14950
a90ef4bf
JM
14951.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14952.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14953maybe-all-stage3-libelf:
14954maybe-clean-stage3-libelf:
14955@if libelf-bootstrap
14956maybe-all-stage3-libelf: all-stage3-libelf
14957all-stage3: all-stage3-libelf
14958TARGET-stage3-libelf = $(TARGET-libelf)
14959all-stage3-libelf: configure-stage3-libelf
c52c6897 14960 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14961 @r=`${PWD_COMMAND}`; export r; \
14962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14963 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14964 $(HOST_EXPORTS) \
1f53ca9a 14965 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14966 cd $(HOST_SUBDIR)/libelf && \
05a13254 14967 \
7f6ef0c0 14968 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14969 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14970 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14971 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14972 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14973 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14974 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14975 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14976 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14977 $(TARGET-stage3-libelf)
d545f33b 14978
a90ef4bf
JM
14979maybe-clean-stage3-libelf: clean-stage3-libelf
14980clean-stage3: clean-stage3-libelf
14981clean-stage3-libelf:
9dbaa842 14982 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14983 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14984 else \
a90ef4bf 14985 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14986 $(MAKE) stage3-start; \
14987 fi; \
a90ef4bf 14988 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14989 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14990@endif libelf-bootstrap
d545f33b
PB
14991
14992
a90ef4bf
JM
14993.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14994.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14995maybe-all-stage4-libelf:
14996maybe-clean-stage4-libelf:
14997@if libelf-bootstrap
14998maybe-all-stage4-libelf: all-stage4-libelf
14999all-stage4: all-stage4-libelf
15000TARGET-stage4-libelf = $(TARGET-libelf)
15001all-stage4-libelf: configure-stage4-libelf
c52c6897 15002 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
15003 @r=`${PWD_COMMAND}`; export r; \
15004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15005 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 15006 $(HOST_EXPORTS) \
1f53ca9a 15007 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15008 cd $(HOST_SUBDIR)/libelf && \
05a13254 15009 \
7f6ef0c0 15010 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15011 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 15012 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 15013 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
15014 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15015 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15016 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15017 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15018 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15019 $(TARGET-stage4-libelf)
d545f33b 15020
a90ef4bf
JM
15021maybe-clean-stage4-libelf: clean-stage4-libelf
15022clean-stage4: clean-stage4-libelf
15023clean-stage4-libelf:
9dbaa842 15024 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 15025 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15026 else \
a90ef4bf 15027 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15028 $(MAKE) stage4-start; \
15029 fi; \
a90ef4bf 15030 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15031 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15032@endif libelf-bootstrap
d545f33b
PB
15033
15034
a90ef4bf
JM
15035.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
15036.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
15037maybe-all-stageprofile-libelf:
15038maybe-clean-stageprofile-libelf:
15039@if libelf-bootstrap
15040maybe-all-stageprofile-libelf: all-stageprofile-libelf
15041all-stageprofile: all-stageprofile-libelf
15042TARGET-stageprofile-libelf = $(TARGET-libelf)
15043all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 15044 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
15045 @r=`${PWD_COMMAND}`; export r; \
15046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15047 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 15048 $(HOST_EXPORTS) \
1f53ca9a 15049 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15050 cd $(HOST_SUBDIR)/libelf && \
05a13254 15051 \
7f6ef0c0 15052 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15053 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 15054 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
15055 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15056 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15057 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15058 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15059 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15060 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15061 $(TARGET-stageprofile-libelf)
d545f33b 15062
a90ef4bf
JM
15063maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
15064clean-stageprofile: clean-stageprofile-libelf
15065clean-stageprofile-libelf:
9dbaa842 15066 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 15067 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15068 else \
a90ef4bf 15069 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15070 $(MAKE) stageprofile-start; \
15071 fi; \
a90ef4bf 15072 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15073 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15074@endif libelf-bootstrap
d545f33b
PB
15075
15076
a90ef4bf
JM
15077.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
15078.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
15079maybe-all-stagefeedback-libelf:
15080maybe-clean-stagefeedback-libelf:
15081@if libelf-bootstrap
15082maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
15083all-stagefeedback: all-stagefeedback-libelf
15084TARGET-stagefeedback-libelf = $(TARGET-libelf)
15085all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 15086 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
15087 @r=`${PWD_COMMAND}`; export r; \
15088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15089 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 15090 $(HOST_EXPORTS) \
1f53ca9a 15091 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15092 cd $(HOST_SUBDIR)/libelf && \
05a13254 15093 \
7f6ef0c0 15094 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15095 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15096 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15097 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15098 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15099 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15100 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15101 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15102 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15103 $(TARGET-stagefeedback-libelf)
d545f33b 15104
a90ef4bf
JM
15105maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15106clean-stagefeedback: clean-stagefeedback-libelf
15107clean-stagefeedback-libelf:
9dbaa842 15108 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15109 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15110 else \
a90ef4bf 15111 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15112 $(MAKE) stagefeedback-start; \
15113 fi; \
a90ef4bf 15114 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15115 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15116@endif libelf-bootstrap
d545f33b
PB
15117
15118
15119
15120
15121
a90ef4bf
JM
15122.PHONY: check-libelf maybe-check-libelf
15123maybe-check-libelf:
15124@if libelf
15125maybe-check-libelf: check-libelf
4fa63067 15126
a90ef4bf 15127check-libelf:
0aed8855 15128 @: $(MAKE); $(unstage)
4fa63067
NN
15129 @r=`${PWD_COMMAND}`; export r; \
15130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15131 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15132 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15133 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15134
a90ef4bf 15135@endif libelf
4fa63067 15136
a90ef4bf
JM
15137.PHONY: install-libelf maybe-install-libelf
15138maybe-install-libelf:
15139@if libelf
15140maybe-install-libelf: install-libelf
4fa63067 15141
a90ef4bf 15142install-libelf:
4fa63067 15143
a90ef4bf 15144@endif libelf
4fa63067 15145
a90ef4bf
JM
15146.PHONY: install-strip-libelf maybe-install-strip-libelf
15147maybe-install-strip-libelf:
15148@if libelf
15149maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15150
a90ef4bf 15151install-strip-libelf:
9b980aa1 15152
a90ef4bf 15153@endif libelf
9b980aa1 15154
56a8fe78 15155# Other targets (info, dvi, pdf, etc.)
4fa63067 15156
a90ef4bf
JM
15157.PHONY: maybe-info-libelf info-libelf
15158maybe-info-libelf:
15159@if libelf
15160maybe-info-libelf: info-libelf
4fa63067 15161
a90ef4bf
JM
15162info-libelf: \
15163 configure-libelf
15164 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15165 r=`${PWD_COMMAND}`; export r; \
15166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15167 $(HOST_EXPORTS) \
a90ef4bf 15168 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15170 done; \
22121df0 15171 echo "Doing info in libelf"; \
a90ef4bf 15172 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15175 "RANLIB=$${RANLIB}" \
0c24b341 15176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15177 info) \
2a4cbe27
NN
15178 || exit 1
15179
a90ef4bf 15180@endif libelf
2a4cbe27 15181
a90ef4bf
JM
15182.PHONY: maybe-dvi-libelf dvi-libelf
15183maybe-dvi-libelf:
15184@if libelf
15185maybe-dvi-libelf: dvi-libelf
2a4cbe27 15186
a90ef4bf
JM
15187dvi-libelf: \
15188 configure-libelf
15189 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15190 r=`${PWD_COMMAND}`; export r; \
15191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15192 $(HOST_EXPORTS) \
a90ef4bf 15193 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15195 done; \
22121df0 15196 echo "Doing dvi in libelf"; \
a90ef4bf 15197 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15200 "RANLIB=$${RANLIB}" \
0c24b341 15201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15202 dvi) \
2a4cbe27
NN
15203 || exit 1
15204
a90ef4bf 15205@endif libelf
2a4cbe27 15206
a90ef4bf
JM
15207.PHONY: maybe-pdf-libelf pdf-libelf
15208maybe-pdf-libelf:
15209@if libelf
15210maybe-pdf-libelf: pdf-libelf
56a8fe78 15211
a90ef4bf
JM
15212pdf-libelf: \
15213 configure-libelf
15214 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15215 r=`${PWD_COMMAND}`; export r; \
15216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15217 $(HOST_EXPORTS) \
a90ef4bf 15218 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15220 done; \
22121df0 15221 echo "Doing pdf in libelf"; \
a90ef4bf 15222 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15225 "RANLIB=$${RANLIB}" \
0c24b341 15226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15227 pdf) \
15228 || exit 1
15229
a90ef4bf 15230@endif libelf
56a8fe78 15231
a90ef4bf
JM
15232.PHONY: maybe-html-libelf html-libelf
15233maybe-html-libelf:
15234@if libelf
15235maybe-html-libelf: html-libelf
6d389afc 15236
a90ef4bf
JM
15237html-libelf: \
15238 configure-libelf
15239 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15240 r=`${PWD_COMMAND}`; export r; \
15241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15242 $(HOST_EXPORTS) \
a90ef4bf 15243 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15245 done; \
22121df0 15246 echo "Doing html in libelf"; \
a90ef4bf 15247 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15250 "RANLIB=$${RANLIB}" \
0c24b341 15251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15252 html) \
15253 || exit 1
15254
a90ef4bf 15255@endif libelf
6d389afc 15256
a90ef4bf
JM
15257.PHONY: maybe-TAGS-libelf TAGS-libelf
15258maybe-TAGS-libelf:
15259@if libelf
15260maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15261
a90ef4bf
JM
15262TAGS-libelf: \
15263 configure-libelf
15264 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15265 r=`${PWD_COMMAND}`; export r; \
15266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15267 $(HOST_EXPORTS) \
a90ef4bf 15268 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15270 done; \
22121df0 15271 echo "Doing TAGS in libelf"; \
a90ef4bf 15272 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15275 "RANLIB=$${RANLIB}" \
0c24b341 15276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15277 TAGS) \
2a4cbe27
NN
15278 || exit 1
15279
a90ef4bf 15280@endif libelf
2a4cbe27 15281
a90ef4bf
JM
15282.PHONY: maybe-install-info-libelf install-info-libelf
15283maybe-install-info-libelf:
15284@if libelf
15285maybe-install-info-libelf: install-info-libelf
a2592b1b 15286
a90ef4bf
JM
15287install-info-libelf: \
15288 configure-libelf \
15289 info-libelf
15290 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15291 r=`${PWD_COMMAND}`; export r; \
15292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15293 $(HOST_EXPORTS) \
a90ef4bf 15294 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15296 done; \
22121df0 15297 echo "Doing install-info in libelf"; \
a90ef4bf 15298 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15301 "RANLIB=$${RANLIB}" \
0c24b341 15302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15303 install-info) \
a2592b1b
DD
15304 || exit 1
15305
a90ef4bf 15306@endif libelf
a2592b1b 15307
a90ef4bf
JM
15308.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15309maybe-install-pdf-libelf:
15310@if libelf
15311maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15312
a90ef4bf
JM
15313install-pdf-libelf: \
15314 configure-libelf \
15315 pdf-libelf
15316 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15317 r=`${PWD_COMMAND}`; export r; \
15318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15319 $(HOST_EXPORTS) \
a90ef4bf 15320 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15322 done; \
22121df0 15323 echo "Doing install-pdf in libelf"; \
a90ef4bf 15324 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15327 "RANLIB=$${RANLIB}" \
0c24b341 15328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15329 install-pdf) \
15330 || exit 1
15331
a90ef4bf 15332@endif libelf
a3ca38d2 15333
a90ef4bf
JM
15334.PHONY: maybe-install-html-libelf install-html-libelf
15335maybe-install-html-libelf:
15336@if libelf
15337maybe-install-html-libelf: install-html-libelf
108a6f8e 15338
a90ef4bf
JM
15339install-html-libelf: \
15340 configure-libelf \
15341 html-libelf
15342 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15343 r=`${PWD_COMMAND}`; export r; \
15344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15345 $(HOST_EXPORTS) \
a90ef4bf 15346 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15348 done; \
22121df0 15349 echo "Doing install-html in libelf"; \
a90ef4bf 15350 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15353 "RANLIB=$${RANLIB}" \
0c24b341 15354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15355 install-html) \
15356 || exit 1
15357
a90ef4bf 15358@endif libelf
108a6f8e 15359
a90ef4bf
JM
15360.PHONY: maybe-installcheck-libelf installcheck-libelf
15361maybe-installcheck-libelf:
15362@if libelf
15363maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15364
a90ef4bf
JM
15365installcheck-libelf: \
15366 configure-libelf
15367 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15368 r=`${PWD_COMMAND}`; export r; \
15369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15370 $(HOST_EXPORTS) \
a90ef4bf 15371 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15373 done; \
22121df0 15374 echo "Doing installcheck in libelf"; \
a90ef4bf 15375 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15378 "RANLIB=$${RANLIB}" \
0c24b341 15379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15380 installcheck) \
4fa63067 15381 || exit 1
2a4cbe27 15382
a90ef4bf 15383@endif libelf
4fa63067 15384
a90ef4bf
JM
15385.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15386maybe-mostlyclean-libelf:
15387@if libelf
15388maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15389
a90ef4bf
JM
15390mostlyclean-libelf:
15391 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15392 r=`${PWD_COMMAND}`; export r; \
15393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15394 $(HOST_EXPORTS) \
a90ef4bf 15395 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15397 done; \
22121df0 15398 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15399 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15402 "RANLIB=$${RANLIB}" \
0c24b341 15403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15404 mostlyclean) \
2a4cbe27
NN
15405 || exit 1
15406
a90ef4bf 15407@endif libelf
2a4cbe27 15408
a90ef4bf
JM
15409.PHONY: maybe-clean-libelf clean-libelf
15410maybe-clean-libelf:
15411@if libelf
15412maybe-clean-libelf: clean-libelf
2a4cbe27 15413
a90ef4bf
JM
15414clean-libelf:
15415 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15416 r=`${PWD_COMMAND}`; export r; \
15417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15418 $(HOST_EXPORTS) \
a90ef4bf 15419 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15421 done; \
22121df0 15422 echo "Doing clean in libelf"; \
a90ef4bf 15423 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15426 "RANLIB=$${RANLIB}" \
0c24b341 15427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15428 clean) \
2a4cbe27
NN
15429 || exit 1
15430
a90ef4bf 15431@endif libelf
2a4cbe27 15432
a90ef4bf
JM
15433.PHONY: maybe-distclean-libelf distclean-libelf
15434maybe-distclean-libelf:
15435@if libelf
15436maybe-distclean-libelf: distclean-libelf
2a4cbe27 15437
a90ef4bf
JM
15438distclean-libelf:
15439 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15440 r=`${PWD_COMMAND}`; export r; \
15441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15442 $(HOST_EXPORTS) \
a90ef4bf 15443 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15445 done; \
22121df0 15446 echo "Doing distclean in libelf"; \
a90ef4bf 15447 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15450 "RANLIB=$${RANLIB}" \
0c24b341 15451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15452 distclean) \
2a4cbe27
NN
15453 || exit 1
15454
a90ef4bf 15455@endif libelf
2a4cbe27 15456
a90ef4bf
JM
15457.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15458maybe-maintainer-clean-libelf:
15459@if libelf
15460maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15461
a90ef4bf
JM
15462maintainer-clean-libelf:
15463 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15464 r=`${PWD_COMMAND}`; export r; \
15465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15466 $(HOST_EXPORTS) \
a90ef4bf 15467 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15469 done; \
22121df0 15470 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15471 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15474 "RANLIB=$${RANLIB}" \
0c24b341 15475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15476 maintainer-clean) \
2a4cbe27
NN
15477 || exit 1
15478
a90ef4bf 15479@endif libelf
2a4cbe27 15480
2a4cbe27 15481
a7254363 15482
a90ef4bf
JM
15483.PHONY: configure-gold maybe-configure-gold
15484maybe-configure-gold:
4f0ef2d8 15485@if gcc-bootstrap
a90ef4bf 15486configure-gold: stage_current
4f0ef2d8 15487@endif gcc-bootstrap
a90ef4bf
JM
15488@if gold
15489maybe-configure-gold: configure-gold
15490configure-gold:
c52c6897 15491 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15493 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15494 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15495 $(HOST_EXPORTS) \
a90ef4bf
JM
15496 echo Configuring in $(HOST_SUBDIR)/gold; \
15497 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15498 case $(srcdir) in \
b00612cc 15499 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15500 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15501 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15502 esac; \
1b6c0831
L
15503 module_srcdir=gold; \
15504 $(SHELL) \
15505 $$s/$$module_srcdir/configure \
15506 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15507 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15508 --target=${target_alias} \
4fa63067 15509 || exit 1
a90ef4bf 15510@endif gold
a7254363 15511
d545f33b
PB
15512
15513
a90ef4bf
JM
15514.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15515maybe-configure-stage1-gold:
15516@if gold-bootstrap
15517maybe-configure-stage1-gold: configure-stage1-gold
15518configure-stage1-gold:
15519 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15520 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15521 @r=`${PWD_COMMAND}`; export r; \
15522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15523 TFLAGS="$(STAGE1_TFLAGS)"; \
15524 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15525 $(HOST_EXPORTS) \
15526 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15527 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15528 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15529 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15530 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15531 cd $(HOST_SUBDIR)/gold || exit 1; \
15532 case $(srcdir) in \
15533 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15534 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15535 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15536 esac; \
1b6c0831
L
15537 module_srcdir=gold; \
15538 $(SHELL) $$s/$$module_srcdir/configure \
15539 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15540 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15541 --target=${target_alias} \
15542 \
a90ef4bf
JM
15543 $(STAGE1_CONFIGURE_FLAGS)
15544@endif gold-bootstrap
4fa63067 15545
a90ef4bf
JM
15546.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15547maybe-configure-stage2-gold:
15548@if gold-bootstrap
15549maybe-configure-stage2-gold: configure-stage2-gold
15550configure-stage2-gold:
15551 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15552 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15553 @r=`${PWD_COMMAND}`; export r; \
15554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15555 TFLAGS="$(STAGE2_TFLAGS)"; \
15556 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15557 $(HOST_EXPORTS) \
a90ef4bf
JM
15558 $(POSTSTAGE1_HOST_EXPORTS) \
15559 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15560 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15561 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15562 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15563 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15564 cd $(HOST_SUBDIR)/gold || exit 1; \
15565 case $(srcdir) in \
15566 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15567 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15568 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15569 esac; \
1b6c0831
L
15570 module_srcdir=gold; \
15571 $(SHELL) $$s/$$module_srcdir/configure \
15572 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15573 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15574 --target=${target_alias} \
22121df0 15575 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15576 $(STAGE2_CONFIGURE_FLAGS)
15577@endif gold-bootstrap
4fa63067 15578
a90ef4bf
JM
15579.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15580maybe-configure-stage3-gold:
15581@if gold-bootstrap
15582maybe-configure-stage3-gold: configure-stage3-gold
15583configure-stage3-gold:
15584 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15585 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15586 @r=`${PWD_COMMAND}`; export r; \
15587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15588 TFLAGS="$(STAGE3_TFLAGS)"; \
15589 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15590 $(HOST_EXPORTS) \
a90ef4bf
JM
15591 $(POSTSTAGE1_HOST_EXPORTS) \
15592 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15593 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15594 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15595 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15596 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15597 cd $(HOST_SUBDIR)/gold || exit 1; \
15598 case $(srcdir) in \
15599 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15600 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15601 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15602 esac; \
1b6c0831
L
15603 module_srcdir=gold; \
15604 $(SHELL) $$s/$$module_srcdir/configure \
15605 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15606 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15607 --target=${target_alias} \
22121df0 15608 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15609 $(STAGE3_CONFIGURE_FLAGS)
15610@endif gold-bootstrap
9b980aa1 15611
a90ef4bf
JM
15612.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15613maybe-configure-stage4-gold:
15614@if gold-bootstrap
15615maybe-configure-stage4-gold: configure-stage4-gold
15616configure-stage4-gold:
15617 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15618 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15619 @r=`${PWD_COMMAND}`; export r; \
15620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15621 TFLAGS="$(STAGE4_TFLAGS)"; \
15622 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15623 $(HOST_EXPORTS) \
a90ef4bf
JM
15624 $(POSTSTAGE1_HOST_EXPORTS) \
15625 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15626 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15627 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15628 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15629 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15630 cd $(HOST_SUBDIR)/gold || exit 1; \
15631 case $(srcdir) in \
15632 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15633 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15634 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15635 esac; \
1b6c0831
L
15636 module_srcdir=gold; \
15637 $(SHELL) $$s/$$module_srcdir/configure \
15638 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15639 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15640 --target=${target_alias} \
22121df0 15641 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15642 $(STAGE4_CONFIGURE_FLAGS)
15643@endif gold-bootstrap
4fa63067 15644
a90ef4bf
JM
15645.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15646maybe-configure-stageprofile-gold:
15647@if gold-bootstrap
15648maybe-configure-stageprofile-gold: configure-stageprofile-gold
15649configure-stageprofile-gold:
15650 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15651 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15652 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15654 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15655 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15656 $(HOST_EXPORTS) \
a90ef4bf
JM
15657 $(POSTSTAGE1_HOST_EXPORTS) \
15658 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15659 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15660 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15661 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15662 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15663 cd $(HOST_SUBDIR)/gold || exit 1; \
15664 case $(srcdir) in \
15665 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15666 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15667 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15668 esac; \
1b6c0831
L
15669 module_srcdir=gold; \
15670 $(SHELL) $$s/$$module_srcdir/configure \
15671 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15672 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15673 --target=${target_alias} \
22121df0 15674 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15675 $(STAGEprofile_CONFIGURE_FLAGS)
15676@endif gold-bootstrap
2a4cbe27 15677
a90ef4bf
JM
15678.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15679maybe-configure-stagefeedback-gold:
15680@if gold-bootstrap
15681maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15682configure-stagefeedback-gold:
15683 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15684 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15685 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15687 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15688 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15689 $(HOST_EXPORTS) \
a90ef4bf
JM
15690 $(POSTSTAGE1_HOST_EXPORTS) \
15691 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15692 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15693 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15694 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15695 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15696 cd $(HOST_SUBDIR)/gold || exit 1; \
15697 case $(srcdir) in \
15698 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15699 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15700 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15701 esac; \
1b6c0831
L
15702 module_srcdir=gold; \
15703 $(SHELL) $$s/$$module_srcdir/configure \
15704 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15705 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15706 --target=${target_alias} \
22121df0 15707 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15708 $(STAGEfeedback_CONFIGURE_FLAGS)
15709@endif gold-bootstrap
2a4cbe27 15710
56a8fe78 15711
56a8fe78 15712
56a8fe78 15713
6d389afc 15714
a90ef4bf
JM
15715.PHONY: all-gold maybe-all-gold
15716maybe-all-gold:
15717@if gcc-bootstrap
15718all-gold: stage_current
15719@endif gcc-bootstrap
15720@if gold
15721TARGET-gold=all
15722maybe-all-gold: all-gold
15723all-gold: configure-gold
15724 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15726 $(HOST_EXPORTS) \
15727 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15728 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15729 $(TARGET-gold))
15730@endif gold
6d389afc 15731
6d389afc 15732
2a4cbe27 15733
a90ef4bf
JM
15734.PHONY: all-stage1-gold maybe-all-stage1-gold
15735.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15736maybe-all-stage1-gold:
15737maybe-clean-stage1-gold:
15738@if gold-bootstrap
15739maybe-all-stage1-gold: all-stage1-gold
15740all-stage1: all-stage1-gold
15741TARGET-stage1-gold = $(TARGET-gold)
15742all-stage1-gold: configure-stage1-gold
15743 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15744 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15746 TFLAGS="$(STAGE1_TFLAGS)"; \
15747 $(HOST_EXPORTS) \
15748 cd $(HOST_SUBDIR)/gold && \
05a13254 15749 \
a90ef4bf
JM
15750 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15751 CFLAGS="$(STAGE1_CFLAGS)" \
15752 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15753 LIBCFLAGS="$(LIBCFLAGS)" \
15754 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15755 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15756 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15757 $(EXTRA_HOST_FLAGS) \
15758 $(STAGE1_FLAGS_TO_PASS) \
05a13254 15759 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 15760 $(TARGET-stage1-gold)
2a4cbe27 15761
a90ef4bf
JM
15762maybe-clean-stage1-gold: clean-stage1-gold
15763clean-stage1: clean-stage1-gold
15764clean-stage1-gold:
15765 @if [ $(current_stage) = stage1 ]; then \
15766 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15767 else \
15768 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15769 $(MAKE) stage1-start; \
15770 fi; \
15771 cd $(HOST_SUBDIR)/gold && \
15772 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15773 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15774@endif gold-bootstrap
2a4cbe27 15775
2a4cbe27 15776
a90ef4bf
JM
15777.PHONY: all-stage2-gold maybe-all-stage2-gold
15778.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15779maybe-all-stage2-gold:
15780maybe-clean-stage2-gold:
15781@if gold-bootstrap
15782maybe-all-stage2-gold: all-stage2-gold
15783all-stage2: all-stage2-gold
15784TARGET-stage2-gold = $(TARGET-gold)
15785all-stage2-gold: configure-stage2-gold
15786 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15787 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15789 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15790 $(HOST_EXPORTS) \
a90ef4bf
JM
15791 $(POSTSTAGE1_HOST_EXPORTS) \
15792 cd $(HOST_SUBDIR)/gold && \
05a13254 15793 \
a90ef4bf
JM
15794 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15795 CFLAGS="$(STAGE2_CFLAGS)" \
15796 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15797 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15798 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15799 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15800 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15801 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15802 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 15803 $(TARGET-stage2-gold)
2a4cbe27 15804
a90ef4bf
JM
15805maybe-clean-stage2-gold: clean-stage2-gold
15806clean-stage2: clean-stage2-gold
15807clean-stage2-gold:
15808 @if [ $(current_stage) = stage2 ]; then \
15809 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15810 else \
15811 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15812 $(MAKE) stage2-start; \
15813 fi; \
15814 cd $(HOST_SUBDIR)/gold && \
b3676d82 15815 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15816@endif gold-bootstrap
2a4cbe27 15817
a3ca38d2 15818
a90ef4bf
JM
15819.PHONY: all-stage3-gold maybe-all-stage3-gold
15820.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15821maybe-all-stage3-gold:
15822maybe-clean-stage3-gold:
15823@if gold-bootstrap
15824maybe-all-stage3-gold: all-stage3-gold
15825all-stage3: all-stage3-gold
15826TARGET-stage3-gold = $(TARGET-gold)
15827all-stage3-gold: configure-stage3-gold
15828 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15829 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15831 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15832 $(HOST_EXPORTS) \
a90ef4bf
JM
15833 $(POSTSTAGE1_HOST_EXPORTS) \
15834 cd $(HOST_SUBDIR)/gold && \
05a13254 15835 \
a90ef4bf
JM
15836 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15837 CFLAGS="$(STAGE3_CFLAGS)" \
15838 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15839 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15840 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15841 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15842 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15843 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15844 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 15845 $(TARGET-stage3-gold)
2a4cbe27 15846
a90ef4bf
JM
15847maybe-clean-stage3-gold: clean-stage3-gold
15848clean-stage3: clean-stage3-gold
15849clean-stage3-gold:
15850 @if [ $(current_stage) = stage3 ]; then \
15851 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15852 else \
15853 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15854 $(MAKE) stage3-start; \
15855 fi; \
15856 cd $(HOST_SUBDIR)/gold && \
b3676d82 15857 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15858@endif gold-bootstrap
2a4cbe27 15859
2a4cbe27 15860
a90ef4bf
JM
15861.PHONY: all-stage4-gold maybe-all-stage4-gold
15862.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15863maybe-all-stage4-gold:
15864maybe-clean-stage4-gold:
15865@if gold-bootstrap
15866maybe-all-stage4-gold: all-stage4-gold
15867all-stage4: all-stage4-gold
15868TARGET-stage4-gold = $(TARGET-gold)
15869all-stage4-gold: configure-stage4-gold
15870 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15871 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15873 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15874 $(HOST_EXPORTS) \
a90ef4bf
JM
15875 $(POSTSTAGE1_HOST_EXPORTS) \
15876 cd $(HOST_SUBDIR)/gold && \
05a13254 15877 \
a90ef4bf
JM
15878 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15879 CFLAGS="$(STAGE4_CFLAGS)" \
15880 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15881 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15882 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15883 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15884 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15885 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15886 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15887 $(TARGET-stage4-gold)
2a4cbe27 15888
a90ef4bf
JM
15889maybe-clean-stage4-gold: clean-stage4-gold
15890clean-stage4: clean-stage4-gold
15891clean-stage4-gold:
15892 @if [ $(current_stage) = stage4 ]; then \
15893 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15894 else \
15895 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15896 $(MAKE) stage4-start; \
15897 fi; \
15898 cd $(HOST_SUBDIR)/gold && \
b3676d82 15899 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15900@endif gold-bootstrap
2a4cbe27 15901
2a4cbe27 15902
a90ef4bf
JM
15903.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15904.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15905maybe-all-stageprofile-gold:
15906maybe-clean-stageprofile-gold:
15907@if gold-bootstrap
15908maybe-all-stageprofile-gold: all-stageprofile-gold
15909all-stageprofile: all-stageprofile-gold
15910TARGET-stageprofile-gold = $(TARGET-gold)
15911all-stageprofile-gold: configure-stageprofile-gold
15912 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15913 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15915 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15916 $(HOST_EXPORTS) \
a90ef4bf
JM
15917 $(POSTSTAGE1_HOST_EXPORTS) \
15918 cd $(HOST_SUBDIR)/gold && \
05a13254 15919 \
a90ef4bf
JM
15920 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15921 CFLAGS="$(STAGEprofile_CFLAGS)" \
15922 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15923 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15924 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15925 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15926 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15927 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15928 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15929 $(TARGET-stageprofile-gold)
2a4cbe27 15930
a90ef4bf
JM
15931maybe-clean-stageprofile-gold: clean-stageprofile-gold
15932clean-stageprofile: clean-stageprofile-gold
15933clean-stageprofile-gold:
15934 @if [ $(current_stage) = stageprofile ]; then \
15935 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15936 else \
15937 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15938 $(MAKE) stageprofile-start; \
15939 fi; \
15940 cd $(HOST_SUBDIR)/gold && \
b3676d82 15941 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15942@endif gold-bootstrap
2a4cbe27 15943
a7254363 15944
a90ef4bf
JM
15945.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15946.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15947maybe-all-stagefeedback-gold:
15948maybe-clean-stagefeedback-gold:
15949@if gold-bootstrap
15950maybe-all-stagefeedback-gold: all-stagefeedback-gold
15951all-stagefeedback: all-stagefeedback-gold
15952TARGET-stagefeedback-gold = $(TARGET-gold)
15953all-stagefeedback-gold: configure-stagefeedback-gold
15954 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15955 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15957 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15958 $(HOST_EXPORTS) \
15959 $(POSTSTAGE1_HOST_EXPORTS) \
15960 cd $(HOST_SUBDIR)/gold && \
05a13254 15961 \
a90ef4bf
JM
15962 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15963 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15964 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15965 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15966 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15967 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15968 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15969 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15970 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15971 $(TARGET-stagefeedback-gold)
d545f33b 15972
a90ef4bf
JM
15973maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15974clean-stagefeedback: clean-stagefeedback-gold
15975clean-stagefeedback-gold:
15976 @if [ $(current_stage) = stagefeedback ]; then \
15977 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15978 else \
15979 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15980 $(MAKE) stagefeedback-start; \
15981 fi; \
15982 cd $(HOST_SUBDIR)/gold && \
b3676d82 15983 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15984@endif gold-bootstrap
d545f33b 15985
4fa63067 15986
a7254363 15987
d545f33b
PB
15988
15989
a90ef4bf
JM
15990.PHONY: check-gold maybe-check-gold
15991maybe-check-gold:
15992@if gold
15993maybe-check-gold: check-gold
4fa63067 15994
a90ef4bf 15995check-gold:
0aed8855 15996 @: $(MAKE); $(unstage)
4fa63067
NN
15997 @r=`${PWD_COMMAND}`; export r; \
15998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15999 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 16000 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 16001 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 16002
a90ef4bf 16003@endif gold
4fa63067 16004
a90ef4bf
JM
16005.PHONY: install-gold maybe-install-gold
16006maybe-install-gold:
16007@if gold
16008maybe-install-gold: install-gold
4fa63067 16009
a90ef4bf 16010install-gold: installdirs
0aed8855 16011 @: $(MAKE); $(unstage)
4fa63067
NN
16012 @r=`${PWD_COMMAND}`; export r; \
16013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16014 $(HOST_EXPORTS) \
a90ef4bf 16015 (cd $(HOST_SUBDIR)/gold && \
2da12f12 16016 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 16017
a90ef4bf 16018@endif gold
4fa63067 16019
a90ef4bf
JM
16020.PHONY: install-strip-gold maybe-install-strip-gold
16021maybe-install-strip-gold:
16022@if gold
16023maybe-install-strip-gold: install-strip-gold
9b980aa1 16024
a90ef4bf 16025install-strip-gold: installdirs
9b980aa1
RW
16026 @: $(MAKE); $(unstage)
16027 @r=`${PWD_COMMAND}`; export r; \
16028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16029 $(HOST_EXPORTS) \
a90ef4bf 16030 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
16031 $(MAKE) $(FLAGS_TO_PASS) install-strip)
16032
a90ef4bf 16033@endif gold
9b980aa1 16034
56a8fe78 16035# Other targets (info, dvi, pdf, etc.)
4fa63067 16036
a90ef4bf
JM
16037.PHONY: maybe-info-gold info-gold
16038maybe-info-gold:
16039@if gold
16040maybe-info-gold: info-gold
4fa63067 16041
a90ef4bf
JM
16042info-gold: \
16043 configure-gold
16044 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16045 r=`${PWD_COMMAND}`; export r; \
16046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16047 $(HOST_EXPORTS) \
b813574b 16048 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16050 done; \
22121df0 16051 echo "Doing info in gold"; \
a90ef4bf 16052 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16055 "RANLIB=$${RANLIB}" \
0c24b341 16056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16057 info) \
2a4cbe27
NN
16058 || exit 1
16059
a90ef4bf 16060@endif gold
2a4cbe27 16061
a90ef4bf
JM
16062.PHONY: maybe-dvi-gold dvi-gold
16063maybe-dvi-gold:
16064@if gold
16065maybe-dvi-gold: dvi-gold
2a4cbe27 16066
a90ef4bf
JM
16067dvi-gold: \
16068 configure-gold
16069 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16070 r=`${PWD_COMMAND}`; export r; \
16071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16072 $(HOST_EXPORTS) \
b813574b 16073 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16075 done; \
22121df0 16076 echo "Doing dvi in gold"; \
a90ef4bf 16077 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16080 "RANLIB=$${RANLIB}" \
0c24b341 16081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16082 dvi) \
2a4cbe27
NN
16083 || exit 1
16084
a90ef4bf 16085@endif gold
2a4cbe27 16086
a90ef4bf
JM
16087.PHONY: maybe-pdf-gold pdf-gold
16088maybe-pdf-gold:
16089@if gold
16090maybe-pdf-gold: pdf-gold
56a8fe78 16091
a90ef4bf
JM
16092pdf-gold: \
16093 configure-gold
16094 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
16095 r=`${PWD_COMMAND}`; export r; \
16096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16097 $(HOST_EXPORTS) \
16098 for flag in $(EXTRA_HOST_FLAGS) ; do \
16099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16100 done; \
22121df0 16101 echo "Doing pdf in gold"; \
a90ef4bf 16102 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16105 "RANLIB=$${RANLIB}" \
0c24b341 16106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16107 pdf) \
16108 || exit 1
16109
a90ef4bf 16110@endif gold
56a8fe78 16111
a90ef4bf
JM
16112.PHONY: maybe-html-gold html-gold
16113maybe-html-gold:
16114@if gold
16115maybe-html-gold: html-gold
6d389afc 16116
a90ef4bf
JM
16117html-gold: \
16118 configure-gold
16119 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16120 r=`${PWD_COMMAND}`; export r; \
16121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16122 $(HOST_EXPORTS) \
16123 for flag in $(EXTRA_HOST_FLAGS) ; do \
16124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16125 done; \
22121df0 16126 echo "Doing html in gold"; \
a90ef4bf 16127 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16130 "RANLIB=$${RANLIB}" \
0c24b341 16131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16132 html) \
16133 || exit 1
16134
a90ef4bf 16135@endif gold
6d389afc 16136
a90ef4bf
JM
16137.PHONY: maybe-TAGS-gold TAGS-gold
16138maybe-TAGS-gold:
16139@if gold
16140maybe-TAGS-gold: TAGS-gold
2a4cbe27 16141
a90ef4bf
JM
16142TAGS-gold: \
16143 configure-gold
16144 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16145 r=`${PWD_COMMAND}`; export r; \
16146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16147 $(HOST_EXPORTS) \
b813574b 16148 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16150 done; \
22121df0 16151 echo "Doing TAGS in gold"; \
a90ef4bf 16152 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16155 "RANLIB=$${RANLIB}" \
0c24b341 16156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16157 TAGS) \
2a4cbe27
NN
16158 || exit 1
16159
a90ef4bf 16160@endif gold
2a4cbe27 16161
a90ef4bf
JM
16162.PHONY: maybe-install-info-gold install-info-gold
16163maybe-install-info-gold:
16164@if gold
16165maybe-install-info-gold: install-info-gold
b813574b 16166
a90ef4bf
JM
16167install-info-gold: \
16168 configure-gold \
16169 info-gold
16170 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16171 r=`${PWD_COMMAND}`; export r; \
16172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16173 $(HOST_EXPORTS) \
b813574b 16174 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16176 done; \
22121df0 16177 echo "Doing install-info in gold"; \
a90ef4bf 16178 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16181 "RANLIB=$${RANLIB}" \
0c24b341 16182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16183 install-info) \
2a4cbe27
NN
16184 || exit 1
16185
a90ef4bf 16186@endif gold
2a4cbe27 16187
a90ef4bf
JM
16188.PHONY: maybe-install-pdf-gold install-pdf-gold
16189maybe-install-pdf-gold:
16190@if gold
16191maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16192
a90ef4bf
JM
16193install-pdf-gold: \
16194 configure-gold \
16195 pdf-gold
16196 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16197 r=`${PWD_COMMAND}`; export r; \
16198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16199 $(HOST_EXPORTS) \
16200 for flag in $(EXTRA_HOST_FLAGS) ; do \
16201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16202 done; \
22121df0 16203 echo "Doing install-pdf in gold"; \
a90ef4bf 16204 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16207 "RANLIB=$${RANLIB}" \
0c24b341 16208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16209 install-pdf) \
16210 || exit 1
16211
a90ef4bf 16212@endif gold
a3ca38d2 16213
a90ef4bf
JM
16214.PHONY: maybe-install-html-gold install-html-gold
16215maybe-install-html-gold:
16216@if gold
16217maybe-install-html-gold: install-html-gold
108a6f8e 16218
a90ef4bf
JM
16219install-html-gold: \
16220 configure-gold \
16221 html-gold
16222 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16223 r=`${PWD_COMMAND}`; export r; \
16224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16225 $(HOST_EXPORTS) \
16226 for flag in $(EXTRA_HOST_FLAGS) ; do \
16227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16228 done; \
22121df0 16229 echo "Doing install-html in gold"; \
a90ef4bf 16230 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16233 "RANLIB=$${RANLIB}" \
0c24b341 16234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16235 install-html) \
16236 || exit 1
16237
a90ef4bf 16238@endif gold
108a6f8e 16239
a90ef4bf
JM
16240.PHONY: maybe-installcheck-gold installcheck-gold
16241maybe-installcheck-gold:
16242@if gold
16243maybe-installcheck-gold: installcheck-gold
2a4cbe27 16244
a90ef4bf
JM
16245installcheck-gold: \
16246 configure-gold
16247 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16248 r=`${PWD_COMMAND}`; export r; \
16249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16250 $(HOST_EXPORTS) \
b813574b 16251 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16253 done; \
22121df0 16254 echo "Doing installcheck in gold"; \
a90ef4bf 16255 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16258 "RANLIB=$${RANLIB}" \
0c24b341 16259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16260 installcheck) \
2a4cbe27
NN
16261 || exit 1
16262
a90ef4bf 16263@endif gold
2a4cbe27 16264
a90ef4bf
JM
16265.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16266maybe-mostlyclean-gold:
16267@if gold
16268maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16269
a90ef4bf
JM
16270mostlyclean-gold:
16271 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16272 r=`${PWD_COMMAND}`; export r; \
16273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16274 $(HOST_EXPORTS) \
b813574b 16275 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16277 done; \
22121df0 16278 echo "Doing mostlyclean in gold"; \
a90ef4bf 16279 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16282 "RANLIB=$${RANLIB}" \
0c24b341 16283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16284 mostlyclean) \
2a4cbe27
NN
16285 || exit 1
16286
a90ef4bf 16287@endif gold
2a4cbe27 16288
a90ef4bf
JM
16289.PHONY: maybe-clean-gold clean-gold
16290maybe-clean-gold:
16291@if gold
16292maybe-clean-gold: clean-gold
2a4cbe27 16293
a90ef4bf
JM
16294clean-gold:
16295 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16296 r=`${PWD_COMMAND}`; export r; \
16297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16298 $(HOST_EXPORTS) \
b813574b 16299 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16301 done; \
22121df0 16302 echo "Doing clean in gold"; \
a90ef4bf 16303 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16306 "RANLIB=$${RANLIB}" \
0c24b341 16307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16308 clean) \
2a4cbe27
NN
16309 || exit 1
16310
a90ef4bf 16311@endif gold
2a4cbe27 16312
a90ef4bf
JM
16313.PHONY: maybe-distclean-gold distclean-gold
16314maybe-distclean-gold:
16315@if gold
16316maybe-distclean-gold: distclean-gold
2a4cbe27 16317
a90ef4bf
JM
16318distclean-gold:
16319 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16320 r=`${PWD_COMMAND}`; export r; \
16321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16322 $(HOST_EXPORTS) \
b813574b 16323 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16325 done; \
22121df0 16326 echo "Doing distclean in gold"; \
a90ef4bf 16327 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16330 "RANLIB=$${RANLIB}" \
0c24b341 16331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16332 distclean) \
2a4cbe27
NN
16333 || exit 1
16334
a90ef4bf 16335@endif gold
2a4cbe27 16336
a90ef4bf
JM
16337.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16338maybe-maintainer-clean-gold:
16339@if gold
16340maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16341
a90ef4bf
JM
16342maintainer-clean-gold:
16343 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16344 r=`${PWD_COMMAND}`; export r; \
16345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16346 $(HOST_EXPORTS) \
b813574b 16347 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16349 done; \
22121df0 16350 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16351 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16354 "RANLIB=$${RANLIB}" \
0c24b341 16355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16356 maintainer-clean) \
4fa63067
NN
16357 || exit 1
16358
a90ef4bf 16359@endif gold
4fa63067
NN
16360
16361
a7254363 16362
a90ef4bf
JM
16363.PHONY: configure-gprof maybe-configure-gprof
16364maybe-configure-gprof:
4b900473 16365@if gcc-bootstrap
a90ef4bf 16366configure-gprof: stage_current
4b900473 16367@endif gcc-bootstrap
a90ef4bf
JM
16368@if gprof
16369maybe-configure-gprof: configure-gprof
16370configure-gprof:
16371 @: $(MAKE); $(unstage)
4b900473
PB
16372 @r=`${PWD_COMMAND}`; export r; \
16373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16374 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16375 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16376 $(HOST_EXPORTS) \
a90ef4bf
JM
16377 echo Configuring in $(HOST_SUBDIR)/gprof; \
16378 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16379 case $(srcdir) in \
16380 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16381 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16382 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16383 esac; \
1b6c0831
L
16384 module_srcdir=gprof; \
16385 $(SHELL) \
16386 $$s/$$module_srcdir/configure \
16387 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16388 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16389 --target=${target_alias} \
4b900473 16390 || exit 1
a90ef4bf 16391@endif gprof
4b900473
PB
16392
16393
16394
4b900473 16395
a90ef4bf
JM
16396
16397.PHONY: all-gprof maybe-all-gprof
16398maybe-all-gprof:
16399@if gcc-bootstrap
16400all-gprof: stage_current
16401@endif gcc-bootstrap
16402@if gprof
16403TARGET-gprof=all
16404maybe-all-gprof: all-gprof
16405all-gprof: configure-gprof
16406 @: $(MAKE); $(unstage)
4b900473
PB
16407 @r=`${PWD_COMMAND}`; export r; \
16408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16409 $(HOST_EXPORTS) \
a90ef4bf 16410 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16411 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16412 $(TARGET-gprof))
16413@endif gprof
4b900473
PB
16414
16415
4b900473 16416
4b900473 16417
a90ef4bf
JM
16418.PHONY: check-gprof maybe-check-gprof
16419maybe-check-gprof:
16420@if gprof
16421maybe-check-gprof: check-gprof
4b900473 16422
a90ef4bf
JM
16423check-gprof:
16424 @: $(MAKE); $(unstage)
4b900473
PB
16425 @r=`${PWD_COMMAND}`; export r; \
16426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16427 $(HOST_EXPORTS) \
a90ef4bf
JM
16428 (cd $(HOST_SUBDIR)/gprof && \
16429 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16430
a90ef4bf 16431@endif gprof
4b900473 16432
a90ef4bf
JM
16433.PHONY: install-gprof maybe-install-gprof
16434maybe-install-gprof:
16435@if gprof
16436maybe-install-gprof: install-gprof
4b900473 16437
a90ef4bf
JM
16438install-gprof: installdirs
16439 @: $(MAKE); $(unstage)
4b900473
PB
16440 @r=`${PWD_COMMAND}`; export r; \
16441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16442 $(HOST_EXPORTS) \
a90ef4bf
JM
16443 (cd $(HOST_SUBDIR)/gprof && \
16444 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16445
a90ef4bf 16446@endif gprof
4b900473 16447
a90ef4bf
JM
16448.PHONY: install-strip-gprof maybe-install-strip-gprof
16449maybe-install-strip-gprof:
16450@if gprof
16451maybe-install-strip-gprof: install-strip-gprof
4b900473 16452
a90ef4bf 16453install-strip-gprof: installdirs
4b900473
PB
16454 @: $(MAKE); $(unstage)
16455 @r=`${PWD_COMMAND}`; export r; \
16456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16457 $(HOST_EXPORTS) \
a90ef4bf
JM
16458 (cd $(HOST_SUBDIR)/gprof && \
16459 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16460
a90ef4bf 16461@endif gprof
9b980aa1 16462
4b900473
PB
16463# Other targets (info, dvi, pdf, etc.)
16464
a90ef4bf
JM
16465.PHONY: maybe-info-gprof info-gprof
16466maybe-info-gprof:
16467@if gprof
16468maybe-info-gprof: info-gprof
4b900473 16469
a90ef4bf
JM
16470info-gprof: \
16471 configure-gprof
16472 @: $(MAKE); $(unstage)
16473 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16474 r=`${PWD_COMMAND}`; export r; \
16475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16476 $(HOST_EXPORTS) \
16477 for flag in $(EXTRA_HOST_FLAGS) ; do \
16478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16479 done; \
22121df0 16480 echo "Doing info in gprof"; \
a90ef4bf 16481 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16484 "RANLIB=$${RANLIB}" \
0c24b341 16485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16486 info) \
16487 || exit 1
16488
a90ef4bf 16489@endif gprof
4b900473 16490
a90ef4bf
JM
16491.PHONY: maybe-dvi-gprof dvi-gprof
16492maybe-dvi-gprof:
16493@if gprof
16494maybe-dvi-gprof: dvi-gprof
4b900473 16495
a90ef4bf
JM
16496dvi-gprof: \
16497 configure-gprof
16498 @: $(MAKE); $(unstage)
16499 @[ -f ./gprof/Makefile ] || exit 0; \
16500 r=`${PWD_COMMAND}`; export r; \
16501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16502 $(HOST_EXPORTS) \
4b900473
PB
16503 for flag in $(EXTRA_HOST_FLAGS) ; do \
16504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16505 done; \
22121df0 16506 echo "Doing dvi in gprof"; \
a90ef4bf 16507 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16510 "RANLIB=$${RANLIB}" \
0c24b341 16511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16512 dvi) \
16513 || exit 1
16514
a90ef4bf 16515@endif gprof
4b900473 16516
a90ef4bf
JM
16517.PHONY: maybe-pdf-gprof pdf-gprof
16518maybe-pdf-gprof:
16519@if gprof
16520maybe-pdf-gprof: pdf-gprof
4b900473 16521
a90ef4bf
JM
16522pdf-gprof: \
16523 configure-gprof
16524 @: $(MAKE); $(unstage)
16525 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16526 r=`${PWD_COMMAND}`; export r; \
16527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16528 $(HOST_EXPORTS) \
16529 for flag in $(EXTRA_HOST_FLAGS) ; do \
16530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16531 done; \
22121df0 16532 echo "Doing pdf in gprof"; \
a90ef4bf 16533 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16536 "RANLIB=$${RANLIB}" \
0c24b341 16537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16538 pdf) \
16539 || exit 1
16540
a90ef4bf 16541@endif gprof
4b900473 16542
a90ef4bf
JM
16543.PHONY: maybe-html-gprof html-gprof
16544maybe-html-gprof:
16545@if gprof
16546maybe-html-gprof: html-gprof
4b900473 16547
a90ef4bf
JM
16548html-gprof: \
16549 configure-gprof
16550 @: $(MAKE); $(unstage)
16551 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16552 r=`${PWD_COMMAND}`; export r; \
16553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16554 $(HOST_EXPORTS) \
16555 for flag in $(EXTRA_HOST_FLAGS) ; do \
16556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16557 done; \
22121df0 16558 echo "Doing html in gprof"; \
a90ef4bf 16559 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16562 "RANLIB=$${RANLIB}" \
0c24b341 16563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16564 html) \
16565 || exit 1
16566
a90ef4bf 16567@endif gprof
4b900473 16568
a90ef4bf
JM
16569.PHONY: maybe-TAGS-gprof TAGS-gprof
16570maybe-TAGS-gprof:
16571@if gprof
16572maybe-TAGS-gprof: TAGS-gprof
4b900473 16573
a90ef4bf
JM
16574TAGS-gprof: \
16575 configure-gprof
16576 @: $(MAKE); $(unstage)
16577 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16578 r=`${PWD_COMMAND}`; export r; \
16579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16580 $(HOST_EXPORTS) \
16581 for flag in $(EXTRA_HOST_FLAGS) ; do \
16582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16583 done; \
22121df0 16584 echo "Doing TAGS in gprof"; \
a90ef4bf 16585 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16588 "RANLIB=$${RANLIB}" \
0c24b341 16589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16590 TAGS) \
16591 || exit 1
16592
a90ef4bf 16593@endif gprof
4b900473 16594
a90ef4bf
JM
16595.PHONY: maybe-install-info-gprof install-info-gprof
16596maybe-install-info-gprof:
16597@if gprof
16598maybe-install-info-gprof: install-info-gprof
4b900473 16599
a90ef4bf
JM
16600install-info-gprof: \
16601 configure-gprof \
16602 info-gprof
16603 @: $(MAKE); $(unstage)
16604 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16605 r=`${PWD_COMMAND}`; export r; \
16606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16607 $(HOST_EXPORTS) \
16608 for flag in $(EXTRA_HOST_FLAGS) ; do \
16609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16610 done; \
22121df0 16611 echo "Doing install-info in gprof"; \
a90ef4bf 16612 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16615 "RANLIB=$${RANLIB}" \
0c24b341 16616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16617 install-info) \
16618 || exit 1
16619
a90ef4bf 16620@endif gprof
4b900473 16621
a90ef4bf
JM
16622.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16623maybe-install-pdf-gprof:
16624@if gprof
16625maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16626
a90ef4bf
JM
16627install-pdf-gprof: \
16628 configure-gprof \
16629 pdf-gprof
16630 @: $(MAKE); $(unstage)
16631 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16632 r=`${PWD_COMMAND}`; export r; \
16633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16634 $(HOST_EXPORTS) \
16635 for flag in $(EXTRA_HOST_FLAGS) ; do \
16636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16637 done; \
22121df0 16638 echo "Doing install-pdf in gprof"; \
a90ef4bf 16639 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16642 "RANLIB=$${RANLIB}" \
0c24b341 16643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16644 install-pdf) \
16645 || exit 1
16646
a90ef4bf 16647@endif gprof
a3ca38d2 16648
a90ef4bf
JM
16649.PHONY: maybe-install-html-gprof install-html-gprof
16650maybe-install-html-gprof:
16651@if gprof
16652maybe-install-html-gprof: install-html-gprof
4b900473 16653
a90ef4bf
JM
16654install-html-gprof: \
16655 configure-gprof \
16656 html-gprof
16657 @: $(MAKE); $(unstage)
16658 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16659 r=`${PWD_COMMAND}`; export r; \
16660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16661 $(HOST_EXPORTS) \
16662 for flag in $(EXTRA_HOST_FLAGS) ; do \
16663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16664 done; \
22121df0 16665 echo "Doing install-html in gprof"; \
a90ef4bf 16666 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16669 "RANLIB=$${RANLIB}" \
0c24b341 16670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16671 install-html) \
16672 || exit 1
16673
a90ef4bf 16674@endif gprof
4b900473 16675
a90ef4bf
JM
16676.PHONY: maybe-installcheck-gprof installcheck-gprof
16677maybe-installcheck-gprof:
16678@if gprof
16679maybe-installcheck-gprof: installcheck-gprof
4b900473 16680
a90ef4bf
JM
16681installcheck-gprof: \
16682 configure-gprof
16683 @: $(MAKE); $(unstage)
16684 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16685 r=`${PWD_COMMAND}`; export r; \
16686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16687 $(HOST_EXPORTS) \
16688 for flag in $(EXTRA_HOST_FLAGS) ; do \
16689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16690 done; \
22121df0 16691 echo "Doing installcheck in gprof"; \
a90ef4bf 16692 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16695 "RANLIB=$${RANLIB}" \
16696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16697 installcheck) \
16698 || exit 1
16699
a90ef4bf 16700@endif gprof
e28c595f 16701
a90ef4bf
JM
16702.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16703maybe-mostlyclean-gprof:
16704@if gprof
16705maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16706
a90ef4bf
JM
16707mostlyclean-gprof:
16708 @: $(MAKE); $(unstage)
16709 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16710 r=`${PWD_COMMAND}`; export r; \
16711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16712 $(HOST_EXPORTS) \
16713 for flag in $(EXTRA_HOST_FLAGS) ; do \
16714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16715 done; \
22121df0 16716 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16717 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16720 "RANLIB=$${RANLIB}" \
16721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16722 mostlyclean) \
16723 || exit 1
16724
a90ef4bf 16725@endif gprof
e28c595f 16726
a90ef4bf
JM
16727.PHONY: maybe-clean-gprof clean-gprof
16728maybe-clean-gprof:
16729@if gprof
16730maybe-clean-gprof: clean-gprof
e28c595f 16731
a90ef4bf
JM
16732clean-gprof:
16733 @: $(MAKE); $(unstage)
16734 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16735 r=`${PWD_COMMAND}`; export r; \
16736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16737 $(HOST_EXPORTS) \
16738 for flag in $(EXTRA_HOST_FLAGS) ; do \
16739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16740 done; \
22121df0 16741 echo "Doing clean in gprof"; \
a90ef4bf 16742 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16745 "RANLIB=$${RANLIB}" \
16746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16747 clean) \
16748 || exit 1
16749
a90ef4bf 16750@endif gprof
e28c595f 16751
a90ef4bf
JM
16752.PHONY: maybe-distclean-gprof distclean-gprof
16753maybe-distclean-gprof:
16754@if gprof
16755maybe-distclean-gprof: distclean-gprof
e28c595f 16756
a90ef4bf
JM
16757distclean-gprof:
16758 @: $(MAKE); $(unstage)
16759 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16760 r=`${PWD_COMMAND}`; export r; \
16761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16762 $(HOST_EXPORTS) \
16763 for flag in $(EXTRA_HOST_FLAGS) ; do \
16764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16765 done; \
22121df0 16766 echo "Doing distclean in gprof"; \
a90ef4bf 16767 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16770 "RANLIB=$${RANLIB}" \
16771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16772 distclean) \
16773 || exit 1
16774
a90ef4bf 16775@endif gprof
e28c595f 16776
a90ef4bf
JM
16777.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16778maybe-maintainer-clean-gprof:
16779@if gprof
16780maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16781
a90ef4bf
JM
16782maintainer-clean-gprof:
16783 @: $(MAKE); $(unstage)
16784 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16785 r=`${PWD_COMMAND}`; export r; \
16786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16787 $(HOST_EXPORTS) \
16788 for flag in $(EXTRA_HOST_FLAGS) ; do \
16789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16790 done; \
22121df0 16791 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16792 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16795 "RANLIB=$${RANLIB}" \
16796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16797 maintainer-clean) \
16798 || exit 1
16799
a90ef4bf 16800@endif gprof
e28c595f
JM
16801
16802
16803
a90ef4bf
JM
16804.PHONY: configure-intl maybe-configure-intl
16805maybe-configure-intl:
e28c595f 16806@if gcc-bootstrap
a90ef4bf 16807configure-intl: stage_current
e28c595f 16808@endif gcc-bootstrap
a90ef4bf
JM
16809@if intl
16810maybe-configure-intl: configure-intl
16811configure-intl:
e28c595f
JM
16812 @r=`${PWD_COMMAND}`; export r; \
16813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16814 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16815 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16816 $(HOST_EXPORTS) \
a90ef4bf
JM
16817 echo Configuring in $(HOST_SUBDIR)/intl; \
16818 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16819 case $(srcdir) in \
16820 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16821 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16822 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16823 esac; \
1b6c0831
L
16824 module_srcdir=intl; \
16825 $(SHELL) \
16826 $$s/$$module_srcdir/configure \
16827 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16828 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16829 --target=${target_alias} \
e28c595f 16830 || exit 1
a90ef4bf 16831@endif intl
e28c595f
JM
16832
16833
16834
a90ef4bf
JM
16835.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16836maybe-configure-stage1-intl:
16837@if intl-bootstrap
16838maybe-configure-stage1-intl: configure-stage1-intl
16839configure-stage1-intl:
e28c595f 16840 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16841 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16842 @r=`${PWD_COMMAND}`; export r; \
16843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16844 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16845 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16846 $(HOST_EXPORTS) \
e28c595f 16847 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16848 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16849 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16850 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16851 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16852 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16853 case $(srcdir) in \
16854 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16855 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16856 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16857 esac; \
1b6c0831
L
16858 module_srcdir=intl; \
16859 $(SHELL) $$s/$$module_srcdir/configure \
16860 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16861 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16862 --target=${target_alias} \
16863 \
a90ef4bf
JM
16864 $(STAGE1_CONFIGURE_FLAGS)
16865@endif intl-bootstrap
e28c595f 16866
a90ef4bf
JM
16867.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16868maybe-configure-stage2-intl:
16869@if intl-bootstrap
16870maybe-configure-stage2-intl: configure-stage2-intl
16871configure-stage2-intl:
e28c595f 16872 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16873 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16874 @r=`${PWD_COMMAND}`; export r; \
16875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16876 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16877 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16878 $(HOST_EXPORTS) \
1b05fbbd 16879 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16880 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16881 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16882 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16883 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16884 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16885 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16886 case $(srcdir) in \
16887 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16888 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16889 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16890 esac; \
1b6c0831
L
16891 module_srcdir=intl; \
16892 $(SHELL) $$s/$$module_srcdir/configure \
16893 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16894 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16895 --target=${target_alias} \
22121df0 16896 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16897 $(STAGE2_CONFIGURE_FLAGS)
16898@endif intl-bootstrap
e28c595f 16899
a90ef4bf
JM
16900.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16901maybe-configure-stage3-intl:
16902@if intl-bootstrap
16903maybe-configure-stage3-intl: configure-stage3-intl
16904configure-stage3-intl:
e28c595f 16905 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16906 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16907 @r=`${PWD_COMMAND}`; export r; \
16908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16909 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16910 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16911 $(HOST_EXPORTS) \
1b05fbbd 16912 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16913 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16914 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16915 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16916 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16917 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16918 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16919 case $(srcdir) in \
16920 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16921 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16922 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16923 esac; \
1b6c0831
L
16924 module_srcdir=intl; \
16925 $(SHELL) $$s/$$module_srcdir/configure \
16926 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16927 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16928 --target=${target_alias} \
22121df0 16929 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16930 $(STAGE3_CONFIGURE_FLAGS)
16931@endif intl-bootstrap
e28c595f 16932
a90ef4bf
JM
16933.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16934maybe-configure-stage4-intl:
16935@if intl-bootstrap
16936maybe-configure-stage4-intl: configure-stage4-intl
16937configure-stage4-intl:
e28c595f 16938 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16939 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16940 @r=`${PWD_COMMAND}`; export r; \
16941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16942 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16943 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16944 $(HOST_EXPORTS) \
1b05fbbd 16945 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16946 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16947 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16948 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16949 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
16950 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16951 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16952 case $(srcdir) in \
16953 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16954 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16955 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16956 esac; \
1b6c0831
L
16957 module_srcdir=intl; \
16958 $(SHELL) $$s/$$module_srcdir/configure \
16959 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16960 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16961 --target=${target_alias} \
22121df0 16962 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16963 $(STAGE4_CONFIGURE_FLAGS)
16964@endif intl-bootstrap
e28c595f 16965
a90ef4bf
JM
16966.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16967maybe-configure-stageprofile-intl:
16968@if intl-bootstrap
16969maybe-configure-stageprofile-intl: configure-stageprofile-intl
16970configure-stageprofile-intl:
e28c595f 16971 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16972 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16973 @r=`${PWD_COMMAND}`; export r; \
16974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16975 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16976 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16977 $(HOST_EXPORTS) \
1b05fbbd
AO
16978 $(POSTSTAGE1_HOST_EXPORTS) \
16979 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16980 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16981 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16982 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
16983 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16984 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16985 case $(srcdir) in \
16986 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16987 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16988 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16989 esac; \
1b6c0831
L
16990 module_srcdir=intl; \
16991 $(SHELL) $$s/$$module_srcdir/configure \
16992 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16993 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16994 --target=${target_alias} \
22121df0 16995 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16996 $(STAGEprofile_CONFIGURE_FLAGS)
16997@endif intl-bootstrap
e28c595f 16998
a90ef4bf
JM
16999.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
17000maybe-configure-stagefeedback-intl:
17001@if intl-bootstrap
17002maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
17003configure-stagefeedback-intl:
e28c595f 17004 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 17005 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
17006 @r=`${PWD_COMMAND}`; export r; \
17007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17008 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 17009 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 17010 $(HOST_EXPORTS) \
1b05fbbd
AO
17011 $(POSTSTAGE1_HOST_EXPORTS) \
17012 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17013 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
17014 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17015 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
17016 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 17017 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17018 case $(srcdir) in \
17019 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17020 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17021 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17022 esac; \
1b6c0831
L
17023 module_srcdir=intl; \
17024 $(SHELL) $$s/$$module_srcdir/configure \
17025 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 17026 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17027 --target=${target_alias} \
22121df0 17028 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17029 $(STAGEfeedback_CONFIGURE_FLAGS)
17030@endif intl-bootstrap
e28c595f
JM
17031
17032
17033
17034
17035
a90ef4bf
JM
17036.PHONY: all-intl maybe-all-intl
17037maybe-all-intl:
e28c595f 17038@if gcc-bootstrap
a90ef4bf 17039all-intl: stage_current
e28c595f 17040@endif gcc-bootstrap
a90ef4bf
JM
17041@if intl
17042TARGET-intl=all
17043maybe-all-intl: all-intl
17044all-intl: configure-intl
e28c595f
JM
17045 @r=`${PWD_COMMAND}`; export r; \
17046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 17047 $(HOST_EXPORTS) \
a90ef4bf 17048 (cd $(HOST_SUBDIR)/intl && \
b3676d82 17049 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17050 $(TARGET-intl))
17051@endif intl
e28c595f
JM
17052
17053
17054
a90ef4bf
JM
17055.PHONY: all-stage1-intl maybe-all-stage1-intl
17056.PHONY: clean-stage1-intl maybe-clean-stage1-intl
17057maybe-all-stage1-intl:
17058maybe-clean-stage1-intl:
17059@if intl-bootstrap
17060maybe-all-stage1-intl: all-stage1-intl
17061all-stage1: all-stage1-intl
17062TARGET-stage1-intl = $(TARGET-intl)
17063all-stage1-intl: configure-stage1-intl
e28c595f
JM
17064 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17065 @r=`${PWD_COMMAND}`; export r; \
17066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17067 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 17068 $(HOST_EXPORTS) \
a90ef4bf 17069 cd $(HOST_SUBDIR)/intl && \
05a13254 17070 \
e28c595f 17071 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17072 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 17073 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
17074 LIBCFLAGS="$(LIBCFLAGS)" \
17075 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17076 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17077 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
17078 $(EXTRA_HOST_FLAGS) \
17079 $(STAGE1_FLAGS_TO_PASS) \
05a13254 17080 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 17081 $(TARGET-stage1-intl)
e28c595f 17082
a90ef4bf
JM
17083maybe-clean-stage1-intl: clean-stage1-intl
17084clean-stage1: clean-stage1-intl
17085clean-stage1-intl:
e28c595f 17086 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 17087 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17088 else \
a90ef4bf 17089 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
17090 $(MAKE) stage1-start; \
17091 fi; \
a90ef4bf 17092 cd $(HOST_SUBDIR)/intl && \
e28c595f 17093 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 17094 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17095@endif intl-bootstrap
e28c595f
JM
17096
17097
a90ef4bf
JM
17098.PHONY: all-stage2-intl maybe-all-stage2-intl
17099.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17100maybe-all-stage2-intl:
17101maybe-clean-stage2-intl:
17102@if intl-bootstrap
17103maybe-all-stage2-intl: all-stage2-intl
17104all-stage2: all-stage2-intl
17105TARGET-stage2-intl = $(TARGET-intl)
17106all-stage2-intl: configure-stage2-intl
e28c595f
JM
17107 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17108 @r=`${PWD_COMMAND}`; export r; \
17109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17110 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17111 $(HOST_EXPORTS) \
1f53ca9a 17112 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17113 cd $(HOST_SUBDIR)/intl && \
05a13254 17114 \
e28c595f 17115 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17116 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17117 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17118 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17119 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17120 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17121 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17122 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17123 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17124 $(TARGET-stage2-intl)
e28c595f 17125
a90ef4bf
JM
17126maybe-clean-stage2-intl: clean-stage2-intl
17127clean-stage2: clean-stage2-intl
17128clean-stage2-intl:
e28c595f 17129 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17130 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17131 else \
a90ef4bf 17132 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17133 $(MAKE) stage2-start; \
17134 fi; \
a90ef4bf 17135 cd $(HOST_SUBDIR)/intl && \
b3676d82 17136 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17137@endif intl-bootstrap
e28c595f
JM
17138
17139
a90ef4bf
JM
17140.PHONY: all-stage3-intl maybe-all-stage3-intl
17141.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17142maybe-all-stage3-intl:
17143maybe-clean-stage3-intl:
17144@if intl-bootstrap
17145maybe-all-stage3-intl: all-stage3-intl
17146all-stage3: all-stage3-intl
17147TARGET-stage3-intl = $(TARGET-intl)
17148all-stage3-intl: configure-stage3-intl
e28c595f
JM
17149 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17150 @r=`${PWD_COMMAND}`; export r; \
17151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17152 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17153 $(HOST_EXPORTS) \
1f53ca9a 17154 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17155 cd $(HOST_SUBDIR)/intl && \
05a13254 17156 \
e28c595f 17157 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17158 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17159 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17160 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17161 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17162 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17163 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17164 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17165 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17166 $(TARGET-stage3-intl)
e28c595f 17167
a90ef4bf
JM
17168maybe-clean-stage3-intl: clean-stage3-intl
17169clean-stage3: clean-stage3-intl
17170clean-stage3-intl:
e28c595f 17171 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17172 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17173 else \
a90ef4bf 17174 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17175 $(MAKE) stage3-start; \
17176 fi; \
a90ef4bf 17177 cd $(HOST_SUBDIR)/intl && \
b3676d82 17178 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17179@endif intl-bootstrap
e28c595f
JM
17180
17181
a90ef4bf
JM
17182.PHONY: all-stage4-intl maybe-all-stage4-intl
17183.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17184maybe-all-stage4-intl:
17185maybe-clean-stage4-intl:
17186@if intl-bootstrap
17187maybe-all-stage4-intl: all-stage4-intl
17188all-stage4: all-stage4-intl
17189TARGET-stage4-intl = $(TARGET-intl)
17190all-stage4-intl: configure-stage4-intl
e28c595f
JM
17191 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17192 @r=`${PWD_COMMAND}`; export r; \
17193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17194 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17195 $(HOST_EXPORTS) \
1f53ca9a 17196 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17197 cd $(HOST_SUBDIR)/intl && \
05a13254 17198 \
e28c595f 17199 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17200 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17201 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17202 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17203 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17204 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17205 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17206 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17207 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17208 $(TARGET-stage4-intl)
e28c595f 17209
a90ef4bf
JM
17210maybe-clean-stage4-intl: clean-stage4-intl
17211clean-stage4: clean-stage4-intl
17212clean-stage4-intl:
e28c595f 17213 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17214 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17215 else \
a90ef4bf 17216 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17217 $(MAKE) stage4-start; \
17218 fi; \
a90ef4bf 17219 cd $(HOST_SUBDIR)/intl && \
b3676d82 17220 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17221@endif intl-bootstrap
e28c595f
JM
17222
17223
a90ef4bf
JM
17224.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17225.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17226maybe-all-stageprofile-intl:
17227maybe-clean-stageprofile-intl:
17228@if intl-bootstrap
17229maybe-all-stageprofile-intl: all-stageprofile-intl
17230all-stageprofile: all-stageprofile-intl
17231TARGET-stageprofile-intl = $(TARGET-intl)
17232all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17233 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17234 @r=`${PWD_COMMAND}`; export r; \
17235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17236 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17237 $(HOST_EXPORTS) \
1f53ca9a 17238 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17239 cd $(HOST_SUBDIR)/intl && \
05a13254 17240 \
e28c595f 17241 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17242 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17243 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17244 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17245 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17246 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17247 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17248 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17249 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17250 $(TARGET-stageprofile-intl)
e28c595f 17251
a90ef4bf
JM
17252maybe-clean-stageprofile-intl: clean-stageprofile-intl
17253clean-stageprofile: clean-stageprofile-intl
17254clean-stageprofile-intl:
e28c595f 17255 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17256 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17257 else \
a90ef4bf 17258 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17259 $(MAKE) stageprofile-start; \
17260 fi; \
a90ef4bf 17261 cd $(HOST_SUBDIR)/intl && \
b3676d82 17262 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17263@endif intl-bootstrap
e28c595f
JM
17264
17265
a90ef4bf
JM
17266.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17267.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17268maybe-all-stagefeedback-intl:
17269maybe-clean-stagefeedback-intl:
17270@if intl-bootstrap
17271maybe-all-stagefeedback-intl: all-stagefeedback-intl
17272all-stagefeedback: all-stagefeedback-intl
17273TARGET-stagefeedback-intl = $(TARGET-intl)
17274all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17275 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17276 @r=`${PWD_COMMAND}`; export r; \
17277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17278 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17279 $(HOST_EXPORTS) \
1f53ca9a 17280 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17281 cd $(HOST_SUBDIR)/intl && \
05a13254 17282 \
e28c595f 17283 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17284 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17285 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17286 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17287 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17288 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17289 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17290 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17291 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17292 $(TARGET-stagefeedback-intl)
e28c595f 17293
a90ef4bf
JM
17294maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17295clean-stagefeedback: clean-stagefeedback-intl
17296clean-stagefeedback-intl:
e28c595f 17297 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17298 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17299 else \
a90ef4bf 17300 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17301 $(MAKE) stagefeedback-start; \
17302 fi; \
a90ef4bf 17303 cd $(HOST_SUBDIR)/intl && \
b3676d82 17304 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17305@endif intl-bootstrap
e28c595f
JM
17306
17307
17308
17309
17310
a90ef4bf
JM
17311.PHONY: check-intl maybe-check-intl
17312maybe-check-intl:
17313@if intl
17314maybe-check-intl: check-intl
e28c595f 17315
a90ef4bf 17316check-intl:
e28c595f
JM
17317 @: $(MAKE); $(unstage)
17318 @r=`${PWD_COMMAND}`; export r; \
17319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17320 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17321 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17322 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17323
a90ef4bf 17324@endif intl
e28c595f 17325
a90ef4bf
JM
17326.PHONY: install-intl maybe-install-intl
17327maybe-install-intl:
17328@if intl
17329maybe-install-intl: install-intl
e28c595f 17330
a90ef4bf
JM
17331install-intl: installdirs
17332 @: $(MAKE); $(unstage)
17333 @r=`${PWD_COMMAND}`; export r; \
17334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17335 $(HOST_EXPORTS) \
17336 (cd $(HOST_SUBDIR)/intl && \
17337 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17338
a90ef4bf 17339@endif intl
e28c595f 17340
a90ef4bf
JM
17341.PHONY: install-strip-intl maybe-install-strip-intl
17342maybe-install-strip-intl:
17343@if intl
17344maybe-install-strip-intl: install-strip-intl
9b980aa1 17345
a90ef4bf
JM
17346install-strip-intl: installdirs
17347 @: $(MAKE); $(unstage)
17348 @r=`${PWD_COMMAND}`; export r; \
17349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17350 $(HOST_EXPORTS) \
17351 (cd $(HOST_SUBDIR)/intl && \
17352 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17353
a90ef4bf 17354@endif intl
9b980aa1 17355
e28c595f
JM
17356# Other targets (info, dvi, pdf, etc.)
17357
a90ef4bf
JM
17358.PHONY: maybe-info-intl info-intl
17359maybe-info-intl:
17360@if intl
17361maybe-info-intl: info-intl
e28c595f 17362
a90ef4bf
JM
17363info-intl: \
17364 configure-intl
17365 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17366 r=`${PWD_COMMAND}`; export r; \
17367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17368 $(HOST_EXPORTS) \
17369 for flag in $(EXTRA_HOST_FLAGS) ; do \
17370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17371 done; \
22121df0 17372 echo "Doing info in intl"; \
a90ef4bf 17373 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17376 "RANLIB=$${RANLIB}" \
17377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17378 info) \
17379 || exit 1
17380
a90ef4bf 17381@endif intl
e28c595f 17382
a90ef4bf
JM
17383.PHONY: maybe-dvi-intl dvi-intl
17384maybe-dvi-intl:
17385@if intl
17386maybe-dvi-intl: dvi-intl
e28c595f 17387
a90ef4bf
JM
17388dvi-intl: \
17389 configure-intl
17390 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17391 r=`${PWD_COMMAND}`; export r; \
17392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17393 $(HOST_EXPORTS) \
17394 for flag in $(EXTRA_HOST_FLAGS) ; do \
17395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17396 done; \
22121df0 17397 echo "Doing dvi in intl"; \
a90ef4bf 17398 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17401 "RANLIB=$${RANLIB}" \
17402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17403 dvi) \
17404 || exit 1
17405
a90ef4bf 17406@endif intl
e28c595f 17407
a90ef4bf
JM
17408.PHONY: maybe-pdf-intl pdf-intl
17409maybe-pdf-intl:
17410@if intl
17411maybe-pdf-intl: pdf-intl
e28c595f 17412
a90ef4bf
JM
17413pdf-intl: \
17414 configure-intl
17415 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17416 r=`${PWD_COMMAND}`; export r; \
17417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17418 $(HOST_EXPORTS) \
17419 for flag in $(EXTRA_HOST_FLAGS) ; do \
17420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17421 done; \
22121df0 17422 echo "Doing pdf in intl"; \
a90ef4bf 17423 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17426 "RANLIB=$${RANLIB}" \
17427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17428 pdf) \
17429 || exit 1
17430
a90ef4bf 17431@endif intl
e28c595f 17432
a90ef4bf
JM
17433.PHONY: maybe-html-intl html-intl
17434maybe-html-intl:
17435@if intl
17436maybe-html-intl: html-intl
e28c595f 17437
a90ef4bf
JM
17438html-intl: \
17439 configure-intl
17440 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17441 r=`${PWD_COMMAND}`; export r; \
17442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17443 $(HOST_EXPORTS) \
17444 for flag in $(EXTRA_HOST_FLAGS) ; do \
17445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17446 done; \
22121df0 17447 echo "Doing html in intl"; \
a90ef4bf 17448 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17451 "RANLIB=$${RANLIB}" \
17452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17453 html) \
17454 || exit 1
17455
a90ef4bf 17456@endif intl
e28c595f 17457
a90ef4bf
JM
17458.PHONY: maybe-TAGS-intl TAGS-intl
17459maybe-TAGS-intl:
17460@if intl
17461maybe-TAGS-intl: TAGS-intl
e28c595f 17462
a90ef4bf
JM
17463TAGS-intl: \
17464 configure-intl
17465 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17466 r=`${PWD_COMMAND}`; export r; \
17467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17468 $(HOST_EXPORTS) \
17469 for flag in $(EXTRA_HOST_FLAGS) ; do \
17470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17471 done; \
22121df0 17472 echo "Doing TAGS in intl"; \
a90ef4bf 17473 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17476 "RANLIB=$${RANLIB}" \
17477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17478 TAGS) \
17479 || exit 1
17480
a90ef4bf 17481@endif intl
e28c595f 17482
a90ef4bf
JM
17483.PHONY: maybe-install-info-intl install-info-intl
17484maybe-install-info-intl:
17485@if intl
17486maybe-install-info-intl: install-info-intl
e28c595f 17487
a90ef4bf
JM
17488install-info-intl: \
17489 configure-intl \
17490 info-intl
17491 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17492 r=`${PWD_COMMAND}`; export r; \
17493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17494 $(HOST_EXPORTS) \
17495 for flag in $(EXTRA_HOST_FLAGS) ; do \
17496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17497 done; \
22121df0 17498 echo "Doing install-info in intl"; \
a90ef4bf 17499 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17502 "RANLIB=$${RANLIB}" \
17503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17504 install-info) \
17505 || exit 1
17506
a90ef4bf 17507@endif intl
e28c595f 17508
a90ef4bf
JM
17509.PHONY: maybe-install-pdf-intl install-pdf-intl
17510maybe-install-pdf-intl:
17511@if intl
17512maybe-install-pdf-intl: install-pdf-intl
e28c595f 17513
a90ef4bf
JM
17514install-pdf-intl: \
17515 configure-intl \
17516 pdf-intl
17517 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17518 r=`${PWD_COMMAND}`; export r; \
17519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17520 $(HOST_EXPORTS) \
17521 for flag in $(EXTRA_HOST_FLAGS) ; do \
17522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17523 done; \
22121df0 17524 echo "Doing install-pdf in intl"; \
a90ef4bf 17525 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17528 "RANLIB=$${RANLIB}" \
17529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17530 install-pdf) \
17531 || exit 1
17532
a90ef4bf 17533@endif intl
e28c595f 17534
a90ef4bf
JM
17535.PHONY: maybe-install-html-intl install-html-intl
17536maybe-install-html-intl:
17537@if intl
17538maybe-install-html-intl: install-html-intl
e28c595f 17539
a90ef4bf
JM
17540install-html-intl: \
17541 configure-intl \
17542 html-intl
17543 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17544 r=`${PWD_COMMAND}`; export r; \
17545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17546 $(HOST_EXPORTS) \
17547 for flag in $(EXTRA_HOST_FLAGS) ; do \
17548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17549 done; \
22121df0 17550 echo "Doing install-html in intl"; \
a90ef4bf 17551 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17554 "RANLIB=$${RANLIB}" \
17555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17556 install-html) \
17557 || exit 1
17558
a90ef4bf 17559@endif intl
e28c595f 17560
a90ef4bf
JM
17561.PHONY: maybe-installcheck-intl installcheck-intl
17562maybe-installcheck-intl:
17563@if intl
17564maybe-installcheck-intl: installcheck-intl
e28c595f 17565
a90ef4bf
JM
17566installcheck-intl: \
17567 configure-intl
17568 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17569 r=`${PWD_COMMAND}`; export r; \
17570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17571 $(HOST_EXPORTS) \
17572 for flag in $(EXTRA_HOST_FLAGS) ; do \
17573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17574 done; \
22121df0 17575 echo "Doing installcheck in intl"; \
a90ef4bf 17576 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17579 "RANLIB=$${RANLIB}" \
17580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17581 installcheck) \
17582 || exit 1
17583
a90ef4bf 17584@endif intl
e28c595f 17585
a90ef4bf
JM
17586.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17587maybe-mostlyclean-intl:
17588@if intl
17589maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17590
a90ef4bf
JM
17591mostlyclean-intl:
17592 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17593 r=`${PWD_COMMAND}`; export r; \
17594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17595 $(HOST_EXPORTS) \
17596 for flag in $(EXTRA_HOST_FLAGS) ; do \
17597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17598 done; \
22121df0 17599 echo "Doing mostlyclean in intl"; \
a90ef4bf 17600 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17603 "RANLIB=$${RANLIB}" \
17604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17605 mostlyclean) \
17606 || exit 1
17607
a90ef4bf 17608@endif intl
e28c595f 17609
a90ef4bf
JM
17610.PHONY: maybe-clean-intl clean-intl
17611maybe-clean-intl:
17612@if intl
17613maybe-clean-intl: clean-intl
e28c595f 17614
a90ef4bf
JM
17615clean-intl:
17616 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17617 r=`${PWD_COMMAND}`; export r; \
17618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17619 $(HOST_EXPORTS) \
17620 for flag in $(EXTRA_HOST_FLAGS) ; do \
17621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17622 done; \
22121df0 17623 echo "Doing clean in intl"; \
a90ef4bf 17624 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17627 "RANLIB=$${RANLIB}" \
17628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17629 clean) \
17630 || exit 1
17631
a90ef4bf 17632@endif intl
e28c595f 17633
a90ef4bf
JM
17634.PHONY: maybe-distclean-intl distclean-intl
17635maybe-distclean-intl:
17636@if intl
17637maybe-distclean-intl: distclean-intl
e28c595f 17638
a90ef4bf
JM
17639distclean-intl:
17640 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17641 r=`${PWD_COMMAND}`; export r; \
17642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17643 $(HOST_EXPORTS) \
17644 for flag in $(EXTRA_HOST_FLAGS) ; do \
17645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17646 done; \
22121df0 17647 echo "Doing distclean in intl"; \
a90ef4bf 17648 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17651 "RANLIB=$${RANLIB}" \
17652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17653 distclean) \
17654 || exit 1
17655
a90ef4bf 17656@endif intl
e28c595f 17657
a90ef4bf
JM
17658.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17659maybe-maintainer-clean-intl:
17660@if intl
17661maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17662
a90ef4bf
JM
17663maintainer-clean-intl:
17664 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17665 r=`${PWD_COMMAND}`; export r; \
17666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17667 $(HOST_EXPORTS) \
17668 for flag in $(EXTRA_HOST_FLAGS) ; do \
17669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17670 done; \
22121df0 17671 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17672 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17675 "RANLIB=$${RANLIB}" \
17676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17677 maintainer-clean) \
17678 || exit 1
17679
a90ef4bf 17680@endif intl
e28c595f
JM
17681
17682
17683
a90ef4bf
JM
17684.PHONY: configure-tcl maybe-configure-tcl
17685maybe-configure-tcl:
e8a5fa9c 17686@if gcc-bootstrap
a90ef4bf 17687configure-tcl: stage_current
e8a5fa9c 17688@endif gcc-bootstrap
a90ef4bf
JM
17689@if tcl
17690maybe-configure-tcl: configure-tcl
17691configure-tcl:
17692 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17693 @r=`${PWD_COMMAND}`; export r; \
17694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17695 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17696 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17697 $(HOST_EXPORTS) \
a90ef4bf
JM
17698 echo Configuring in $(HOST_SUBDIR)/tcl; \
17699 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17700 case $(srcdir) in \
17701 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17702 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17703 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17704 esac; \
1b6c0831
L
17705 module_srcdir=tcl; \
17706 $(SHELL) \
17707 $$s/$$module_srcdir/configure \
17708 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17709 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17710 --target=${target_alias} \
e8a5fa9c 17711 || exit 1
a90ef4bf 17712@endif tcl
e8a5fa9c
RW
17713
17714
17715
e8a5fa9c 17716
e8a5fa9c 17717
a90ef4bf
JM
17718.PHONY: all-tcl maybe-all-tcl
17719maybe-all-tcl:
17720@if gcc-bootstrap
17721all-tcl: stage_current
17722@endif gcc-bootstrap
17723@if tcl
17724TARGET-tcl=all
17725maybe-all-tcl: all-tcl
17726all-tcl: configure-tcl
17727 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17728 @r=`${PWD_COMMAND}`; export r; \
17729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17730 $(HOST_EXPORTS) \
17731 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17732 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17733 $(TARGET-tcl))
17734@endif tcl
e8a5fa9c 17735
a90ef4bf
JM
17736
17737
17738
17739.PHONY: check-tcl maybe-check-tcl
17740maybe-check-tcl:
17741@if tcl
17742maybe-check-tcl: check-tcl
17743
17744check-tcl:
17745 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17746 @r=`${PWD_COMMAND}`; export r; \
17747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17748 $(HOST_EXPORTS) \
a90ef4bf
JM
17749 (cd $(HOST_SUBDIR)/tcl && \
17750 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17751
a90ef4bf
JM
17752@endif tcl
17753
17754.PHONY: install-tcl maybe-install-tcl
17755maybe-install-tcl:
17756@if tcl
17757maybe-install-tcl: install-tcl
17758
17759install-tcl: installdirs
17760 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17761 @r=`${PWD_COMMAND}`; export r; \
17762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17763 $(HOST_EXPORTS) \
a90ef4bf
JM
17764 (cd $(HOST_SUBDIR)/tcl && \
17765 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17766
a90ef4bf
JM
17767@endif tcl
17768
17769.PHONY: install-strip-tcl maybe-install-strip-tcl
17770maybe-install-strip-tcl:
17771@if tcl
17772maybe-install-strip-tcl: install-strip-tcl
17773
17774install-strip-tcl: installdirs
17775 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17776 @r=`${PWD_COMMAND}`; export r; \
17777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17778 $(HOST_EXPORTS) \
a90ef4bf
JM
17779 (cd $(HOST_SUBDIR)/tcl && \
17780 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17781
a90ef4bf 17782@endif tcl
e8a5fa9c 17783
a90ef4bf 17784# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17785
a90ef4bf
JM
17786.PHONY: maybe-info-tcl info-tcl
17787maybe-info-tcl:
17788@if tcl
17789maybe-info-tcl: info-tcl
e8a5fa9c 17790
a90ef4bf
JM
17791info-tcl: \
17792 configure-tcl
17793 @: $(MAKE); $(unstage)
17794 @[ -f ./tcl/Makefile ] || exit 0; \
17795 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17797 $(HOST_EXPORTS) \
17798 for flag in $(EXTRA_HOST_FLAGS) ; do \
17799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17800 done; \
22121df0 17801 echo "Doing info in tcl"; \
a90ef4bf
JM
17802 (cd $(HOST_SUBDIR)/tcl && \
17803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17805 "RANLIB=$${RANLIB}" \
17806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17807 info) \
17808 || exit 1
e8a5fa9c 17809
a90ef4bf 17810@endif tcl
e8a5fa9c 17811
a90ef4bf
JM
17812.PHONY: maybe-dvi-tcl dvi-tcl
17813maybe-dvi-tcl:
17814@if tcl
17815maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17816
a90ef4bf
JM
17817dvi-tcl: \
17818 configure-tcl
17819 @: $(MAKE); $(unstage)
17820 @[ -f ./tcl/Makefile ] || exit 0; \
17821 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17823 $(HOST_EXPORTS) \
17824 for flag in $(EXTRA_HOST_FLAGS) ; do \
17825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17826 done; \
22121df0 17827 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17828 (cd $(HOST_SUBDIR)/tcl && \
17829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17831 "RANLIB=$${RANLIB}" \
17832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17833 dvi) \
17834 || exit 1
e8a5fa9c 17835
a90ef4bf 17836@endif tcl
e8a5fa9c 17837
a90ef4bf
JM
17838.PHONY: maybe-pdf-tcl pdf-tcl
17839maybe-pdf-tcl:
17840@if tcl
17841maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17842
a90ef4bf
JM
17843pdf-tcl: \
17844 configure-tcl
17845 @: $(MAKE); $(unstage)
17846 @[ -f ./tcl/Makefile ] || exit 0; \
17847 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17849 $(HOST_EXPORTS) \
a90ef4bf
JM
17850 for flag in $(EXTRA_HOST_FLAGS) ; do \
17851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17852 done; \
22121df0 17853 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17854 (cd $(HOST_SUBDIR)/tcl && \
17855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17857 "RANLIB=$${RANLIB}" \
17858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17859 pdf) \
17860 || exit 1
e8a5fa9c 17861
a90ef4bf 17862@endif tcl
e8a5fa9c 17863
a90ef4bf
JM
17864.PHONY: maybe-html-tcl html-tcl
17865maybe-html-tcl:
17866@if tcl
17867maybe-html-tcl: html-tcl
e8a5fa9c 17868
a90ef4bf
JM
17869html-tcl: \
17870 configure-tcl
17871 @: $(MAKE); $(unstage)
17872 @[ -f ./tcl/Makefile ] || exit 0; \
17873 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17875 $(HOST_EXPORTS) \
a90ef4bf
JM
17876 for flag in $(EXTRA_HOST_FLAGS) ; do \
17877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17878 done; \
22121df0 17879 echo "Doing html in tcl"; \
a90ef4bf
JM
17880 (cd $(HOST_SUBDIR)/tcl && \
17881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17883 "RANLIB=$${RANLIB}" \
17884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17885 html) \
17886 || exit 1
e8a5fa9c 17887
a90ef4bf 17888@endif tcl
e8a5fa9c 17889
a90ef4bf
JM
17890.PHONY: maybe-TAGS-tcl TAGS-tcl
17891maybe-TAGS-tcl:
17892@if tcl
17893maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17894
a90ef4bf
JM
17895TAGS-tcl: \
17896 configure-tcl
17897 @: $(MAKE); $(unstage)
17898 @[ -f ./tcl/Makefile ] || exit 0; \
17899 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17901 $(HOST_EXPORTS) \
a90ef4bf
JM
17902 for flag in $(EXTRA_HOST_FLAGS) ; do \
17903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17904 done; \
22121df0 17905 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17906 (cd $(HOST_SUBDIR)/tcl && \
17907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17909 "RANLIB=$${RANLIB}" \
17910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17911 TAGS) \
17912 || exit 1
e8a5fa9c 17913
a90ef4bf 17914@endif tcl
e8a5fa9c 17915
a90ef4bf
JM
17916.PHONY: maybe-install-info-tcl install-info-tcl
17917maybe-install-info-tcl:
17918@if tcl
17919maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17920
a90ef4bf
JM
17921install-info-tcl: \
17922 configure-tcl \
17923 info-tcl
e8a5fa9c 17924 @: $(MAKE); $(unstage)
a90ef4bf 17925 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17926 r=`${PWD_COMMAND}`; export r; \
17927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17928 $(HOST_EXPORTS) \
17929 for flag in $(EXTRA_HOST_FLAGS) ; do \
17930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17931 done; \
22121df0 17932 echo "Doing install-info in tcl"; \
a90ef4bf 17933 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17936 "RANLIB=$${RANLIB}" \
17937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17938 install-info) \
e8a5fa9c
RW
17939 || exit 1
17940
a90ef4bf 17941@endif tcl
e8a5fa9c 17942
a90ef4bf
JM
17943.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17944maybe-install-pdf-tcl:
17945@if tcl
17946maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17947
a90ef4bf
JM
17948install-pdf-tcl: \
17949 configure-tcl \
17950 pdf-tcl
17951 @: $(MAKE); $(unstage)
17952 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17953 r=`${PWD_COMMAND}`; export r; \
17954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17955 $(HOST_EXPORTS) \
17956 for flag in $(EXTRA_HOST_FLAGS) ; do \
17957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17958 done; \
22121df0 17959 echo "Doing install-pdf in tcl"; \
a90ef4bf 17960 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17963 "RANLIB=$${RANLIB}" \
17964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17965 install-pdf) \
e8a5fa9c
RW
17966 || exit 1
17967
a90ef4bf 17968@endif tcl
e8a5fa9c 17969
a90ef4bf
JM
17970.PHONY: maybe-install-html-tcl install-html-tcl
17971maybe-install-html-tcl:
17972@if tcl
17973maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17974
a90ef4bf
JM
17975install-html-tcl: \
17976 configure-tcl \
17977 html-tcl
17978 @: $(MAKE); $(unstage)
17979 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17980 r=`${PWD_COMMAND}`; export r; \
17981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17982 $(HOST_EXPORTS) \
17983 for flag in $(EXTRA_HOST_FLAGS) ; do \
17984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17985 done; \
22121df0 17986 echo "Doing install-html in tcl"; \
a90ef4bf 17987 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17990 "RANLIB=$${RANLIB}" \
17991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17992 install-html) \
e8a5fa9c
RW
17993 || exit 1
17994
a90ef4bf 17995@endif tcl
e8a5fa9c 17996
a90ef4bf
JM
17997.PHONY: maybe-installcheck-tcl installcheck-tcl
17998maybe-installcheck-tcl:
17999@if tcl
18000maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 18001
a90ef4bf
JM
18002installcheck-tcl: \
18003 configure-tcl
18004 @: $(MAKE); $(unstage)
18005 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18006 r=`${PWD_COMMAND}`; export r; \
18007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18008 $(HOST_EXPORTS) \
18009 for flag in $(EXTRA_HOST_FLAGS) ; do \
18010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18011 done; \
22121df0 18012 echo "Doing installcheck in tcl"; \
a90ef4bf 18013 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18016 "RANLIB=$${RANLIB}" \
18017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18018 installcheck) \
e8a5fa9c
RW
18019 || exit 1
18020
a90ef4bf 18021@endif tcl
e8a5fa9c 18022
a90ef4bf
JM
18023.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
18024maybe-mostlyclean-tcl:
18025@if tcl
18026maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 18027
a90ef4bf
JM
18028# tcl doesn't support mostlyclean.
18029mostlyclean-tcl:
18030
18031@endif tcl
18032
18033.PHONY: maybe-clean-tcl clean-tcl
18034maybe-clean-tcl:
18035@if tcl
18036maybe-clean-tcl: clean-tcl
18037
18038clean-tcl:
18039 @: $(MAKE); $(unstage)
18040 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18041 r=`${PWD_COMMAND}`; export r; \
18042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18043 $(HOST_EXPORTS) \
18044 for flag in $(EXTRA_HOST_FLAGS) ; do \
18045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18046 done; \
22121df0 18047 echo "Doing clean in tcl"; \
a90ef4bf 18048 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18051 "RANLIB=$${RANLIB}" \
18052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18053 clean) \
e8a5fa9c
RW
18054 || exit 1
18055
a90ef4bf 18056@endif tcl
e8a5fa9c 18057
a90ef4bf
JM
18058.PHONY: maybe-distclean-tcl distclean-tcl
18059maybe-distclean-tcl:
18060@if tcl
18061maybe-distclean-tcl: distclean-tcl
e8a5fa9c 18062
a90ef4bf
JM
18063distclean-tcl:
18064 @: $(MAKE); $(unstage)
18065 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18066 r=`${PWD_COMMAND}`; export r; \
18067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18068 $(HOST_EXPORTS) \
18069 for flag in $(EXTRA_HOST_FLAGS) ; do \
18070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18071 done; \
22121df0 18072 echo "Doing distclean in tcl"; \
a90ef4bf 18073 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18076 "RANLIB=$${RANLIB}" \
18077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18078 distclean) \
e8a5fa9c
RW
18079 || exit 1
18080
a90ef4bf 18081@endif tcl
e8a5fa9c 18082
a90ef4bf
JM
18083.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
18084maybe-maintainer-clean-tcl:
18085@if tcl
18086maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 18087
a90ef4bf
JM
18088maintainer-clean-tcl:
18089 @: $(MAKE); $(unstage)
18090 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18091 r=`${PWD_COMMAND}`; export r; \
18092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18093 $(HOST_EXPORTS) \
18094 for flag in $(EXTRA_HOST_FLAGS) ; do \
18095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18096 done; \
22121df0 18097 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 18098 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18101 "RANLIB=$${RANLIB}" \
18102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18103 maintainer-clean) \
e8a5fa9c
RW
18104 || exit 1
18105
a90ef4bf 18106@endif tcl
e8a5fa9c 18107
e8a5fa9c 18108
a90ef4bf
JM
18109
18110.PHONY: configure-itcl maybe-configure-itcl
18111maybe-configure-itcl:
18112@if gcc-bootstrap
18113configure-itcl: stage_current
18114@endif gcc-bootstrap
18115@if itcl
18116maybe-configure-itcl: configure-itcl
18117configure-itcl:
18118 @: $(MAKE); $(unstage)
18119 @r=`${PWD_COMMAND}`; export r; \
18120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18121 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18122 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18123 $(HOST_EXPORTS) \
18124 echo Configuring in $(HOST_SUBDIR)/itcl; \
18125 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18126 case $(srcdir) in \
18127 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18128 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18129 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18130 esac; \
1b6c0831
L
18131 module_srcdir=itcl; \
18132 $(SHELL) \
18133 $$s/$$module_srcdir/configure \
18134 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18135 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18136 --target=${target_alias} \
a90ef4bf
JM
18137 || exit 1
18138@endif itcl
18139
18140
18141
18142
18143
18144.PHONY: all-itcl maybe-all-itcl
18145maybe-all-itcl:
18146@if gcc-bootstrap
18147all-itcl: stage_current
18148@endif gcc-bootstrap
18149@if itcl
18150TARGET-itcl=all
18151maybe-all-itcl: all-itcl
18152all-itcl: configure-itcl
18153 @: $(MAKE); $(unstage)
18154 @r=`${PWD_COMMAND}`; export r; \
18155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18156 $(HOST_EXPORTS) \
18157 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18158 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18159 $(TARGET-itcl))
18160@endif itcl
18161
18162
18163
18164
18165.PHONY: check-itcl maybe-check-itcl
18166maybe-check-itcl:
18167@if itcl
18168maybe-check-itcl: check-itcl
18169
18170check-itcl:
18171 @: $(MAKE); $(unstage)
18172 @r=`${PWD_COMMAND}`; export r; \
18173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18174 $(HOST_EXPORTS) \
a90ef4bf
JM
18175 (cd $(HOST_SUBDIR)/itcl && \
18176 $(MAKE) $(FLAGS_TO_PASS) check)
18177
18178@endif itcl
18179
18180.PHONY: install-itcl maybe-install-itcl
18181maybe-install-itcl:
18182@if itcl
18183maybe-install-itcl: install-itcl
18184
18185install-itcl: installdirs
18186 @: $(MAKE); $(unstage)
18187 @r=`${PWD_COMMAND}`; export r; \
18188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18189 $(HOST_EXPORTS) \
18190 (cd $(HOST_SUBDIR)/itcl && \
18191 $(MAKE) $(FLAGS_TO_PASS) install)
18192
18193@endif itcl
18194
18195.PHONY: install-strip-itcl maybe-install-strip-itcl
18196maybe-install-strip-itcl:
18197@if itcl
18198maybe-install-strip-itcl: install-strip-itcl
18199
18200install-strip-itcl: installdirs
18201 @: $(MAKE); $(unstage)
18202 @r=`${PWD_COMMAND}`; export r; \
18203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18204 $(HOST_EXPORTS) \
18205 (cd $(HOST_SUBDIR)/itcl && \
18206 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18207
18208@endif itcl
18209
18210# Other targets (info, dvi, pdf, etc.)
18211
18212.PHONY: maybe-info-itcl info-itcl
18213maybe-info-itcl:
18214@if itcl
18215maybe-info-itcl: info-itcl
18216
18217info-itcl: \
18218 configure-itcl
18219 @: $(MAKE); $(unstage)
18220 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18221 r=`${PWD_COMMAND}`; export r; \
18222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18223 $(HOST_EXPORTS) \
18224 for flag in $(EXTRA_HOST_FLAGS) ; do \
18225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18226 done; \
22121df0 18227 echo "Doing info in itcl"; \
a90ef4bf 18228 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18231 "RANLIB=$${RANLIB}" \
18232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18233 info) \
e8a5fa9c
RW
18234 || exit 1
18235
a90ef4bf 18236@endif itcl
e8a5fa9c 18237
a90ef4bf
JM
18238.PHONY: maybe-dvi-itcl dvi-itcl
18239maybe-dvi-itcl:
18240@if itcl
18241maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18242
a90ef4bf
JM
18243dvi-itcl: \
18244 configure-itcl
18245 @: $(MAKE); $(unstage)
18246 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18247 r=`${PWD_COMMAND}`; export r; \
18248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18249 $(HOST_EXPORTS) \
18250 for flag in $(EXTRA_HOST_FLAGS) ; do \
18251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18252 done; \
22121df0 18253 echo "Doing dvi in itcl"; \
a90ef4bf 18254 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18257 "RANLIB=$${RANLIB}" \
18258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18259 dvi) \
e8a5fa9c
RW
18260 || exit 1
18261
a90ef4bf 18262@endif itcl
e8a5fa9c 18263
a90ef4bf
JM
18264.PHONY: maybe-pdf-itcl pdf-itcl
18265maybe-pdf-itcl:
18266@if itcl
18267maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18268
a90ef4bf
JM
18269pdf-itcl: \
18270 configure-itcl
18271 @: $(MAKE); $(unstage)
18272 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18273 r=`${PWD_COMMAND}`; export r; \
18274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18275 $(HOST_EXPORTS) \
18276 for flag in $(EXTRA_HOST_FLAGS) ; do \
18277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18278 done; \
22121df0 18279 echo "Doing pdf in itcl"; \
a90ef4bf 18280 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18283 "RANLIB=$${RANLIB}" \
18284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18285 pdf) \
e8a5fa9c
RW
18286 || exit 1
18287
a90ef4bf 18288@endif itcl
e8a5fa9c 18289
a90ef4bf
JM
18290.PHONY: maybe-html-itcl html-itcl
18291maybe-html-itcl:
18292@if itcl
18293maybe-html-itcl: html-itcl
e8a5fa9c 18294
a90ef4bf
JM
18295html-itcl: \
18296 configure-itcl
18297 @: $(MAKE); $(unstage)
18298 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18299 r=`${PWD_COMMAND}`; export r; \
18300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18301 $(HOST_EXPORTS) \
18302 for flag in $(EXTRA_HOST_FLAGS) ; do \
18303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18304 done; \
22121df0 18305 echo "Doing html in itcl"; \
a90ef4bf 18306 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18309 "RANLIB=$${RANLIB}" \
18310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18311 html) \
e8a5fa9c
RW
18312 || exit 1
18313
a90ef4bf 18314@endif itcl
e8a5fa9c 18315
a90ef4bf
JM
18316.PHONY: maybe-TAGS-itcl TAGS-itcl
18317maybe-TAGS-itcl:
18318@if itcl
18319maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18320
a90ef4bf
JM
18321TAGS-itcl: \
18322 configure-itcl
18323 @: $(MAKE); $(unstage)
18324 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18325 r=`${PWD_COMMAND}`; export r; \
18326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18327 $(HOST_EXPORTS) \
18328 for flag in $(EXTRA_HOST_FLAGS) ; do \
18329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18330 done; \
22121df0 18331 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18332 (cd $(HOST_SUBDIR)/itcl && \
18333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18335 "RANLIB=$${RANLIB}" \
18336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18337 TAGS) \
18338 || exit 1
18339
18340@endif itcl
18341
18342.PHONY: maybe-install-info-itcl install-info-itcl
18343maybe-install-info-itcl:
18344@if itcl
18345maybe-install-info-itcl: install-info-itcl
18346
18347install-info-itcl: \
18348 configure-itcl \
18349 info-itcl
18350 @: $(MAKE); $(unstage)
18351 @[ -f ./itcl/Makefile ] || exit 0; \
18352 r=`${PWD_COMMAND}`; export r; \
18353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18354 $(HOST_EXPORTS) \
18355 for flag in $(EXTRA_HOST_FLAGS) ; do \
18356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18357 done; \
22121df0 18358 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18359 (cd $(HOST_SUBDIR)/itcl && \
18360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18362 "RANLIB=$${RANLIB}" \
18363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18364 install-info) \
18365 || exit 1
18366
18367@endif itcl
18368
18369.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18370maybe-install-pdf-itcl:
18371@if itcl
18372maybe-install-pdf-itcl: install-pdf-itcl
18373
18374install-pdf-itcl: \
18375 configure-itcl \
18376 pdf-itcl
18377 @: $(MAKE); $(unstage)
18378 @[ -f ./itcl/Makefile ] || exit 0; \
18379 r=`${PWD_COMMAND}`; export r; \
18380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18381 $(HOST_EXPORTS) \
18382 for flag in $(EXTRA_HOST_FLAGS) ; do \
18383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18384 done; \
22121df0 18385 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18386 (cd $(HOST_SUBDIR)/itcl && \
18387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18389 "RANLIB=$${RANLIB}" \
18390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18391 install-pdf) \
18392 || exit 1
18393
18394@endif itcl
18395
18396.PHONY: maybe-install-html-itcl install-html-itcl
18397maybe-install-html-itcl:
18398@if itcl
18399maybe-install-html-itcl: install-html-itcl
18400
18401install-html-itcl: \
18402 configure-itcl \
18403 html-itcl
18404 @: $(MAKE); $(unstage)
18405 @[ -f ./itcl/Makefile ] || exit 0; \
18406 r=`${PWD_COMMAND}`; export r; \
18407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18408 $(HOST_EXPORTS) \
18409 for flag in $(EXTRA_HOST_FLAGS) ; do \
18410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18411 done; \
22121df0 18412 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18413 (cd $(HOST_SUBDIR)/itcl && \
18414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18416 "RANLIB=$${RANLIB}" \
18417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18418 install-html) \
18419 || exit 1
18420
18421@endif itcl
18422
18423.PHONY: maybe-installcheck-itcl installcheck-itcl
18424maybe-installcheck-itcl:
18425@if itcl
18426maybe-installcheck-itcl: installcheck-itcl
18427
18428installcheck-itcl: \
18429 configure-itcl
18430 @: $(MAKE); $(unstage)
18431 @[ -f ./itcl/Makefile ] || exit 0; \
18432 r=`${PWD_COMMAND}`; export r; \
18433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18434 $(HOST_EXPORTS) \
18435 for flag in $(EXTRA_HOST_FLAGS) ; do \
18436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18437 done; \
22121df0 18438 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18439 (cd $(HOST_SUBDIR)/itcl && \
18440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18442 "RANLIB=$${RANLIB}" \
18443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18444 installcheck) \
18445 || exit 1
18446
18447@endif itcl
18448
18449.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18450maybe-mostlyclean-itcl:
18451@if itcl
18452maybe-mostlyclean-itcl: mostlyclean-itcl
18453
18454mostlyclean-itcl:
18455 @: $(MAKE); $(unstage)
18456 @[ -f ./itcl/Makefile ] || exit 0; \
18457 r=`${PWD_COMMAND}`; export r; \
18458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18459 $(HOST_EXPORTS) \
18460 for flag in $(EXTRA_HOST_FLAGS) ; do \
18461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18462 done; \
22121df0 18463 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18464 (cd $(HOST_SUBDIR)/itcl && \
18465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18467 "RANLIB=$${RANLIB}" \
18468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18469 mostlyclean) \
18470 || exit 1
18471
18472@endif itcl
18473
18474.PHONY: maybe-clean-itcl clean-itcl
18475maybe-clean-itcl:
18476@if itcl
18477maybe-clean-itcl: clean-itcl
18478
18479clean-itcl:
18480 @: $(MAKE); $(unstage)
18481 @[ -f ./itcl/Makefile ] || exit 0; \
18482 r=`${PWD_COMMAND}`; export r; \
18483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18484 $(HOST_EXPORTS) \
18485 for flag in $(EXTRA_HOST_FLAGS) ; do \
18486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18487 done; \
22121df0 18488 echo "Doing clean in itcl"; \
a90ef4bf
JM
18489 (cd $(HOST_SUBDIR)/itcl && \
18490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18492 "RANLIB=$${RANLIB}" \
18493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18494 clean) \
18495 || exit 1
18496
18497@endif itcl
18498
18499.PHONY: maybe-distclean-itcl distclean-itcl
18500maybe-distclean-itcl:
18501@if itcl
18502maybe-distclean-itcl: distclean-itcl
18503
18504distclean-itcl:
18505 @: $(MAKE); $(unstage)
18506 @[ -f ./itcl/Makefile ] || exit 0; \
18507 r=`${PWD_COMMAND}`; export r; \
18508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18509 $(HOST_EXPORTS) \
18510 for flag in $(EXTRA_HOST_FLAGS) ; do \
18511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18512 done; \
22121df0 18513 echo "Doing distclean in itcl"; \
a90ef4bf 18514 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18517 "RANLIB=$${RANLIB}" \
18518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18519 distclean) \
18520 || exit 1
18521
a90ef4bf 18522@endif itcl
e8a5fa9c 18523
a90ef4bf
JM
18524.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18525maybe-maintainer-clean-itcl:
18526@if itcl
18527maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18528
a90ef4bf
JM
18529maintainer-clean-itcl:
18530 @: $(MAKE); $(unstage)
18531 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18532 r=`${PWD_COMMAND}`; export r; \
18533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18534 $(HOST_EXPORTS) \
18535 for flag in $(EXTRA_HOST_FLAGS) ; do \
18536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18537 done; \
22121df0 18538 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18539 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18542 "RANLIB=$${RANLIB}" \
18543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18544 maintainer-clean) \
18545 || exit 1
18546
a90ef4bf 18547@endif itcl
e8a5fa9c
RW
18548
18549
18550
a90ef4bf
JM
18551.PHONY: configure-ld maybe-configure-ld
18552maybe-configure-ld:
e28c595f 18553@if gcc-bootstrap
a90ef4bf 18554configure-ld: stage_current
e28c595f 18555@endif gcc-bootstrap
a90ef4bf
JM
18556@if ld
18557maybe-configure-ld: configure-ld
18558configure-ld:
e28c595f
JM
18559 @r=`${PWD_COMMAND}`; export r; \
18560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18561 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18562 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18563 $(HOST_EXPORTS) \
a90ef4bf
JM
18564 echo Configuring in $(HOST_SUBDIR)/ld; \
18565 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18566 case $(srcdir) in \
18567 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18568 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18569 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18570 esac; \
1b6c0831
L
18571 module_srcdir=ld; \
18572 $(SHELL) \
18573 $$s/$$module_srcdir/configure \
18574 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18575 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18576 --target=${target_alias} \
e28c595f 18577 || exit 1
a90ef4bf 18578@endif ld
e28c595f
JM
18579
18580
18581
a90ef4bf
JM
18582.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18583maybe-configure-stage1-ld:
18584@if ld-bootstrap
18585maybe-configure-stage1-ld: configure-stage1-ld
18586configure-stage1-ld:
e28c595f 18587 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18588 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18589 @r=`${PWD_COMMAND}`; export r; \
18590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18591 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18592 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18593 $(HOST_EXPORTS) \
e28c595f 18594 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18595 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18596 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18597 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18598 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18599 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18600 case $(srcdir) in \
18601 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18602 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18603 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18604 esac; \
1b6c0831
L
18605 module_srcdir=ld; \
18606 $(SHELL) $$s/$$module_srcdir/configure \
18607 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18608 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18609 --target=${target_alias} \
18610 \
a90ef4bf
JM
18611 $(STAGE1_CONFIGURE_FLAGS)
18612@endif ld-bootstrap
e28c595f 18613
a90ef4bf
JM
18614.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18615maybe-configure-stage2-ld:
18616@if ld-bootstrap
18617maybe-configure-stage2-ld: configure-stage2-ld
18618configure-stage2-ld:
e28c595f 18619 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18620 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18621 @r=`${PWD_COMMAND}`; export r; \
18622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18623 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18624 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18625 $(HOST_EXPORTS) \
1b05fbbd 18626 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18627 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18628 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18629 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18630 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18631 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18632 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18633 case $(srcdir) in \
18634 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18635 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18636 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18637 esac; \
1b6c0831
L
18638 module_srcdir=ld; \
18639 $(SHELL) $$s/$$module_srcdir/configure \
18640 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18641 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18642 --target=${target_alias} \
22121df0 18643 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18644 $(STAGE2_CONFIGURE_FLAGS)
18645@endif ld-bootstrap
e28c595f 18646
a90ef4bf
JM
18647.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18648maybe-configure-stage3-ld:
18649@if ld-bootstrap
18650maybe-configure-stage3-ld: configure-stage3-ld
18651configure-stage3-ld:
e28c595f 18652 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18653 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18654 @r=`${PWD_COMMAND}`; export r; \
18655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18656 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18657 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18658 $(HOST_EXPORTS) \
1b05fbbd 18659 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18660 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18661 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18662 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18663 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18664 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18665 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18666 case $(srcdir) in \
18667 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18668 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18669 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18670 esac; \
1b6c0831
L
18671 module_srcdir=ld; \
18672 $(SHELL) $$s/$$module_srcdir/configure \
18673 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18674 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18675 --target=${target_alias} \
22121df0 18676 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18677 $(STAGE3_CONFIGURE_FLAGS)
18678@endif ld-bootstrap
e28c595f 18679
a90ef4bf
JM
18680.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18681maybe-configure-stage4-ld:
18682@if ld-bootstrap
18683maybe-configure-stage4-ld: configure-stage4-ld
18684configure-stage4-ld:
e28c595f 18685 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18686 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18687 @r=`${PWD_COMMAND}`; export r; \
18688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18689 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18690 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18691 $(HOST_EXPORTS) \
1b05fbbd 18692 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18693 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18694 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18695 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18696 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18697 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18698 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18699 case $(srcdir) in \
18700 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18701 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18702 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18703 esac; \
1b6c0831
L
18704 module_srcdir=ld; \
18705 $(SHELL) $$s/$$module_srcdir/configure \
18706 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18707 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18708 --target=${target_alias} \
22121df0 18709 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18710 $(STAGE4_CONFIGURE_FLAGS)
18711@endif ld-bootstrap
e28c595f 18712
a90ef4bf
JM
18713.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18714maybe-configure-stageprofile-ld:
18715@if ld-bootstrap
18716maybe-configure-stageprofile-ld: configure-stageprofile-ld
18717configure-stageprofile-ld:
e28c595f 18718 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18719 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18720 @r=`${PWD_COMMAND}`; export r; \
18721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18722 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18723 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18724 $(HOST_EXPORTS) \
1b05fbbd
AO
18725 $(POSTSTAGE1_HOST_EXPORTS) \
18726 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18727 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18728 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18729 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18730 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18731 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18732 case $(srcdir) in \
18733 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18734 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18735 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18736 esac; \
1b6c0831
L
18737 module_srcdir=ld; \
18738 $(SHELL) $$s/$$module_srcdir/configure \
18739 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18740 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18741 --target=${target_alias} \
22121df0 18742 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18743 $(STAGEprofile_CONFIGURE_FLAGS)
18744@endif ld-bootstrap
e28c595f 18745
a90ef4bf
JM
18746.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18747maybe-configure-stagefeedback-ld:
18748@if ld-bootstrap
18749maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18750configure-stagefeedback-ld:
e28c595f 18751 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18752 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18753 @r=`${PWD_COMMAND}`; export r; \
18754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18755 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18756 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18757 $(HOST_EXPORTS) \
1b05fbbd
AO
18758 $(POSTSTAGE1_HOST_EXPORTS) \
18759 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18760 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18761 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18762 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18763 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18764 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18765 case $(srcdir) in \
18766 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18767 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18768 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18769 esac; \
1b6c0831
L
18770 module_srcdir=ld; \
18771 $(SHELL) $$s/$$module_srcdir/configure \
18772 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18773 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18774 --target=${target_alias} \
22121df0 18775 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18776 $(STAGEfeedback_CONFIGURE_FLAGS)
18777@endif ld-bootstrap
e28c595f
JM
18778
18779
18780
18781
18782
a90ef4bf
JM
18783.PHONY: all-ld maybe-all-ld
18784maybe-all-ld:
e28c595f 18785@if gcc-bootstrap
a90ef4bf 18786all-ld: stage_current
e28c595f 18787@endif gcc-bootstrap
a90ef4bf
JM
18788@if ld
18789TARGET-ld=all
18790maybe-all-ld: all-ld
18791all-ld: configure-ld
e28c595f
JM
18792 @r=`${PWD_COMMAND}`; export r; \
18793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18794 $(HOST_EXPORTS) \
a90ef4bf 18795 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18796 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18797 $(TARGET-ld))
18798@endif ld
e28c595f
JM
18799
18800
18801
a90ef4bf
JM
18802.PHONY: all-stage1-ld maybe-all-stage1-ld
18803.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18804maybe-all-stage1-ld:
18805maybe-clean-stage1-ld:
18806@if ld-bootstrap
18807maybe-all-stage1-ld: all-stage1-ld
18808all-stage1: all-stage1-ld
18809TARGET-stage1-ld = $(TARGET-ld)
18810all-stage1-ld: configure-stage1-ld
e28c595f
JM
18811 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18812 @r=`${PWD_COMMAND}`; export r; \
18813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18814 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18815 $(HOST_EXPORTS) \
a90ef4bf 18816 cd $(HOST_SUBDIR)/ld && \
05a13254 18817 \
e28c595f 18818 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18819 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18820 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18821 LIBCFLAGS="$(LIBCFLAGS)" \
18822 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18823 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18824 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18825 $(EXTRA_HOST_FLAGS) \
18826 $(STAGE1_FLAGS_TO_PASS) \
05a13254 18827 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18828 $(TARGET-stage1-ld)
e28c595f 18829
a90ef4bf
JM
18830maybe-clean-stage1-ld: clean-stage1-ld
18831clean-stage1: clean-stage1-ld
18832clean-stage1-ld:
e28c595f 18833 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18834 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18835 else \
a90ef4bf 18836 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18837 $(MAKE) stage1-start; \
18838 fi; \
a90ef4bf 18839 cd $(HOST_SUBDIR)/ld && \
e28c595f 18840 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18841 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18842@endif ld-bootstrap
e28c595f
JM
18843
18844
a90ef4bf
JM
18845.PHONY: all-stage2-ld maybe-all-stage2-ld
18846.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18847maybe-all-stage2-ld:
18848maybe-clean-stage2-ld:
18849@if ld-bootstrap
18850maybe-all-stage2-ld: all-stage2-ld
18851all-stage2: all-stage2-ld
18852TARGET-stage2-ld = $(TARGET-ld)
18853all-stage2-ld: configure-stage2-ld
e28c595f
JM
18854 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18855 @r=`${PWD_COMMAND}`; export r; \
18856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18857 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18858 $(HOST_EXPORTS) \
1f53ca9a 18859 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18860 cd $(HOST_SUBDIR)/ld && \
05a13254 18861 \
e28c595f 18862 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18863 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18864 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18865 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18866 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18867 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18868 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18869 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18870 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18871 $(TARGET-stage2-ld)
e28c595f 18872
a90ef4bf
JM
18873maybe-clean-stage2-ld: clean-stage2-ld
18874clean-stage2: clean-stage2-ld
18875clean-stage2-ld:
e28c595f 18876 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18877 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18878 else \
a90ef4bf 18879 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18880 $(MAKE) stage2-start; \
18881 fi; \
a90ef4bf 18882 cd $(HOST_SUBDIR)/ld && \
b3676d82 18883 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18884@endif ld-bootstrap
e28c595f
JM
18885
18886
a90ef4bf
JM
18887.PHONY: all-stage3-ld maybe-all-stage3-ld
18888.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18889maybe-all-stage3-ld:
18890maybe-clean-stage3-ld:
18891@if ld-bootstrap
18892maybe-all-stage3-ld: all-stage3-ld
18893all-stage3: all-stage3-ld
18894TARGET-stage3-ld = $(TARGET-ld)
18895all-stage3-ld: configure-stage3-ld
e28c595f
JM
18896 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18897 @r=`${PWD_COMMAND}`; export r; \
18898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18899 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18900 $(HOST_EXPORTS) \
1f53ca9a 18901 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18902 cd $(HOST_SUBDIR)/ld && \
05a13254 18903 \
e28c595f 18904 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18905 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18906 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18907 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18908 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18909 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18910 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18911 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18912 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18913 $(TARGET-stage3-ld)
e28c595f 18914
a90ef4bf
JM
18915maybe-clean-stage3-ld: clean-stage3-ld
18916clean-stage3: clean-stage3-ld
18917clean-stage3-ld:
e28c595f 18918 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18919 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18920 else \
a90ef4bf 18921 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18922 $(MAKE) stage3-start; \
18923 fi; \
a90ef4bf 18924 cd $(HOST_SUBDIR)/ld && \
b3676d82 18925 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18926@endif ld-bootstrap
e28c595f
JM
18927
18928
a90ef4bf
JM
18929.PHONY: all-stage4-ld maybe-all-stage4-ld
18930.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18931maybe-all-stage4-ld:
18932maybe-clean-stage4-ld:
18933@if ld-bootstrap
18934maybe-all-stage4-ld: all-stage4-ld
18935all-stage4: all-stage4-ld
18936TARGET-stage4-ld = $(TARGET-ld)
18937all-stage4-ld: configure-stage4-ld
e28c595f
JM
18938 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18939 @r=`${PWD_COMMAND}`; export r; \
18940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18941 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18942 $(HOST_EXPORTS) \
1f53ca9a 18943 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18944 cd $(HOST_SUBDIR)/ld && \
05a13254 18945 \
e28c595f 18946 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18947 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18948 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18949 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18950 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18951 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18952 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18953 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18954 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18955 $(TARGET-stage4-ld)
e28c595f 18956
a90ef4bf
JM
18957maybe-clean-stage4-ld: clean-stage4-ld
18958clean-stage4: clean-stage4-ld
18959clean-stage4-ld:
e28c595f 18960 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18961 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18962 else \
a90ef4bf 18963 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18964 $(MAKE) stage4-start; \
18965 fi; \
a90ef4bf 18966 cd $(HOST_SUBDIR)/ld && \
b3676d82 18967 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18968@endif ld-bootstrap
e28c595f
JM
18969
18970
a90ef4bf
JM
18971.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18972.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18973maybe-all-stageprofile-ld:
18974maybe-clean-stageprofile-ld:
18975@if ld-bootstrap
18976maybe-all-stageprofile-ld: all-stageprofile-ld
18977all-stageprofile: all-stageprofile-ld
18978TARGET-stageprofile-ld = $(TARGET-ld)
18979all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18980 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18981 @r=`${PWD_COMMAND}`; export r; \
18982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18983 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18984 $(HOST_EXPORTS) \
1f53ca9a 18985 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18986 cd $(HOST_SUBDIR)/ld && \
05a13254 18987 \
e28c595f 18988 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18989 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18990 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18991 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18992 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18993 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18994 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18995 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18996 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18997 $(TARGET-stageprofile-ld)
e28c595f 18998
a90ef4bf
JM
18999maybe-clean-stageprofile-ld: clean-stageprofile-ld
19000clean-stageprofile: clean-stageprofile-ld
19001clean-stageprofile-ld:
e28c595f 19002 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 19003 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19004 else \
a90ef4bf 19005 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
19006 $(MAKE) stageprofile-start; \
19007 fi; \
a90ef4bf 19008 cd $(HOST_SUBDIR)/ld && \
b3676d82 19009 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19010@endif ld-bootstrap
e28c595f
JM
19011
19012
a90ef4bf
JM
19013.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
19014.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
19015maybe-all-stagefeedback-ld:
19016maybe-clean-stagefeedback-ld:
19017@if ld-bootstrap
19018maybe-all-stagefeedback-ld: all-stagefeedback-ld
19019all-stagefeedback: all-stagefeedback-ld
19020TARGET-stagefeedback-ld = $(TARGET-ld)
19021all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
19022 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19023 @r=`${PWD_COMMAND}`; export r; \
19024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19025 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 19026 $(HOST_EXPORTS) \
1f53ca9a 19027 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19028 cd $(HOST_SUBDIR)/ld && \
05a13254 19029 \
e28c595f 19030 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19031 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 19032 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
19033 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19034 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19035 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19036 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19037 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19038 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 19039 $(TARGET-stagefeedback-ld)
e28c595f 19040
a90ef4bf
JM
19041maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
19042clean-stagefeedback: clean-stagefeedback-ld
19043clean-stagefeedback-ld:
e28c595f 19044 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 19045 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19046 else \
a90ef4bf 19047 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
19048 $(MAKE) stagefeedback-start; \
19049 fi; \
a90ef4bf 19050 cd $(HOST_SUBDIR)/ld && \
b3676d82 19051 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19052@endif ld-bootstrap
e28c595f
JM
19053
19054
19055
19056
19057
a90ef4bf
JM
19058.PHONY: check-ld maybe-check-ld
19059maybe-check-ld:
19060@if ld
19061maybe-check-ld: check-ld
e28c595f 19062
a90ef4bf 19063check-ld:
e28c595f
JM
19064 @: $(MAKE); $(unstage)
19065 @r=`${PWD_COMMAND}`; export r; \
19066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19067 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 19068 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 19069 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 19070
a90ef4bf 19071@endif ld
e28c595f 19072
a90ef4bf
JM
19073.PHONY: install-ld maybe-install-ld
19074maybe-install-ld:
19075@if ld
19076maybe-install-ld: install-ld
e28c595f 19077
a90ef4bf
JM
19078install-ld: installdirs
19079 @: $(MAKE); $(unstage)
19080 @r=`${PWD_COMMAND}`; export r; \
19081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19082 $(HOST_EXPORTS) \
19083 (cd $(HOST_SUBDIR)/ld && \
19084 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 19085
a90ef4bf 19086@endif ld
e28c595f 19087
a90ef4bf
JM
19088.PHONY: install-strip-ld maybe-install-strip-ld
19089maybe-install-strip-ld:
19090@if ld
19091maybe-install-strip-ld: install-strip-ld
9b980aa1 19092
a90ef4bf
JM
19093install-strip-ld: installdirs
19094 @: $(MAKE); $(unstage)
19095 @r=`${PWD_COMMAND}`; export r; \
19096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19097 $(HOST_EXPORTS) \
19098 (cd $(HOST_SUBDIR)/ld && \
19099 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 19100
a90ef4bf 19101@endif ld
9b980aa1 19102
e28c595f
JM
19103# Other targets (info, dvi, pdf, etc.)
19104
a90ef4bf
JM
19105.PHONY: maybe-info-ld info-ld
19106maybe-info-ld:
19107@if ld
19108maybe-info-ld: info-ld
e28c595f 19109
a90ef4bf
JM
19110info-ld: \
19111 configure-ld
19112 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19113 r=`${PWD_COMMAND}`; export r; \
19114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19115 $(HOST_EXPORTS) \
19116 for flag in $(EXTRA_HOST_FLAGS) ; do \
19117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19118 done; \
22121df0 19119 echo "Doing info in ld"; \
a90ef4bf 19120 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19123 "RANLIB=$${RANLIB}" \
19124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19125 info) \
19126 || exit 1
19127
a90ef4bf 19128@endif ld
e28c595f 19129
a90ef4bf
JM
19130.PHONY: maybe-dvi-ld dvi-ld
19131maybe-dvi-ld:
19132@if ld
19133maybe-dvi-ld: dvi-ld
e28c595f 19134
a90ef4bf
JM
19135dvi-ld: \
19136 configure-ld
19137 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19138 r=`${PWD_COMMAND}`; export r; \
19139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19140 $(HOST_EXPORTS) \
19141 for flag in $(EXTRA_HOST_FLAGS) ; do \
19142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19143 done; \
22121df0 19144 echo "Doing dvi in ld"; \
a90ef4bf 19145 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19148 "RANLIB=$${RANLIB}" \
19149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19150 dvi) \
19151 || exit 1
19152
a90ef4bf 19153@endif ld
e28c595f 19154
a90ef4bf
JM
19155.PHONY: maybe-pdf-ld pdf-ld
19156maybe-pdf-ld:
19157@if ld
19158maybe-pdf-ld: pdf-ld
e28c595f 19159
a90ef4bf
JM
19160pdf-ld: \
19161 configure-ld
19162 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19163 r=`${PWD_COMMAND}`; export r; \
19164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19165 $(HOST_EXPORTS) \
19166 for flag in $(EXTRA_HOST_FLAGS) ; do \
19167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19168 done; \
22121df0 19169 echo "Doing pdf in ld"; \
a90ef4bf 19170 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19173 "RANLIB=$${RANLIB}" \
19174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19175 pdf) \
19176 || exit 1
19177
a90ef4bf 19178@endif ld
e28c595f 19179
a90ef4bf
JM
19180.PHONY: maybe-html-ld html-ld
19181maybe-html-ld:
19182@if ld
19183maybe-html-ld: html-ld
e28c595f 19184
a90ef4bf
JM
19185html-ld: \
19186 configure-ld
19187 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19188 r=`${PWD_COMMAND}`; export r; \
19189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19190 $(HOST_EXPORTS) \
19191 for flag in $(EXTRA_HOST_FLAGS) ; do \
19192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19193 done; \
22121df0 19194 echo "Doing html in ld"; \
a90ef4bf 19195 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19198 "RANLIB=$${RANLIB}" \
19199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19200 html) \
19201 || exit 1
19202
a90ef4bf 19203@endif ld
e28c595f 19204
a90ef4bf
JM
19205.PHONY: maybe-TAGS-ld TAGS-ld
19206maybe-TAGS-ld:
19207@if ld
19208maybe-TAGS-ld: TAGS-ld
e28c595f 19209
a90ef4bf
JM
19210TAGS-ld: \
19211 configure-ld
19212 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19213 r=`${PWD_COMMAND}`; export r; \
19214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19215 $(HOST_EXPORTS) \
19216 for flag in $(EXTRA_HOST_FLAGS) ; do \
19217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19218 done; \
22121df0 19219 echo "Doing TAGS in ld"; \
a90ef4bf 19220 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19223 "RANLIB=$${RANLIB}" \
19224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19225 TAGS) \
19226 || exit 1
19227
a90ef4bf 19228@endif ld
e28c595f 19229
a90ef4bf
JM
19230.PHONY: maybe-install-info-ld install-info-ld
19231maybe-install-info-ld:
19232@if ld
19233maybe-install-info-ld: install-info-ld
e28c595f 19234
a90ef4bf
JM
19235install-info-ld: \
19236 configure-ld \
19237 info-ld
19238 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19239 r=`${PWD_COMMAND}`; export r; \
19240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19241 $(HOST_EXPORTS) \
19242 for flag in $(EXTRA_HOST_FLAGS) ; do \
19243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19244 done; \
22121df0 19245 echo "Doing install-info in ld"; \
a90ef4bf 19246 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19249 "RANLIB=$${RANLIB}" \
19250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19251 install-info) \
19252 || exit 1
19253
a90ef4bf 19254@endif ld
e28c595f 19255
a90ef4bf
JM
19256.PHONY: maybe-install-pdf-ld install-pdf-ld
19257maybe-install-pdf-ld:
19258@if ld
19259maybe-install-pdf-ld: install-pdf-ld
e28c595f 19260
a90ef4bf
JM
19261install-pdf-ld: \
19262 configure-ld \
19263 pdf-ld
19264 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19265 r=`${PWD_COMMAND}`; export r; \
19266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19267 $(HOST_EXPORTS) \
19268 for flag in $(EXTRA_HOST_FLAGS) ; do \
19269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19270 done; \
22121df0 19271 echo "Doing install-pdf in ld"; \
a90ef4bf 19272 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19275 "RANLIB=$${RANLIB}" \
19276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19277 install-pdf) \
19278 || exit 1
19279
a90ef4bf 19280@endif ld
e28c595f 19281
a90ef4bf
JM
19282.PHONY: maybe-install-html-ld install-html-ld
19283maybe-install-html-ld:
19284@if ld
19285maybe-install-html-ld: install-html-ld
e28c595f 19286
a90ef4bf
JM
19287install-html-ld: \
19288 configure-ld \
19289 html-ld
19290 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19291 r=`${PWD_COMMAND}`; export r; \
19292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19293 $(HOST_EXPORTS) \
19294 for flag in $(EXTRA_HOST_FLAGS) ; do \
19295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19296 done; \
22121df0 19297 echo "Doing install-html in ld"; \
a90ef4bf 19298 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19301 "RANLIB=$${RANLIB}" \
19302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19303 install-html) \
19304 || exit 1
19305
a90ef4bf 19306@endif ld
e28c595f 19307
a90ef4bf
JM
19308.PHONY: maybe-installcheck-ld installcheck-ld
19309maybe-installcheck-ld:
19310@if ld
19311maybe-installcheck-ld: installcheck-ld
e28c595f 19312
a90ef4bf
JM
19313installcheck-ld: \
19314 configure-ld
19315 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19316 r=`${PWD_COMMAND}`; export r; \
19317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19318 $(HOST_EXPORTS) \
19319 for flag in $(EXTRA_HOST_FLAGS) ; do \
19320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19321 done; \
22121df0 19322 echo "Doing installcheck in ld"; \
a90ef4bf 19323 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19326 "RANLIB=$${RANLIB}" \
0c24b341 19327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19328 installcheck) \
19329 || exit 1
19330
a90ef4bf 19331@endif ld
4b900473 19332
a90ef4bf
JM
19333.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19334maybe-mostlyclean-ld:
19335@if ld
19336maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19337
a90ef4bf
JM
19338mostlyclean-ld:
19339 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19340 r=`${PWD_COMMAND}`; export r; \
19341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19342 $(HOST_EXPORTS) \
19343 for flag in $(EXTRA_HOST_FLAGS) ; do \
19344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19345 done; \
22121df0 19346 echo "Doing mostlyclean in ld"; \
a90ef4bf 19347 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19350 "RANLIB=$${RANLIB}" \
0c24b341 19351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19352 mostlyclean) \
19353 || exit 1
19354
a90ef4bf 19355@endif ld
4b900473 19356
a90ef4bf
JM
19357.PHONY: maybe-clean-ld clean-ld
19358maybe-clean-ld:
19359@if ld
19360maybe-clean-ld: clean-ld
4b900473 19361
a90ef4bf
JM
19362clean-ld:
19363 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19364 r=`${PWD_COMMAND}`; export r; \
19365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19366 $(HOST_EXPORTS) \
19367 for flag in $(EXTRA_HOST_FLAGS) ; do \
19368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19369 done; \
22121df0 19370 echo "Doing clean in ld"; \
a90ef4bf 19371 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19374 "RANLIB=$${RANLIB}" \
0c24b341 19375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19376 clean) \
19377 || exit 1
19378
a90ef4bf 19379@endif ld
4b900473 19380
a90ef4bf
JM
19381.PHONY: maybe-distclean-ld distclean-ld
19382maybe-distclean-ld:
19383@if ld
19384maybe-distclean-ld: distclean-ld
4b900473 19385
a90ef4bf
JM
19386distclean-ld:
19387 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19388 r=`${PWD_COMMAND}`; export r; \
19389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19390 $(HOST_EXPORTS) \
19391 for flag in $(EXTRA_HOST_FLAGS) ; do \
19392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19393 done; \
22121df0 19394 echo "Doing distclean in ld"; \
a90ef4bf 19395 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19398 "RANLIB=$${RANLIB}" \
0c24b341 19399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19400 distclean) \
19401 || exit 1
19402
a90ef4bf 19403@endif ld
4b900473 19404
a90ef4bf
JM
19405.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19406maybe-maintainer-clean-ld:
19407@if ld
19408maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19409
a90ef4bf
JM
19410maintainer-clean-ld:
19411 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19412 r=`${PWD_COMMAND}`; export r; \
19413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19414 $(HOST_EXPORTS) \
19415 for flag in $(EXTRA_HOST_FLAGS) ; do \
19416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19417 done; \
22121df0 19418 echo "Doing maintainer-clean in ld"; \
a90ef4bf 19419 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19422 "RANLIB=$${RANLIB}" \
0c24b341 19423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19424 maintainer-clean) \
19425 || exit 1
19426
a90ef4bf 19427@endif ld
4b900473
PB
19428
19429
19430
2bf680c4
ILT
19431.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19432maybe-configure-libbacktrace:
19433@if gcc-bootstrap
19434configure-libbacktrace: stage_current
19435@endif gcc-bootstrap
19436@if libbacktrace
19437maybe-configure-libbacktrace: configure-libbacktrace
19438configure-libbacktrace:
19439 @r=`${PWD_COMMAND}`; export r; \
19440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19441 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19442 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19443 $(HOST_EXPORTS) \
19444 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19445 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19446 case $(srcdir) in \
19447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19448 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19450 esac; \
1b6c0831
L
19451 module_srcdir=libbacktrace; \
19452 $(SHELL) \
19453 $$s/$$module_srcdir/configure \
19454 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19455 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19456 --target=${target_alias} \
2bf680c4
ILT
19457 || exit 1
19458@endif libbacktrace
19459
19460
19461
19462.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19463maybe-configure-stage1-libbacktrace:
19464@if libbacktrace-bootstrap
19465maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19466configure-stage1-libbacktrace:
19467 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19468 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19469 @r=`${PWD_COMMAND}`; export r; \
19470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19471 TFLAGS="$(STAGE1_TFLAGS)"; \
19472 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19473 $(HOST_EXPORTS) \
19474 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19475 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19476 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19477 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19478 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19479 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19480 case $(srcdir) in \
19481 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19482 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19483 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19484 esac; \
1b6c0831
L
19485 module_srcdir=libbacktrace; \
19486 $(SHELL) $$s/$$module_srcdir/configure \
19487 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19488 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19489 --target=${target_alias} \
19490 \
2bf680c4
ILT
19491 $(STAGE1_CONFIGURE_FLAGS)
19492@endif libbacktrace-bootstrap
19493
19494.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19495maybe-configure-stage2-libbacktrace:
19496@if libbacktrace-bootstrap
19497maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19498configure-stage2-libbacktrace:
19499 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19500 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19501 @r=`${PWD_COMMAND}`; export r; \
19502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19503 TFLAGS="$(STAGE2_TFLAGS)"; \
19504 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19505 $(HOST_EXPORTS) \
19506 $(POSTSTAGE1_HOST_EXPORTS) \
19507 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19508 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19509 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19510 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19511 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19512 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19513 case $(srcdir) in \
19514 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19515 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19516 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19517 esac; \
1b6c0831
L
19518 module_srcdir=libbacktrace; \
19519 $(SHELL) $$s/$$module_srcdir/configure \
19520 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19521 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19522 --target=${target_alias} \
22121df0 19523 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19524 $(STAGE2_CONFIGURE_FLAGS)
19525@endif libbacktrace-bootstrap
19526
19527.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19528maybe-configure-stage3-libbacktrace:
19529@if libbacktrace-bootstrap
19530maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19531configure-stage3-libbacktrace:
19532 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19533 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19534 @r=`${PWD_COMMAND}`; export r; \
19535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19536 TFLAGS="$(STAGE3_TFLAGS)"; \
19537 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19538 $(HOST_EXPORTS) \
19539 $(POSTSTAGE1_HOST_EXPORTS) \
19540 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19541 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19542 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19543 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19544 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19545 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19546 case $(srcdir) in \
19547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19548 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19550 esac; \
1b6c0831
L
19551 module_srcdir=libbacktrace; \
19552 $(SHELL) $$s/$$module_srcdir/configure \
19553 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19554 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19555 --target=${target_alias} \
22121df0 19556 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19557 $(STAGE3_CONFIGURE_FLAGS)
19558@endif libbacktrace-bootstrap
19559
19560.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19561maybe-configure-stage4-libbacktrace:
19562@if libbacktrace-bootstrap
19563maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19564configure-stage4-libbacktrace:
19565 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19566 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19567 @r=`${PWD_COMMAND}`; export r; \
19568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19569 TFLAGS="$(STAGE4_TFLAGS)"; \
19570 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19571 $(HOST_EXPORTS) \
19572 $(POSTSTAGE1_HOST_EXPORTS) \
19573 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19574 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19575 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19576 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19577 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19578 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19579 case $(srcdir) in \
19580 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19581 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19582 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19583 esac; \
1b6c0831
L
19584 module_srcdir=libbacktrace; \
19585 $(SHELL) $$s/$$module_srcdir/configure \
19586 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19588 --target=${target_alias} \
22121df0 19589 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19590 $(STAGE4_CONFIGURE_FLAGS)
19591@endif libbacktrace-bootstrap
19592
19593.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19594maybe-configure-stageprofile-libbacktrace:
19595@if libbacktrace-bootstrap
19596maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19597configure-stageprofile-libbacktrace:
19598 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19599 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19600 @r=`${PWD_COMMAND}`; export r; \
19601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19602 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19603 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19604 $(HOST_EXPORTS) \
19605 $(POSTSTAGE1_HOST_EXPORTS) \
19606 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19607 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19608 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19609 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19610 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19611 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19612 case $(srcdir) in \
19613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19614 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19616 esac; \
1b6c0831
L
19617 module_srcdir=libbacktrace; \
19618 $(SHELL) $$s/$$module_srcdir/configure \
19619 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19620 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19621 --target=${target_alias} \
22121df0 19622 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19623 $(STAGEprofile_CONFIGURE_FLAGS)
19624@endif libbacktrace-bootstrap
19625
19626.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19627maybe-configure-stagefeedback-libbacktrace:
19628@if libbacktrace-bootstrap
19629maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19630configure-stagefeedback-libbacktrace:
19631 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19632 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19633 @r=`${PWD_COMMAND}`; export r; \
19634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19635 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19636 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19637 $(HOST_EXPORTS) \
19638 $(POSTSTAGE1_HOST_EXPORTS) \
19639 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19640 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19641 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19642 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19643 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19644 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19645 case $(srcdir) in \
19646 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19647 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19648 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19649 esac; \
1b6c0831
L
19650 module_srcdir=libbacktrace; \
19651 $(SHELL) $$s/$$module_srcdir/configure \
19652 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19653 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19654 --target=${target_alias} \
22121df0 19655 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19656 $(STAGEfeedback_CONFIGURE_FLAGS)
19657@endif libbacktrace-bootstrap
19658
19659
19660
19661
19662
19663.PHONY: all-libbacktrace maybe-all-libbacktrace
19664maybe-all-libbacktrace:
19665@if gcc-bootstrap
19666all-libbacktrace: stage_current
19667@endif gcc-bootstrap
19668@if libbacktrace
19669TARGET-libbacktrace=all
19670maybe-all-libbacktrace: all-libbacktrace
19671all-libbacktrace: configure-libbacktrace
19672 @r=`${PWD_COMMAND}`; export r; \
19673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19674 $(HOST_EXPORTS) \
19675 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19676 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19677 $(TARGET-libbacktrace))
19678@endif libbacktrace
19679
19680
19681
19682.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19683.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19684maybe-all-stage1-libbacktrace:
19685maybe-clean-stage1-libbacktrace:
19686@if libbacktrace-bootstrap
19687maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19688all-stage1: all-stage1-libbacktrace
19689TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19690all-stage1-libbacktrace: configure-stage1-libbacktrace
19691 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19692 @r=`${PWD_COMMAND}`; export r; \
19693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19694 TFLAGS="$(STAGE1_TFLAGS)"; \
19695 $(HOST_EXPORTS) \
19696 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19697 \
2bf680c4
ILT
19698 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19699 CFLAGS="$(STAGE1_CFLAGS)" \
19700 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19701 LIBCFLAGS="$(LIBCFLAGS)" \
19702 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19703 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19704 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19705 $(EXTRA_HOST_FLAGS) \
19706 $(STAGE1_FLAGS_TO_PASS) \
05a13254 19707 TFLAGS="$(STAGE1_TFLAGS)" \
2bf680c4
ILT
19708 $(TARGET-stage1-libbacktrace)
19709
19710maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19711clean-stage1: clean-stage1-libbacktrace
19712clean-stage1-libbacktrace:
19713 @if [ $(current_stage) = stage1 ]; then \
19714 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19715 else \
19716 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19717 $(MAKE) stage1-start; \
19718 fi; \
19719 cd $(HOST_SUBDIR)/libbacktrace && \
19720 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19721 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19722@endif libbacktrace-bootstrap
19723
19724
19725.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19726.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19727maybe-all-stage2-libbacktrace:
19728maybe-clean-stage2-libbacktrace:
19729@if libbacktrace-bootstrap
19730maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19731all-stage2: all-stage2-libbacktrace
19732TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19733all-stage2-libbacktrace: configure-stage2-libbacktrace
19734 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19735 @r=`${PWD_COMMAND}`; export r; \
19736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19737 TFLAGS="$(STAGE2_TFLAGS)"; \
19738 $(HOST_EXPORTS) \
19739 $(POSTSTAGE1_HOST_EXPORTS) \
19740 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19741 \
2bf680c4
ILT
19742 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19743 CFLAGS="$(STAGE2_CFLAGS)" \
19744 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19745 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19746 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19747 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19748 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19749 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19750 TFLAGS="$(STAGE2_TFLAGS)" \
2bf680c4
ILT
19751 $(TARGET-stage2-libbacktrace)
19752
19753maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19754clean-stage2: clean-stage2-libbacktrace
19755clean-stage2-libbacktrace:
19756 @if [ $(current_stage) = stage2 ]; then \
19757 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19758 else \
19759 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19760 $(MAKE) stage2-start; \
19761 fi; \
19762 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19763 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19764@endif libbacktrace-bootstrap
19765
19766
19767.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19768.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19769maybe-all-stage3-libbacktrace:
19770maybe-clean-stage3-libbacktrace:
19771@if libbacktrace-bootstrap
19772maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19773all-stage3: all-stage3-libbacktrace
19774TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19775all-stage3-libbacktrace: configure-stage3-libbacktrace
19776 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19777 @r=`${PWD_COMMAND}`; export r; \
19778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19779 TFLAGS="$(STAGE3_TFLAGS)"; \
19780 $(HOST_EXPORTS) \
19781 $(POSTSTAGE1_HOST_EXPORTS) \
19782 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19783 \
2bf680c4
ILT
19784 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19785 CFLAGS="$(STAGE3_CFLAGS)" \
19786 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19787 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19788 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19789 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19790 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19791 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19792 TFLAGS="$(STAGE3_TFLAGS)" \
2bf680c4
ILT
19793 $(TARGET-stage3-libbacktrace)
19794
19795maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19796clean-stage3: clean-stage3-libbacktrace
19797clean-stage3-libbacktrace:
19798 @if [ $(current_stage) = stage3 ]; then \
19799 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19800 else \
19801 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19802 $(MAKE) stage3-start; \
19803 fi; \
19804 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19805 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19806@endif libbacktrace-bootstrap
19807
19808
19809.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19810.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19811maybe-all-stage4-libbacktrace:
19812maybe-clean-stage4-libbacktrace:
19813@if libbacktrace-bootstrap
19814maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19815all-stage4: all-stage4-libbacktrace
19816TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19817all-stage4-libbacktrace: configure-stage4-libbacktrace
19818 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19819 @r=`${PWD_COMMAND}`; export r; \
19820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19821 TFLAGS="$(STAGE4_TFLAGS)"; \
19822 $(HOST_EXPORTS) \
19823 $(POSTSTAGE1_HOST_EXPORTS) \
19824 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19825 \
2bf680c4
ILT
19826 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19827 CFLAGS="$(STAGE4_CFLAGS)" \
19828 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19829 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19830 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19831 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19832 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19833 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19834 TFLAGS="$(STAGE4_TFLAGS)" \
2bf680c4
ILT
19835 $(TARGET-stage4-libbacktrace)
19836
19837maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19838clean-stage4: clean-stage4-libbacktrace
19839clean-stage4-libbacktrace:
19840 @if [ $(current_stage) = stage4 ]; then \
19841 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19842 else \
19843 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19844 $(MAKE) stage4-start; \
19845 fi; \
19846 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19847 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19848@endif libbacktrace-bootstrap
19849
19850
19851.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19852.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19853maybe-all-stageprofile-libbacktrace:
19854maybe-clean-stageprofile-libbacktrace:
19855@if libbacktrace-bootstrap
19856maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19857all-stageprofile: all-stageprofile-libbacktrace
19858TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19859all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19860 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19861 @r=`${PWD_COMMAND}`; export r; \
19862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19863 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19864 $(HOST_EXPORTS) \
19865 $(POSTSTAGE1_HOST_EXPORTS) \
19866 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19867 \
2bf680c4
ILT
19868 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19869 CFLAGS="$(STAGEprofile_CFLAGS)" \
19870 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19871 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19872 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19873 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19874 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19875 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19876 TFLAGS="$(STAGEprofile_TFLAGS)" \
2bf680c4
ILT
19877 $(TARGET-stageprofile-libbacktrace)
19878
19879maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19880clean-stageprofile: clean-stageprofile-libbacktrace
19881clean-stageprofile-libbacktrace:
19882 @if [ $(current_stage) = stageprofile ]; then \
19883 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19884 else \
19885 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19886 $(MAKE) stageprofile-start; \
19887 fi; \
19888 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19889 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19890@endif libbacktrace-bootstrap
19891
19892
19893.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19894.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19895maybe-all-stagefeedback-libbacktrace:
19896maybe-clean-stagefeedback-libbacktrace:
19897@if libbacktrace-bootstrap
19898maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19899all-stagefeedback: all-stagefeedback-libbacktrace
19900TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19901all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19902 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19903 @r=`${PWD_COMMAND}`; export r; \
19904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19905 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19906 $(HOST_EXPORTS) \
19907 $(POSTSTAGE1_HOST_EXPORTS) \
19908 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19909 \
2bf680c4
ILT
19910 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19911 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19912 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19913 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19914 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19915 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19916 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19917 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19918 TFLAGS="$(STAGEfeedback_TFLAGS)" \
2bf680c4
ILT
19919 $(TARGET-stagefeedback-libbacktrace)
19920
19921maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19922clean-stagefeedback: clean-stagefeedback-libbacktrace
19923clean-stagefeedback-libbacktrace:
19924 @if [ $(current_stage) = stagefeedback ]; then \
19925 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19926 else \
19927 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19928 $(MAKE) stagefeedback-start; \
19929 fi; \
19930 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19931 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19932@endif libbacktrace-bootstrap
19933
19934
19935
19936
19937
19938.PHONY: check-libbacktrace maybe-check-libbacktrace
19939maybe-check-libbacktrace:
19940@if libbacktrace
19941maybe-check-libbacktrace: check-libbacktrace
19942
19943check-libbacktrace:
19944 @: $(MAKE); $(unstage)
19945 @r=`${PWD_COMMAND}`; export r; \
19946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19947 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19948 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19949 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19950
19951@endif libbacktrace
19952
19953.PHONY: install-libbacktrace maybe-install-libbacktrace
19954maybe-install-libbacktrace:
19955@if libbacktrace
19956maybe-install-libbacktrace: install-libbacktrace
19957
19958install-libbacktrace: installdirs
19959 @: $(MAKE); $(unstage)
19960 @r=`${PWD_COMMAND}`; export r; \
19961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19962 $(HOST_EXPORTS) \
19963 (cd $(HOST_SUBDIR)/libbacktrace && \
19964 $(MAKE) $(FLAGS_TO_PASS) install)
19965
19966@endif libbacktrace
19967
19968.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19969maybe-install-strip-libbacktrace:
19970@if libbacktrace
19971maybe-install-strip-libbacktrace: install-strip-libbacktrace
19972
19973install-strip-libbacktrace: installdirs
19974 @: $(MAKE); $(unstage)
19975 @r=`${PWD_COMMAND}`; export r; \
19976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19977 $(HOST_EXPORTS) \
19978 (cd $(HOST_SUBDIR)/libbacktrace && \
19979 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19980
19981@endif libbacktrace
19982
19983# Other targets (info, dvi, pdf, etc.)
19984
19985.PHONY: maybe-info-libbacktrace info-libbacktrace
19986maybe-info-libbacktrace:
19987@if libbacktrace
19988maybe-info-libbacktrace: info-libbacktrace
19989
19990info-libbacktrace: \
19991 configure-libbacktrace
19992 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19993 r=`${PWD_COMMAND}`; export r; \
19994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19995 $(HOST_EXPORTS) \
19996 for flag in $(EXTRA_HOST_FLAGS) ; do \
19997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19998 done; \
22121df0 19999 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
20000 (cd $(HOST_SUBDIR)/libbacktrace && \
20001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20003 "RANLIB=$${RANLIB}" \
20004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20005 info) \
20006 || exit 1
20007
20008@endif libbacktrace
20009
20010.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
20011maybe-dvi-libbacktrace:
20012@if libbacktrace
20013maybe-dvi-libbacktrace: dvi-libbacktrace
20014
20015dvi-libbacktrace: \
20016 configure-libbacktrace
20017 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20018 r=`${PWD_COMMAND}`; export r; \
20019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20020 $(HOST_EXPORTS) \
20021 for flag in $(EXTRA_HOST_FLAGS) ; do \
20022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20023 done; \
22121df0 20024 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
20025 (cd $(HOST_SUBDIR)/libbacktrace && \
20026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20028 "RANLIB=$${RANLIB}" \
20029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20030 dvi) \
20031 || exit 1
20032
20033@endif libbacktrace
20034
20035.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
20036maybe-pdf-libbacktrace:
20037@if libbacktrace
20038maybe-pdf-libbacktrace: pdf-libbacktrace
20039
20040pdf-libbacktrace: \
20041 configure-libbacktrace
20042 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20043 r=`${PWD_COMMAND}`; export r; \
20044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20045 $(HOST_EXPORTS) \
20046 for flag in $(EXTRA_HOST_FLAGS) ; do \
20047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20048 done; \
22121df0 20049 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
20050 (cd $(HOST_SUBDIR)/libbacktrace && \
20051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20053 "RANLIB=$${RANLIB}" \
20054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20055 pdf) \
20056 || exit 1
20057
20058@endif libbacktrace
20059
20060.PHONY: maybe-html-libbacktrace html-libbacktrace
20061maybe-html-libbacktrace:
20062@if libbacktrace
20063maybe-html-libbacktrace: html-libbacktrace
20064
20065html-libbacktrace: \
20066 configure-libbacktrace
20067 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20068 r=`${PWD_COMMAND}`; export r; \
20069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20070 $(HOST_EXPORTS) \
20071 for flag in $(EXTRA_HOST_FLAGS) ; do \
20072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20073 done; \
22121df0 20074 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
20075 (cd $(HOST_SUBDIR)/libbacktrace && \
20076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20078 "RANLIB=$${RANLIB}" \
20079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20080 html) \
20081 || exit 1
20082
20083@endif libbacktrace
20084
20085.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
20086maybe-TAGS-libbacktrace:
20087@if libbacktrace
20088maybe-TAGS-libbacktrace: TAGS-libbacktrace
20089
20090TAGS-libbacktrace: \
20091 configure-libbacktrace
20092 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20093 r=`${PWD_COMMAND}`; export r; \
20094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20095 $(HOST_EXPORTS) \
20096 for flag in $(EXTRA_HOST_FLAGS) ; do \
20097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20098 done; \
22121df0 20099 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
20100 (cd $(HOST_SUBDIR)/libbacktrace && \
20101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20103 "RANLIB=$${RANLIB}" \
20104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20105 TAGS) \
20106 || exit 1
20107
20108@endif libbacktrace
20109
20110.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
20111maybe-install-info-libbacktrace:
20112@if libbacktrace
20113maybe-install-info-libbacktrace: install-info-libbacktrace
20114
20115install-info-libbacktrace: \
20116 configure-libbacktrace \
20117 info-libbacktrace
20118 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20119 r=`${PWD_COMMAND}`; export r; \
20120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20121 $(HOST_EXPORTS) \
20122 for flag in $(EXTRA_HOST_FLAGS) ; do \
20123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20124 done; \
22121df0 20125 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
20126 (cd $(HOST_SUBDIR)/libbacktrace && \
20127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20129 "RANLIB=$${RANLIB}" \
20130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20131 install-info) \
20132 || exit 1
20133
20134@endif libbacktrace
20135
20136.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20137maybe-install-pdf-libbacktrace:
20138@if libbacktrace
20139maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20140
20141install-pdf-libbacktrace: \
20142 configure-libbacktrace \
20143 pdf-libbacktrace
20144 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20145 r=`${PWD_COMMAND}`; export r; \
20146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20147 $(HOST_EXPORTS) \
20148 for flag in $(EXTRA_HOST_FLAGS) ; do \
20149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20150 done; \
22121df0 20151 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20152 (cd $(HOST_SUBDIR)/libbacktrace && \
20153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20155 "RANLIB=$${RANLIB}" \
20156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20157 install-pdf) \
20158 || exit 1
20159
20160@endif libbacktrace
20161
20162.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20163maybe-install-html-libbacktrace:
20164@if libbacktrace
20165maybe-install-html-libbacktrace: install-html-libbacktrace
20166
20167install-html-libbacktrace: \
20168 configure-libbacktrace \
20169 html-libbacktrace
20170 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20171 r=`${PWD_COMMAND}`; export r; \
20172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20173 $(HOST_EXPORTS) \
20174 for flag in $(EXTRA_HOST_FLAGS) ; do \
20175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20176 done; \
22121df0 20177 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
20178 (cd $(HOST_SUBDIR)/libbacktrace && \
20179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20181 "RANLIB=$${RANLIB}" \
20182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20183 install-html) \
20184 || exit 1
20185
20186@endif libbacktrace
20187
20188.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20189maybe-installcheck-libbacktrace:
20190@if libbacktrace
20191maybe-installcheck-libbacktrace: installcheck-libbacktrace
20192
20193installcheck-libbacktrace: \
20194 configure-libbacktrace
20195 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20196 r=`${PWD_COMMAND}`; export r; \
20197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20198 $(HOST_EXPORTS) \
20199 for flag in $(EXTRA_HOST_FLAGS) ; do \
20200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20201 done; \
22121df0 20202 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20203 (cd $(HOST_SUBDIR)/libbacktrace && \
20204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20206 "RANLIB=$${RANLIB}" \
20207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20208 installcheck) \
20209 || exit 1
20210
20211@endif libbacktrace
20212
20213.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20214maybe-mostlyclean-libbacktrace:
20215@if libbacktrace
20216maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20217
20218mostlyclean-libbacktrace:
20219 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20220 r=`${PWD_COMMAND}`; export r; \
20221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20222 $(HOST_EXPORTS) \
20223 for flag in $(EXTRA_HOST_FLAGS) ; do \
20224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20225 done; \
22121df0 20226 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20227 (cd $(HOST_SUBDIR)/libbacktrace && \
20228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20230 "RANLIB=$${RANLIB}" \
20231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20232 mostlyclean) \
20233 || exit 1
20234
20235@endif libbacktrace
20236
20237.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20238maybe-clean-libbacktrace:
20239@if libbacktrace
20240maybe-clean-libbacktrace: clean-libbacktrace
20241
20242clean-libbacktrace:
20243 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20244 r=`${PWD_COMMAND}`; export r; \
20245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20246 $(HOST_EXPORTS) \
20247 for flag in $(EXTRA_HOST_FLAGS) ; do \
20248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20249 done; \
22121df0 20250 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20251 (cd $(HOST_SUBDIR)/libbacktrace && \
20252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20254 "RANLIB=$${RANLIB}" \
20255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20256 clean) \
20257 || exit 1
20258
20259@endif libbacktrace
20260
20261.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20262maybe-distclean-libbacktrace:
20263@if libbacktrace
20264maybe-distclean-libbacktrace: distclean-libbacktrace
20265
20266distclean-libbacktrace:
20267 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20268 r=`${PWD_COMMAND}`; export r; \
20269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20270 $(HOST_EXPORTS) \
20271 for flag in $(EXTRA_HOST_FLAGS) ; do \
20272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20273 done; \
22121df0 20274 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20275 (cd $(HOST_SUBDIR)/libbacktrace && \
20276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20278 "RANLIB=$${RANLIB}" \
20279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20280 distclean) \
20281 || exit 1
20282
20283@endif libbacktrace
20284
20285.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20286maybe-maintainer-clean-libbacktrace:
20287@if libbacktrace
20288maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20289
20290maintainer-clean-libbacktrace:
20291 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20292 r=`${PWD_COMMAND}`; export r; \
20293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20294 $(HOST_EXPORTS) \
20295 for flag in $(EXTRA_HOST_FLAGS) ; do \
20296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20297 done; \
22121df0 20298 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20299 (cd $(HOST_SUBDIR)/libbacktrace && \
20300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20302 "RANLIB=$${RANLIB}" \
20303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20304 maintainer-clean) \
20305 || exit 1
20306
20307@endif libbacktrace
20308
20309
20310
a90ef4bf
JM
20311.PHONY: configure-libcpp maybe-configure-libcpp
20312maybe-configure-libcpp:
4b900473 20313@if gcc-bootstrap
a90ef4bf 20314configure-libcpp: stage_current
4b900473 20315@endif gcc-bootstrap
a90ef4bf
JM
20316@if libcpp
20317maybe-configure-libcpp: configure-libcpp
20318configure-libcpp:
4b900473
PB
20319 @r=`${PWD_COMMAND}`; export r; \
20320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20321 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20322 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20323 $(HOST_EXPORTS) \
20324 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20325 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20326 case $(srcdir) in \
20327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20328 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20330 esac; \
1b6c0831
L
20331 module_srcdir=libcpp; \
20332 $(SHELL) \
20333 $$s/$$module_srcdir/configure \
20334 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20335 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20336 --target=${target_alias} \
4b900473 20337 || exit 1
a90ef4bf 20338@endif libcpp
4b900473
PB
20339
20340
20341
a90ef4bf
JM
20342.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20343maybe-configure-stage1-libcpp:
20344@if libcpp-bootstrap
20345maybe-configure-stage1-libcpp: configure-stage1-libcpp
20346configure-stage1-libcpp:
4b900473 20347 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20348 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20349 @r=`${PWD_COMMAND}`; export r; \
20350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20351 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20352 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20353 $(HOST_EXPORTS) \
8ee82aff 20354 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20355 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20356 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20357 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20358 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20359 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20360 case $(srcdir) in \
20361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20362 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20364 esac; \
1b6c0831
L
20365 module_srcdir=libcpp; \
20366 $(SHELL) $$s/$$module_srcdir/configure \
20367 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20368 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20369 --target=${target_alias} \
20370 \
a90ef4bf
JM
20371 $(STAGE1_CONFIGURE_FLAGS)
20372@endif libcpp-bootstrap
e28c595f 20373
a90ef4bf
JM
20374.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20375maybe-configure-stage2-libcpp:
20376@if libcpp-bootstrap
20377maybe-configure-stage2-libcpp: configure-stage2-libcpp
20378configure-stage2-libcpp:
4b900473 20379 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20380 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20381 @r=`${PWD_COMMAND}`; export r; \
20382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20383 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20384 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20385 $(HOST_EXPORTS) \
1b05fbbd 20386 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20387 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20388 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20389 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20390 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20391 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20392 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20393 case $(srcdir) in \
20394 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20395 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20396 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20397 esac; \
1b6c0831
L
20398 module_srcdir=libcpp; \
20399 $(SHELL) $$s/$$module_srcdir/configure \
20400 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20401 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20402 --target=${target_alias} \
22121df0 20403 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20404 $(STAGE2_CONFIGURE_FLAGS)
20405@endif libcpp-bootstrap
e28c595f 20406
a90ef4bf
JM
20407.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20408maybe-configure-stage3-libcpp:
20409@if libcpp-bootstrap
20410maybe-configure-stage3-libcpp: configure-stage3-libcpp
20411configure-stage3-libcpp:
4b900473 20412 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20413 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20414 @r=`${PWD_COMMAND}`; export r; \
20415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20416 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20417 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20418 $(HOST_EXPORTS) \
1b05fbbd 20419 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20420 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20421 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20422 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20423 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20424 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20425 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20426 case $(srcdir) in \
20427 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20428 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20429 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20430 esac; \
1b6c0831
L
20431 module_srcdir=libcpp; \
20432 $(SHELL) $$s/$$module_srcdir/configure \
20433 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20434 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20435 --target=${target_alias} \
22121df0 20436 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20437 $(STAGE3_CONFIGURE_FLAGS)
20438@endif libcpp-bootstrap
e28c595f 20439
a90ef4bf
JM
20440.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20441maybe-configure-stage4-libcpp:
20442@if libcpp-bootstrap
20443maybe-configure-stage4-libcpp: configure-stage4-libcpp
20444configure-stage4-libcpp:
4b900473 20445 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20446 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20447 @r=`${PWD_COMMAND}`; export r; \
20448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20449 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20450 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20451 $(HOST_EXPORTS) \
1b05fbbd 20452 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20453 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20454 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20455 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20456 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20457 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20458 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20459 case $(srcdir) in \
20460 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20461 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20462 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20463 esac; \
1b6c0831
L
20464 module_srcdir=libcpp; \
20465 $(SHELL) $$s/$$module_srcdir/configure \
20466 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20467 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20468 --target=${target_alias} \
22121df0 20469 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20470 $(STAGE4_CONFIGURE_FLAGS)
20471@endif libcpp-bootstrap
e28c595f 20472
a90ef4bf
JM
20473.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20474maybe-configure-stageprofile-libcpp:
20475@if libcpp-bootstrap
20476maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20477configure-stageprofile-libcpp:
4b900473 20478 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20479 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20480 @r=`${PWD_COMMAND}`; export r; \
20481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20482 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20483 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20484 $(HOST_EXPORTS) \
1b05fbbd
AO
20485 $(POSTSTAGE1_HOST_EXPORTS) \
20486 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20487 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20488 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20489 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20490 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20491 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20492 case $(srcdir) in \
20493 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20494 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20495 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20496 esac; \
1b6c0831
L
20497 module_srcdir=libcpp; \
20498 $(SHELL) $$s/$$module_srcdir/configure \
20499 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20500 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20501 --target=${target_alias} \
22121df0 20502 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20503 $(STAGEprofile_CONFIGURE_FLAGS)
20504@endif libcpp-bootstrap
e28c595f 20505
a90ef4bf
JM
20506.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20507maybe-configure-stagefeedback-libcpp:
20508@if libcpp-bootstrap
20509maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20510configure-stagefeedback-libcpp:
4b900473 20511 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20512 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20513 @r=`${PWD_COMMAND}`; export r; \
20514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20515 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20516 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20517 $(HOST_EXPORTS) \
1b05fbbd
AO
20518 $(POSTSTAGE1_HOST_EXPORTS) \
20519 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20520 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20521 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20522 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20523 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20524 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20525 case $(srcdir) in \
20526 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20527 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20528 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20529 esac; \
1b6c0831
L
20530 module_srcdir=libcpp; \
20531 $(SHELL) $$s/$$module_srcdir/configure \
20532 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20533 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20534 --target=${target_alias} \
22121df0 20535 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20536 $(STAGEfeedback_CONFIGURE_FLAGS)
20537@endif libcpp-bootstrap
4b900473
PB
20538
20539
20540
20541
20542
a90ef4bf
JM
20543.PHONY: all-libcpp maybe-all-libcpp
20544maybe-all-libcpp:
4b900473 20545@if gcc-bootstrap
a90ef4bf 20546all-libcpp: stage_current
4b900473 20547@endif gcc-bootstrap
a90ef4bf
JM
20548@if libcpp
20549TARGET-libcpp=all
20550maybe-all-libcpp: all-libcpp
20551all-libcpp: configure-libcpp
4b900473
PB
20552 @r=`${PWD_COMMAND}`; export r; \
20553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20554 $(HOST_EXPORTS) \
20555 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20556 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20557 $(TARGET-libcpp))
20558@endif libcpp
4b900473
PB
20559
20560
20561
a90ef4bf
JM
20562.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20563.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20564maybe-all-stage1-libcpp:
20565maybe-clean-stage1-libcpp:
20566@if libcpp-bootstrap
20567maybe-all-stage1-libcpp: all-stage1-libcpp
20568all-stage1: all-stage1-libcpp
20569TARGET-stage1-libcpp = $(TARGET-libcpp)
20570all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20571 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20572 @r=`${PWD_COMMAND}`; export r; \
20573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20574 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20575 $(HOST_EXPORTS) \
20576 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20577 \
7f6ef0c0 20578 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20579 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20580 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20581 LIBCFLAGS="$(LIBCFLAGS)" \
20582 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20583 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20584 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20585 $(EXTRA_HOST_FLAGS) \
20586 $(STAGE1_FLAGS_TO_PASS) \
05a13254 20587 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20588 $(TARGET-stage1-libcpp)
4b900473 20589
a90ef4bf
JM
20590maybe-clean-stage1-libcpp: clean-stage1-libcpp
20591clean-stage1: clean-stage1-libcpp
20592clean-stage1-libcpp:
4b900473 20593 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20594 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20595 else \
a90ef4bf 20596 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20597 $(MAKE) stage1-start; \
20598 fi; \
a90ef4bf 20599 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20600 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20601 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20602@endif libcpp-bootstrap
e28c595f
JM
20603
20604
a90ef4bf
JM
20605.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20606.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20607maybe-all-stage2-libcpp:
20608maybe-clean-stage2-libcpp:
20609@if libcpp-bootstrap
20610maybe-all-stage2-libcpp: all-stage2-libcpp
20611all-stage2: all-stage2-libcpp
20612TARGET-stage2-libcpp = $(TARGET-libcpp)
20613all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20614 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20615 @r=`${PWD_COMMAND}`; export r; \
20616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20617 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20618 $(HOST_EXPORTS) \
a90ef4bf
JM
20619 $(POSTSTAGE1_HOST_EXPORTS) \
20620 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20621 \
7f6ef0c0 20622 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20623 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20624 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20625 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20626 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20627 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20628 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20629 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20630 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20631 $(TARGET-stage2-libcpp)
4b900473 20632
a90ef4bf
JM
20633maybe-clean-stage2-libcpp: clean-stage2-libcpp
20634clean-stage2: clean-stage2-libcpp
20635clean-stage2-libcpp:
4b900473 20636 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20637 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20638 else \
a90ef4bf 20639 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20640 $(MAKE) stage2-start; \
20641 fi; \
a90ef4bf 20642 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20643 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20644@endif libcpp-bootstrap
e28c595f
JM
20645
20646
a90ef4bf
JM
20647.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20648.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20649maybe-all-stage3-libcpp:
20650maybe-clean-stage3-libcpp:
20651@if libcpp-bootstrap
20652maybe-all-stage3-libcpp: all-stage3-libcpp
20653all-stage3: all-stage3-libcpp
20654TARGET-stage3-libcpp = $(TARGET-libcpp)
20655all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20656 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20657 @r=`${PWD_COMMAND}`; export r; \
20658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20659 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20660 $(HOST_EXPORTS) \
a90ef4bf
JM
20661 $(POSTSTAGE1_HOST_EXPORTS) \
20662 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20663 \
7f6ef0c0 20664 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20665 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20666 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20667 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20668 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20669 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20670 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20671 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20672 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20673 $(TARGET-stage3-libcpp)
4b900473 20674
a90ef4bf
JM
20675maybe-clean-stage3-libcpp: clean-stage3-libcpp
20676clean-stage3: clean-stage3-libcpp
20677clean-stage3-libcpp:
4b900473 20678 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20679 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20680 else \
a90ef4bf 20681 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20682 $(MAKE) stage3-start; \
20683 fi; \
a90ef4bf 20684 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20685 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20686@endif libcpp-bootstrap
e28c595f
JM
20687
20688
a90ef4bf
JM
20689.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20690.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20691maybe-all-stage4-libcpp:
20692maybe-clean-stage4-libcpp:
20693@if libcpp-bootstrap
20694maybe-all-stage4-libcpp: all-stage4-libcpp
20695all-stage4: all-stage4-libcpp
20696TARGET-stage4-libcpp = $(TARGET-libcpp)
20697all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20698 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20699 @r=`${PWD_COMMAND}`; export r; \
20700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20701 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20702 $(HOST_EXPORTS) \
a90ef4bf
JM
20703 $(POSTSTAGE1_HOST_EXPORTS) \
20704 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20705 \
7f6ef0c0 20706 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20707 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20708 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20709 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20710 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20711 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20712 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20713 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20714 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20715 $(TARGET-stage4-libcpp)
4b900473 20716
a90ef4bf
JM
20717maybe-clean-stage4-libcpp: clean-stage4-libcpp
20718clean-stage4: clean-stage4-libcpp
20719clean-stage4-libcpp:
4b900473 20720 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20721 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20722 else \
a90ef4bf 20723 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20724 $(MAKE) stage4-start; \
20725 fi; \
a90ef4bf 20726 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20727 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20728@endif libcpp-bootstrap
e28c595f
JM
20729
20730
a90ef4bf
JM
20731.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20732.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20733maybe-all-stageprofile-libcpp:
20734maybe-clean-stageprofile-libcpp:
20735@if libcpp-bootstrap
20736maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20737all-stageprofile: all-stageprofile-libcpp
20738TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20739all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20740 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20741 @r=`${PWD_COMMAND}`; export r; \
20742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20743 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20744 $(HOST_EXPORTS) \
a90ef4bf
JM
20745 $(POSTSTAGE1_HOST_EXPORTS) \
20746 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20747 \
7f6ef0c0 20748 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20749 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20750 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20751 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20752 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20753 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20754 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20755 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20756 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20757 $(TARGET-stageprofile-libcpp)
4b900473 20758
a90ef4bf
JM
20759maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20760clean-stageprofile: clean-stageprofile-libcpp
20761clean-stageprofile-libcpp:
4b900473 20762 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20763 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20764 else \
a90ef4bf 20765 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20766 $(MAKE) stageprofile-start; \
20767 fi; \
a90ef4bf 20768 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20769 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20770@endif libcpp-bootstrap
e28c595f
JM
20771
20772
a90ef4bf
JM
20773.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20774.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20775maybe-all-stagefeedback-libcpp:
20776maybe-clean-stagefeedback-libcpp:
20777@if libcpp-bootstrap
20778maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20779all-stagefeedback: all-stagefeedback-libcpp
20780TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20781all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20782 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20783 @r=`${PWD_COMMAND}`; export r; \
20784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20785 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20786 $(HOST_EXPORTS) \
a90ef4bf
JM
20787 $(POSTSTAGE1_HOST_EXPORTS) \
20788 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20789 \
7f6ef0c0 20790 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20791 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20792 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20793 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20794 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20795 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20796 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20797 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20798 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20799 $(TARGET-stagefeedback-libcpp)
4b900473 20800
a90ef4bf
JM
20801maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20802clean-stagefeedback: clean-stagefeedback-libcpp
20803clean-stagefeedback-libcpp:
4b900473 20804 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20805 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20806 else \
a90ef4bf 20807 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20808 $(MAKE) stagefeedback-start; \
20809 fi; \
a90ef4bf 20810 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20811 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20812@endif libcpp-bootstrap
4b900473
PB
20813
20814
20815
20816
20817
a90ef4bf
JM
20818.PHONY: check-libcpp maybe-check-libcpp
20819maybe-check-libcpp:
20820@if libcpp
20821maybe-check-libcpp: check-libcpp
4b900473 20822
a90ef4bf 20823check-libcpp:
4b900473
PB
20824 @: $(MAKE); $(unstage)
20825 @r=`${PWD_COMMAND}`; export r; \
20826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20827 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20828 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20829 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20830
a90ef4bf 20831@endif libcpp
4b900473 20832
a90ef4bf
JM
20833.PHONY: install-libcpp maybe-install-libcpp
20834maybe-install-libcpp:
20835@if libcpp
20836maybe-install-libcpp: install-libcpp
4b900473 20837
a90ef4bf
JM
20838install-libcpp: installdirs
20839 @: $(MAKE); $(unstage)
20840 @r=`${PWD_COMMAND}`; export r; \
20841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20842 $(HOST_EXPORTS) \
20843 (cd $(HOST_SUBDIR)/libcpp && \
20844 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20845
a90ef4bf 20846@endif libcpp
4b900473 20847
a90ef4bf
JM
20848.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20849maybe-install-strip-libcpp:
20850@if libcpp
20851maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20852
a90ef4bf
JM
20853install-strip-libcpp: installdirs
20854 @: $(MAKE); $(unstage)
20855 @r=`${PWD_COMMAND}`; export r; \
20856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20857 $(HOST_EXPORTS) \
20858 (cd $(HOST_SUBDIR)/libcpp && \
20859 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20860
a90ef4bf 20861@endif libcpp
9b980aa1 20862
4b900473
PB
20863# Other targets (info, dvi, pdf, etc.)
20864
a90ef4bf
JM
20865.PHONY: maybe-info-libcpp info-libcpp
20866maybe-info-libcpp:
20867@if libcpp
20868maybe-info-libcpp: info-libcpp
4b900473 20869
a90ef4bf
JM
20870info-libcpp: \
20871 configure-libcpp
20872 @[ -f ./libcpp/Makefile ] || exit 0; \
20873 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20875 $(HOST_EXPORTS) \
a90ef4bf 20876 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20878 done; \
22121df0 20879 echo "Doing info in libcpp"; \
a90ef4bf 20880 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20883 "RANLIB=$${RANLIB}" \
0c24b341 20884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20885 info) \
20886 || exit 1
20887
a90ef4bf 20888@endif libcpp
4b900473 20889
a90ef4bf
JM
20890.PHONY: maybe-dvi-libcpp dvi-libcpp
20891maybe-dvi-libcpp:
20892@if libcpp
20893maybe-dvi-libcpp: dvi-libcpp
4b900473 20894
a90ef4bf
JM
20895dvi-libcpp: \
20896 configure-libcpp
20897 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20898 r=`${PWD_COMMAND}`; export r; \
20899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20900 $(HOST_EXPORTS) \
a90ef4bf 20901 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20903 done; \
22121df0 20904 echo "Doing dvi in libcpp"; \
a90ef4bf 20905 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20908 "RANLIB=$${RANLIB}" \
0c24b341 20909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20910 dvi) \
20911 || exit 1
20912
a90ef4bf 20913@endif libcpp
4b900473 20914
a90ef4bf
JM
20915.PHONY: maybe-pdf-libcpp pdf-libcpp
20916maybe-pdf-libcpp:
20917@if libcpp
20918maybe-pdf-libcpp: pdf-libcpp
4b900473 20919
a90ef4bf
JM
20920pdf-libcpp: \
20921 configure-libcpp
20922 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20923 r=`${PWD_COMMAND}`; export r; \
20924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20925 $(HOST_EXPORTS) \
a90ef4bf 20926 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20928 done; \
22121df0 20929 echo "Doing pdf in libcpp"; \
a90ef4bf 20930 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20933 "RANLIB=$${RANLIB}" \
0c24b341 20934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20935 pdf) \
20936 || exit 1
20937
a90ef4bf 20938@endif libcpp
4b900473 20939
a90ef4bf
JM
20940.PHONY: maybe-html-libcpp html-libcpp
20941maybe-html-libcpp:
20942@if libcpp
20943maybe-html-libcpp: html-libcpp
4b900473 20944
a90ef4bf
JM
20945html-libcpp: \
20946 configure-libcpp
20947 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20948 r=`${PWD_COMMAND}`; export r; \
20949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20950 $(HOST_EXPORTS) \
a90ef4bf 20951 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20953 done; \
22121df0 20954 echo "Doing html in libcpp"; \
a90ef4bf 20955 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20958 "RANLIB=$${RANLIB}" \
0c24b341 20959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20960 html) \
20961 || exit 1
20962
a90ef4bf 20963@endif libcpp
4b900473 20964
a90ef4bf
JM
20965.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20966maybe-TAGS-libcpp:
20967@if libcpp
20968maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20969
a90ef4bf
JM
20970TAGS-libcpp: \
20971 configure-libcpp
20972 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20973 r=`${PWD_COMMAND}`; export r; \
20974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20975 $(HOST_EXPORTS) \
a90ef4bf 20976 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20978 done; \
22121df0 20979 echo "Doing TAGS in libcpp"; \
a90ef4bf 20980 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20983 "RANLIB=$${RANLIB}" \
0c24b341 20984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20985 TAGS) \
20986 || exit 1
20987
a90ef4bf 20988@endif libcpp
4b900473 20989
a90ef4bf
JM
20990.PHONY: maybe-install-info-libcpp install-info-libcpp
20991maybe-install-info-libcpp:
20992@if libcpp
20993maybe-install-info-libcpp: install-info-libcpp
4b900473 20994
a90ef4bf
JM
20995install-info-libcpp: \
20996 configure-libcpp \
20997 info-libcpp
20998 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20999 r=`${PWD_COMMAND}`; export r; \
21000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21001 $(HOST_EXPORTS) \
a90ef4bf 21002 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21004 done; \
22121df0 21005 echo "Doing install-info in libcpp"; \
a90ef4bf 21006 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21009 "RANLIB=$${RANLIB}" \
0c24b341 21010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21011 install-info) \
21012 || exit 1
21013
a90ef4bf 21014@endif libcpp
4b900473 21015
a90ef4bf
JM
21016.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
21017maybe-install-pdf-libcpp:
21018@if libcpp
21019maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 21020
a90ef4bf
JM
21021install-pdf-libcpp: \
21022 configure-libcpp \
21023 pdf-libcpp
21024 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
21025 r=`${PWD_COMMAND}`; export r; \
21026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21027 $(HOST_EXPORTS) \
a90ef4bf 21028 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
21029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21030 done; \
22121df0 21031 echo "Doing install-pdf in libcpp"; \
a90ef4bf 21032 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
21033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21035 "RANLIB=$${RANLIB}" \
0c24b341 21036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
21037 install-pdf) \
21038 || exit 1
21039
a90ef4bf 21040@endif libcpp
a3ca38d2 21041
a90ef4bf
JM
21042.PHONY: maybe-install-html-libcpp install-html-libcpp
21043maybe-install-html-libcpp:
21044@if libcpp
21045maybe-install-html-libcpp: install-html-libcpp
4b900473 21046
a90ef4bf
JM
21047install-html-libcpp: \
21048 configure-libcpp \
21049 html-libcpp
21050 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21051 r=`${PWD_COMMAND}`; export r; \
21052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21053 $(HOST_EXPORTS) \
a90ef4bf 21054 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21056 done; \
22121df0 21057 echo "Doing install-html in libcpp"; \
a90ef4bf 21058 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21061 "RANLIB=$${RANLIB}" \
0c24b341 21062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21063 install-html) \
21064 || exit 1
21065
a90ef4bf 21066@endif libcpp
4b900473 21067
a90ef4bf
JM
21068.PHONY: maybe-installcheck-libcpp installcheck-libcpp
21069maybe-installcheck-libcpp:
21070@if libcpp
21071maybe-installcheck-libcpp: installcheck-libcpp
4b900473 21072
a90ef4bf
JM
21073installcheck-libcpp: \
21074 configure-libcpp
21075 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21076 r=`${PWD_COMMAND}`; export r; \
21077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21078 $(HOST_EXPORTS) \
a90ef4bf 21079 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21081 done; \
22121df0 21082 echo "Doing installcheck in libcpp"; \
a90ef4bf 21083 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21086 "RANLIB=$${RANLIB}" \
0c24b341 21087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21088 installcheck) \
21089 || exit 1
21090
a90ef4bf 21091@endif libcpp
4b900473 21092
a90ef4bf
JM
21093.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
21094maybe-mostlyclean-libcpp:
21095@if libcpp
21096maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 21097
a90ef4bf
JM
21098mostlyclean-libcpp:
21099 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21100 r=`${PWD_COMMAND}`; export r; \
21101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21102 $(HOST_EXPORTS) \
a90ef4bf 21103 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21105 done; \
22121df0 21106 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 21107 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21110 "RANLIB=$${RANLIB}" \
0c24b341 21111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21112 mostlyclean) \
21113 || exit 1
21114
a90ef4bf 21115@endif libcpp
4b900473 21116
a90ef4bf
JM
21117.PHONY: maybe-clean-libcpp clean-libcpp
21118maybe-clean-libcpp:
21119@if libcpp
21120maybe-clean-libcpp: clean-libcpp
4b900473 21121
a90ef4bf
JM
21122clean-libcpp:
21123 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21124 r=`${PWD_COMMAND}`; export r; \
21125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21126 $(HOST_EXPORTS) \
a90ef4bf 21127 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21129 done; \
22121df0 21130 echo "Doing clean in libcpp"; \
a90ef4bf 21131 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21134 "RANLIB=$${RANLIB}" \
0c24b341 21135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21136 clean) \
21137 || exit 1
21138
a90ef4bf 21139@endif libcpp
4b900473 21140
a90ef4bf
JM
21141.PHONY: maybe-distclean-libcpp distclean-libcpp
21142maybe-distclean-libcpp:
21143@if libcpp
21144maybe-distclean-libcpp: distclean-libcpp
4b900473 21145
a90ef4bf
JM
21146distclean-libcpp:
21147 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21148 r=`${PWD_COMMAND}`; export r; \
21149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21150 $(HOST_EXPORTS) \
a90ef4bf 21151 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21153 done; \
22121df0 21154 echo "Doing distclean in libcpp"; \
a90ef4bf 21155 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21158 "RANLIB=$${RANLIB}" \
0c24b341 21159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21160 distclean) \
21161 || exit 1
21162
a90ef4bf 21163@endif libcpp
4b900473 21164
a90ef4bf
JM
21165.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21166maybe-maintainer-clean-libcpp:
21167@if libcpp
21168maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21169
a90ef4bf
JM
21170maintainer-clean-libcpp:
21171 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21172 r=`${PWD_COMMAND}`; export r; \
21173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21174 $(HOST_EXPORTS) \
a90ef4bf 21175 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21177 done; \
22121df0 21178 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21179 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21182 "RANLIB=$${RANLIB}" \
0c24b341 21183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21184 maintainer-clean) \
21185 || exit 1
21186
a90ef4bf 21187@endif libcpp
4b900473
PB
21188
21189
21190
a90ef4bf
JM
21191.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21192maybe-configure-libdecnumber:
1f53ca9a 21193@if gcc-bootstrap
a90ef4bf 21194configure-libdecnumber: stage_current
1f53ca9a 21195@endif gcc-bootstrap
a90ef4bf
JM
21196@if libdecnumber
21197maybe-configure-libdecnumber: configure-libdecnumber
21198configure-libdecnumber:
1f53ca9a
AO
21199 @r=`${PWD_COMMAND}`; export r; \
21200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21201 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21202 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21203 $(HOST_EXPORTS) \
a90ef4bf
JM
21204 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21205 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21206 case $(srcdir) in \
21207 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21208 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21209 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21210 esac; \
1b6c0831
L
21211 module_srcdir=libdecnumber; \
21212 $(SHELL) \
21213 $$s/$$module_srcdir/configure \
21214 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21215 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21216 --target=${target_alias} \
1f53ca9a 21217 || exit 1
a90ef4bf 21218@endif libdecnumber
1f53ca9a
AO
21219
21220
21221
a90ef4bf
JM
21222.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21223maybe-configure-stage1-libdecnumber:
21224@if libdecnumber-bootstrap
21225maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21226configure-stage1-libdecnumber:
1f53ca9a 21227 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21228 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21229 @r=`${PWD_COMMAND}`; export r; \
21230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21231 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21232 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21233 $(HOST_EXPORTS) \
21234 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21235 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21236 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21237 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21238 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21239 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21240 case $(srcdir) in \
21241 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21242 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21243 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21244 esac; \
1b6c0831
L
21245 module_srcdir=libdecnumber; \
21246 $(SHELL) $$s/$$module_srcdir/configure \
21247 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21248 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21249 --target=${target_alias} \
21250 \
a90ef4bf
JM
21251 $(STAGE1_CONFIGURE_FLAGS)
21252@endif libdecnumber-bootstrap
1f53ca9a 21253
a90ef4bf
JM
21254.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21255maybe-configure-stage2-libdecnumber:
21256@if libdecnumber-bootstrap
21257maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21258configure-stage2-libdecnumber:
1f53ca9a 21259 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21260 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21261 @r=`${PWD_COMMAND}`; export r; \
21262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21263 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21264 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21265 $(HOST_EXPORTS) \
21266 $(POSTSTAGE1_HOST_EXPORTS) \
21267 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21268 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21269 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21270 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21271 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21272 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21273 case $(srcdir) in \
21274 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21275 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21276 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21277 esac; \
1b6c0831
L
21278 module_srcdir=libdecnumber; \
21279 $(SHELL) $$s/$$module_srcdir/configure \
21280 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21281 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21282 --target=${target_alias} \
22121df0 21283 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21284 $(STAGE2_CONFIGURE_FLAGS)
21285@endif libdecnumber-bootstrap
1f53ca9a 21286
a90ef4bf
JM
21287.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21288maybe-configure-stage3-libdecnumber:
21289@if libdecnumber-bootstrap
21290maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21291configure-stage3-libdecnumber:
1f53ca9a 21292 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21293 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21294 @r=`${PWD_COMMAND}`; export r; \
21295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21296 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21297 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21298 $(HOST_EXPORTS) \
21299 $(POSTSTAGE1_HOST_EXPORTS) \
21300 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21301 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21302 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21303 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21304 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21305 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21306 case $(srcdir) in \
21307 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21308 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21309 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21310 esac; \
1b6c0831
L
21311 module_srcdir=libdecnumber; \
21312 $(SHELL) $$s/$$module_srcdir/configure \
21313 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21314 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21315 --target=${target_alias} \
22121df0 21316 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21317 $(STAGE3_CONFIGURE_FLAGS)
21318@endif libdecnumber-bootstrap
1f53ca9a 21319
a90ef4bf
JM
21320.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21321maybe-configure-stage4-libdecnumber:
21322@if libdecnumber-bootstrap
21323maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21324configure-stage4-libdecnumber:
1f53ca9a 21325 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21326 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21327 @r=`${PWD_COMMAND}`; export r; \
21328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21329 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21330 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21331 $(HOST_EXPORTS) \
21332 $(POSTSTAGE1_HOST_EXPORTS) \
21333 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21334 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21335 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21336 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21337 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21338 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21339 case $(srcdir) in \
21340 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21341 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21342 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21343 esac; \
1b6c0831
L
21344 module_srcdir=libdecnumber; \
21345 $(SHELL) $$s/$$module_srcdir/configure \
21346 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21347 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21348 --target=${target_alias} \
22121df0 21349 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21350 $(STAGE4_CONFIGURE_FLAGS)
21351@endif libdecnumber-bootstrap
1f53ca9a 21352
a90ef4bf
JM
21353.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21354maybe-configure-stageprofile-libdecnumber:
21355@if libdecnumber-bootstrap
21356maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21357configure-stageprofile-libdecnumber:
1f53ca9a 21358 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21359 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21360 @r=`${PWD_COMMAND}`; export r; \
21361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21362 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21363 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21364 $(HOST_EXPORTS) \
21365 $(POSTSTAGE1_HOST_EXPORTS) \
21366 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21367 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21368 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21369 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21370 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21371 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21372 case $(srcdir) in \
21373 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21374 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21375 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21376 esac; \
1b6c0831
L
21377 module_srcdir=libdecnumber; \
21378 $(SHELL) $$s/$$module_srcdir/configure \
21379 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21380 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21381 --target=${target_alias} \
22121df0 21382 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21383 $(STAGEprofile_CONFIGURE_FLAGS)
21384@endif libdecnumber-bootstrap
1f53ca9a 21385
a90ef4bf
JM
21386.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21387maybe-configure-stagefeedback-libdecnumber:
21388@if libdecnumber-bootstrap
21389maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21390configure-stagefeedback-libdecnumber:
1f53ca9a 21391 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21392 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21393 @r=`${PWD_COMMAND}`; export r; \
21394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21395 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21396 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21397 $(HOST_EXPORTS) \
21398 $(POSTSTAGE1_HOST_EXPORTS) \
21399 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21400 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21401 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21402 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21403 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21404 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21405 case $(srcdir) in \
21406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21407 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21409 esac; \
1b6c0831
L
21410 module_srcdir=libdecnumber; \
21411 $(SHELL) $$s/$$module_srcdir/configure \
21412 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21413 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21414 --target=${target_alias} \
22121df0 21415 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21416 $(STAGEfeedback_CONFIGURE_FLAGS)
21417@endif libdecnumber-bootstrap
1f53ca9a
AO
21418
21419
21420
21421
21422
a90ef4bf
JM
21423.PHONY: all-libdecnumber maybe-all-libdecnumber
21424maybe-all-libdecnumber:
1f53ca9a 21425@if gcc-bootstrap
a90ef4bf 21426all-libdecnumber: stage_current
1f53ca9a 21427@endif gcc-bootstrap
a90ef4bf
JM
21428@if libdecnumber
21429TARGET-libdecnumber=all
21430maybe-all-libdecnumber: all-libdecnumber
21431all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21432 @r=`${PWD_COMMAND}`; export r; \
21433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21434 $(HOST_EXPORTS) \
a90ef4bf 21435 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21436 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21437 $(TARGET-libdecnumber))
21438@endif libdecnumber
1f53ca9a
AO
21439
21440
21441
a90ef4bf
JM
21442.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21443.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21444maybe-all-stage1-libdecnumber:
21445maybe-clean-stage1-libdecnumber:
21446@if libdecnumber-bootstrap
21447maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21448all-stage1: all-stage1-libdecnumber
21449TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21450all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21451 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21452 @r=`${PWD_COMMAND}`; export r; \
21453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21454 TFLAGS="$(STAGE1_TFLAGS)"; \
21455 $(HOST_EXPORTS) \
a90ef4bf 21456 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21457 \
1f53ca9a
AO
21458 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21459 CFLAGS="$(STAGE1_CFLAGS)" \
21460 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21461 LIBCFLAGS="$(LIBCFLAGS)" \
21462 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21463 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21464 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21465 $(EXTRA_HOST_FLAGS) \
21466 $(STAGE1_FLAGS_TO_PASS) \
05a13254 21467 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21468 $(TARGET-stage1-libdecnumber)
1f53ca9a 21469
a90ef4bf
JM
21470maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21471clean-stage1: clean-stage1-libdecnumber
21472clean-stage1-libdecnumber:
1f53ca9a 21473 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21474 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21475 else \
a90ef4bf 21476 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21477 $(MAKE) stage1-start; \
21478 fi; \
a90ef4bf 21479 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21480 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21481 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21482@endif libdecnumber-bootstrap
1f53ca9a
AO
21483
21484
a90ef4bf
JM
21485.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21486.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21487maybe-all-stage2-libdecnumber:
21488maybe-clean-stage2-libdecnumber:
21489@if libdecnumber-bootstrap
21490maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21491all-stage2: all-stage2-libdecnumber
21492TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21493all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21494 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21495 @r=`${PWD_COMMAND}`; export r; \
21496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21497 TFLAGS="$(STAGE2_TFLAGS)"; \
21498 $(HOST_EXPORTS) \
21499 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21500 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21501 \
1f53ca9a
AO
21502 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21503 CFLAGS="$(STAGE2_CFLAGS)" \
21504 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21505 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21506 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21507 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21508 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21509 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21510 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21511 $(TARGET-stage2-libdecnumber)
1f53ca9a 21512
a90ef4bf
JM
21513maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21514clean-stage2: clean-stage2-libdecnumber
21515clean-stage2-libdecnumber:
1f53ca9a 21516 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21517 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21518 else \
a90ef4bf 21519 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21520 $(MAKE) stage2-start; \
21521 fi; \
a90ef4bf 21522 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21523 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21524@endif libdecnumber-bootstrap
1f53ca9a
AO
21525
21526
a90ef4bf
JM
21527.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21528.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21529maybe-all-stage3-libdecnumber:
21530maybe-clean-stage3-libdecnumber:
21531@if libdecnumber-bootstrap
21532maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21533all-stage3: all-stage3-libdecnumber
21534TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21535all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21536 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21537 @r=`${PWD_COMMAND}`; export r; \
21538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21539 TFLAGS="$(STAGE3_TFLAGS)"; \
21540 $(HOST_EXPORTS) \
21541 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21542 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21543 \
1f53ca9a
AO
21544 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21545 CFLAGS="$(STAGE3_CFLAGS)" \
21546 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21547 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21548 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21549 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21550 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21551 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21552 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21553 $(TARGET-stage3-libdecnumber)
1f53ca9a 21554
a90ef4bf
JM
21555maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21556clean-stage3: clean-stage3-libdecnumber
21557clean-stage3-libdecnumber:
1f53ca9a 21558 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21559 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21560 else \
a90ef4bf 21561 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21562 $(MAKE) stage3-start; \
21563 fi; \
a90ef4bf 21564 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21565 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21566@endif libdecnumber-bootstrap
1f53ca9a
AO
21567
21568
a90ef4bf
JM
21569.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21570.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21571maybe-all-stage4-libdecnumber:
21572maybe-clean-stage4-libdecnumber:
21573@if libdecnumber-bootstrap
21574maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21575all-stage4: all-stage4-libdecnumber
21576TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21577all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21578 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21579 @r=`${PWD_COMMAND}`; export r; \
21580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21581 TFLAGS="$(STAGE4_TFLAGS)"; \
21582 $(HOST_EXPORTS) \
21583 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21584 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21585 \
1f53ca9a
AO
21586 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21587 CFLAGS="$(STAGE4_CFLAGS)" \
21588 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21589 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21590 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21591 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21592 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21593 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21594 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21595 $(TARGET-stage4-libdecnumber)
1f53ca9a 21596
a90ef4bf
JM
21597maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21598clean-stage4: clean-stage4-libdecnumber
21599clean-stage4-libdecnumber:
1f53ca9a 21600 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21601 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21602 else \
a90ef4bf 21603 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21604 $(MAKE) stage4-start; \
21605 fi; \
a90ef4bf 21606 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21607 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21608@endif libdecnumber-bootstrap
1f53ca9a
AO
21609
21610
a90ef4bf
JM
21611.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21612.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21613maybe-all-stageprofile-libdecnumber:
21614maybe-clean-stageprofile-libdecnumber:
21615@if libdecnumber-bootstrap
21616maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21617all-stageprofile: all-stageprofile-libdecnumber
21618TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21619all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21620 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21621 @r=`${PWD_COMMAND}`; export r; \
21622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21623 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21624 $(HOST_EXPORTS) \
21625 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21626 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21627 \
1f53ca9a
AO
21628 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21629 CFLAGS="$(STAGEprofile_CFLAGS)" \
21630 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21631 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21632 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21633 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21634 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21635 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21636 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21637 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21638
a90ef4bf
JM
21639maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21640clean-stageprofile: clean-stageprofile-libdecnumber
21641clean-stageprofile-libdecnumber:
1f53ca9a 21642 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21643 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21644 else \
a90ef4bf 21645 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21646 $(MAKE) stageprofile-start; \
21647 fi; \
a90ef4bf 21648 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21649 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21650@endif libdecnumber-bootstrap
1f53ca9a
AO
21651
21652
a90ef4bf
JM
21653.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21654.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21655maybe-all-stagefeedback-libdecnumber:
21656maybe-clean-stagefeedback-libdecnumber:
21657@if libdecnumber-bootstrap
21658maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21659all-stagefeedback: all-stagefeedback-libdecnumber
21660TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21661all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21662 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21663 @r=`${PWD_COMMAND}`; export r; \
21664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21665 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21666 $(HOST_EXPORTS) \
21667 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21668 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21669 \
1f53ca9a
AO
21670 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21671 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21672 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21673 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21674 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21675 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21676 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21677 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21678 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21679 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21680
a90ef4bf
JM
21681maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21682clean-stagefeedback: clean-stagefeedback-libdecnumber
21683clean-stagefeedback-libdecnumber:
1f53ca9a 21684 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21685 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21686 else \
a90ef4bf 21687 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21688 $(MAKE) stagefeedback-start; \
21689 fi; \
a90ef4bf 21690 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21691 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21692@endif libdecnumber-bootstrap
1f53ca9a
AO
21693
21694
21695
21696
21697
a90ef4bf
JM
21698.PHONY: check-libdecnumber maybe-check-libdecnumber
21699maybe-check-libdecnumber:
21700@if libdecnumber
21701maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21702
a90ef4bf 21703check-libdecnumber:
1f53ca9a
AO
21704 @: $(MAKE); $(unstage)
21705 @r=`${PWD_COMMAND}`; export r; \
21706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21707 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21708 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21709 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21710
a90ef4bf 21711@endif libdecnumber
1f53ca9a 21712
a90ef4bf
JM
21713.PHONY: install-libdecnumber maybe-install-libdecnumber
21714maybe-install-libdecnumber:
21715@if libdecnumber
21716maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21717
a90ef4bf
JM
21718install-libdecnumber: installdirs
21719 @: $(MAKE); $(unstage)
21720 @r=`${PWD_COMMAND}`; export r; \
21721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21722 $(HOST_EXPORTS) \
21723 (cd $(HOST_SUBDIR)/libdecnumber && \
21724 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21725
a90ef4bf 21726@endif libdecnumber
1f53ca9a 21727
a90ef4bf
JM
21728.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21729maybe-install-strip-libdecnumber:
21730@if libdecnumber
21731maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21732
a90ef4bf
JM
21733install-strip-libdecnumber: installdirs
21734 @: $(MAKE); $(unstage)
21735 @r=`${PWD_COMMAND}`; export r; \
21736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21737 $(HOST_EXPORTS) \
21738 (cd $(HOST_SUBDIR)/libdecnumber && \
21739 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21740
a90ef4bf 21741@endif libdecnumber
9b980aa1 21742
1f53ca9a
AO
21743# Other targets (info, dvi, pdf, etc.)
21744
a90ef4bf
JM
21745.PHONY: maybe-info-libdecnumber info-libdecnumber
21746maybe-info-libdecnumber:
21747@if libdecnumber
21748maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21749
a90ef4bf
JM
21750info-libdecnumber: \
21751 configure-libdecnumber
21752 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21753 r=`${PWD_COMMAND}`; export r; \
21754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21755 $(HOST_EXPORTS) \
21756 for flag in $(EXTRA_HOST_FLAGS) ; do \
21757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21758 done; \
22121df0 21759 echo "Doing info in libdecnumber"; \
a90ef4bf 21760 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21763 "RANLIB=$${RANLIB}" \
21764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21765 info) \
21766 || exit 1
21767
a90ef4bf 21768@endif libdecnumber
1f53ca9a 21769
a90ef4bf
JM
21770.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21771maybe-dvi-libdecnumber:
21772@if libdecnumber
21773maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21774
a90ef4bf
JM
21775dvi-libdecnumber: \
21776 configure-libdecnumber
21777 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21778 r=`${PWD_COMMAND}`; export r; \
21779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21780 $(HOST_EXPORTS) \
21781 for flag in $(EXTRA_HOST_FLAGS) ; do \
21782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21783 done; \
22121df0 21784 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21785 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21788 "RANLIB=$${RANLIB}" \
21789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21790 dvi) \
21791 || exit 1
21792
a90ef4bf 21793@endif libdecnumber
1f53ca9a 21794
a90ef4bf
JM
21795.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21796maybe-pdf-libdecnumber:
21797@if libdecnumber
21798maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21799
a90ef4bf
JM
21800pdf-libdecnumber: \
21801 configure-libdecnumber
21802 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21803 r=`${PWD_COMMAND}`; export r; \
21804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21805 $(HOST_EXPORTS) \
21806 for flag in $(EXTRA_HOST_FLAGS) ; do \
21807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21808 done; \
22121df0 21809 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21810 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21813 "RANLIB=$${RANLIB}" \
21814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21815 pdf) \
21816 || exit 1
21817
a90ef4bf 21818@endif libdecnumber
1f53ca9a 21819
a90ef4bf
JM
21820.PHONY: maybe-html-libdecnumber html-libdecnumber
21821maybe-html-libdecnumber:
21822@if libdecnumber
21823maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21824
a90ef4bf
JM
21825html-libdecnumber: \
21826 configure-libdecnumber
21827 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21828 r=`${PWD_COMMAND}`; export r; \
21829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21830 $(HOST_EXPORTS) \
21831 for flag in $(EXTRA_HOST_FLAGS) ; do \
21832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21833 done; \
22121df0 21834 echo "Doing html in libdecnumber"; \
a90ef4bf 21835 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21838 "RANLIB=$${RANLIB}" \
21839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21840 html) \
21841 || exit 1
21842
a90ef4bf 21843@endif libdecnumber
1f53ca9a 21844
a90ef4bf
JM
21845.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21846maybe-TAGS-libdecnumber:
21847@if libdecnumber
21848maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21849
a90ef4bf
JM
21850TAGS-libdecnumber: \
21851 configure-libdecnumber
21852 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21853 r=`${PWD_COMMAND}`; export r; \
21854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21855 $(HOST_EXPORTS) \
21856 for flag in $(EXTRA_HOST_FLAGS) ; do \
21857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21858 done; \
22121df0 21859 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21860 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21863 "RANLIB=$${RANLIB}" \
21864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21865 TAGS) \
21866 || exit 1
21867
a90ef4bf 21868@endif libdecnumber
1f53ca9a 21869
a90ef4bf
JM
21870.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21871maybe-install-info-libdecnumber:
21872@if libdecnumber
21873maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21874
a90ef4bf
JM
21875install-info-libdecnumber: \
21876 configure-libdecnumber \
21877 info-libdecnumber
21878 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21879 r=`${PWD_COMMAND}`; export r; \
21880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21881 $(HOST_EXPORTS) \
21882 for flag in $(EXTRA_HOST_FLAGS) ; do \
21883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21884 done; \
22121df0 21885 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21886 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21889 "RANLIB=$${RANLIB}" \
21890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21891 install-info) \
21892 || exit 1
21893
a90ef4bf 21894@endif libdecnumber
1f53ca9a 21895
a90ef4bf
JM
21896.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21897maybe-install-pdf-libdecnumber:
21898@if libdecnumber
21899maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21900
a90ef4bf
JM
21901install-pdf-libdecnumber: \
21902 configure-libdecnumber \
21903 pdf-libdecnumber
21904 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21905 r=`${PWD_COMMAND}`; export r; \
21906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21907 $(HOST_EXPORTS) \
21908 for flag in $(EXTRA_HOST_FLAGS) ; do \
21909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21910 done; \
22121df0 21911 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21912 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21915 "RANLIB=$${RANLIB}" \
21916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21917 install-pdf) \
21918 || exit 1
21919
a90ef4bf 21920@endif libdecnumber
1f53ca9a 21921
a90ef4bf
JM
21922.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21923maybe-install-html-libdecnumber:
21924@if libdecnumber
21925maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21926
a90ef4bf
JM
21927install-html-libdecnumber: \
21928 configure-libdecnumber \
21929 html-libdecnumber
21930 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21931 r=`${PWD_COMMAND}`; export r; \
21932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21933 $(HOST_EXPORTS) \
21934 for flag in $(EXTRA_HOST_FLAGS) ; do \
21935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21936 done; \
22121df0 21937 echo "Doing install-html in libdecnumber"; \
a90ef4bf 21938 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21941 "RANLIB=$${RANLIB}" \
21942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21943 install-html) \
21944 || exit 1
21945
a90ef4bf 21946@endif libdecnumber
1f53ca9a 21947
a90ef4bf
JM
21948.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21949maybe-installcheck-libdecnumber:
21950@if libdecnumber
21951maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21952
a90ef4bf
JM
21953installcheck-libdecnumber: \
21954 configure-libdecnumber
21955 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21956 r=`${PWD_COMMAND}`; export r; \
21957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21958 $(HOST_EXPORTS) \
21959 for flag in $(EXTRA_HOST_FLAGS) ; do \
21960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21961 done; \
22121df0 21962 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 21963 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21966 "RANLIB=$${RANLIB}" \
21967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21968 installcheck) \
21969 || exit 1
21970
a90ef4bf 21971@endif libdecnumber
1f53ca9a 21972
a90ef4bf
JM
21973.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21974maybe-mostlyclean-libdecnumber:
21975@if libdecnumber
21976maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21977
a90ef4bf
JM
21978mostlyclean-libdecnumber:
21979 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21980 r=`${PWD_COMMAND}`; export r; \
21981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21982 $(HOST_EXPORTS) \
21983 for flag in $(EXTRA_HOST_FLAGS) ; do \
21984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21985 done; \
22121df0 21986 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 21987 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21990 "RANLIB=$${RANLIB}" \
21991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21992 mostlyclean) \
21993 || exit 1
21994
a90ef4bf 21995@endif libdecnumber
1f53ca9a 21996
a90ef4bf
JM
21997.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21998maybe-clean-libdecnumber:
21999@if libdecnumber
22000maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 22001
a90ef4bf
JM
22002clean-libdecnumber:
22003 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22004 r=`${PWD_COMMAND}`; export r; \
22005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22006 $(HOST_EXPORTS) \
22007 for flag in $(EXTRA_HOST_FLAGS) ; do \
22008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22009 done; \
22121df0 22010 echo "Doing clean in libdecnumber"; \
a90ef4bf 22011 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22014 "RANLIB=$${RANLIB}" \
22015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22016 clean) \
22017 || exit 1
22018
a90ef4bf 22019@endif libdecnumber
1f53ca9a 22020
a90ef4bf
JM
22021.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
22022maybe-distclean-libdecnumber:
22023@if libdecnumber
22024maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 22025
a90ef4bf
JM
22026distclean-libdecnumber:
22027 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22028 r=`${PWD_COMMAND}`; export r; \
22029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22030 $(HOST_EXPORTS) \
22031 for flag in $(EXTRA_HOST_FLAGS) ; do \
22032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22033 done; \
22121df0 22034 echo "Doing distclean in libdecnumber"; \
a90ef4bf 22035 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22038 "RANLIB=$${RANLIB}" \
22039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22040 distclean) \
22041 || exit 1
22042
a90ef4bf 22043@endif libdecnumber
1f53ca9a 22044
a90ef4bf
JM
22045.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
22046maybe-maintainer-clean-libdecnumber:
22047@if libdecnumber
22048maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 22049
a90ef4bf
JM
22050maintainer-clean-libdecnumber:
22051 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22052 r=`${PWD_COMMAND}`; export r; \
22053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22054 $(HOST_EXPORTS) \
22055 for flag in $(EXTRA_HOST_FLAGS) ; do \
22056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22057 done; \
22121df0 22058 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 22059 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22062 "RANLIB=$${RANLIB}" \
22063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22064 maintainer-clean) \
22065 || exit 1
22066
a90ef4bf 22067@endif libdecnumber
1f53ca9a
AO
22068
22069
22070
a90ef4bf
JM
22071.PHONY: configure-libgui maybe-configure-libgui
22072maybe-configure-libgui:
4f0ef2d8 22073@if gcc-bootstrap
a90ef4bf 22074configure-libgui: stage_current
4f0ef2d8 22075@endif gcc-bootstrap
a90ef4bf
JM
22076@if libgui
22077maybe-configure-libgui: configure-libgui
22078configure-libgui:
0aed8855 22079 @: $(MAKE); $(unstage)
c52c6897 22080 @r=`${PWD_COMMAND}`; export r; \
4fa63067 22081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22082 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 22083 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 22084 $(HOST_EXPORTS) \
a90ef4bf
JM
22085 echo Configuring in $(HOST_SUBDIR)/libgui; \
22086 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 22087 case $(srcdir) in \
b00612cc 22088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22089 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 22090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 22091 esac; \
1b6c0831
L
22092 module_srcdir=libgui; \
22093 $(SHELL) \
22094 $$s/$$module_srcdir/configure \
22095 --srcdir=$${topdir}/$$module_srcdir \
4b900473 22096 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22097 --target=${target_alias} \
2a4cbe27 22098 || exit 1
a90ef4bf 22099@endif libgui
2a4cbe27 22100
a7254363
PB
22101
22102
d545f33b
PB
22103
22104
a90ef4bf
JM
22105.PHONY: all-libgui maybe-all-libgui
22106maybe-all-libgui:
4f0ef2d8 22107@if gcc-bootstrap
a90ef4bf 22108all-libgui: stage_current
4f0ef2d8 22109@endif gcc-bootstrap
a90ef4bf
JM
22110@if libgui
22111TARGET-libgui=all
22112maybe-all-libgui: all-libgui
22113all-libgui: configure-libgui
0aed8855 22114 @: $(MAKE); $(unstage)
4fa63067
NN
22115 @r=`${PWD_COMMAND}`; export r; \
22116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22117 $(HOST_EXPORTS) \
a90ef4bf 22118 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 22119 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22120 $(TARGET-libgui))
22121@endif libgui
2a4cbe27 22122
a7254363 22123
d545f33b
PB
22124
22125
a90ef4bf
JM
22126.PHONY: check-libgui maybe-check-libgui
22127maybe-check-libgui:
22128@if libgui
22129maybe-check-libgui: check-libgui
2a4cbe27 22130
a90ef4bf 22131check-libgui:
0aed8855 22132 @: $(MAKE); $(unstage)
4fa63067 22133 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22135 $(HOST_EXPORTS) \
a90ef4bf 22136 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22137 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22138
a90ef4bf 22139@endif libgui
2a4cbe27 22140
a90ef4bf
JM
22141.PHONY: install-libgui maybe-install-libgui
22142maybe-install-libgui:
22143@if libgui
22144maybe-install-libgui: install-libgui
2a4cbe27 22145
a90ef4bf 22146install-libgui: installdirs
0aed8855 22147 @: $(MAKE); $(unstage)
4fa63067 22148 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22150 $(HOST_EXPORTS) \
a90ef4bf 22151 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22152 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22153
a90ef4bf 22154@endif libgui
2a4cbe27 22155
a90ef4bf
JM
22156.PHONY: install-strip-libgui maybe-install-strip-libgui
22157maybe-install-strip-libgui:
22158@if libgui
22159maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22160
a90ef4bf 22161install-strip-libgui: installdirs
9b980aa1
RW
22162 @: $(MAKE); $(unstage)
22163 @r=`${PWD_COMMAND}`; export r; \
22164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22165 $(HOST_EXPORTS) \
a90ef4bf 22166 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22167 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22168
a90ef4bf 22169@endif libgui
9b980aa1 22170
56a8fe78 22171# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22172
a90ef4bf
JM
22173.PHONY: maybe-info-libgui info-libgui
22174maybe-info-libgui:
22175@if libgui
22176maybe-info-libgui: info-libgui
4fa63067 22177
a90ef4bf
JM
22178info-libgui: \
22179 configure-libgui
0aed8855 22180 @: $(MAKE); $(unstage)
a90ef4bf 22181 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22182 r=`${PWD_COMMAND}`; export r; \
22183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22184 $(HOST_EXPORTS) \
b813574b 22185 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22187 done; \
22121df0 22188 echo "Doing info in libgui"; \
a90ef4bf 22189 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22192 "RANLIB=$${RANLIB}" \
0c24b341 22193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22194 info) \
2a4cbe27
NN
22195 || exit 1
22196
a90ef4bf 22197@endif libgui
2a4cbe27 22198
a90ef4bf
JM
22199.PHONY: maybe-dvi-libgui dvi-libgui
22200maybe-dvi-libgui:
22201@if libgui
22202maybe-dvi-libgui: dvi-libgui
2a4cbe27 22203
a90ef4bf
JM
22204dvi-libgui: \
22205 configure-libgui
0aed8855 22206 @: $(MAKE); $(unstage)
a90ef4bf 22207 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22208 r=`${PWD_COMMAND}`; export r; \
22209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22210 $(HOST_EXPORTS) \
b813574b 22211 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22213 done; \
22121df0 22214 echo "Doing dvi in libgui"; \
a90ef4bf 22215 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22218 "RANLIB=$${RANLIB}" \
0c24b341 22219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22220 dvi) \
2a4cbe27
NN
22221 || exit 1
22222
a90ef4bf 22223@endif libgui
2a4cbe27 22224
a90ef4bf
JM
22225.PHONY: maybe-pdf-libgui pdf-libgui
22226maybe-pdf-libgui:
22227@if libgui
22228maybe-pdf-libgui: pdf-libgui
56a8fe78 22229
a90ef4bf
JM
22230pdf-libgui: \
22231 configure-libgui
56a8fe78 22232 @: $(MAKE); $(unstage)
a90ef4bf 22233 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22234 r=`${PWD_COMMAND}`; export r; \
22235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22236 $(HOST_EXPORTS) \
22237 for flag in $(EXTRA_HOST_FLAGS) ; do \
22238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22239 done; \
22121df0 22240 echo "Doing pdf in libgui"; \
a90ef4bf 22241 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22244 "RANLIB=$${RANLIB}" \
0c24b341 22245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22246 pdf) \
22247 || exit 1
22248
a90ef4bf 22249@endif libgui
56a8fe78 22250
a90ef4bf
JM
22251.PHONY: maybe-html-libgui html-libgui
22252maybe-html-libgui:
22253@if libgui
22254maybe-html-libgui: html-libgui
6d389afc 22255
a90ef4bf
JM
22256html-libgui: \
22257 configure-libgui
0aed8855 22258 @: $(MAKE); $(unstage)
a90ef4bf 22259 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22260 r=`${PWD_COMMAND}`; export r; \
22261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22262 $(HOST_EXPORTS) \
22263 for flag in $(EXTRA_HOST_FLAGS) ; do \
22264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22265 done; \
22121df0 22266 echo "Doing html in libgui"; \
a90ef4bf 22267 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22270 "RANLIB=$${RANLIB}" \
0c24b341 22271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22272 html) \
22273 || exit 1
22274
a90ef4bf 22275@endif libgui
6d389afc 22276
a90ef4bf
JM
22277.PHONY: maybe-TAGS-libgui TAGS-libgui
22278maybe-TAGS-libgui:
22279@if libgui
22280maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22281
a90ef4bf
JM
22282TAGS-libgui: \
22283 configure-libgui
0aed8855 22284 @: $(MAKE); $(unstage)
a90ef4bf 22285 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22286 r=`${PWD_COMMAND}`; export r; \
22287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22288 $(HOST_EXPORTS) \
b813574b 22289 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22291 done; \
22121df0 22292 echo "Doing TAGS in libgui"; \
a90ef4bf 22293 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22296 "RANLIB=$${RANLIB}" \
0c24b341 22297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22298 TAGS) \
2a4cbe27
NN
22299 || exit 1
22300
a90ef4bf 22301@endif libgui
2a4cbe27 22302
a90ef4bf
JM
22303.PHONY: maybe-install-info-libgui install-info-libgui
22304maybe-install-info-libgui:
22305@if libgui
22306maybe-install-info-libgui: install-info-libgui
2a4cbe27 22307
a90ef4bf
JM
22308install-info-libgui: \
22309 configure-libgui \
22310 info-libgui
0aed8855 22311 @: $(MAKE); $(unstage)
a90ef4bf 22312 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22313 r=`${PWD_COMMAND}`; export r; \
22314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22315 $(HOST_EXPORTS) \
b813574b 22316 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22318 done; \
22121df0 22319 echo "Doing install-info in libgui"; \
a90ef4bf 22320 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22323 "RANLIB=$${RANLIB}" \
0c24b341 22324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22325 install-info) \
2a4cbe27
NN
22326 || exit 1
22327
a90ef4bf 22328@endif libgui
2a4cbe27 22329
a90ef4bf
JM
22330.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22331maybe-install-pdf-libgui:
22332@if libgui
22333maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22334
a90ef4bf
JM
22335install-pdf-libgui: \
22336 configure-libgui \
22337 pdf-libgui
a3ca38d2 22338 @: $(MAKE); $(unstage)
a90ef4bf 22339 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22340 r=`${PWD_COMMAND}`; export r; \
22341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22342 $(HOST_EXPORTS) \
22343 for flag in $(EXTRA_HOST_FLAGS) ; do \
22344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22345 done; \
22121df0 22346 echo "Doing install-pdf in libgui"; \
a90ef4bf 22347 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22350 "RANLIB=$${RANLIB}" \
0c24b341 22351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22352 install-pdf) \
22353 || exit 1
22354
a90ef4bf 22355@endif libgui
a3ca38d2 22356
a90ef4bf
JM
22357.PHONY: maybe-install-html-libgui install-html-libgui
22358maybe-install-html-libgui:
22359@if libgui
22360maybe-install-html-libgui: install-html-libgui
108a6f8e 22361
a90ef4bf
JM
22362install-html-libgui: \
22363 configure-libgui \
22364 html-libgui
108a6f8e 22365 @: $(MAKE); $(unstage)
a90ef4bf 22366 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22367 r=`${PWD_COMMAND}`; export r; \
22368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22369 $(HOST_EXPORTS) \
22370 for flag in $(EXTRA_HOST_FLAGS) ; do \
22371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22372 done; \
22121df0 22373 echo "Doing install-html in libgui"; \
a90ef4bf 22374 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22377 "RANLIB=$${RANLIB}" \
0c24b341 22378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22379 install-html) \
22380 || exit 1
22381
a90ef4bf 22382@endif libgui
108a6f8e 22383
a90ef4bf
JM
22384.PHONY: maybe-installcheck-libgui installcheck-libgui
22385maybe-installcheck-libgui:
22386@if libgui
22387maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22388
a90ef4bf
JM
22389installcheck-libgui: \
22390 configure-libgui
0aed8855 22391 @: $(MAKE); $(unstage)
a90ef4bf 22392 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22393 r=`${PWD_COMMAND}`; export r; \
22394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22395 $(HOST_EXPORTS) \
b813574b 22396 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22398 done; \
22121df0 22399 echo "Doing installcheck in libgui"; \
a90ef4bf 22400 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22403 "RANLIB=$${RANLIB}" \
0c24b341 22404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22405 installcheck) \
2a4cbe27
NN
22406 || exit 1
22407
a90ef4bf 22408@endif libgui
2a4cbe27 22409
a90ef4bf
JM
22410.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22411maybe-mostlyclean-libgui:
22412@if libgui
22413maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22414
a90ef4bf 22415mostlyclean-libgui:
0aed8855 22416 @: $(MAKE); $(unstage)
a90ef4bf 22417 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22418 r=`${PWD_COMMAND}`; export r; \
22419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22420 $(HOST_EXPORTS) \
b813574b 22421 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22423 done; \
22121df0 22424 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22425 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22428 "RANLIB=$${RANLIB}" \
0c24b341 22429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22430 mostlyclean) \
2a4cbe27
NN
22431 || exit 1
22432
a90ef4bf 22433@endif libgui
2a4cbe27 22434
a90ef4bf
JM
22435.PHONY: maybe-clean-libgui clean-libgui
22436maybe-clean-libgui:
22437@if libgui
22438maybe-clean-libgui: clean-libgui
2a4cbe27 22439
a90ef4bf 22440clean-libgui:
0aed8855 22441 @: $(MAKE); $(unstage)
a90ef4bf 22442 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22443 r=`${PWD_COMMAND}`; export r; \
22444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22445 $(HOST_EXPORTS) \
b813574b 22446 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22448 done; \
22121df0 22449 echo "Doing clean in libgui"; \
a90ef4bf 22450 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22453 "RANLIB=$${RANLIB}" \
0c24b341 22454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22455 clean) \
2a4cbe27
NN
22456 || exit 1
22457
a90ef4bf 22458@endif libgui
2a4cbe27 22459
a90ef4bf
JM
22460.PHONY: maybe-distclean-libgui distclean-libgui
22461maybe-distclean-libgui:
22462@if libgui
22463maybe-distclean-libgui: distclean-libgui
2a4cbe27 22464
a90ef4bf 22465distclean-libgui:
0aed8855 22466 @: $(MAKE); $(unstage)
a90ef4bf 22467 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22468 r=`${PWD_COMMAND}`; export r; \
22469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22470 $(HOST_EXPORTS) \
b813574b 22471 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22473 done; \
22121df0 22474 echo "Doing distclean in libgui"; \
a90ef4bf 22475 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22478 "RANLIB=$${RANLIB}" \
0c24b341 22479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22480 distclean) \
2a4cbe27
NN
22481 || exit 1
22482
a90ef4bf 22483@endif libgui
2a4cbe27 22484
a90ef4bf
JM
22485.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22486maybe-maintainer-clean-libgui:
22487@if libgui
22488maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22489
a90ef4bf 22490maintainer-clean-libgui:
0aed8855 22491 @: $(MAKE); $(unstage)
a90ef4bf 22492 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22493 r=`${PWD_COMMAND}`; export r; \
22494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22495 $(HOST_EXPORTS) \
b813574b 22496 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22498 done; \
22121df0 22499 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22500 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22503 "RANLIB=$${RANLIB}" \
0c24b341 22504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22505 maintainer-clean) \
2a4cbe27
NN
22506 || exit 1
22507
a90ef4bf 22508@endif libgui
2a4cbe27 22509
2a4cbe27 22510
a7254363 22511
a90ef4bf
JM
22512.PHONY: configure-libiberty maybe-configure-libiberty
22513maybe-configure-libiberty:
93f9b408 22514@if gcc-bootstrap
a90ef4bf 22515configure-libiberty: stage_current
93f9b408 22516@endif gcc-bootstrap
a90ef4bf
JM
22517@if libiberty
22518maybe-configure-libiberty: configure-libiberty
22519configure-libiberty:
93f9b408
ILT
22520 @r=`${PWD_COMMAND}`; export r; \
22521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22522 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22523 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22524 $(HOST_EXPORTS) \
a90ef4bf
JM
22525 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22526 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22527 case $(srcdir) in \
22528 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22529 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22530 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22531 esac; \
1b6c0831
L
22532 module_srcdir=libiberty; \
22533 $(SHELL) \
22534 $$s/$$module_srcdir/configure \
22535 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22536 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22537 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22538 || exit 1
a90ef4bf 22539@endif libiberty
93f9b408
ILT
22540
22541
22542
a90ef4bf
JM
22543.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22544maybe-configure-stage1-libiberty:
22545@if libiberty-bootstrap
22546maybe-configure-stage1-libiberty: configure-stage1-libiberty
22547configure-stage1-libiberty:
93f9b408 22548 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22549 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22550 @r=`${PWD_COMMAND}`; export r; \
22551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22552 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22553 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22554 $(HOST_EXPORTS) \
93f9b408 22555 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22556 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22557 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22558 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22559 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22560 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22561 case $(srcdir) in \
22562 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22563 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22564 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22565 esac; \
1b6c0831
L
22566 module_srcdir=libiberty; \
22567 $(SHELL) $$s/$$module_srcdir/configure \
22568 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22569 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22570 --target=${target_alias} \
22571 \
a90ef4bf
JM
22572 $(STAGE1_CONFIGURE_FLAGS) \
22573 @extra_host_libiberty_configure_flags@
22574@endif libiberty-bootstrap
93f9b408 22575
a90ef4bf
JM
22576.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22577maybe-configure-stage2-libiberty:
22578@if libiberty-bootstrap
22579maybe-configure-stage2-libiberty: configure-stage2-libiberty
22580configure-stage2-libiberty:
93f9b408 22581 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22582 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22583 @r=`${PWD_COMMAND}`; export r; \
22584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22585 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22586 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22587 $(HOST_EXPORTS) \
1b05fbbd 22588 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22589 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22590 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22591 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22592 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22593 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22594 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22595 case $(srcdir) in \
22596 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22597 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22598 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22599 esac; \
1b6c0831
L
22600 module_srcdir=libiberty; \
22601 $(SHELL) $$s/$$module_srcdir/configure \
22602 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22603 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22604 --target=${target_alias} \
22121df0 22605 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22606 $(STAGE2_CONFIGURE_FLAGS) \
22607 @extra_host_libiberty_configure_flags@
22608@endif libiberty-bootstrap
93f9b408 22609
a90ef4bf
JM
22610.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22611maybe-configure-stage3-libiberty:
22612@if libiberty-bootstrap
22613maybe-configure-stage3-libiberty: configure-stage3-libiberty
22614configure-stage3-libiberty:
93f9b408 22615 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22616 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22617 @r=`${PWD_COMMAND}`; export r; \
22618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22619 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22620 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22621 $(HOST_EXPORTS) \
1b05fbbd 22622 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22623 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22624 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22625 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22626 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22627 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22628 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22629 case $(srcdir) in \
22630 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22631 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22632 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22633 esac; \
1b6c0831
L
22634 module_srcdir=libiberty; \
22635 $(SHELL) $$s/$$module_srcdir/configure \
22636 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22637 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22638 --target=${target_alias} \
22121df0 22639 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22640 $(STAGE3_CONFIGURE_FLAGS) \
22641 @extra_host_libiberty_configure_flags@
22642@endif libiberty-bootstrap
93f9b408 22643
a90ef4bf
JM
22644.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22645maybe-configure-stage4-libiberty:
22646@if libiberty-bootstrap
22647maybe-configure-stage4-libiberty: configure-stage4-libiberty
22648configure-stage4-libiberty:
93f9b408 22649 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22650 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22651 @r=`${PWD_COMMAND}`; export r; \
22652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22653 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22654 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22655 $(HOST_EXPORTS) \
1b05fbbd 22656 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22657 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22658 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22659 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22660 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22661 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22662 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22663 case $(srcdir) in \
22664 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22665 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22666 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22667 esac; \
1b6c0831
L
22668 module_srcdir=libiberty; \
22669 $(SHELL) $$s/$$module_srcdir/configure \
22670 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22671 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22672 --target=${target_alias} \
22121df0 22673 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22674 $(STAGE4_CONFIGURE_FLAGS) \
22675 @extra_host_libiberty_configure_flags@
22676@endif libiberty-bootstrap
93f9b408 22677
a90ef4bf
JM
22678.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22679maybe-configure-stageprofile-libiberty:
22680@if libiberty-bootstrap
22681maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22682configure-stageprofile-libiberty:
93f9b408 22683 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22684 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22685 @r=`${PWD_COMMAND}`; export r; \
22686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22687 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22688 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22689 $(HOST_EXPORTS) \
1b05fbbd
AO
22690 $(POSTSTAGE1_HOST_EXPORTS) \
22691 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22692 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22693 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22694 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22695 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22696 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22697 case $(srcdir) in \
22698 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22699 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22700 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22701 esac; \
1b6c0831
L
22702 module_srcdir=libiberty; \
22703 $(SHELL) $$s/$$module_srcdir/configure \
22704 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22705 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22706 --target=${target_alias} \
22121df0 22707 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22708 $(STAGEprofile_CONFIGURE_FLAGS) \
22709 @extra_host_libiberty_configure_flags@
22710@endif libiberty-bootstrap
93f9b408 22711
a90ef4bf
JM
22712.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22713maybe-configure-stagefeedback-libiberty:
22714@if libiberty-bootstrap
22715maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22716configure-stagefeedback-libiberty:
93f9b408 22717 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22718 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22719 @r=`${PWD_COMMAND}`; export r; \
22720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22721 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22722 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22723 $(HOST_EXPORTS) \
1b05fbbd
AO
22724 $(POSTSTAGE1_HOST_EXPORTS) \
22725 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22726 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22727 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22728 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22729 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22730 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22731 case $(srcdir) in \
22732 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22733 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22734 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22735 esac; \
1b6c0831
L
22736 module_srcdir=libiberty; \
22737 $(SHELL) $$s/$$module_srcdir/configure \
22738 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22739 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22740 --target=${target_alias} \
22121df0 22741 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22742 $(STAGEfeedback_CONFIGURE_FLAGS) \
22743 @extra_host_libiberty_configure_flags@
22744@endif libiberty-bootstrap
93f9b408
ILT
22745
22746
22747
22748
22749
a90ef4bf
JM
22750.PHONY: all-libiberty maybe-all-libiberty
22751maybe-all-libiberty:
93f9b408 22752@if gcc-bootstrap
a90ef4bf 22753all-libiberty: stage_current
93f9b408 22754@endif gcc-bootstrap
a90ef4bf
JM
22755@if libiberty
22756TARGET-libiberty=all
22757maybe-all-libiberty: all-libiberty
22758all-libiberty: configure-libiberty
93f9b408
ILT
22759 @r=`${PWD_COMMAND}`; export r; \
22760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22761 $(HOST_EXPORTS) \
a90ef4bf 22762 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22763 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22764 $(TARGET-libiberty))
22765@endif libiberty
93f9b408
ILT
22766
22767
22768
a90ef4bf
JM
22769.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22770.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22771maybe-all-stage1-libiberty:
22772maybe-clean-stage1-libiberty:
22773@if libiberty-bootstrap
22774maybe-all-stage1-libiberty: all-stage1-libiberty
22775all-stage1: all-stage1-libiberty
22776TARGET-stage1-libiberty = $(TARGET-libiberty)
22777all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22778 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22779 @r=`${PWD_COMMAND}`; export r; \
22780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22781 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22782 $(HOST_EXPORTS) \
a90ef4bf 22783 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22784 \
93f9b408 22785 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22786 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22787 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22788 LIBCFLAGS="$(LIBCFLAGS)" \
22789 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22790 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22791 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22792 $(EXTRA_HOST_FLAGS) \
22793 $(STAGE1_FLAGS_TO_PASS) \
05a13254 22794 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22795 $(TARGET-stage1-libiberty)
93f9b408 22796
a90ef4bf
JM
22797maybe-clean-stage1-libiberty: clean-stage1-libiberty
22798clean-stage1: clean-stage1-libiberty
22799clean-stage1-libiberty:
93f9b408 22800 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22801 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22802 else \
a90ef4bf 22803 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22804 $(MAKE) stage1-start; \
22805 fi; \
a90ef4bf 22806 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22807 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22808 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22809@endif libiberty-bootstrap
93f9b408
ILT
22810
22811
a90ef4bf
JM
22812.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22813.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22814maybe-all-stage2-libiberty:
22815maybe-clean-stage2-libiberty:
22816@if libiberty-bootstrap
22817maybe-all-stage2-libiberty: all-stage2-libiberty
22818all-stage2: all-stage2-libiberty
22819TARGET-stage2-libiberty = $(TARGET-libiberty)
22820all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22821 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22822 @r=`${PWD_COMMAND}`; export r; \
22823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22824 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22825 $(HOST_EXPORTS) \
1f53ca9a 22826 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22827 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22828 \
93f9b408 22829 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22830 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22831 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22832 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22833 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22834 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22835 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22836 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22837 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22838 $(TARGET-stage2-libiberty)
93f9b408 22839
a90ef4bf
JM
22840maybe-clean-stage2-libiberty: clean-stage2-libiberty
22841clean-stage2: clean-stage2-libiberty
22842clean-stage2-libiberty:
93f9b408 22843 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22844 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22845 else \
a90ef4bf 22846 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22847 $(MAKE) stage2-start; \
22848 fi; \
a90ef4bf 22849 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22850 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22851@endif libiberty-bootstrap
93f9b408
ILT
22852
22853
a90ef4bf
JM
22854.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22855.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22856maybe-all-stage3-libiberty:
22857maybe-clean-stage3-libiberty:
22858@if libiberty-bootstrap
22859maybe-all-stage3-libiberty: all-stage3-libiberty
22860all-stage3: all-stage3-libiberty
22861TARGET-stage3-libiberty = $(TARGET-libiberty)
22862all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22863 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22864 @r=`${PWD_COMMAND}`; export r; \
22865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22866 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22867 $(HOST_EXPORTS) \
1f53ca9a 22868 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22869 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22870 \
93f9b408 22871 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22872 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22873 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22874 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22875 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22876 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22877 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22878 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22879 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22880 $(TARGET-stage3-libiberty)
93f9b408 22881
a90ef4bf
JM
22882maybe-clean-stage3-libiberty: clean-stage3-libiberty
22883clean-stage3: clean-stage3-libiberty
22884clean-stage3-libiberty:
93f9b408 22885 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22886 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22887 else \
a90ef4bf 22888 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22889 $(MAKE) stage3-start; \
22890 fi; \
a90ef4bf 22891 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22892 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22893@endif libiberty-bootstrap
93f9b408
ILT
22894
22895
a90ef4bf
JM
22896.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22897.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22898maybe-all-stage4-libiberty:
22899maybe-clean-stage4-libiberty:
22900@if libiberty-bootstrap
22901maybe-all-stage4-libiberty: all-stage4-libiberty
22902all-stage4: all-stage4-libiberty
22903TARGET-stage4-libiberty = $(TARGET-libiberty)
22904all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22905 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22906 @r=`${PWD_COMMAND}`; export r; \
22907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22908 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22909 $(HOST_EXPORTS) \
1f53ca9a 22910 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22911 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22912 \
93f9b408 22913 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22914 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22915 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22916 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22917 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22918 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22919 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22920 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22921 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22922 $(TARGET-stage4-libiberty)
93f9b408 22923
a90ef4bf
JM
22924maybe-clean-stage4-libiberty: clean-stage4-libiberty
22925clean-stage4: clean-stage4-libiberty
22926clean-stage4-libiberty:
93f9b408 22927 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22928 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22929 else \
a90ef4bf 22930 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22931 $(MAKE) stage4-start; \
22932 fi; \
a90ef4bf 22933 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22934 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22935@endif libiberty-bootstrap
93f9b408
ILT
22936
22937
a90ef4bf
JM
22938.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22939.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22940maybe-all-stageprofile-libiberty:
22941maybe-clean-stageprofile-libiberty:
22942@if libiberty-bootstrap
22943maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22944all-stageprofile: all-stageprofile-libiberty
22945TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22946all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22947 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22948 @r=`${PWD_COMMAND}`; export r; \
22949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22950 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22951 $(HOST_EXPORTS) \
1f53ca9a 22952 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22953 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22954 \
93f9b408 22955 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22956 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22957 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22958 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22959 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22960 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22961 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22962 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22963 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22964 $(TARGET-stageprofile-libiberty)
93f9b408 22965
a90ef4bf
JM
22966maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22967clean-stageprofile: clean-stageprofile-libiberty
22968clean-stageprofile-libiberty:
93f9b408 22969 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22970 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22971 else \
a90ef4bf 22972 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22973 $(MAKE) stageprofile-start; \
22974 fi; \
a90ef4bf 22975 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22976 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22977@endif libiberty-bootstrap
93f9b408
ILT
22978
22979
a90ef4bf
JM
22980.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22981.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22982maybe-all-stagefeedback-libiberty:
22983maybe-clean-stagefeedback-libiberty:
22984@if libiberty-bootstrap
22985maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22986all-stagefeedback: all-stagefeedback-libiberty
22987TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22988all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22989 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22990 @r=`${PWD_COMMAND}`; export r; \
22991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22992 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22993 $(HOST_EXPORTS) \
1f53ca9a 22994 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22995 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22996 \
93f9b408 22997 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22998 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22999 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
23000 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23001 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23002 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23003 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23004 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 23005 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 23006 $(TARGET-stagefeedback-libiberty)
93f9b408 23007
a90ef4bf
JM
23008maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
23009clean-stagefeedback: clean-stagefeedback-libiberty
23010clean-stagefeedback-libiberty:
93f9b408 23011 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 23012 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 23013 else \
a90ef4bf 23014 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23015 $(MAKE) stagefeedback-start; \
23016 fi; \
a90ef4bf 23017 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 23018 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 23019@endif libiberty-bootstrap
93f9b408
ILT
23020
23021
23022
23023
23024
a90ef4bf
JM
23025.PHONY: check-libiberty maybe-check-libiberty
23026maybe-check-libiberty:
23027@if libiberty
23028maybe-check-libiberty: check-libiberty
93f9b408 23029
a90ef4bf 23030check-libiberty:
93f9b408
ILT
23031 @: $(MAKE); $(unstage)
23032 @r=`${PWD_COMMAND}`; export r; \
23033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23034 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 23035 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 23036 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 23037
a90ef4bf 23038@endif libiberty
93f9b408 23039
a90ef4bf
JM
23040.PHONY: install-libiberty maybe-install-libiberty
23041maybe-install-libiberty:
23042@if libiberty
23043maybe-install-libiberty: install-libiberty
93f9b408 23044
a90ef4bf 23045install-libiberty: installdirs
93f9b408
ILT
23046 @: $(MAKE); $(unstage)
23047 @r=`${PWD_COMMAND}`; export r; \
23048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23049 $(HOST_EXPORTS) \
a90ef4bf 23050 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23051 $(MAKE) $(FLAGS_TO_PASS) install)
23052
a90ef4bf 23053@endif libiberty
93f9b408 23054
a90ef4bf
JM
23055.PHONY: install-strip-libiberty maybe-install-strip-libiberty
23056maybe-install-strip-libiberty:
23057@if libiberty
23058maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 23059
a90ef4bf 23060install-strip-libiberty: installdirs
9b980aa1
RW
23061 @: $(MAKE); $(unstage)
23062 @r=`${PWD_COMMAND}`; export r; \
23063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23064 $(HOST_EXPORTS) \
a90ef4bf 23065 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
23066 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23067
a90ef4bf 23068@endif libiberty
9b980aa1 23069
93f9b408
ILT
23070# Other targets (info, dvi, pdf, etc.)
23071
a90ef4bf
JM
23072.PHONY: maybe-info-libiberty info-libiberty
23073maybe-info-libiberty:
23074@if libiberty
23075maybe-info-libiberty: info-libiberty
93f9b408 23076
a90ef4bf
JM
23077info-libiberty: \
23078 configure-libiberty
23079 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23080 r=`${PWD_COMMAND}`; export r; \
23081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23082 $(HOST_EXPORTS) \
23083 for flag in $(EXTRA_HOST_FLAGS) ; do \
23084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23085 done; \
22121df0 23086 echo "Doing info in libiberty"; \
a90ef4bf 23087 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23090 "RANLIB=$${RANLIB}" \
23091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23092 info) \
23093 || exit 1
23094
a90ef4bf 23095@endif libiberty
93f9b408 23096
a90ef4bf
JM
23097.PHONY: maybe-dvi-libiberty dvi-libiberty
23098maybe-dvi-libiberty:
23099@if libiberty
23100maybe-dvi-libiberty: dvi-libiberty
93f9b408 23101
a90ef4bf
JM
23102dvi-libiberty: \
23103 configure-libiberty
23104 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23105 r=`${PWD_COMMAND}`; export r; \
23106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23107 $(HOST_EXPORTS) \
23108 for flag in $(EXTRA_HOST_FLAGS) ; do \
23109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23110 done; \
22121df0 23111 echo "Doing dvi in libiberty"; \
a90ef4bf 23112 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23115 "RANLIB=$${RANLIB}" \
23116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23117 dvi) \
23118 || exit 1
23119
a90ef4bf 23120@endif libiberty
93f9b408 23121
a90ef4bf
JM
23122.PHONY: maybe-pdf-libiberty pdf-libiberty
23123maybe-pdf-libiberty:
23124@if libiberty
23125maybe-pdf-libiberty: pdf-libiberty
93f9b408 23126
a90ef4bf
JM
23127pdf-libiberty: \
23128 configure-libiberty
23129 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23130 r=`${PWD_COMMAND}`; export r; \
23131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23132 $(HOST_EXPORTS) \
23133 for flag in $(EXTRA_HOST_FLAGS) ; do \
23134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23135 done; \
22121df0 23136 echo "Doing pdf in libiberty"; \
a90ef4bf 23137 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23140 "RANLIB=$${RANLIB}" \
23141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23142 pdf) \
23143 || exit 1
23144
a90ef4bf 23145@endif libiberty
93f9b408 23146
a90ef4bf
JM
23147.PHONY: maybe-html-libiberty html-libiberty
23148maybe-html-libiberty:
23149@if libiberty
23150maybe-html-libiberty: html-libiberty
93f9b408 23151
a90ef4bf
JM
23152html-libiberty: \
23153 configure-libiberty
23154 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23155 r=`${PWD_COMMAND}`; export r; \
23156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23157 $(HOST_EXPORTS) \
23158 for flag in $(EXTRA_HOST_FLAGS) ; do \
23159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23160 done; \
22121df0 23161 echo "Doing html in libiberty"; \
a90ef4bf 23162 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23165 "RANLIB=$${RANLIB}" \
23166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23167 html) \
23168 || exit 1
23169
a90ef4bf 23170@endif libiberty
93f9b408 23171
a90ef4bf
JM
23172.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23173maybe-TAGS-libiberty:
23174@if libiberty
23175maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23176
a90ef4bf
JM
23177TAGS-libiberty: \
23178 configure-libiberty
23179 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23180 r=`${PWD_COMMAND}`; export r; \
23181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23182 $(HOST_EXPORTS) \
23183 for flag in $(EXTRA_HOST_FLAGS) ; do \
23184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23185 done; \
22121df0 23186 echo "Doing TAGS in libiberty"; \
a90ef4bf 23187 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23190 "RANLIB=$${RANLIB}" \
23191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23192 TAGS) \
23193 || exit 1
23194
a90ef4bf 23195@endif libiberty
93f9b408 23196
a90ef4bf
JM
23197.PHONY: maybe-install-info-libiberty install-info-libiberty
23198maybe-install-info-libiberty:
23199@if libiberty
23200maybe-install-info-libiberty: install-info-libiberty
93f9b408 23201
a90ef4bf
JM
23202install-info-libiberty: \
23203 configure-libiberty \
23204 info-libiberty
23205 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23206 r=`${PWD_COMMAND}`; export r; \
23207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23208 $(HOST_EXPORTS) \
23209 for flag in $(EXTRA_HOST_FLAGS) ; do \
23210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23211 done; \
22121df0 23212 echo "Doing install-info in libiberty"; \
a90ef4bf 23213 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23216 "RANLIB=$${RANLIB}" \
23217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23218 install-info) \
23219 || exit 1
23220
a90ef4bf 23221@endif libiberty
93f9b408 23222
a90ef4bf
JM
23223.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23224maybe-install-pdf-libiberty:
23225@if libiberty
23226maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23227
a90ef4bf
JM
23228install-pdf-libiberty: \
23229 configure-libiberty \
23230 pdf-libiberty
23231 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23232 r=`${PWD_COMMAND}`; export r; \
23233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23234 $(HOST_EXPORTS) \
23235 for flag in $(EXTRA_HOST_FLAGS) ; do \
23236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23237 done; \
22121df0 23238 echo "Doing install-pdf in libiberty"; \
a90ef4bf 23239 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23242 "RANLIB=$${RANLIB}" \
23243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23244 install-pdf) \
23245 || exit 1
23246
a90ef4bf 23247@endif libiberty
93f9b408 23248
a90ef4bf
JM
23249.PHONY: maybe-install-html-libiberty install-html-libiberty
23250maybe-install-html-libiberty:
23251@if libiberty
23252maybe-install-html-libiberty: install-html-libiberty
93f9b408 23253
a90ef4bf
JM
23254install-html-libiberty: \
23255 configure-libiberty \
23256 html-libiberty
23257 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23258 r=`${PWD_COMMAND}`; export r; \
23259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23260 $(HOST_EXPORTS) \
23261 for flag in $(EXTRA_HOST_FLAGS) ; do \
23262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23263 done; \
22121df0 23264 echo "Doing install-html in libiberty"; \
a90ef4bf 23265 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23268 "RANLIB=$${RANLIB}" \
23269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23270 install-html) \
23271 || exit 1
23272
a90ef4bf 23273@endif libiberty
93f9b408 23274
a90ef4bf
JM
23275.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23276maybe-installcheck-libiberty:
23277@if libiberty
23278maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23279
a90ef4bf
JM
23280installcheck-libiberty: \
23281 configure-libiberty
23282 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23283 r=`${PWD_COMMAND}`; export r; \
23284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23285 $(HOST_EXPORTS) \
23286 for flag in $(EXTRA_HOST_FLAGS) ; do \
23287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23288 done; \
22121df0 23289 echo "Doing installcheck in libiberty"; \
a90ef4bf 23290 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23293 "RANLIB=$${RANLIB}" \
23294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23295 installcheck) \
23296 || exit 1
23297
a90ef4bf 23298@endif libiberty
93f9b408 23299
a90ef4bf
JM
23300.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23301maybe-mostlyclean-libiberty:
23302@if libiberty
23303maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23304
a90ef4bf
JM
23305mostlyclean-libiberty:
23306 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23307 r=`${PWD_COMMAND}`; export r; \
23308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23309 $(HOST_EXPORTS) \
23310 for flag in $(EXTRA_HOST_FLAGS) ; do \
23311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23312 done; \
22121df0 23313 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23314 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23317 "RANLIB=$${RANLIB}" \
23318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23319 mostlyclean) \
23320 || exit 1
23321
a90ef4bf 23322@endif libiberty
93f9b408 23323
a90ef4bf
JM
23324.PHONY: maybe-clean-libiberty clean-libiberty
23325maybe-clean-libiberty:
23326@if libiberty
23327maybe-clean-libiberty: clean-libiberty
93f9b408 23328
a90ef4bf
JM
23329clean-libiberty:
23330 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23331 r=`${PWD_COMMAND}`; export r; \
23332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23333 $(HOST_EXPORTS) \
23334 for flag in $(EXTRA_HOST_FLAGS) ; do \
23335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23336 done; \
22121df0 23337 echo "Doing clean in libiberty"; \
a90ef4bf 23338 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23341 "RANLIB=$${RANLIB}" \
23342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23343 clean) \
23344 || exit 1
23345
a90ef4bf 23346@endif libiberty
93f9b408 23347
a90ef4bf
JM
23348.PHONY: maybe-distclean-libiberty distclean-libiberty
23349maybe-distclean-libiberty:
23350@if libiberty
23351maybe-distclean-libiberty: distclean-libiberty
93f9b408 23352
a90ef4bf
JM
23353distclean-libiberty:
23354 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23355 r=`${PWD_COMMAND}`; export r; \
23356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23357 $(HOST_EXPORTS) \
23358 for flag in $(EXTRA_HOST_FLAGS) ; do \
23359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23360 done; \
22121df0 23361 echo "Doing distclean in libiberty"; \
a90ef4bf 23362 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23365 "RANLIB=$${RANLIB}" \
23366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23367 distclean) \
23368 || exit 1
23369
a90ef4bf 23370@endif libiberty
93f9b408 23371
a90ef4bf
JM
23372.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23373maybe-maintainer-clean-libiberty:
23374@if libiberty
23375maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23376
a90ef4bf
JM
23377maintainer-clean-libiberty:
23378 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23379 r=`${PWD_COMMAND}`; export r; \
23380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23381 $(HOST_EXPORTS) \
23382 for flag in $(EXTRA_HOST_FLAGS) ; do \
23383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23384 done; \
22121df0 23385 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23386 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23389 "RANLIB=$${RANLIB}" \
23390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23391 maintainer-clean) \
23392 || exit 1
23393
a90ef4bf 23394@endif libiberty
93f9b408
ILT
23395
23396
23397
1b6c0831
L
23398.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23399maybe-configure-libiberty-linker-plugin:
23400@if gcc-bootstrap
23401configure-libiberty-linker-plugin: stage_current
23402@endif gcc-bootstrap
23403@if libiberty-linker-plugin
23404maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23405configure-libiberty-linker-plugin:
23406 @r=`${PWD_COMMAND}`; export r; \
23407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23408 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23409 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23410 $(HOST_EXPORTS) \
23411 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23412 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23413 case $(srcdir) in \
23414 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23415 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23416 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23417 esac; \
23418 module_srcdir=libiberty; \
23419 $(SHELL) \
23420 $$s/$$module_srcdir/configure \
23421 --srcdir=$${topdir}/$$module_srcdir \
23422 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23423 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23424 || exit 1
23425@endif libiberty-linker-plugin
23426
23427
23428
23429.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23430maybe-configure-stage1-libiberty-linker-plugin:
23431@if libiberty-linker-plugin-bootstrap
23432maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23433configure-stage1-libiberty-linker-plugin:
23434 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23435 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23436 @r=`${PWD_COMMAND}`; export r; \
23437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23438 TFLAGS="$(STAGE1_TFLAGS)"; \
23439 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23440 $(HOST_EXPORTS) \
23441 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23442 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23443 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23444 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23445 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23446 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23447 case $(srcdir) in \
23448 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23449 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23450 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23451 esac; \
23452 module_srcdir=libiberty; \
23453 $(SHELL) $$s/$$module_srcdir/configure \
23454 --srcdir=$${topdir}/$$module_srcdir \
23455 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23456 --target=${target_alias} \
23457 \
23458 $(STAGE1_CONFIGURE_FLAGS) \
23459 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23460@endif libiberty-linker-plugin-bootstrap
23461
23462.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23463maybe-configure-stage2-libiberty-linker-plugin:
23464@if libiberty-linker-plugin-bootstrap
23465maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23466configure-stage2-libiberty-linker-plugin:
23467 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23468 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23469 @r=`${PWD_COMMAND}`; export r; \
23470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23471 TFLAGS="$(STAGE2_TFLAGS)"; \
23472 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23473 $(HOST_EXPORTS) \
23474 $(POSTSTAGE1_HOST_EXPORTS) \
23475 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23476 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23477 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23478 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23479 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23480 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23481 case $(srcdir) in \
23482 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23483 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23484 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23485 esac; \
23486 module_srcdir=libiberty; \
23487 $(SHELL) $$s/$$module_srcdir/configure \
23488 --srcdir=$${topdir}/$$module_srcdir \
23489 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23490 --target=${target_alias} \
22121df0 23491 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23492 $(STAGE2_CONFIGURE_FLAGS) \
23493 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23494@endif libiberty-linker-plugin-bootstrap
23495
23496.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23497maybe-configure-stage3-libiberty-linker-plugin:
23498@if libiberty-linker-plugin-bootstrap
23499maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23500configure-stage3-libiberty-linker-plugin:
23501 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23502 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23503 @r=`${PWD_COMMAND}`; export r; \
23504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23505 TFLAGS="$(STAGE3_TFLAGS)"; \
23506 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23507 $(HOST_EXPORTS) \
23508 $(POSTSTAGE1_HOST_EXPORTS) \
23509 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23510 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23511 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23512 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23513 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23514 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23515 case $(srcdir) in \
23516 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23517 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23518 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23519 esac; \
23520 module_srcdir=libiberty; \
23521 $(SHELL) $$s/$$module_srcdir/configure \
23522 --srcdir=$${topdir}/$$module_srcdir \
23523 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23524 --target=${target_alias} \
22121df0 23525 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23526 $(STAGE3_CONFIGURE_FLAGS) \
23527 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23528@endif libiberty-linker-plugin-bootstrap
23529
23530.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23531maybe-configure-stage4-libiberty-linker-plugin:
23532@if libiberty-linker-plugin-bootstrap
23533maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23534configure-stage4-libiberty-linker-plugin:
23535 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23536 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23537 @r=`${PWD_COMMAND}`; export r; \
23538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23539 TFLAGS="$(STAGE4_TFLAGS)"; \
23540 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23541 $(HOST_EXPORTS) \
23542 $(POSTSTAGE1_HOST_EXPORTS) \
23543 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23544 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23545 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23546 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23547 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23548 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23549 case $(srcdir) in \
23550 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23551 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23552 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23553 esac; \
23554 module_srcdir=libiberty; \
23555 $(SHELL) $$s/$$module_srcdir/configure \
23556 --srcdir=$${topdir}/$$module_srcdir \
23557 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23558 --target=${target_alias} \
22121df0 23559 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23560 $(STAGE4_CONFIGURE_FLAGS) \
23561 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23562@endif libiberty-linker-plugin-bootstrap
23563
23564.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23565maybe-configure-stageprofile-libiberty-linker-plugin:
23566@if libiberty-linker-plugin-bootstrap
23567maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23568configure-stageprofile-libiberty-linker-plugin:
23569 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23570 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23571 @r=`${PWD_COMMAND}`; export r; \
23572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23573 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23574 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23575 $(HOST_EXPORTS) \
23576 $(POSTSTAGE1_HOST_EXPORTS) \
23577 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23578 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23579 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23580 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23581 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23582 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23583 case $(srcdir) in \
23584 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23585 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23586 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23587 esac; \
23588 module_srcdir=libiberty; \
23589 $(SHELL) $$s/$$module_srcdir/configure \
23590 --srcdir=$${topdir}/$$module_srcdir \
23591 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23592 --target=${target_alias} \
22121df0 23593 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23594 $(STAGEprofile_CONFIGURE_FLAGS) \
23595 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23596@endif libiberty-linker-plugin-bootstrap
23597
23598.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23599maybe-configure-stagefeedback-libiberty-linker-plugin:
23600@if libiberty-linker-plugin-bootstrap
23601maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23602configure-stagefeedback-libiberty-linker-plugin:
23603 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23604 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23605 @r=`${PWD_COMMAND}`; export r; \
23606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23607 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23608 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23609 $(HOST_EXPORTS) \
23610 $(POSTSTAGE1_HOST_EXPORTS) \
23611 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23612 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23613 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23614 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23615 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23616 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23617 case $(srcdir) in \
23618 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23619 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23620 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23621 esac; \
23622 module_srcdir=libiberty; \
23623 $(SHELL) $$s/$$module_srcdir/configure \
23624 --srcdir=$${topdir}/$$module_srcdir \
23625 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23626 --target=${target_alias} \
22121df0 23627 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23628 $(STAGEfeedback_CONFIGURE_FLAGS) \
23629 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23630@endif libiberty-linker-plugin-bootstrap
23631
23632
23633
23634
23635
23636.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23637maybe-all-libiberty-linker-plugin:
23638@if gcc-bootstrap
23639all-libiberty-linker-plugin: stage_current
23640@endif gcc-bootstrap
23641@if libiberty-linker-plugin
23642TARGET-libiberty-linker-plugin=all
23643maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23644all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23645 @r=`${PWD_COMMAND}`; export r; \
23646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23647 $(HOST_EXPORTS) \
23648 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23649 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23650 $(TARGET-libiberty-linker-plugin))
23651@endif libiberty-linker-plugin
23652
23653
23654
23655.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23656.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23657maybe-all-stage1-libiberty-linker-plugin:
23658maybe-clean-stage1-libiberty-linker-plugin:
23659@if libiberty-linker-plugin-bootstrap
23660maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23661all-stage1: all-stage1-libiberty-linker-plugin
23662TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23663all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23664 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23665 @r=`${PWD_COMMAND}`; export r; \
23666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23667 TFLAGS="$(STAGE1_TFLAGS)"; \
23668 $(HOST_EXPORTS) \
23669 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23670 \
1b6c0831
L
23671 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23672 CFLAGS="$(STAGE1_CFLAGS)" \
23673 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23674 LIBCFLAGS="$(LIBCFLAGS)" \
23675 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23676 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23677 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23678 $(EXTRA_HOST_FLAGS) \
23679 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23680 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
23681 $(TARGET-stage1-libiberty-linker-plugin)
23682
23683maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23684clean-stage1: clean-stage1-libiberty-linker-plugin
23685clean-stage1-libiberty-linker-plugin:
23686 @if [ $(current_stage) = stage1 ]; then \
23687 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23688 else \
23689 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23690 $(MAKE) stage1-start; \
23691 fi; \
23692 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23693 $(MAKE) $(EXTRA_HOST_FLAGS) \
23694 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23695@endif libiberty-linker-plugin-bootstrap
23696
23697
23698.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23699.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23700maybe-all-stage2-libiberty-linker-plugin:
23701maybe-clean-stage2-libiberty-linker-plugin:
23702@if libiberty-linker-plugin-bootstrap
23703maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23704all-stage2: all-stage2-libiberty-linker-plugin
23705TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23706all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23707 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23708 @r=`${PWD_COMMAND}`; export r; \
23709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23710 TFLAGS="$(STAGE2_TFLAGS)"; \
23711 $(HOST_EXPORTS) \
23712 $(POSTSTAGE1_HOST_EXPORTS) \
23713 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23714 \
1b6c0831
L
23715 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23716 CFLAGS="$(STAGE2_CFLAGS)" \
23717 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23718 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23719 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23720 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23721 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23722 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23723 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
23724 $(TARGET-stage2-libiberty-linker-plugin)
23725
23726maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23727clean-stage2: clean-stage2-libiberty-linker-plugin
23728clean-stage2-libiberty-linker-plugin:
23729 @if [ $(current_stage) = stage2 ]; then \
23730 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23731 else \
23732 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23733 $(MAKE) stage2-start; \
23734 fi; \
23735 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23736 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23737@endif libiberty-linker-plugin-bootstrap
23738
23739
23740.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23741.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23742maybe-all-stage3-libiberty-linker-plugin:
23743maybe-clean-stage3-libiberty-linker-plugin:
23744@if libiberty-linker-plugin-bootstrap
23745maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23746all-stage3: all-stage3-libiberty-linker-plugin
23747TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23748all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23749 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23750 @r=`${PWD_COMMAND}`; export r; \
23751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23752 TFLAGS="$(STAGE3_TFLAGS)"; \
23753 $(HOST_EXPORTS) \
23754 $(POSTSTAGE1_HOST_EXPORTS) \
23755 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23756 \
1b6c0831
L
23757 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23758 CFLAGS="$(STAGE3_CFLAGS)" \
23759 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23760 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23761 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23762 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23763 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23764 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23765 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
23766 $(TARGET-stage3-libiberty-linker-plugin)
23767
23768maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23769clean-stage3: clean-stage3-libiberty-linker-plugin
23770clean-stage3-libiberty-linker-plugin:
23771 @if [ $(current_stage) = stage3 ]; then \
23772 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23773 else \
23774 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23775 $(MAKE) stage3-start; \
23776 fi; \
23777 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23778 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23779@endif libiberty-linker-plugin-bootstrap
23780
23781
23782.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23783.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23784maybe-all-stage4-libiberty-linker-plugin:
23785maybe-clean-stage4-libiberty-linker-plugin:
23786@if libiberty-linker-plugin-bootstrap
23787maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23788all-stage4: all-stage4-libiberty-linker-plugin
23789TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23790all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23791 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23792 @r=`${PWD_COMMAND}`; export r; \
23793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23794 TFLAGS="$(STAGE4_TFLAGS)"; \
23795 $(HOST_EXPORTS) \
23796 $(POSTSTAGE1_HOST_EXPORTS) \
23797 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23798 \
1b6c0831
L
23799 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23800 CFLAGS="$(STAGE4_CFLAGS)" \
23801 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23802 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23803 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23804 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23805 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23806 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23807 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
23808 $(TARGET-stage4-libiberty-linker-plugin)
23809
23810maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23811clean-stage4: clean-stage4-libiberty-linker-plugin
23812clean-stage4-libiberty-linker-plugin:
23813 @if [ $(current_stage) = stage4 ]; then \
23814 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23815 else \
23816 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23817 $(MAKE) stage4-start; \
23818 fi; \
23819 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23820 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23821@endif libiberty-linker-plugin-bootstrap
23822
23823
23824.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23825.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23826maybe-all-stageprofile-libiberty-linker-plugin:
23827maybe-clean-stageprofile-libiberty-linker-plugin:
23828@if libiberty-linker-plugin-bootstrap
23829maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23830all-stageprofile: all-stageprofile-libiberty-linker-plugin
23831TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23832all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23833 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23834 @r=`${PWD_COMMAND}`; export r; \
23835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23836 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23837 $(HOST_EXPORTS) \
23838 $(POSTSTAGE1_HOST_EXPORTS) \
23839 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23840 \
1b6c0831
L
23841 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23842 CFLAGS="$(STAGEprofile_CFLAGS)" \
23843 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23844 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23845 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23846 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23847 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23848 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23849 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
23850 $(TARGET-stageprofile-libiberty-linker-plugin)
23851
23852maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23853clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23854clean-stageprofile-libiberty-linker-plugin:
23855 @if [ $(current_stage) = stageprofile ]; then \
23856 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23857 else \
23858 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23859 $(MAKE) stageprofile-start; \
23860 fi; \
23861 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23862 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23863@endif libiberty-linker-plugin-bootstrap
23864
23865
23866.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23867.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23868maybe-all-stagefeedback-libiberty-linker-plugin:
23869maybe-clean-stagefeedback-libiberty-linker-plugin:
23870@if libiberty-linker-plugin-bootstrap
23871maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23872all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23873TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23874all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23875 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23876 @r=`${PWD_COMMAND}`; export r; \
23877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23878 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23879 $(HOST_EXPORTS) \
23880 $(POSTSTAGE1_HOST_EXPORTS) \
23881 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23882 \
1b6c0831
L
23883 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23884 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23885 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23886 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23887 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23888 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23889 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23890 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23891 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
23892 $(TARGET-stagefeedback-libiberty-linker-plugin)
23893
23894maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23895clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23896clean-stagefeedback-libiberty-linker-plugin:
23897 @if [ $(current_stage) = stagefeedback ]; then \
23898 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23899 else \
23900 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23901 $(MAKE) stagefeedback-start; \
23902 fi; \
23903 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23904 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23905@endif libiberty-linker-plugin-bootstrap
23906
23907
23908
23909
23910
23911.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23912maybe-check-libiberty-linker-plugin:
23913@if libiberty-linker-plugin
23914maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23915
23916check-libiberty-linker-plugin:
23917 @: $(MAKE); $(unstage)
23918 @r=`${PWD_COMMAND}`; export r; \
23919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23920 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23921 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23922 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23923
23924@endif libiberty-linker-plugin
23925
23926.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23927maybe-install-libiberty-linker-plugin:
23928@if libiberty-linker-plugin
23929maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23930
23931install-libiberty-linker-plugin: installdirs
23932 @: $(MAKE); $(unstage)
23933 @r=`${PWD_COMMAND}`; export r; \
23934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23935 $(HOST_EXPORTS) \
23936 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23937 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23938
23939@endif libiberty-linker-plugin
23940
23941.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23942maybe-install-strip-libiberty-linker-plugin:
23943@if libiberty-linker-plugin
23944maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23945
23946install-strip-libiberty-linker-plugin: installdirs
23947 @: $(MAKE); $(unstage)
23948 @r=`${PWD_COMMAND}`; export r; \
23949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23950 $(HOST_EXPORTS) \
23951 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23952 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23953
23954@endif libiberty-linker-plugin
23955
23956# Other targets (info, dvi, pdf, etc.)
23957
23958.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23959maybe-info-libiberty-linker-plugin:
23960@if libiberty-linker-plugin
23961maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23962
23963info-libiberty-linker-plugin: \
23964 configure-libiberty-linker-plugin
23965 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23966 r=`${PWD_COMMAND}`; export r; \
23967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23968 $(HOST_EXPORTS) \
23969 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23971 done; \
22121df0 23972 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
23973 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23976 "RANLIB=$${RANLIB}" \
23977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23978 info) \
23979 || exit 1
23980
23981@endif libiberty-linker-plugin
23982
23983.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23984maybe-dvi-libiberty-linker-plugin:
23985@if libiberty-linker-plugin
23986maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23987
23988dvi-libiberty-linker-plugin: \
23989 configure-libiberty-linker-plugin
23990 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23991 r=`${PWD_COMMAND}`; export r; \
23992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23993 $(HOST_EXPORTS) \
23994 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23996 done; \
22121df0 23997 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
23998 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24001 "RANLIB=$${RANLIB}" \
24002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24003 dvi) \
24004 || exit 1
24005
24006@endif libiberty-linker-plugin
24007
24008.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
24009maybe-pdf-libiberty-linker-plugin:
24010@if libiberty-linker-plugin
24011maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
24012
24013pdf-libiberty-linker-plugin: \
24014 configure-libiberty-linker-plugin
24015 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24016 r=`${PWD_COMMAND}`; export r; \
24017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24018 $(HOST_EXPORTS) \
24019 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24021 done; \
22121df0 24022 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
24023 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24026 "RANLIB=$${RANLIB}" \
24027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24028 pdf) \
24029 || exit 1
24030
24031@endif libiberty-linker-plugin
24032
24033.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
24034maybe-html-libiberty-linker-plugin:
24035@if libiberty-linker-plugin
24036maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
24037
24038html-libiberty-linker-plugin: \
24039 configure-libiberty-linker-plugin
24040 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24041 r=`${PWD_COMMAND}`; export r; \
24042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24043 $(HOST_EXPORTS) \
24044 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24046 done; \
22121df0 24047 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
24048 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24051 "RANLIB=$${RANLIB}" \
24052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24053 html) \
24054 || exit 1
24055
24056@endif libiberty-linker-plugin
24057
24058.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
24059maybe-TAGS-libiberty-linker-plugin:
24060@if libiberty-linker-plugin
24061maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
24062
24063TAGS-libiberty-linker-plugin: \
24064 configure-libiberty-linker-plugin
24065 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24066 r=`${PWD_COMMAND}`; export r; \
24067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24068 $(HOST_EXPORTS) \
24069 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24071 done; \
22121df0 24072 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
24073 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24076 "RANLIB=$${RANLIB}" \
24077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24078 TAGS) \
24079 || exit 1
24080
24081@endif libiberty-linker-plugin
24082
24083.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
24084maybe-install-info-libiberty-linker-plugin:
24085@if libiberty-linker-plugin
24086maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
24087
24088install-info-libiberty-linker-plugin: \
24089 configure-libiberty-linker-plugin \
24090 info-libiberty-linker-plugin
24091 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24092 r=`${PWD_COMMAND}`; export r; \
24093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24094 $(HOST_EXPORTS) \
24095 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24097 done; \
22121df0 24098 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
24099 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24102 "RANLIB=$${RANLIB}" \
24103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24104 install-info) \
24105 || exit 1
24106
24107@endif libiberty-linker-plugin
24108
24109.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
24110maybe-install-pdf-libiberty-linker-plugin:
24111@if libiberty-linker-plugin
24112maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
24113
24114install-pdf-libiberty-linker-plugin: \
24115 configure-libiberty-linker-plugin \
24116 pdf-libiberty-linker-plugin
24117 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24118 r=`${PWD_COMMAND}`; export r; \
24119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24120 $(HOST_EXPORTS) \
24121 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24123 done; \
22121df0 24124 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
24125 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24128 "RANLIB=$${RANLIB}" \
24129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24130 install-pdf) \
24131 || exit 1
24132
24133@endif libiberty-linker-plugin
24134
24135.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
24136maybe-install-html-libiberty-linker-plugin:
24137@if libiberty-linker-plugin
24138maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
24139
24140install-html-libiberty-linker-plugin: \
24141 configure-libiberty-linker-plugin \
24142 html-libiberty-linker-plugin
24143 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24144 r=`${PWD_COMMAND}`; export r; \
24145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24146 $(HOST_EXPORTS) \
24147 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24149 done; \
22121df0 24150 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
24151 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24154 "RANLIB=$${RANLIB}" \
24155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24156 install-html) \
24157 || exit 1
24158
24159@endif libiberty-linker-plugin
24160
24161.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24162maybe-installcheck-libiberty-linker-plugin:
24163@if libiberty-linker-plugin
24164maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24165
24166installcheck-libiberty-linker-plugin: \
24167 configure-libiberty-linker-plugin
24168 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24169 r=`${PWD_COMMAND}`; export r; \
24170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24171 $(HOST_EXPORTS) \
24172 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24174 done; \
22121df0 24175 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24176 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24179 "RANLIB=$${RANLIB}" \
24180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24181 installcheck) \
24182 || exit 1
24183
24184@endif libiberty-linker-plugin
24185
24186.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24187maybe-mostlyclean-libiberty-linker-plugin:
24188@if libiberty-linker-plugin
24189maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24190
24191mostlyclean-libiberty-linker-plugin:
24192 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24193 r=`${PWD_COMMAND}`; export r; \
24194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24195 $(HOST_EXPORTS) \
24196 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24198 done; \
22121df0 24199 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24200 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24203 "RANLIB=$${RANLIB}" \
24204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24205 mostlyclean) \
24206 || exit 1
24207
24208@endif libiberty-linker-plugin
24209
24210.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24211maybe-clean-libiberty-linker-plugin:
24212@if libiberty-linker-plugin
24213maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24214
24215clean-libiberty-linker-plugin:
24216 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24217 r=`${PWD_COMMAND}`; export r; \
24218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24219 $(HOST_EXPORTS) \
24220 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24222 done; \
22121df0 24223 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24224 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24227 "RANLIB=$${RANLIB}" \
24228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24229 clean) \
24230 || exit 1
24231
24232@endif libiberty-linker-plugin
24233
24234.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24235maybe-distclean-libiberty-linker-plugin:
24236@if libiberty-linker-plugin
24237maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24238
24239distclean-libiberty-linker-plugin:
24240 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24241 r=`${PWD_COMMAND}`; export r; \
24242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24243 $(HOST_EXPORTS) \
24244 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24246 done; \
22121df0 24247 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24248 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24251 "RANLIB=$${RANLIB}" \
24252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24253 distclean) \
24254 || exit 1
24255
24256@endif libiberty-linker-plugin
24257
24258.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24259maybe-maintainer-clean-libiberty-linker-plugin:
24260@if libiberty-linker-plugin
24261maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24262
24263maintainer-clean-libiberty-linker-plugin:
24264 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24265 r=`${PWD_COMMAND}`; export r; \
24266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24267 $(HOST_EXPORTS) \
24268 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24270 done; \
22121df0 24271 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24272 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24275 "RANLIB=$${RANLIB}" \
24276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24277 maintainer-clean) \
24278 || exit 1
24279
24280@endif libiberty-linker-plugin
24281
24282
24283
a90ef4bf
JM
24284.PHONY: configure-libiconv maybe-configure-libiconv
24285maybe-configure-libiconv:
4f0ef2d8 24286@if gcc-bootstrap
a90ef4bf 24287configure-libiconv: stage_current
4f0ef2d8 24288@endif gcc-bootstrap
a90ef4bf
JM
24289@if libiconv
24290maybe-configure-libiconv: configure-libiconv
24291configure-libiconv:
c52c6897 24292 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24294 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24295 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24296 $(HOST_EXPORTS) \
a90ef4bf
JM
24297 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24298 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24299 case $(srcdir) in \
b00612cc 24300 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24301 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24302 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24303 esac; \
1b6c0831
L
24304 module_srcdir=libiconv; \
24305 $(SHELL) \
24306 $$s/$$module_srcdir/configure \
24307 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24308 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24309 --target=${target_alias} --disable-shared \
2a4cbe27 24310 || exit 1
a90ef4bf 24311@endif libiconv
2a4cbe27 24312
a7254363
PB
24313
24314
016a3251
DD
24315.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24316maybe-configure-stage1-libiconv:
24317@if libiconv-bootstrap
24318maybe-configure-stage1-libiconv: configure-stage1-libiconv
24319configure-stage1-libiconv:
24320 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24321 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24322 @r=`${PWD_COMMAND}`; export r; \
24323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24324 TFLAGS="$(STAGE1_TFLAGS)"; \
24325 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24326 $(HOST_EXPORTS) \
24327 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24328 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24329 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24330 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24331 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24332 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24333 case $(srcdir) in \
24334 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24335 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24336 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24337 esac; \
24338 module_srcdir=libiconv; \
24339 $(SHELL) $$s/$$module_srcdir/configure \
24340 --srcdir=$${topdir}/$$module_srcdir \
24341 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24342 --target=${target_alias} \
24343 \
24344 $(STAGE1_CONFIGURE_FLAGS) \
24345 --disable-shared
24346@endif libiconv-bootstrap
24347
24348.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24349maybe-configure-stage2-libiconv:
24350@if libiconv-bootstrap
24351maybe-configure-stage2-libiconv: configure-stage2-libiconv
24352configure-stage2-libiconv:
24353 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24354 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24355 @r=`${PWD_COMMAND}`; export r; \
24356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24357 TFLAGS="$(STAGE2_TFLAGS)"; \
24358 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24359 $(HOST_EXPORTS) \
24360 $(POSTSTAGE1_HOST_EXPORTS) \
24361 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24362 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24363 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24364 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24365 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24366 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24367 case $(srcdir) in \
24368 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24369 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24370 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24371 esac; \
24372 module_srcdir=libiconv; \
24373 $(SHELL) $$s/$$module_srcdir/configure \
24374 --srcdir=$${topdir}/$$module_srcdir \
24375 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24376 --target=${target_alias} \
24377 --with-build-libsubdir=$(HOST_SUBDIR) \
24378 $(STAGE2_CONFIGURE_FLAGS) \
24379 --disable-shared
24380@endif libiconv-bootstrap
24381
24382.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24383maybe-configure-stage3-libiconv:
24384@if libiconv-bootstrap
24385maybe-configure-stage3-libiconv: configure-stage3-libiconv
24386configure-stage3-libiconv:
24387 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24388 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24389 @r=`${PWD_COMMAND}`; export r; \
24390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24391 TFLAGS="$(STAGE3_TFLAGS)"; \
24392 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24393 $(HOST_EXPORTS) \
24394 $(POSTSTAGE1_HOST_EXPORTS) \
24395 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24396 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24397 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24398 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24399 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24400 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24401 case $(srcdir) in \
24402 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24403 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24404 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24405 esac; \
24406 module_srcdir=libiconv; \
24407 $(SHELL) $$s/$$module_srcdir/configure \
24408 --srcdir=$${topdir}/$$module_srcdir \
24409 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24410 --target=${target_alias} \
24411 --with-build-libsubdir=$(HOST_SUBDIR) \
24412 $(STAGE3_CONFIGURE_FLAGS) \
24413 --disable-shared
24414@endif libiconv-bootstrap
24415
24416.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24417maybe-configure-stage4-libiconv:
24418@if libiconv-bootstrap
24419maybe-configure-stage4-libiconv: configure-stage4-libiconv
24420configure-stage4-libiconv:
24421 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24422 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24423 @r=`${PWD_COMMAND}`; export r; \
24424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24425 TFLAGS="$(STAGE4_TFLAGS)"; \
24426 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24427 $(HOST_EXPORTS) \
24428 $(POSTSTAGE1_HOST_EXPORTS) \
24429 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24430 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24431 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24432 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24433 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24434 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24435 case $(srcdir) in \
24436 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24437 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24438 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24439 esac; \
24440 module_srcdir=libiconv; \
24441 $(SHELL) $$s/$$module_srcdir/configure \
24442 --srcdir=$${topdir}/$$module_srcdir \
24443 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24444 --target=${target_alias} \
24445 --with-build-libsubdir=$(HOST_SUBDIR) \
24446 $(STAGE4_CONFIGURE_FLAGS) \
24447 --disable-shared
24448@endif libiconv-bootstrap
24449
24450.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24451maybe-configure-stageprofile-libiconv:
24452@if libiconv-bootstrap
24453maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24454configure-stageprofile-libiconv:
24455 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24456 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24457 @r=`${PWD_COMMAND}`; export r; \
24458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24459 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24460 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24461 $(HOST_EXPORTS) \
24462 $(POSTSTAGE1_HOST_EXPORTS) \
24463 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24464 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24465 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24466 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24467 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24468 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24469 case $(srcdir) in \
24470 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24471 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24472 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24473 esac; \
24474 module_srcdir=libiconv; \
24475 $(SHELL) $$s/$$module_srcdir/configure \
24476 --srcdir=$${topdir}/$$module_srcdir \
24477 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24478 --target=${target_alias} \
24479 --with-build-libsubdir=$(HOST_SUBDIR) \
24480 $(STAGEprofile_CONFIGURE_FLAGS) \
24481 --disable-shared
24482@endif libiconv-bootstrap
24483
24484.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24485maybe-configure-stagefeedback-libiconv:
24486@if libiconv-bootstrap
24487maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24488configure-stagefeedback-libiconv:
24489 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24490 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24491 @r=`${PWD_COMMAND}`; export r; \
24492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24493 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24494 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24495 $(HOST_EXPORTS) \
24496 $(POSTSTAGE1_HOST_EXPORTS) \
24497 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24498 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24499 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24500 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24501 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24502 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24503 case $(srcdir) in \
24504 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24505 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24506 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24507 esac; \
24508 module_srcdir=libiconv; \
24509 $(SHELL) $$s/$$module_srcdir/configure \
24510 --srcdir=$${topdir}/$$module_srcdir \
24511 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24512 --target=${target_alias} \
24513 --with-build-libsubdir=$(HOST_SUBDIR) \
24514 $(STAGEfeedback_CONFIGURE_FLAGS) \
24515 --disable-shared
24516@endif libiconv-bootstrap
24517
24518
24519
d545f33b
PB
24520
24521
a90ef4bf
JM
24522.PHONY: all-libiconv maybe-all-libiconv
24523maybe-all-libiconv:
4f0ef2d8 24524@if gcc-bootstrap
a90ef4bf 24525all-libiconv: stage_current
4f0ef2d8 24526@endif gcc-bootstrap
a90ef4bf
JM
24527@if libiconv
24528TARGET-libiconv=all
24529maybe-all-libiconv: all-libiconv
24530all-libiconv: configure-libiconv
4fa63067
NN
24531 @r=`${PWD_COMMAND}`; export r; \
24532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24533 $(HOST_EXPORTS) \
a90ef4bf 24534 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24535 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24536 $(TARGET-libiconv))
24537@endif libiconv
2a4cbe27 24538
a7254363 24539
d545f33b 24540
016a3251
DD
24541.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24542.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24543maybe-all-stage1-libiconv:
24544maybe-clean-stage1-libiconv:
24545@if libiconv-bootstrap
24546maybe-all-stage1-libiconv: all-stage1-libiconv
24547all-stage1: all-stage1-libiconv
24548TARGET-stage1-libiconv = $(TARGET-libiconv)
24549all-stage1-libiconv: configure-stage1-libiconv
24550 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24551 @r=`${PWD_COMMAND}`; export r; \
24552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24553 TFLAGS="$(STAGE1_TFLAGS)"; \
24554 $(HOST_EXPORTS) \
24555 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24556 \
016a3251
DD
24557 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24558 CFLAGS="$(STAGE1_CFLAGS)" \
24559 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24560 LIBCFLAGS="$(LIBCFLAGS)" \
24561 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24562 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24563 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24564 $(EXTRA_HOST_FLAGS) \
24565 $(STAGE1_FLAGS_TO_PASS) \
05a13254 24566 TFLAGS="$(STAGE1_TFLAGS)" \
016a3251
DD
24567 $(TARGET-stage1-libiconv)
24568
24569maybe-clean-stage1-libiconv: clean-stage1-libiconv
24570clean-stage1: clean-stage1-libiconv
24571clean-stage1-libiconv:
24572 @if [ $(current_stage) = stage1 ]; then \
24573 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24574 else \
24575 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24576 $(MAKE) stage1-start; \
24577 fi; \
24578 cd $(HOST_SUBDIR)/libiconv && \
24579 $(MAKE) $(EXTRA_HOST_FLAGS) \
24580 $(STAGE1_FLAGS_TO_PASS) clean
24581@endif libiconv-bootstrap
24582
24583
24584.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24585.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24586maybe-all-stage2-libiconv:
24587maybe-clean-stage2-libiconv:
24588@if libiconv-bootstrap
24589maybe-all-stage2-libiconv: all-stage2-libiconv
24590all-stage2: all-stage2-libiconv
24591TARGET-stage2-libiconv = $(TARGET-libiconv)
24592all-stage2-libiconv: configure-stage2-libiconv
24593 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24594 @r=`${PWD_COMMAND}`; export r; \
24595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24596 TFLAGS="$(STAGE2_TFLAGS)"; \
24597 $(HOST_EXPORTS) \
24598 $(POSTSTAGE1_HOST_EXPORTS) \
24599 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24600 \
016a3251
DD
24601 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24602 CFLAGS="$(STAGE2_CFLAGS)" \
24603 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24604 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24605 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24606 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24607 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24608 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24609 TFLAGS="$(STAGE2_TFLAGS)" \
016a3251
DD
24610 $(TARGET-stage2-libiconv)
24611
24612maybe-clean-stage2-libiconv: clean-stage2-libiconv
24613clean-stage2: clean-stage2-libiconv
24614clean-stage2-libiconv:
24615 @if [ $(current_stage) = stage2 ]; then \
24616 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24617 else \
24618 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24619 $(MAKE) stage2-start; \
24620 fi; \
24621 cd $(HOST_SUBDIR)/libiconv && \
24622 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24623@endif libiconv-bootstrap
24624
24625
24626.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24627.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24628maybe-all-stage3-libiconv:
24629maybe-clean-stage3-libiconv:
24630@if libiconv-bootstrap
24631maybe-all-stage3-libiconv: all-stage3-libiconv
24632all-stage3: all-stage3-libiconv
24633TARGET-stage3-libiconv = $(TARGET-libiconv)
24634all-stage3-libiconv: configure-stage3-libiconv
24635 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24636 @r=`${PWD_COMMAND}`; export r; \
24637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24638 TFLAGS="$(STAGE3_TFLAGS)"; \
24639 $(HOST_EXPORTS) \
24640 $(POSTSTAGE1_HOST_EXPORTS) \
24641 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24642 \
016a3251
DD
24643 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24644 CFLAGS="$(STAGE3_CFLAGS)" \
24645 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24646 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24647 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24648 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24649 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24650 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24651 TFLAGS="$(STAGE3_TFLAGS)" \
016a3251
DD
24652 $(TARGET-stage3-libiconv)
24653
24654maybe-clean-stage3-libiconv: clean-stage3-libiconv
24655clean-stage3: clean-stage3-libiconv
24656clean-stage3-libiconv:
24657 @if [ $(current_stage) = stage3 ]; then \
24658 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24659 else \
24660 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24661 $(MAKE) stage3-start; \
24662 fi; \
24663 cd $(HOST_SUBDIR)/libiconv && \
24664 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24665@endif libiconv-bootstrap
24666
24667
24668.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24669.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24670maybe-all-stage4-libiconv:
24671maybe-clean-stage4-libiconv:
24672@if libiconv-bootstrap
24673maybe-all-stage4-libiconv: all-stage4-libiconv
24674all-stage4: all-stage4-libiconv
24675TARGET-stage4-libiconv = $(TARGET-libiconv)
24676all-stage4-libiconv: configure-stage4-libiconv
24677 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24678 @r=`${PWD_COMMAND}`; export r; \
24679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24680 TFLAGS="$(STAGE4_TFLAGS)"; \
24681 $(HOST_EXPORTS) \
24682 $(POSTSTAGE1_HOST_EXPORTS) \
24683 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24684 \
016a3251
DD
24685 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24686 CFLAGS="$(STAGE4_CFLAGS)" \
24687 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24688 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24689 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24690 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24691 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24692 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24693 TFLAGS="$(STAGE4_TFLAGS)" \
016a3251
DD
24694 $(TARGET-stage4-libiconv)
24695
24696maybe-clean-stage4-libiconv: clean-stage4-libiconv
24697clean-stage4: clean-stage4-libiconv
24698clean-stage4-libiconv:
24699 @if [ $(current_stage) = stage4 ]; then \
24700 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24701 else \
24702 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24703 $(MAKE) stage4-start; \
24704 fi; \
24705 cd $(HOST_SUBDIR)/libiconv && \
24706 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24707@endif libiconv-bootstrap
24708
24709
24710.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24711.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24712maybe-all-stageprofile-libiconv:
24713maybe-clean-stageprofile-libiconv:
24714@if libiconv-bootstrap
24715maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24716all-stageprofile: all-stageprofile-libiconv
24717TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24718all-stageprofile-libiconv: configure-stageprofile-libiconv
24719 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24720 @r=`${PWD_COMMAND}`; export r; \
24721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24722 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24723 $(HOST_EXPORTS) \
24724 $(POSTSTAGE1_HOST_EXPORTS) \
24725 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24726 \
016a3251
DD
24727 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24728 CFLAGS="$(STAGEprofile_CFLAGS)" \
24729 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24730 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24731 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24732 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24733 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24734 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24735 TFLAGS="$(STAGEprofile_TFLAGS)" \
016a3251
DD
24736 $(TARGET-stageprofile-libiconv)
24737
24738maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24739clean-stageprofile: clean-stageprofile-libiconv
24740clean-stageprofile-libiconv:
24741 @if [ $(current_stage) = stageprofile ]; then \
24742 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24743 else \
24744 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24745 $(MAKE) stageprofile-start; \
24746 fi; \
24747 cd $(HOST_SUBDIR)/libiconv && \
24748 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24749@endif libiconv-bootstrap
24750
24751
24752.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24753.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24754maybe-all-stagefeedback-libiconv:
24755maybe-clean-stagefeedback-libiconv:
24756@if libiconv-bootstrap
24757maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24758all-stagefeedback: all-stagefeedback-libiconv
24759TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24760all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24761 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24762 @r=`${PWD_COMMAND}`; export r; \
24763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24764 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24765 $(HOST_EXPORTS) \
24766 $(POSTSTAGE1_HOST_EXPORTS) \
24767 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24768 \
016a3251
DD
24769 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24770 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24771 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24772 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24773 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24774 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24775 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24776 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24777 TFLAGS="$(STAGEfeedback_TFLAGS)" \
016a3251
DD
24778 $(TARGET-stagefeedback-libiconv)
24779
24780maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24781clean-stagefeedback: clean-stagefeedback-libiconv
24782clean-stagefeedback-libiconv:
24783 @if [ $(current_stage) = stagefeedback ]; then \
24784 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24785 else \
24786 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24787 $(MAKE) stagefeedback-start; \
24788 fi; \
24789 cd $(HOST_SUBDIR)/libiconv && \
24790 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24791@endif libiconv-bootstrap
24792
24793
24794
24795
d545f33b 24796
a90ef4bf
JM
24797.PHONY: check-libiconv maybe-check-libiconv
24798maybe-check-libiconv:
24799@if libiconv
24800maybe-check-libiconv: check-libiconv
2a4cbe27 24801
a90ef4bf 24802check-libiconv:
0aed8855 24803 @: $(MAKE); $(unstage)
4fa63067 24804 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24806 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24807 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24808 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24809
a90ef4bf 24810@endif libiconv
4fa63067 24811
a90ef4bf
JM
24812.PHONY: install-libiconv maybe-install-libiconv
24813maybe-install-libiconv:
24814@if libiconv
24815maybe-install-libiconv: install-libiconv
2a4cbe27 24816
a90ef4bf 24817install-libiconv:
2a4cbe27 24818
a90ef4bf 24819@endif libiconv
9b980aa1 24820
a90ef4bf
JM
24821.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24822maybe-install-strip-libiconv:
24823@if libiconv
24824maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24825
a90ef4bf
JM
24826install-strip-libiconv:
24827
24828@endif libiconv
9b980aa1 24829
56a8fe78 24830# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24831
a90ef4bf
JM
24832.PHONY: maybe-info-libiconv info-libiconv
24833maybe-info-libiconv:
24834@if libiconv
24835maybe-info-libiconv: info-libiconv
4fa63067 24836
016a3251
DD
24837# libiconv doesn't support info.
24838info-libiconv:
2a4cbe27 24839
a90ef4bf 24840@endif libiconv
2a4cbe27 24841
a90ef4bf
JM
24842.PHONY: maybe-dvi-libiconv dvi-libiconv
24843maybe-dvi-libiconv:
24844@if libiconv
24845maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24846
a90ef4bf
JM
24847dvi-libiconv: \
24848 configure-libiconv
a90ef4bf 24849 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24850 r=`${PWD_COMMAND}`; export r; \
24851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24852 $(HOST_EXPORTS) \
b813574b 24853 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24855 done; \
22121df0 24856 echo "Doing dvi in libiconv"; \
a90ef4bf 24857 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24860 "RANLIB=$${RANLIB}" \
0c24b341 24861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24862 dvi) \
2a4cbe27
NN
24863 || exit 1
24864
a90ef4bf 24865@endif libiconv
2a4cbe27 24866
a90ef4bf
JM
24867.PHONY: maybe-pdf-libiconv pdf-libiconv
24868maybe-pdf-libiconv:
24869@if libiconv
24870maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24871
016a3251
DD
24872# libiconv doesn't support pdf.
24873pdf-libiconv:
56a8fe78 24874
a90ef4bf 24875@endif libiconv
56a8fe78 24876
a90ef4bf
JM
24877.PHONY: maybe-html-libiconv html-libiconv
24878maybe-html-libiconv:
24879@if libiconv
24880maybe-html-libiconv: html-libiconv
6d389afc 24881
016a3251
DD
24882# libiconv doesn't support html.
24883html-libiconv:
6d389afc 24884
a90ef4bf 24885@endif libiconv
6d389afc 24886
a90ef4bf
JM
24887.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24888maybe-TAGS-libiconv:
24889@if libiconv
24890maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24891
a90ef4bf
JM
24892TAGS-libiconv: \
24893 configure-libiconv
a90ef4bf 24894 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24895 r=`${PWD_COMMAND}`; export r; \
24896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24897 $(HOST_EXPORTS) \
b813574b 24898 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24900 done; \
22121df0 24901 echo "Doing TAGS in libiconv"; \
a90ef4bf 24902 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24905 "RANLIB=$${RANLIB}" \
0c24b341 24906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24907 TAGS) \
2a4cbe27
NN
24908 || exit 1
24909
a90ef4bf 24910@endif libiconv
2a4cbe27 24911
a90ef4bf
JM
24912.PHONY: maybe-install-info-libiconv install-info-libiconv
24913maybe-install-info-libiconv:
24914@if libiconv
24915maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24916
a90ef4bf
JM
24917# libiconv doesn't support install-info.
24918install-info-libiconv:
2a4cbe27 24919
a90ef4bf 24920@endif libiconv
2a4cbe27 24921
a90ef4bf
JM
24922.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24923maybe-install-pdf-libiconv:
24924@if libiconv
24925maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24926
a90ef4bf
JM
24927# libiconv doesn't support install-pdf.
24928install-pdf-libiconv:
a3ca38d2 24929
a90ef4bf 24930@endif libiconv
a3ca38d2 24931
a90ef4bf
JM
24932.PHONY: maybe-install-html-libiconv install-html-libiconv
24933maybe-install-html-libiconv:
24934@if libiconv
24935maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24936
a90ef4bf
JM
24937# libiconv doesn't support install-html.
24938install-html-libiconv:
108a6f8e 24939
a90ef4bf 24940@endif libiconv
108a6f8e 24941
a90ef4bf
JM
24942.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24943maybe-installcheck-libiconv:
24944@if libiconv
24945maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24946
a90ef4bf
JM
24947installcheck-libiconv: \
24948 configure-libiconv
a90ef4bf 24949 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24950 r=`${PWD_COMMAND}`; export r; \
24951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24952 $(HOST_EXPORTS) \
b813574b 24953 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24955 done; \
22121df0 24956 echo "Doing installcheck in libiconv"; \
a90ef4bf 24957 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24960 "RANLIB=$${RANLIB}" \
0c24b341 24961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24962 installcheck) \
2a4cbe27
NN
24963 || exit 1
24964
a90ef4bf 24965@endif libiconv
2a4cbe27 24966
a90ef4bf
JM
24967.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24968maybe-mostlyclean-libiconv:
24969@if libiconv
24970maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24971
a90ef4bf 24972mostlyclean-libiconv:
a90ef4bf 24973 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24974 r=`${PWD_COMMAND}`; export r; \
24975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24976 $(HOST_EXPORTS) \
b813574b 24977 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24979 done; \
22121df0 24980 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 24981 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24984 "RANLIB=$${RANLIB}" \
0c24b341 24985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24986 mostlyclean) \
2a4cbe27
NN
24987 || exit 1
24988
a90ef4bf 24989@endif libiconv
2a4cbe27 24990
a90ef4bf
JM
24991.PHONY: maybe-clean-libiconv clean-libiconv
24992maybe-clean-libiconv:
24993@if libiconv
24994maybe-clean-libiconv: clean-libiconv
2a4cbe27 24995
a90ef4bf 24996clean-libiconv:
a90ef4bf 24997 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24998 r=`${PWD_COMMAND}`; export r; \
24999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25000 $(HOST_EXPORTS) \
b813574b 25001 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25003 done; \
22121df0 25004 echo "Doing clean in libiconv"; \
a90ef4bf 25005 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25008 "RANLIB=$${RANLIB}" \
0c24b341 25009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25010 clean) \
2a4cbe27
NN
25011 || exit 1
25012
a90ef4bf 25013@endif libiconv
2a4cbe27 25014
a90ef4bf
JM
25015.PHONY: maybe-distclean-libiconv distclean-libiconv
25016maybe-distclean-libiconv:
25017@if libiconv
25018maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 25019
a90ef4bf 25020distclean-libiconv:
a90ef4bf 25021 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25022 r=`${PWD_COMMAND}`; export r; \
25023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25024 $(HOST_EXPORTS) \
b813574b 25025 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25027 done; \
22121df0 25028 echo "Doing distclean in libiconv"; \
a90ef4bf 25029 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25032 "RANLIB=$${RANLIB}" \
0c24b341 25033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25034 distclean) \
2a4cbe27
NN
25035 || exit 1
25036
a90ef4bf 25037@endif libiconv
2a4cbe27 25038
a90ef4bf
JM
25039.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
25040maybe-maintainer-clean-libiconv:
25041@if libiconv
25042maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 25043
a90ef4bf 25044maintainer-clean-libiconv:
a90ef4bf 25045 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25046 r=`${PWD_COMMAND}`; export r; \
25047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25048 $(HOST_EXPORTS) \
b813574b 25049 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25051 done; \
22121df0 25052 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 25053 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25056 "RANLIB=$${RANLIB}" \
0c24b341 25057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25058 maintainer-clean) \
2a4cbe27
NN
25059 || exit 1
25060
a90ef4bf 25061@endif libiconv
2a4cbe27 25062
2a4cbe27 25063
a7254363 25064
a90ef4bf
JM
25065.PHONY: configure-m4 maybe-configure-m4
25066maybe-configure-m4:
4f0ef2d8 25067@if gcc-bootstrap
a90ef4bf 25068configure-m4: stage_current
4f0ef2d8 25069@endif gcc-bootstrap
a90ef4bf
JM
25070@if m4
25071maybe-configure-m4: configure-m4
25072configure-m4:
0aed8855 25073 @: $(MAKE); $(unstage)
c52c6897 25074 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25076 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 25077 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 25078 $(HOST_EXPORTS) \
a90ef4bf
JM
25079 echo Configuring in $(HOST_SUBDIR)/m4; \
25080 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 25081 case $(srcdir) in \
b00612cc 25082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25083 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 25084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25085 esac; \
1b6c0831
L
25086 module_srcdir=m4; \
25087 $(SHELL) \
25088 $$s/$$module_srcdir/configure \
25089 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25090 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25091 --target=${target_alias} \
2a4cbe27 25092 || exit 1
a90ef4bf 25093@endif m4
2a4cbe27 25094
a7254363
PB
25095
25096
d545f33b
PB
25097
25098
a90ef4bf
JM
25099.PHONY: all-m4 maybe-all-m4
25100maybe-all-m4:
4f0ef2d8 25101@if gcc-bootstrap
a90ef4bf 25102all-m4: stage_current
4f0ef2d8 25103@endif gcc-bootstrap
a90ef4bf
JM
25104@if m4
25105TARGET-m4=all
25106maybe-all-m4: all-m4
25107all-m4: configure-m4
0aed8855 25108 @: $(MAKE); $(unstage)
4fa63067
NN
25109 @r=`${PWD_COMMAND}`; export r; \
25110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25111 $(HOST_EXPORTS) \
a90ef4bf 25112 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 25113 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25114 $(TARGET-m4))
25115@endif m4
2a4cbe27 25116
a7254363 25117
d545f33b
PB
25118
25119
a90ef4bf
JM
25120.PHONY: check-m4 maybe-check-m4
25121maybe-check-m4:
25122@if m4
25123maybe-check-m4: check-m4
2a4cbe27 25124
a90ef4bf 25125check-m4:
0aed8855 25126 @: $(MAKE); $(unstage)
4fa63067 25127 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25129 $(HOST_EXPORTS) \
a90ef4bf 25130 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 25131 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25132
a90ef4bf 25133@endif m4
2a4cbe27 25134
a90ef4bf
JM
25135.PHONY: install-m4 maybe-install-m4
25136maybe-install-m4:
25137@if m4
25138maybe-install-m4: install-m4
2a4cbe27 25139
a90ef4bf 25140install-m4: installdirs
0aed8855 25141 @: $(MAKE); $(unstage)
4fa63067 25142 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25144 $(HOST_EXPORTS) \
a90ef4bf 25145 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 25146 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25147
a90ef4bf 25148@endif m4
2a4cbe27 25149
a90ef4bf
JM
25150.PHONY: install-strip-m4 maybe-install-strip-m4
25151maybe-install-strip-m4:
25152@if m4
25153maybe-install-strip-m4: install-strip-m4
9b980aa1 25154
a90ef4bf 25155install-strip-m4: installdirs
9b980aa1
RW
25156 @: $(MAKE); $(unstage)
25157 @r=`${PWD_COMMAND}`; export r; \
25158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25159 $(HOST_EXPORTS) \
a90ef4bf 25160 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25161 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25162
a90ef4bf 25163@endif m4
9b980aa1 25164
56a8fe78 25165# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25166
a90ef4bf
JM
25167.PHONY: maybe-info-m4 info-m4
25168maybe-info-m4:
25169@if m4
25170maybe-info-m4: info-m4
4fa63067 25171
a90ef4bf
JM
25172info-m4: \
25173 configure-m4
0aed8855 25174 @: $(MAKE); $(unstage)
a90ef4bf 25175 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25176 r=`${PWD_COMMAND}`; export r; \
25177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25178 $(HOST_EXPORTS) \
b813574b 25179 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25181 done; \
22121df0 25182 echo "Doing info in m4"; \
a90ef4bf 25183 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25186 "RANLIB=$${RANLIB}" \
0c24b341 25187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25188 info) \
2a4cbe27
NN
25189 || exit 1
25190
a90ef4bf 25191@endif m4
2a4cbe27 25192
a90ef4bf
JM
25193.PHONY: maybe-dvi-m4 dvi-m4
25194maybe-dvi-m4:
25195@if m4
25196maybe-dvi-m4: dvi-m4
2a4cbe27 25197
a90ef4bf
JM
25198dvi-m4: \
25199 configure-m4
0aed8855 25200 @: $(MAKE); $(unstage)
a90ef4bf 25201 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25202 r=`${PWD_COMMAND}`; export r; \
25203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25204 $(HOST_EXPORTS) \
b813574b 25205 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25207 done; \
22121df0 25208 echo "Doing dvi in m4"; \
a90ef4bf 25209 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25212 "RANLIB=$${RANLIB}" \
0c24b341 25213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25214 dvi) \
2a4cbe27
NN
25215 || exit 1
25216
a90ef4bf 25217@endif m4
2a4cbe27 25218
a90ef4bf
JM
25219.PHONY: maybe-pdf-m4 pdf-m4
25220maybe-pdf-m4:
25221@if m4
25222maybe-pdf-m4: pdf-m4
56a8fe78 25223
a90ef4bf
JM
25224pdf-m4: \
25225 configure-m4
56a8fe78 25226 @: $(MAKE); $(unstage)
a90ef4bf 25227 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25228 r=`${PWD_COMMAND}`; export r; \
25229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25230 $(HOST_EXPORTS) \
25231 for flag in $(EXTRA_HOST_FLAGS) ; do \
25232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25233 done; \
22121df0 25234 echo "Doing pdf in m4"; \
a90ef4bf 25235 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25238 "RANLIB=$${RANLIB}" \
0c24b341 25239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25240 pdf) \
25241 || exit 1
25242
a90ef4bf 25243@endif m4
56a8fe78 25244
a90ef4bf
JM
25245.PHONY: maybe-html-m4 html-m4
25246maybe-html-m4:
25247@if m4
25248maybe-html-m4: html-m4
6d389afc 25249
a90ef4bf
JM
25250html-m4: \
25251 configure-m4
0aed8855 25252 @: $(MAKE); $(unstage)
a90ef4bf 25253 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25254 r=`${PWD_COMMAND}`; export r; \
25255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25256 $(HOST_EXPORTS) \
25257 for flag in $(EXTRA_HOST_FLAGS) ; do \
25258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25259 done; \
22121df0 25260 echo "Doing html in m4"; \
a90ef4bf 25261 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25264 "RANLIB=$${RANLIB}" \
0c24b341 25265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25266 html) \
25267 || exit 1
25268
a90ef4bf 25269@endif m4
6d389afc 25270
a90ef4bf
JM
25271.PHONY: maybe-TAGS-m4 TAGS-m4
25272maybe-TAGS-m4:
25273@if m4
25274maybe-TAGS-m4: TAGS-m4
2a4cbe27 25275
a90ef4bf
JM
25276TAGS-m4: \
25277 configure-m4
0aed8855 25278 @: $(MAKE); $(unstage)
a90ef4bf 25279 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25280 r=`${PWD_COMMAND}`; export r; \
25281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25282 $(HOST_EXPORTS) \
b813574b 25283 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25285 done; \
22121df0 25286 echo "Doing TAGS in m4"; \
a90ef4bf 25287 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25290 "RANLIB=$${RANLIB}" \
0c24b341 25291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25292 TAGS) \
2a4cbe27
NN
25293 || exit 1
25294
a90ef4bf 25295@endif m4
2a4cbe27 25296
a90ef4bf
JM
25297.PHONY: maybe-install-info-m4 install-info-m4
25298maybe-install-info-m4:
25299@if m4
25300maybe-install-info-m4: install-info-m4
2a4cbe27 25301
a90ef4bf
JM
25302install-info-m4: \
25303 configure-m4 \
25304 info-m4
0aed8855 25305 @: $(MAKE); $(unstage)
a90ef4bf 25306 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25307 r=`${PWD_COMMAND}`; export r; \
25308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25309 $(HOST_EXPORTS) \
b813574b 25310 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25312 done; \
22121df0 25313 echo "Doing install-info in m4"; \
a90ef4bf 25314 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25317 "RANLIB=$${RANLIB}" \
0c24b341 25318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25319 install-info) \
2a4cbe27
NN
25320 || exit 1
25321
a90ef4bf 25322@endif m4
2a4cbe27 25323
a90ef4bf
JM
25324.PHONY: maybe-install-pdf-m4 install-pdf-m4
25325maybe-install-pdf-m4:
25326@if m4
25327maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25328
a90ef4bf
JM
25329install-pdf-m4: \
25330 configure-m4 \
25331 pdf-m4
a3ca38d2 25332 @: $(MAKE); $(unstage)
a90ef4bf 25333 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25334 r=`${PWD_COMMAND}`; export r; \
25335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25336 $(HOST_EXPORTS) \
25337 for flag in $(EXTRA_HOST_FLAGS) ; do \
25338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25339 done; \
22121df0 25340 echo "Doing install-pdf in m4"; \
a90ef4bf 25341 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25344 "RANLIB=$${RANLIB}" \
0c24b341 25345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25346 install-pdf) \
25347 || exit 1
25348
a90ef4bf 25349@endif m4
a3ca38d2 25350
a90ef4bf
JM
25351.PHONY: maybe-install-html-m4 install-html-m4
25352maybe-install-html-m4:
25353@if m4
25354maybe-install-html-m4: install-html-m4
108a6f8e 25355
a90ef4bf
JM
25356install-html-m4: \
25357 configure-m4 \
25358 html-m4
108a6f8e 25359 @: $(MAKE); $(unstage)
a90ef4bf 25360 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25361 r=`${PWD_COMMAND}`; export r; \
25362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25363 $(HOST_EXPORTS) \
25364 for flag in $(EXTRA_HOST_FLAGS) ; do \
25365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25366 done; \
22121df0 25367 echo "Doing install-html in m4"; \
a90ef4bf 25368 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25371 "RANLIB=$${RANLIB}" \
0c24b341 25372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25373 install-html) \
25374 || exit 1
25375
a90ef4bf 25376@endif m4
108a6f8e 25377
a90ef4bf
JM
25378.PHONY: maybe-installcheck-m4 installcheck-m4
25379maybe-installcheck-m4:
25380@if m4
25381maybe-installcheck-m4: installcheck-m4
2a4cbe27 25382
a90ef4bf
JM
25383installcheck-m4: \
25384 configure-m4
0aed8855 25385 @: $(MAKE); $(unstage)
a90ef4bf 25386 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25387 r=`${PWD_COMMAND}`; export r; \
25388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25389 $(HOST_EXPORTS) \
b813574b 25390 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25392 done; \
22121df0 25393 echo "Doing installcheck in m4"; \
a90ef4bf 25394 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25397 "RANLIB=$${RANLIB}" \
0c24b341 25398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25399 installcheck) \
2a4cbe27
NN
25400 || exit 1
25401
a90ef4bf 25402@endif m4
2a4cbe27 25403
a90ef4bf
JM
25404.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25405maybe-mostlyclean-m4:
25406@if m4
25407maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25408
a90ef4bf 25409mostlyclean-m4:
0aed8855 25410 @: $(MAKE); $(unstage)
a90ef4bf 25411 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25412 r=`${PWD_COMMAND}`; export r; \
25413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25414 $(HOST_EXPORTS) \
b813574b 25415 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25417 done; \
22121df0 25418 echo "Doing mostlyclean in m4"; \
a90ef4bf 25419 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25422 "RANLIB=$${RANLIB}" \
0c24b341 25423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25424 mostlyclean) \
2a4cbe27
NN
25425 || exit 1
25426
a90ef4bf 25427@endif m4
2a4cbe27 25428
a90ef4bf
JM
25429.PHONY: maybe-clean-m4 clean-m4
25430maybe-clean-m4:
25431@if m4
25432maybe-clean-m4: clean-m4
2a4cbe27 25433
a90ef4bf 25434clean-m4:
0aed8855 25435 @: $(MAKE); $(unstage)
a90ef4bf 25436 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25437 r=`${PWD_COMMAND}`; export r; \
25438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25439 $(HOST_EXPORTS) \
b813574b 25440 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25442 done; \
22121df0 25443 echo "Doing clean in m4"; \
a90ef4bf 25444 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25447 "RANLIB=$${RANLIB}" \
0c24b341 25448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25449 clean) \
2a4cbe27
NN
25450 || exit 1
25451
a90ef4bf 25452@endif m4
2a4cbe27 25453
a90ef4bf
JM
25454.PHONY: maybe-distclean-m4 distclean-m4
25455maybe-distclean-m4:
25456@if m4
25457maybe-distclean-m4: distclean-m4
2a4cbe27 25458
a90ef4bf 25459distclean-m4:
0aed8855 25460 @: $(MAKE); $(unstage)
a90ef4bf 25461 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25462 r=`${PWD_COMMAND}`; export r; \
25463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25464 $(HOST_EXPORTS) \
b813574b 25465 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25467 done; \
22121df0 25468 echo "Doing distclean in m4"; \
a90ef4bf 25469 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25472 "RANLIB=$${RANLIB}" \
0c24b341 25473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25474 distclean) \
2a4cbe27
NN
25475 || exit 1
25476
a90ef4bf 25477@endif m4
2a4cbe27 25478
a90ef4bf
JM
25479.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25480maybe-maintainer-clean-m4:
25481@if m4
25482maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25483
a90ef4bf 25484maintainer-clean-m4:
0aed8855 25485 @: $(MAKE); $(unstage)
a90ef4bf 25486 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25487 r=`${PWD_COMMAND}`; export r; \
25488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25489 $(HOST_EXPORTS) \
b813574b 25490 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25492 done; \
22121df0 25493 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25494 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25497 "RANLIB=$${RANLIB}" \
0c24b341 25498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25499 maintainer-clean) \
2a4cbe27
NN
25500 || exit 1
25501
a90ef4bf 25502@endif m4
2a4cbe27 25503
2a4cbe27 25504
a7254363 25505
a90ef4bf
JM
25506.PHONY: configure-readline maybe-configure-readline
25507maybe-configure-readline:
4f0ef2d8 25508@if gcc-bootstrap
a90ef4bf 25509configure-readline: stage_current
4f0ef2d8 25510@endif gcc-bootstrap
a90ef4bf
JM
25511@if readline
25512maybe-configure-readline: configure-readline
25513configure-readline:
0aed8855 25514 @: $(MAKE); $(unstage)
c52c6897 25515 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25517 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25518 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25519 $(HOST_EXPORTS) \
a90ef4bf
JM
25520 echo Configuring in $(HOST_SUBDIR)/readline; \
25521 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25522 case $(srcdir) in \
b00612cc 25523 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25524 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25525 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25526 esac; \
1b6c0831
L
25527 module_srcdir=readline; \
25528 $(SHELL) \
25529 $$s/$$module_srcdir/configure \
25530 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25531 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25532 --target=${target_alias} \
2a4cbe27 25533 || exit 1
a90ef4bf 25534@endif readline
2a4cbe27 25535
a7254363
PB
25536
25537
d545f33b
PB
25538
25539
a90ef4bf
JM
25540.PHONY: all-readline maybe-all-readline
25541maybe-all-readline:
4f0ef2d8 25542@if gcc-bootstrap
a90ef4bf 25543all-readline: stage_current
4f0ef2d8 25544@endif gcc-bootstrap
a90ef4bf
JM
25545@if readline
25546TARGET-readline=all
25547maybe-all-readline: all-readline
25548all-readline: configure-readline
0aed8855 25549 @: $(MAKE); $(unstage)
4fa63067
NN
25550 @r=`${PWD_COMMAND}`; export r; \
25551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25552 $(HOST_EXPORTS) \
a90ef4bf 25553 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25554 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25555 $(TARGET-readline))
25556@endif readline
2a4cbe27 25557
a7254363 25558
d545f33b
PB
25559
25560
a90ef4bf
JM
25561.PHONY: check-readline maybe-check-readline
25562maybe-check-readline:
25563@if readline
25564maybe-check-readline: check-readline
2a4cbe27 25565
a90ef4bf 25566check-readline:
0aed8855 25567 @: $(MAKE); $(unstage)
4fa63067 25568 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25570 $(HOST_EXPORTS) \
a90ef4bf 25571 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25572 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25573
a90ef4bf 25574@endif readline
2a4cbe27 25575
a90ef4bf
JM
25576.PHONY: install-readline maybe-install-readline
25577maybe-install-readline:
25578@if readline
25579maybe-install-readline: install-readline
2a4cbe27 25580
a90ef4bf 25581install-readline: installdirs
0aed8855 25582 @: $(MAKE); $(unstage)
4fa63067
NN
25583 @r=`${PWD_COMMAND}`; export r; \
25584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25585 $(HOST_EXPORTS) \
a90ef4bf 25586 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25587 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25588
a90ef4bf 25589@endif readline
9b980aa1 25590
a90ef4bf
JM
25591.PHONY: install-strip-readline maybe-install-strip-readline
25592maybe-install-strip-readline:
25593@if readline
25594maybe-install-strip-readline: install-strip-readline
25595
25596install-strip-readline: installdirs
9b980aa1
RW
25597 @: $(MAKE); $(unstage)
25598 @r=`${PWD_COMMAND}`; export r; \
25599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25600 $(HOST_EXPORTS) \
a90ef4bf 25601 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25602 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25603
a90ef4bf 25604@endif readline
9b980aa1 25605
56a8fe78 25606# Other targets (info, dvi, pdf, etc.)
4fa63067 25607
a90ef4bf
JM
25608.PHONY: maybe-info-readline info-readline
25609maybe-info-readline:
25610@if readline
25611maybe-info-readline: info-readline
4fa63067 25612
a90ef4bf
JM
25613info-readline: \
25614 configure-readline
0aed8855 25615 @: $(MAKE); $(unstage)
a90ef4bf 25616 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25617 r=`${PWD_COMMAND}`; export r; \
25618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25619 $(HOST_EXPORTS) \
b813574b 25620 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25622 done; \
22121df0 25623 echo "Doing info in readline"; \
a90ef4bf 25624 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25627 "RANLIB=$${RANLIB}" \
0c24b341 25628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25629 info) \
2a4cbe27
NN
25630 || exit 1
25631
a90ef4bf 25632@endif readline
2a4cbe27 25633
a90ef4bf
JM
25634.PHONY: maybe-dvi-readline dvi-readline
25635maybe-dvi-readline:
25636@if readline
25637maybe-dvi-readline: dvi-readline
2a4cbe27 25638
a90ef4bf
JM
25639dvi-readline: \
25640 configure-readline
0aed8855 25641 @: $(MAKE); $(unstage)
a90ef4bf 25642 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25643 r=`${PWD_COMMAND}`; export r; \
25644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25645 $(HOST_EXPORTS) \
b813574b 25646 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25648 done; \
22121df0 25649 echo "Doing dvi in readline"; \
a90ef4bf 25650 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25653 "RANLIB=$${RANLIB}" \
0c24b341 25654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25655 dvi) \
2a4cbe27
NN
25656 || exit 1
25657
a90ef4bf 25658@endif readline
2a4cbe27 25659
a90ef4bf
JM
25660.PHONY: maybe-pdf-readline pdf-readline
25661maybe-pdf-readline:
25662@if readline
25663maybe-pdf-readline: pdf-readline
56a8fe78 25664
a90ef4bf
JM
25665pdf-readline: \
25666 configure-readline
56a8fe78 25667 @: $(MAKE); $(unstage)
a90ef4bf 25668 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25669 r=`${PWD_COMMAND}`; export r; \
25670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25671 $(HOST_EXPORTS) \
25672 for flag in $(EXTRA_HOST_FLAGS) ; do \
25673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25674 done; \
22121df0 25675 echo "Doing pdf in readline"; \
a90ef4bf 25676 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25679 "RANLIB=$${RANLIB}" \
0c24b341 25680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25681 pdf) \
25682 || exit 1
25683
a90ef4bf 25684@endif readline
56a8fe78 25685
a90ef4bf
JM
25686.PHONY: maybe-html-readline html-readline
25687maybe-html-readline:
25688@if readline
25689maybe-html-readline: html-readline
6d389afc 25690
a90ef4bf
JM
25691html-readline: \
25692 configure-readline
0aed8855 25693 @: $(MAKE); $(unstage)
a90ef4bf 25694 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25695 r=`${PWD_COMMAND}`; export r; \
25696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25697 $(HOST_EXPORTS) \
25698 for flag in $(EXTRA_HOST_FLAGS) ; do \
25699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25700 done; \
22121df0 25701 echo "Doing html in readline"; \
a90ef4bf 25702 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25705 "RANLIB=$${RANLIB}" \
0c24b341 25706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25707 html) \
25708 || exit 1
25709
a90ef4bf 25710@endif readline
6d389afc 25711
a90ef4bf
JM
25712.PHONY: maybe-TAGS-readline TAGS-readline
25713maybe-TAGS-readline:
25714@if readline
25715maybe-TAGS-readline: TAGS-readline
2a4cbe27 25716
a90ef4bf
JM
25717TAGS-readline: \
25718 configure-readline
0aed8855 25719 @: $(MAKE); $(unstage)
a90ef4bf 25720 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25721 r=`${PWD_COMMAND}`; export r; \
25722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25723 $(HOST_EXPORTS) \
b813574b 25724 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25726 done; \
22121df0 25727 echo "Doing TAGS in readline"; \
a90ef4bf 25728 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25731 "RANLIB=$${RANLIB}" \
0c24b341 25732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25733 TAGS) \
2a4cbe27
NN
25734 || exit 1
25735
a90ef4bf 25736@endif readline
2a4cbe27 25737
a90ef4bf
JM
25738.PHONY: maybe-install-info-readline install-info-readline
25739maybe-install-info-readline:
25740@if readline
25741maybe-install-info-readline: install-info-readline
2a4cbe27 25742
a90ef4bf
JM
25743install-info-readline: \
25744 configure-readline \
25745 info-readline
0aed8855 25746 @: $(MAKE); $(unstage)
a90ef4bf 25747 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25748 r=`${PWD_COMMAND}`; export r; \
25749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25750 $(HOST_EXPORTS) \
b813574b 25751 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25753 done; \
22121df0 25754 echo "Doing install-info in readline"; \
a90ef4bf 25755 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25758 "RANLIB=$${RANLIB}" \
0c24b341 25759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25760 install-info) \
2a4cbe27
NN
25761 || exit 1
25762
a90ef4bf 25763@endif readline
2a4cbe27 25764
a90ef4bf
JM
25765.PHONY: maybe-install-pdf-readline install-pdf-readline
25766maybe-install-pdf-readline:
25767@if readline
25768maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25769
a90ef4bf
JM
25770install-pdf-readline: \
25771 configure-readline \
25772 pdf-readline
a3ca38d2 25773 @: $(MAKE); $(unstage)
a90ef4bf 25774 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25775 r=`${PWD_COMMAND}`; export r; \
25776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25777 $(HOST_EXPORTS) \
25778 for flag in $(EXTRA_HOST_FLAGS) ; do \
25779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25780 done; \
22121df0 25781 echo "Doing install-pdf in readline"; \
a90ef4bf 25782 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25785 "RANLIB=$${RANLIB}" \
0c24b341 25786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25787 install-pdf) \
25788 || exit 1
25789
a90ef4bf 25790@endif readline
a3ca38d2 25791
a90ef4bf
JM
25792.PHONY: maybe-install-html-readline install-html-readline
25793maybe-install-html-readline:
25794@if readline
25795maybe-install-html-readline: install-html-readline
108a6f8e 25796
a90ef4bf
JM
25797install-html-readline: \
25798 configure-readline \
25799 html-readline
108a6f8e 25800 @: $(MAKE); $(unstage)
a90ef4bf 25801 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25802 r=`${PWD_COMMAND}`; export r; \
25803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25804 $(HOST_EXPORTS) \
25805 for flag in $(EXTRA_HOST_FLAGS) ; do \
25806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25807 done; \
22121df0 25808 echo "Doing install-html in readline"; \
a90ef4bf 25809 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25812 "RANLIB=$${RANLIB}" \
0c24b341 25813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25814 install-html) \
25815 || exit 1
25816
a90ef4bf 25817@endif readline
108a6f8e 25818
a90ef4bf
JM
25819.PHONY: maybe-installcheck-readline installcheck-readline
25820maybe-installcheck-readline:
25821@if readline
25822maybe-installcheck-readline: installcheck-readline
2a4cbe27 25823
a90ef4bf
JM
25824installcheck-readline: \
25825 configure-readline
0aed8855 25826 @: $(MAKE); $(unstage)
a90ef4bf 25827 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25828 r=`${PWD_COMMAND}`; export r; \
25829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25830 $(HOST_EXPORTS) \
b813574b 25831 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25833 done; \
22121df0 25834 echo "Doing installcheck in readline"; \
a90ef4bf 25835 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25838 "RANLIB=$${RANLIB}" \
0c24b341 25839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25840 installcheck) \
2a4cbe27
NN
25841 || exit 1
25842
a90ef4bf 25843@endif readline
2a4cbe27 25844
a90ef4bf
JM
25845.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25846maybe-mostlyclean-readline:
25847@if readline
25848maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25849
a90ef4bf 25850mostlyclean-readline:
0aed8855 25851 @: $(MAKE); $(unstage)
a90ef4bf 25852 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25853 r=`${PWD_COMMAND}`; export r; \
25854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25855 $(HOST_EXPORTS) \
b813574b 25856 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25858 done; \
22121df0 25859 echo "Doing mostlyclean in readline"; \
a90ef4bf 25860 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25863 "RANLIB=$${RANLIB}" \
0c24b341 25864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25865 mostlyclean) \
2a4cbe27
NN
25866 || exit 1
25867
a90ef4bf 25868@endif readline
2a4cbe27 25869
a90ef4bf
JM
25870.PHONY: maybe-clean-readline clean-readline
25871maybe-clean-readline:
25872@if readline
25873maybe-clean-readline: clean-readline
2a4cbe27 25874
a90ef4bf 25875clean-readline:
0aed8855 25876 @: $(MAKE); $(unstage)
a90ef4bf 25877 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25878 r=`${PWD_COMMAND}`; export r; \
25879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25880 $(HOST_EXPORTS) \
b813574b 25881 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25883 done; \
22121df0 25884 echo "Doing clean in readline"; \
a90ef4bf 25885 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25888 "RANLIB=$${RANLIB}" \
0c24b341 25889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25890 clean) \
2a4cbe27
NN
25891 || exit 1
25892
a90ef4bf 25893@endif readline
2a4cbe27 25894
a90ef4bf
JM
25895.PHONY: maybe-distclean-readline distclean-readline
25896maybe-distclean-readline:
25897@if readline
25898maybe-distclean-readline: distclean-readline
2a4cbe27 25899
a90ef4bf 25900distclean-readline:
0aed8855 25901 @: $(MAKE); $(unstage)
a90ef4bf 25902 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25903 r=`${PWD_COMMAND}`; export r; \
25904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25905 $(HOST_EXPORTS) \
b813574b 25906 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25908 done; \
22121df0 25909 echo "Doing distclean in readline"; \
a90ef4bf 25910 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25913 "RANLIB=$${RANLIB}" \
0c24b341 25914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25915 distclean) \
2a4cbe27
NN
25916 || exit 1
25917
a90ef4bf 25918@endif readline
2a4cbe27 25919
a90ef4bf
JM
25920.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25921maybe-maintainer-clean-readline:
25922@if readline
25923maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25924
a90ef4bf 25925maintainer-clean-readline:
0aed8855 25926 @: $(MAKE); $(unstage)
a90ef4bf 25927 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25928 r=`${PWD_COMMAND}`; export r; \
25929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25930 $(HOST_EXPORTS) \
b813574b 25931 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25933 done; \
22121df0 25934 echo "Doing maintainer-clean in readline"; \
a90ef4bf 25935 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25938 "RANLIB=$${RANLIB}" \
0c24b341 25939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25940 maintainer-clean) \
2a4cbe27
NN
25941 || exit 1
25942
a90ef4bf 25943@endif readline
2a4cbe27 25944
2a4cbe27 25945
a7254363 25946
a90ef4bf
JM
25947.PHONY: configure-sid maybe-configure-sid
25948maybe-configure-sid:
4f0ef2d8 25949@if gcc-bootstrap
a90ef4bf 25950configure-sid: stage_current
4f0ef2d8 25951@endif gcc-bootstrap
a90ef4bf
JM
25952@if sid
25953maybe-configure-sid: configure-sid
25954configure-sid:
0aed8855 25955 @: $(MAKE); $(unstage)
c52c6897 25956 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25958 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 25959 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 25960 $(HOST_EXPORTS) \
a90ef4bf
JM
25961 echo Configuring in $(HOST_SUBDIR)/sid; \
25962 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25963 case $(srcdir) in \
b00612cc 25964 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25965 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25966 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25967 esac; \
1b6c0831
L
25968 module_srcdir=sid; \
25969 $(SHELL) \
25970 $$s/$$module_srcdir/configure \
25971 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25972 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25973 --target=${target_alias} \
4fa63067 25974 || exit 1
a90ef4bf 25975@endif sid
2a4cbe27 25976
a7254363
PB
25977
25978
d545f33b
PB
25979
25980
a90ef4bf
JM
25981.PHONY: all-sid maybe-all-sid
25982maybe-all-sid:
4f0ef2d8 25983@if gcc-bootstrap
a90ef4bf 25984all-sid: stage_current
4f0ef2d8 25985@endif gcc-bootstrap
a90ef4bf
JM
25986@if sid
25987TARGET-sid=all
25988maybe-all-sid: all-sid
25989all-sid: configure-sid
0aed8855 25990 @: $(MAKE); $(unstage)
4fa63067
NN
25991 @r=`${PWD_COMMAND}`; export r; \
25992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25993 $(HOST_EXPORTS) \
a90ef4bf 25994 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25995 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25996 $(TARGET-sid))
25997@endif sid
2a4cbe27 25998
a7254363 25999
d545f33b
PB
26000
26001
a90ef4bf
JM
26002.PHONY: check-sid maybe-check-sid
26003maybe-check-sid:
26004@if sid
26005maybe-check-sid: check-sid
2a4cbe27 26006
a90ef4bf 26007check-sid:
0aed8855 26008 @: $(MAKE); $(unstage)
4fa63067 26009 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26011 $(HOST_EXPORTS) \
a90ef4bf 26012 (cd $(HOST_SUBDIR)/sid && \
b00612cc 26013 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26014
a90ef4bf 26015@endif sid
2a4cbe27 26016
a90ef4bf
JM
26017.PHONY: install-sid maybe-install-sid
26018maybe-install-sid:
26019@if sid
26020maybe-install-sid: install-sid
2a4cbe27 26021
a90ef4bf 26022install-sid: installdirs
0aed8855 26023 @: $(MAKE); $(unstage)
4fa63067 26024 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26026 $(HOST_EXPORTS) \
a90ef4bf 26027 (cd $(HOST_SUBDIR)/sid && \
2da12f12 26028 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 26029
a90ef4bf 26030@endif sid
2a4cbe27 26031
a90ef4bf
JM
26032.PHONY: install-strip-sid maybe-install-strip-sid
26033maybe-install-strip-sid:
26034@if sid
26035maybe-install-strip-sid: install-strip-sid
9b980aa1 26036
a90ef4bf 26037install-strip-sid: installdirs
9b980aa1
RW
26038 @: $(MAKE); $(unstage)
26039 @r=`${PWD_COMMAND}`; export r; \
26040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26041 $(HOST_EXPORTS) \
a90ef4bf 26042 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
26043 $(MAKE) $(FLAGS_TO_PASS) install-strip)
26044
a90ef4bf 26045@endif sid
9b980aa1 26046
56a8fe78 26047# Other targets (info, dvi, pdf, etc.)
2a4cbe27 26048
a90ef4bf
JM
26049.PHONY: maybe-info-sid info-sid
26050maybe-info-sid:
26051@if sid
26052maybe-info-sid: info-sid
4fa63067 26053
a90ef4bf
JM
26054info-sid: \
26055 configure-sid
0aed8855 26056 @: $(MAKE); $(unstage)
a90ef4bf 26057 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26058 r=`${PWD_COMMAND}`; export r; \
26059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26060 $(HOST_EXPORTS) \
b813574b 26061 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26063 done; \
22121df0 26064 echo "Doing info in sid"; \
a90ef4bf 26065 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26068 "RANLIB=$${RANLIB}" \
0c24b341 26069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26070 info) \
2a4cbe27
NN
26071 || exit 1
26072
a90ef4bf 26073@endif sid
2a4cbe27 26074
a90ef4bf
JM
26075.PHONY: maybe-dvi-sid dvi-sid
26076maybe-dvi-sid:
26077@if sid
26078maybe-dvi-sid: dvi-sid
2a4cbe27 26079
a90ef4bf
JM
26080dvi-sid: \
26081 configure-sid
0aed8855 26082 @: $(MAKE); $(unstage)
a90ef4bf 26083 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26084 r=`${PWD_COMMAND}`; export r; \
26085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26086 $(HOST_EXPORTS) \
b813574b 26087 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26089 done; \
22121df0 26090 echo "Doing dvi in sid"; \
a90ef4bf 26091 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26094 "RANLIB=$${RANLIB}" \
0c24b341 26095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26096 dvi) \
2a4cbe27
NN
26097 || exit 1
26098
a90ef4bf 26099@endif sid
2a4cbe27 26100
a90ef4bf
JM
26101.PHONY: maybe-pdf-sid pdf-sid
26102maybe-pdf-sid:
26103@if sid
26104maybe-pdf-sid: pdf-sid
56a8fe78 26105
a90ef4bf
JM
26106pdf-sid: \
26107 configure-sid
56a8fe78 26108 @: $(MAKE); $(unstage)
a90ef4bf 26109 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
26110 r=`${PWD_COMMAND}`; export r; \
26111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26112 $(HOST_EXPORTS) \
26113 for flag in $(EXTRA_HOST_FLAGS) ; do \
26114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26115 done; \
22121df0 26116 echo "Doing pdf in sid"; \
a90ef4bf 26117 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
26118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26120 "RANLIB=$${RANLIB}" \
0c24b341 26121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26122 pdf) \
26123 || exit 1
26124
a90ef4bf 26125@endif sid
56a8fe78 26126
a90ef4bf
JM
26127.PHONY: maybe-html-sid html-sid
26128maybe-html-sid:
26129@if sid
26130maybe-html-sid: html-sid
6d389afc 26131
a90ef4bf
JM
26132html-sid: \
26133 configure-sid
0aed8855 26134 @: $(MAKE); $(unstage)
a90ef4bf 26135 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
26136 r=`${PWD_COMMAND}`; export r; \
26137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26138 $(HOST_EXPORTS) \
26139 for flag in $(EXTRA_HOST_FLAGS) ; do \
26140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26141 done; \
22121df0 26142 echo "Doing html in sid"; \
a90ef4bf 26143 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
26144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26146 "RANLIB=$${RANLIB}" \
0c24b341 26147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26148 html) \
26149 || exit 1
26150
a90ef4bf 26151@endif sid
6d389afc 26152
a90ef4bf
JM
26153.PHONY: maybe-TAGS-sid TAGS-sid
26154maybe-TAGS-sid:
26155@if sid
26156maybe-TAGS-sid: TAGS-sid
2a4cbe27 26157
a90ef4bf
JM
26158TAGS-sid: \
26159 configure-sid
0aed8855 26160 @: $(MAKE); $(unstage)
a90ef4bf 26161 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26162 r=`${PWD_COMMAND}`; export r; \
26163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26164 $(HOST_EXPORTS) \
b813574b 26165 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26167 done; \
22121df0 26168 echo "Doing TAGS in sid"; \
a90ef4bf 26169 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26172 "RANLIB=$${RANLIB}" \
0c24b341 26173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26174 TAGS) \
2a4cbe27
NN
26175 || exit 1
26176
a90ef4bf 26177@endif sid
2a4cbe27 26178
a90ef4bf
JM
26179.PHONY: maybe-install-info-sid install-info-sid
26180maybe-install-info-sid:
26181@if sid
26182maybe-install-info-sid: install-info-sid
2a4cbe27 26183
a90ef4bf
JM
26184install-info-sid: \
26185 configure-sid \
26186 info-sid
0aed8855 26187 @: $(MAKE); $(unstage)
a90ef4bf 26188 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26189 r=`${PWD_COMMAND}`; export r; \
26190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26191 $(HOST_EXPORTS) \
b813574b 26192 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26194 done; \
22121df0 26195 echo "Doing install-info in sid"; \
a90ef4bf 26196 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26199 "RANLIB=$${RANLIB}" \
0c24b341 26200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26201 install-info) \
2a4cbe27
NN
26202 || exit 1
26203
a90ef4bf 26204@endif sid
2a4cbe27 26205
a90ef4bf
JM
26206.PHONY: maybe-install-pdf-sid install-pdf-sid
26207maybe-install-pdf-sid:
26208@if sid
26209maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26210
a90ef4bf
JM
26211install-pdf-sid: \
26212 configure-sid \
26213 pdf-sid
a3ca38d2 26214 @: $(MAKE); $(unstage)
a90ef4bf 26215 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26216 r=`${PWD_COMMAND}`; export r; \
26217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26218 $(HOST_EXPORTS) \
26219 for flag in $(EXTRA_HOST_FLAGS) ; do \
26220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26221 done; \
22121df0 26222 echo "Doing install-pdf in sid"; \
a90ef4bf 26223 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26226 "RANLIB=$${RANLIB}" \
0c24b341 26227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26228 install-pdf) \
26229 || exit 1
26230
a90ef4bf 26231@endif sid
a3ca38d2 26232
a90ef4bf
JM
26233.PHONY: maybe-install-html-sid install-html-sid
26234maybe-install-html-sid:
26235@if sid
26236maybe-install-html-sid: install-html-sid
108a6f8e 26237
a90ef4bf
JM
26238install-html-sid: \
26239 configure-sid \
26240 html-sid
108a6f8e 26241 @: $(MAKE); $(unstage)
a90ef4bf 26242 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26243 r=`${PWD_COMMAND}`; export r; \
26244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26245 $(HOST_EXPORTS) \
26246 for flag in $(EXTRA_HOST_FLAGS) ; do \
26247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26248 done; \
22121df0 26249 echo "Doing install-html in sid"; \
a90ef4bf 26250 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26253 "RANLIB=$${RANLIB}" \
0c24b341 26254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26255 install-html) \
26256 || exit 1
26257
a90ef4bf 26258@endif sid
108a6f8e 26259
a90ef4bf
JM
26260.PHONY: maybe-installcheck-sid installcheck-sid
26261maybe-installcheck-sid:
26262@if sid
26263maybe-installcheck-sid: installcheck-sid
2a4cbe27 26264
a90ef4bf
JM
26265installcheck-sid: \
26266 configure-sid
0aed8855 26267 @: $(MAKE); $(unstage)
a90ef4bf 26268 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26269 r=`${PWD_COMMAND}`; export r; \
26270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26271 $(HOST_EXPORTS) \
b813574b 26272 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26274 done; \
22121df0 26275 echo "Doing installcheck in sid"; \
a90ef4bf 26276 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26279 "RANLIB=$${RANLIB}" \
0c24b341 26280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26281 installcheck) \
2a4cbe27
NN
26282 || exit 1
26283
a90ef4bf 26284@endif sid
2a4cbe27 26285
a90ef4bf
JM
26286.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26287maybe-mostlyclean-sid:
26288@if sid
26289maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26290
a90ef4bf 26291mostlyclean-sid:
0aed8855 26292 @: $(MAKE); $(unstage)
a90ef4bf 26293 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26294 r=`${PWD_COMMAND}`; export r; \
26295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26296 $(HOST_EXPORTS) \
b813574b 26297 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26299 done; \
22121df0 26300 echo "Doing mostlyclean in sid"; \
a90ef4bf 26301 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26304 "RANLIB=$${RANLIB}" \
0c24b341 26305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26306 mostlyclean) \
2a4cbe27
NN
26307 || exit 1
26308
a90ef4bf 26309@endif sid
2a4cbe27 26310
a90ef4bf
JM
26311.PHONY: maybe-clean-sid clean-sid
26312maybe-clean-sid:
26313@if sid
26314maybe-clean-sid: clean-sid
2a4cbe27 26315
a90ef4bf 26316clean-sid:
0aed8855 26317 @: $(MAKE); $(unstage)
a90ef4bf 26318 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26319 r=`${PWD_COMMAND}`; export r; \
26320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26321 $(HOST_EXPORTS) \
b813574b 26322 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26324 done; \
22121df0 26325 echo "Doing clean in sid"; \
a90ef4bf 26326 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26329 "RANLIB=$${RANLIB}" \
0c24b341 26330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26331 clean) \
2a4cbe27
NN
26332 || exit 1
26333
a90ef4bf 26334@endif sid
2a4cbe27 26335
a90ef4bf
JM
26336.PHONY: maybe-distclean-sid distclean-sid
26337maybe-distclean-sid:
26338@if sid
26339maybe-distclean-sid: distclean-sid
2a4cbe27 26340
a90ef4bf 26341distclean-sid:
0aed8855 26342 @: $(MAKE); $(unstage)
a90ef4bf 26343 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26344 r=`${PWD_COMMAND}`; export r; \
26345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26346 $(HOST_EXPORTS) \
b813574b 26347 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26349 done; \
22121df0 26350 echo "Doing distclean in sid"; \
a90ef4bf 26351 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26354 "RANLIB=$${RANLIB}" \
0c24b341 26355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26356 distclean) \
2a4cbe27
NN
26357 || exit 1
26358
a90ef4bf 26359@endif sid
2a4cbe27 26360
a90ef4bf
JM
26361.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26362maybe-maintainer-clean-sid:
26363@if sid
26364maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26365
a90ef4bf 26366maintainer-clean-sid:
0aed8855 26367 @: $(MAKE); $(unstage)
a90ef4bf 26368 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26369 r=`${PWD_COMMAND}`; export r; \
26370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26371 $(HOST_EXPORTS) \
b813574b 26372 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26374 done; \
22121df0 26375 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26376 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26379 "RANLIB=$${RANLIB}" \
0c24b341 26380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26381 maintainer-clean) \
2a4cbe27
NN
26382 || exit 1
26383
a90ef4bf 26384@endif sid
2a4cbe27 26385
a2592b1b 26386
a7254363 26387
a90ef4bf
JM
26388.PHONY: configure-sim maybe-configure-sim
26389maybe-configure-sim:
4f0ef2d8 26390@if gcc-bootstrap
a90ef4bf 26391configure-sim: stage_current
4f0ef2d8 26392@endif gcc-bootstrap
a90ef4bf
JM
26393@if sim
26394maybe-configure-sim: configure-sim
26395configure-sim:
26396 @: $(MAKE); $(unstage)
c52c6897
PB
26397 @r=`${PWD_COMMAND}`; export r; \
26398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26399 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26400 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26401 $(HOST_EXPORTS) \
a90ef4bf
JM
26402 echo Configuring in $(HOST_SUBDIR)/sim; \
26403 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26404 case $(srcdir) in \
b00612cc 26405 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26406 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26407 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26408 esac; \
1b6c0831
L
26409 module_srcdir=sim; \
26410 $(SHELL) \
26411 $$s/$$module_srcdir/configure \
26412 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26413 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26414 --target=${target_alias} \
a2592b1b 26415 || exit 1
a90ef4bf 26416@endif sim
a2592b1b 26417
a7254363
PB
26418
26419
a90ef4bf
JM
26420
26421
26422.PHONY: all-sim maybe-all-sim
26423maybe-all-sim:
26424@if gcc-bootstrap
26425all-sim: stage_current
26426@endif gcc-bootstrap
26427@if sim
26428TARGET-sim=all
26429maybe-all-sim: all-sim
26430all-sim: configure-sim
26431 @: $(MAKE); $(unstage)
c52c6897
PB
26432 @r=`${PWD_COMMAND}`; export r; \
26433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26434 $(HOST_EXPORTS) \
26435 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26436 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26437 $(TARGET-sim))
26438@endif sim
d545f33b 26439
a90ef4bf
JM
26440
26441
26442
26443.PHONY: check-sim maybe-check-sim
26444maybe-check-sim:
26445@if sim
26446maybe-check-sim: check-sim
26447
26448check-sim:
26449 @: $(MAKE); $(unstage)
c52c6897
PB
26450 @r=`${PWD_COMMAND}`; export r; \
26451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26452 $(HOST_EXPORTS) \
a90ef4bf
JM
26453 (cd $(HOST_SUBDIR)/sim && \
26454 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26455
a90ef4bf
JM
26456@endif sim
26457
26458.PHONY: install-sim maybe-install-sim
26459maybe-install-sim:
26460@if sim
26461maybe-install-sim: install-sim
26462
26463install-sim: installdirs
26464 @: $(MAKE); $(unstage)
c52c6897
PB
26465 @r=`${PWD_COMMAND}`; export r; \
26466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26467 $(HOST_EXPORTS) \
a90ef4bf
JM
26468 (cd $(HOST_SUBDIR)/sim && \
26469 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26470
a90ef4bf
JM
26471@endif sim
26472
26473.PHONY: install-strip-sim maybe-install-strip-sim
26474maybe-install-strip-sim:
26475@if sim
26476maybe-install-strip-sim: install-strip-sim
26477
26478install-strip-sim: installdirs
26479 @: $(MAKE); $(unstage)
c52c6897
PB
26480 @r=`${PWD_COMMAND}`; export r; \
26481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26482 $(HOST_EXPORTS) \
a90ef4bf
JM
26483 (cd $(HOST_SUBDIR)/sim && \
26484 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26485
a90ef4bf 26486@endif sim
9b980aa1 26487
56a8fe78 26488# Other targets (info, dvi, pdf, etc.)
4fa63067 26489
a90ef4bf
JM
26490.PHONY: maybe-info-sim info-sim
26491maybe-info-sim:
26492@if sim
26493maybe-info-sim: info-sim
4fa63067 26494
a90ef4bf
JM
26495info-sim: \
26496 configure-sim
26497 @: $(MAKE); $(unstage)
26498 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26499 r=`${PWD_COMMAND}`; export r; \
26500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26501 $(HOST_EXPORTS) \
b813574b 26502 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26504 done; \
22121df0 26505 echo "Doing info in sim"; \
a90ef4bf 26506 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26509 "RANLIB=$${RANLIB}" \
0c24b341 26510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26511 info) \
2a4cbe27
NN
26512 || exit 1
26513
a90ef4bf 26514@endif sim
2a4cbe27 26515
a90ef4bf
JM
26516.PHONY: maybe-dvi-sim dvi-sim
26517maybe-dvi-sim:
26518@if sim
26519maybe-dvi-sim: dvi-sim
2a4cbe27 26520
a90ef4bf
JM
26521dvi-sim: \
26522 configure-sim
26523 @: $(MAKE); $(unstage)
26524 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26525 r=`${PWD_COMMAND}`; export r; \
b40e3958 26526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26527 $(HOST_EXPORTS) \
b813574b 26528 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26530 done; \
22121df0 26531 echo "Doing dvi in sim"; \
a90ef4bf 26532 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26535 "RANLIB=$${RANLIB}" \
0c24b341 26536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26537 dvi) \
2a4cbe27
NN
26538 || exit 1
26539
a90ef4bf 26540@endif sim
2a4cbe27 26541
a90ef4bf
JM
26542.PHONY: maybe-pdf-sim pdf-sim
26543maybe-pdf-sim:
26544@if sim
26545maybe-pdf-sim: pdf-sim
56a8fe78 26546
a90ef4bf
JM
26547pdf-sim: \
26548 configure-sim
26549 @: $(MAKE); $(unstage)
26550 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26551 r=`${PWD_COMMAND}`; export r; \
26552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26553 $(HOST_EXPORTS) \
26554 for flag in $(EXTRA_HOST_FLAGS) ; do \
26555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26556 done; \
22121df0 26557 echo "Doing pdf in sim"; \
a90ef4bf 26558 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26561 "RANLIB=$${RANLIB}" \
0c24b341 26562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26563 pdf) \
26564 || exit 1
26565
a90ef4bf 26566@endif sim
56a8fe78 26567
a90ef4bf
JM
26568.PHONY: maybe-html-sim html-sim
26569maybe-html-sim:
26570@if sim
26571maybe-html-sim: html-sim
6d389afc 26572
a90ef4bf
JM
26573html-sim: \
26574 configure-sim
26575 @: $(MAKE); $(unstage)
26576 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26577 r=`${PWD_COMMAND}`; export r; \
26578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26579 $(HOST_EXPORTS) \
26580 for flag in $(EXTRA_HOST_FLAGS) ; do \
26581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26582 done; \
22121df0 26583 echo "Doing html in sim"; \
a90ef4bf 26584 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26587 "RANLIB=$${RANLIB}" \
0c24b341 26588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26589 html) \
26590 || exit 1
26591
a90ef4bf 26592@endif sim
6d389afc 26593
a90ef4bf
JM
26594.PHONY: maybe-TAGS-sim TAGS-sim
26595maybe-TAGS-sim:
26596@if sim
26597maybe-TAGS-sim: TAGS-sim
2a4cbe27 26598
a90ef4bf
JM
26599TAGS-sim: \
26600 configure-sim
26601 @: $(MAKE); $(unstage)
26602 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26603 r=`${PWD_COMMAND}`; export r; \
26604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26605 $(HOST_EXPORTS) \
b813574b 26606 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26608 done; \
22121df0 26609 echo "Doing TAGS in sim"; \
a90ef4bf 26610 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26613 "RANLIB=$${RANLIB}" \
0c24b341 26614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26615 TAGS) \
2a4cbe27
NN
26616 || exit 1
26617
a90ef4bf 26618@endif sim
2a4cbe27 26619
a90ef4bf
JM
26620.PHONY: maybe-install-info-sim install-info-sim
26621maybe-install-info-sim:
26622@if sim
26623maybe-install-info-sim: install-info-sim
2a4cbe27 26624
a90ef4bf
JM
26625install-info-sim: \
26626 configure-sim \
26627 info-sim
26628 @: $(MAKE); $(unstage)
26629 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26630 r=`${PWD_COMMAND}`; export r; \
26631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26632 $(HOST_EXPORTS) \
b813574b 26633 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26635 done; \
22121df0 26636 echo "Doing install-info in sim"; \
a90ef4bf
JM
26637 (cd $(HOST_SUBDIR)/sim && \
26638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26640 "RANLIB=$${RANLIB}" \
0c24b341 26641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26642 install-info) \
2a4cbe27
NN
26643 || exit 1
26644
a90ef4bf 26645@endif sim
2a4cbe27 26646
a90ef4bf
JM
26647.PHONY: maybe-install-pdf-sim install-pdf-sim
26648maybe-install-pdf-sim:
26649@if sim
26650maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26651
a90ef4bf
JM
26652install-pdf-sim: \
26653 configure-sim \
26654 pdf-sim
26655 @: $(MAKE); $(unstage)
26656 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26657 r=`${PWD_COMMAND}`; export r; \
26658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26659 $(HOST_EXPORTS) \
26660 for flag in $(EXTRA_HOST_FLAGS) ; do \
26661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26662 done; \
22121df0 26663 echo "Doing install-pdf in sim"; \
a90ef4bf 26664 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26667 "RANLIB=$${RANLIB}" \
0c24b341 26668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26669 install-pdf) \
26670 || exit 1
26671
a90ef4bf 26672@endif sim
a3ca38d2 26673
a90ef4bf
JM
26674.PHONY: maybe-install-html-sim install-html-sim
26675maybe-install-html-sim:
26676@if sim
26677maybe-install-html-sim: install-html-sim
108a6f8e 26678
a90ef4bf
JM
26679install-html-sim: \
26680 configure-sim \
26681 html-sim
26682 @: $(MAKE); $(unstage)
26683 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26684 r=`${PWD_COMMAND}`; export r; \
26685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26686 $(HOST_EXPORTS) \
26687 for flag in $(EXTRA_HOST_FLAGS) ; do \
26688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26689 done; \
22121df0 26690 echo "Doing install-html in sim"; \
a90ef4bf 26691 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26694 "RANLIB=$${RANLIB}" \
0c24b341 26695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26696 install-html) \
26697 || exit 1
26698
a90ef4bf 26699@endif sim
108a6f8e 26700
a90ef4bf
JM
26701.PHONY: maybe-installcheck-sim installcheck-sim
26702maybe-installcheck-sim:
26703@if sim
26704maybe-installcheck-sim: installcheck-sim
2a4cbe27 26705
a90ef4bf
JM
26706installcheck-sim: \
26707 configure-sim
26708 @: $(MAKE); $(unstage)
26709 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26710 r=`${PWD_COMMAND}`; export r; \
26711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26712 $(HOST_EXPORTS) \
b813574b 26713 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26715 done; \
22121df0 26716 echo "Doing installcheck in sim"; \
a90ef4bf 26717 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26720 "RANLIB=$${RANLIB}" \
0c24b341 26721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26722 installcheck) \
2a4cbe27
NN
26723 || exit 1
26724
a90ef4bf 26725@endif sim
2a4cbe27 26726
a90ef4bf
JM
26727.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26728maybe-mostlyclean-sim:
26729@if sim
26730maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26731
a90ef4bf
JM
26732mostlyclean-sim:
26733 @: $(MAKE); $(unstage)
26734 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26735 r=`${PWD_COMMAND}`; export r; \
26736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26737 $(HOST_EXPORTS) \
26738 for flag in $(EXTRA_HOST_FLAGS) ; do \
26739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26740 done; \
22121df0 26741 echo "Doing mostlyclean in sim"; \
a90ef4bf 26742 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26745 "RANLIB=$${RANLIB}" \
0c24b341 26746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26747 mostlyclean) \
26748 || exit 1
4fa63067 26749
a90ef4bf 26750@endif sim
4fa63067 26751
a90ef4bf
JM
26752.PHONY: maybe-clean-sim clean-sim
26753maybe-clean-sim:
26754@if sim
26755maybe-clean-sim: clean-sim
4fa63067 26756
a90ef4bf
JM
26757clean-sim:
26758 @: $(MAKE); $(unstage)
26759 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26760 r=`${PWD_COMMAND}`; export r; \
26761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26762 $(HOST_EXPORTS) \
b813574b 26763 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26765 done; \
22121df0 26766 echo "Doing clean in sim"; \
a90ef4bf 26767 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26770 "RANLIB=$${RANLIB}" \
0c24b341 26771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26772 clean) \
2a4cbe27
NN
26773 || exit 1
26774
a90ef4bf 26775@endif sim
2a4cbe27 26776
a90ef4bf
JM
26777.PHONY: maybe-distclean-sim distclean-sim
26778maybe-distclean-sim:
26779@if sim
26780maybe-distclean-sim: distclean-sim
2a4cbe27 26781
a90ef4bf
JM
26782distclean-sim:
26783 @: $(MAKE); $(unstage)
26784 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26785 r=`${PWD_COMMAND}`; export r; \
26786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26787 $(HOST_EXPORTS) \
b813574b 26788 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26790 done; \
22121df0 26791 echo "Doing distclean in sim"; \
a90ef4bf 26792 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26795 "RANLIB=$${RANLIB}" \
0c24b341 26796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26797 distclean) \
2a4cbe27
NN
26798 || exit 1
26799
a90ef4bf 26800@endif sim
2a4cbe27 26801
a90ef4bf
JM
26802.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26803maybe-maintainer-clean-sim:
26804@if sim
26805maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26806
a90ef4bf
JM
26807maintainer-clean-sim:
26808 @: $(MAKE); $(unstage)
26809 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26810 r=`${PWD_COMMAND}`; export r; \
26811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26812 $(HOST_EXPORTS) \
b813574b 26813 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26815 done; \
22121df0 26816 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26817 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26820 "RANLIB=$${RANLIB}" \
0c24b341 26821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26822 maintainer-clean) \
2a4cbe27
NN
26823 || exit 1
26824
a90ef4bf 26825@endif sim
2a4cbe27 26826
2a4cbe27 26827
a7254363 26828
a90ef4bf
JM
26829.PHONY: configure-texinfo maybe-configure-texinfo
26830maybe-configure-texinfo:
4f0ef2d8 26831@if gcc-bootstrap
a90ef4bf 26832configure-texinfo: stage_current
4f0ef2d8 26833@endif gcc-bootstrap
a90ef4bf
JM
26834@if texinfo
26835maybe-configure-texinfo: configure-texinfo
26836configure-texinfo:
0aed8855 26837 @: $(MAKE); $(unstage)
c52c6897 26838 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26840 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26841 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26842 $(HOST_EXPORTS) \
a90ef4bf
JM
26843 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26844 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26845 case $(srcdir) in \
b00612cc 26846 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26847 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26848 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26849 esac; \
1b6c0831
L
26850 module_srcdir=texinfo; \
26851 $(SHELL) \
26852 $$s/$$module_srcdir/configure \
26853 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26854 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26855 --target=${target_alias} \
2a4cbe27 26856 || exit 1
a90ef4bf 26857@endif texinfo
2a4cbe27 26858
a7254363
PB
26859
26860
d545f33b
PB
26861
26862
a90ef4bf
JM
26863.PHONY: all-texinfo maybe-all-texinfo
26864maybe-all-texinfo:
4f0ef2d8 26865@if gcc-bootstrap
a90ef4bf 26866all-texinfo: stage_current
4f0ef2d8 26867@endif gcc-bootstrap
a90ef4bf
JM
26868@if texinfo
26869TARGET-texinfo=all
26870maybe-all-texinfo: all-texinfo
26871all-texinfo: configure-texinfo
0aed8855 26872 @: $(MAKE); $(unstage)
4fa63067
NN
26873 @r=`${PWD_COMMAND}`; export r; \
26874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26875 $(HOST_EXPORTS) \
a90ef4bf 26876 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26877 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26878 $(TARGET-texinfo))
26879@endif texinfo
4fa63067 26880
a7254363 26881
d545f33b
PB
26882
26883
a90ef4bf
JM
26884.PHONY: check-texinfo maybe-check-texinfo
26885maybe-check-texinfo:
26886@if texinfo
26887maybe-check-texinfo: check-texinfo
2a4cbe27 26888
a90ef4bf 26889check-texinfo:
0aed8855 26890 @: $(MAKE); $(unstage)
4fa63067
NN
26891 @r=`${PWD_COMMAND}`; export r; \
26892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26893 $(HOST_EXPORTS) \
a90ef4bf 26894 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26895 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26896
a90ef4bf 26897@endif texinfo
4fa63067 26898
a90ef4bf
JM
26899.PHONY: install-texinfo maybe-install-texinfo
26900maybe-install-texinfo:
26901@if texinfo
26902maybe-install-texinfo: install-texinfo
4fa63067 26903
a90ef4bf 26904install-texinfo:
4fa63067 26905
a90ef4bf 26906@endif texinfo
4fa63067 26907
a90ef4bf
JM
26908.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26909maybe-install-strip-texinfo:
26910@if texinfo
26911maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26912
a90ef4bf 26913install-strip-texinfo:
9b980aa1 26914
a90ef4bf 26915@endif texinfo
9b980aa1 26916
56a8fe78 26917# Other targets (info, dvi, pdf, etc.)
4fa63067 26918
a90ef4bf
JM
26919.PHONY: maybe-info-texinfo info-texinfo
26920maybe-info-texinfo:
26921@if texinfo
26922maybe-info-texinfo: info-texinfo
4fa63067 26923
a90ef4bf
JM
26924info-texinfo: \
26925 configure-texinfo
0aed8855 26926 @: $(MAKE); $(unstage)
a90ef4bf 26927 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26928 r=`${PWD_COMMAND}`; export r; \
26929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26930 $(HOST_EXPORTS) \
b813574b 26931 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26933 done; \
22121df0 26934 echo "Doing info in texinfo"; \
a90ef4bf 26935 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26938 "RANLIB=$${RANLIB}" \
0c24b341 26939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26940 info) \
2a4cbe27
NN
26941 || exit 1
26942
a90ef4bf 26943@endif texinfo
2a4cbe27 26944
a90ef4bf
JM
26945.PHONY: maybe-dvi-texinfo dvi-texinfo
26946maybe-dvi-texinfo:
26947@if texinfo
26948maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26949
a90ef4bf
JM
26950dvi-texinfo: \
26951 configure-texinfo
0aed8855 26952 @: $(MAKE); $(unstage)
a90ef4bf 26953 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26954 r=`${PWD_COMMAND}`; export r; \
26955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26956 $(HOST_EXPORTS) \
b813574b 26957 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26959 done; \
22121df0 26960 echo "Doing dvi in texinfo"; \
a90ef4bf 26961 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26964 "RANLIB=$${RANLIB}" \
0c24b341 26965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26966 dvi) \
2a4cbe27
NN
26967 || exit 1
26968
a90ef4bf 26969@endif texinfo
2a4cbe27 26970
a90ef4bf
JM
26971.PHONY: maybe-pdf-texinfo pdf-texinfo
26972maybe-pdf-texinfo:
26973@if texinfo
26974maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26975
a90ef4bf
JM
26976pdf-texinfo: \
26977 configure-texinfo
56a8fe78 26978 @: $(MAKE); $(unstage)
a90ef4bf 26979 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26980 r=`${PWD_COMMAND}`; export r; \
26981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26982 $(HOST_EXPORTS) \
26983 for flag in $(EXTRA_HOST_FLAGS) ; do \
26984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26985 done; \
22121df0 26986 echo "Doing pdf in texinfo"; \
a90ef4bf 26987 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26990 "RANLIB=$${RANLIB}" \
0c24b341 26991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26992 pdf) \
26993 || exit 1
26994
a90ef4bf 26995@endif texinfo
56a8fe78 26996
a90ef4bf
JM
26997.PHONY: maybe-html-texinfo html-texinfo
26998maybe-html-texinfo:
26999@if texinfo
27000maybe-html-texinfo: html-texinfo
6d389afc 27001
a90ef4bf
JM
27002html-texinfo: \
27003 configure-texinfo
0aed8855 27004 @: $(MAKE); $(unstage)
a90ef4bf 27005 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
27006 r=`${PWD_COMMAND}`; export r; \
27007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27008 $(HOST_EXPORTS) \
27009 for flag in $(EXTRA_HOST_FLAGS) ; do \
27010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27011 done; \
22121df0 27012 echo "Doing html in texinfo"; \
a90ef4bf 27013 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
27014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27016 "RANLIB=$${RANLIB}" \
0c24b341 27017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27018 html) \
27019 || exit 1
27020
a90ef4bf 27021@endif texinfo
6d389afc 27022
a90ef4bf
JM
27023.PHONY: maybe-TAGS-texinfo TAGS-texinfo
27024maybe-TAGS-texinfo:
27025@if texinfo
27026maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 27027
a90ef4bf
JM
27028TAGS-texinfo: \
27029 configure-texinfo
0aed8855 27030 @: $(MAKE); $(unstage)
a90ef4bf 27031 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27032 r=`${PWD_COMMAND}`; export r; \
27033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27034 $(HOST_EXPORTS) \
b813574b 27035 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27037 done; \
22121df0 27038 echo "Doing TAGS in texinfo"; \
a90ef4bf 27039 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27042 "RANLIB=$${RANLIB}" \
0c24b341 27043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27044 TAGS) \
2a4cbe27
NN
27045 || exit 1
27046
a90ef4bf 27047@endif texinfo
2a4cbe27 27048
a90ef4bf
JM
27049.PHONY: maybe-install-info-texinfo install-info-texinfo
27050maybe-install-info-texinfo:
27051@if texinfo
27052maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 27053
a90ef4bf
JM
27054install-info-texinfo: \
27055 configure-texinfo \
27056 info-texinfo
0aed8855 27057 @: $(MAKE); $(unstage)
a90ef4bf 27058 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27059 r=`${PWD_COMMAND}`; export r; \
27060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27061 $(HOST_EXPORTS) \
b813574b 27062 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27064 done; \
22121df0 27065 echo "Doing install-info in texinfo"; \
a90ef4bf 27066 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27069 "RANLIB=$${RANLIB}" \
0c24b341 27070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27071 install-info) \
2a4cbe27
NN
27072 || exit 1
27073
a90ef4bf 27074@endif texinfo
2a4cbe27 27075
a90ef4bf
JM
27076.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
27077maybe-install-pdf-texinfo:
27078@if texinfo
27079maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 27080
a90ef4bf
JM
27081install-pdf-texinfo: \
27082 configure-texinfo \
27083 pdf-texinfo
a3ca38d2 27084 @: $(MAKE); $(unstage)
a90ef4bf 27085 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
27086 r=`${PWD_COMMAND}`; export r; \
27087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27088 $(HOST_EXPORTS) \
27089 for flag in $(EXTRA_HOST_FLAGS) ; do \
27090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27091 done; \
22121df0 27092 echo "Doing install-pdf in texinfo"; \
a90ef4bf 27093 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
27094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27096 "RANLIB=$${RANLIB}" \
0c24b341 27097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27098 install-pdf) \
27099 || exit 1
27100
a90ef4bf 27101@endif texinfo
a3ca38d2 27102
a90ef4bf
JM
27103.PHONY: maybe-install-html-texinfo install-html-texinfo
27104maybe-install-html-texinfo:
27105@if texinfo
27106maybe-install-html-texinfo: install-html-texinfo
108a6f8e 27107
a90ef4bf
JM
27108install-html-texinfo: \
27109 configure-texinfo \
27110 html-texinfo
108a6f8e 27111 @: $(MAKE); $(unstage)
a90ef4bf 27112 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
27113 r=`${PWD_COMMAND}`; export r; \
27114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27115 $(HOST_EXPORTS) \
27116 for flag in $(EXTRA_HOST_FLAGS) ; do \
27117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27118 done; \
22121df0 27119 echo "Doing install-html in texinfo"; \
a90ef4bf 27120 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
27121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27123 "RANLIB=$${RANLIB}" \
0c24b341 27124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27125 install-html) \
27126 || exit 1
27127
a90ef4bf 27128@endif texinfo
108a6f8e 27129
a90ef4bf
JM
27130.PHONY: maybe-installcheck-texinfo installcheck-texinfo
27131maybe-installcheck-texinfo:
27132@if texinfo
27133maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 27134
a90ef4bf
JM
27135installcheck-texinfo: \
27136 configure-texinfo
0aed8855 27137 @: $(MAKE); $(unstage)
a90ef4bf 27138 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27139 r=`${PWD_COMMAND}`; export r; \
27140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27141 $(HOST_EXPORTS) \
b813574b 27142 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27144 done; \
22121df0 27145 echo "Doing installcheck in texinfo"; \
a90ef4bf 27146 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27149 "RANLIB=$${RANLIB}" \
0c24b341 27150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27151 installcheck) \
2a4cbe27
NN
27152 || exit 1
27153
a90ef4bf 27154@endif texinfo
2a4cbe27 27155
a90ef4bf
JM
27156.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27157maybe-mostlyclean-texinfo:
27158@if texinfo
27159maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27160
a90ef4bf 27161mostlyclean-texinfo:
0aed8855 27162 @: $(MAKE); $(unstage)
a90ef4bf 27163 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27164 r=`${PWD_COMMAND}`; export r; \
27165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27166 $(HOST_EXPORTS) \
b813574b 27167 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27169 done; \
22121df0 27170 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27171 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27174 "RANLIB=$${RANLIB}" \
0c24b341 27175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27176 mostlyclean) \
2a4cbe27
NN
27177 || exit 1
27178
a90ef4bf 27179@endif texinfo
2a4cbe27 27180
a90ef4bf
JM
27181.PHONY: maybe-clean-texinfo clean-texinfo
27182maybe-clean-texinfo:
27183@if texinfo
27184maybe-clean-texinfo: clean-texinfo
2a4cbe27 27185
a90ef4bf 27186clean-texinfo:
0aed8855 27187 @: $(MAKE); $(unstage)
a90ef4bf 27188 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27189 r=`${PWD_COMMAND}`; export r; \
27190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27191 $(HOST_EXPORTS) \
b813574b 27192 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27194 done; \
22121df0 27195 echo "Doing clean in texinfo"; \
a90ef4bf 27196 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27199 "RANLIB=$${RANLIB}" \
0c24b341 27200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27201 clean) \
2a4cbe27
NN
27202 || exit 1
27203
a90ef4bf 27204@endif texinfo
2a4cbe27 27205
a90ef4bf
JM
27206.PHONY: maybe-distclean-texinfo distclean-texinfo
27207maybe-distclean-texinfo:
27208@if texinfo
27209maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27210
a90ef4bf 27211distclean-texinfo:
0aed8855 27212 @: $(MAKE); $(unstage)
a90ef4bf 27213 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27214 r=`${PWD_COMMAND}`; export r; \
27215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27216 $(HOST_EXPORTS) \
b813574b 27217 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27219 done; \
22121df0 27220 echo "Doing distclean in texinfo"; \
a90ef4bf 27221 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27224 "RANLIB=$${RANLIB}" \
0c24b341 27225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27226 distclean) \
2a4cbe27
NN
27227 || exit 1
27228
a90ef4bf 27229@endif texinfo
2a4cbe27 27230
a90ef4bf
JM
27231.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27232maybe-maintainer-clean-texinfo:
27233@if texinfo
27234maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27235
a90ef4bf 27236maintainer-clean-texinfo:
0aed8855 27237 @: $(MAKE); $(unstage)
a90ef4bf 27238 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27239 r=`${PWD_COMMAND}`; export r; \
27240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27241 $(HOST_EXPORTS) \
b813574b 27242 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27244 done; \
22121df0 27245 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27246 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27249 "RANLIB=$${RANLIB}" \
0c24b341 27250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27251 maintainer-clean) \
2a4cbe27
NN
27252 || exit 1
27253
a90ef4bf 27254@endif texinfo
2a4cbe27 27255
2a4cbe27 27256
a7254363 27257
a90ef4bf
JM
27258.PHONY: configure-zlib maybe-configure-zlib
27259maybe-configure-zlib:
4f0ef2d8 27260@if gcc-bootstrap
a90ef4bf 27261configure-zlib: stage_current
4f0ef2d8 27262@endif gcc-bootstrap
a90ef4bf
JM
27263@if zlib
27264maybe-configure-zlib: configure-zlib
27265configure-zlib:
c52c6897
PB
27266 @r=`${PWD_COMMAND}`; export r; \
27267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27268 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27269 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27270 $(HOST_EXPORTS) \
a90ef4bf
JM
27271 echo Configuring in $(HOST_SUBDIR)/zlib; \
27272 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27273 case $(srcdir) in \
b00612cc 27274 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27275 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27276 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27277 esac; \
1b6c0831
L
27278 module_srcdir=zlib; \
27279 $(SHELL) \
27280 $$s/$$module_srcdir/configure \
27281 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27282 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27283 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27284 || exit 1
a90ef4bf 27285@endif zlib
04cf1b77 27286
a7254363
PB
27287
27288
a90ef4bf
JM
27289.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27290maybe-configure-stage1-zlib:
27291@if zlib-bootstrap
27292maybe-configure-stage1-zlib: configure-stage1-zlib
27293configure-stage1-zlib:
c52c6897 27294 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27295 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27296 @r=`${PWD_COMMAND}`; export r; \
27297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27298 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27299 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27300 $(HOST_EXPORTS) \
8ee82aff 27301 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27302 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27303 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27304 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27305 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27306 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27307 case $(srcdir) in \
27308 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27309 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27310 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27311 esac; \
1b6c0831
L
27312 module_srcdir=zlib; \
27313 $(SHELL) $$s/$$module_srcdir/configure \
27314 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27315 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27316 --target=${target_alias} \
27317 \
e81d5d05
L
27318 $(STAGE1_CONFIGURE_FLAGS) \
27319 @extra_host_zlib_configure_flags@
a90ef4bf 27320@endif zlib-bootstrap
d545f33b 27321
a90ef4bf
JM
27322.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27323maybe-configure-stage2-zlib:
27324@if zlib-bootstrap
27325maybe-configure-stage2-zlib: configure-stage2-zlib
27326configure-stage2-zlib:
c52c6897 27327 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27328 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27329 @r=`${PWD_COMMAND}`; export r; \
27330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27331 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27332 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27333 $(HOST_EXPORTS) \
1b05fbbd 27334 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27335 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27336 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27337 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27338 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27339 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27340 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27341 case $(srcdir) in \
27342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27343 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27345 esac; \
1b6c0831
L
27346 module_srcdir=zlib; \
27347 $(SHELL) $$s/$$module_srcdir/configure \
27348 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27349 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27350 --target=${target_alias} \
22121df0 27351 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27352 $(STAGE2_CONFIGURE_FLAGS) \
27353 @extra_host_zlib_configure_flags@
a90ef4bf 27354@endif zlib-bootstrap
8520c408 27355
a90ef4bf
JM
27356.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27357maybe-configure-stage3-zlib:
27358@if zlib-bootstrap
27359maybe-configure-stage3-zlib: configure-stage3-zlib
27360configure-stage3-zlib:
c52c6897 27361 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27362 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27363 @r=`${PWD_COMMAND}`; export r; \
27364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27365 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27366 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27367 $(HOST_EXPORTS) \
1b05fbbd 27368 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27369 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27370 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27371 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27372 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27373 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27374 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27375 case $(srcdir) in \
27376 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27377 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27378 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27379 esac; \
1b6c0831
L
27380 module_srcdir=zlib; \
27381 $(SHELL) $$s/$$module_srcdir/configure \
27382 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27383 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27384 --target=${target_alias} \
22121df0 27385 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27386 $(STAGE3_CONFIGURE_FLAGS) \
27387 @extra_host_zlib_configure_flags@
a90ef4bf 27388@endif zlib-bootstrap
8520c408 27389
a90ef4bf
JM
27390.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27391maybe-configure-stage4-zlib:
27392@if zlib-bootstrap
27393maybe-configure-stage4-zlib: configure-stage4-zlib
27394configure-stage4-zlib:
c52c6897 27395 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27396 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27397 @r=`${PWD_COMMAND}`; export r; \
27398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27399 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27400 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27401 $(HOST_EXPORTS) \
1b05fbbd 27402 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27403 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27404 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27405 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27406 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27407 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27408 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27409 case $(srcdir) in \
27410 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27411 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27412 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27413 esac; \
1b6c0831
L
27414 module_srcdir=zlib; \
27415 $(SHELL) $$s/$$module_srcdir/configure \
27416 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27417 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27418 --target=${target_alias} \
22121df0 27419 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27420 $(STAGE4_CONFIGURE_FLAGS) \
27421 @extra_host_zlib_configure_flags@
a90ef4bf 27422@endif zlib-bootstrap
d545f33b 27423
a90ef4bf
JM
27424.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27425maybe-configure-stageprofile-zlib:
27426@if zlib-bootstrap
27427maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27428configure-stageprofile-zlib:
c52c6897 27429 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27430 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27431 @r=`${PWD_COMMAND}`; export r; \
27432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27433 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27434 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27435 $(HOST_EXPORTS) \
1b05fbbd
AO
27436 $(POSTSTAGE1_HOST_EXPORTS) \
27437 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27438 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27439 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27440 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27441 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27442 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27443 case $(srcdir) in \
27444 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27445 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27446 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27447 esac; \
1b6c0831
L
27448 module_srcdir=zlib; \
27449 $(SHELL) $$s/$$module_srcdir/configure \
27450 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27451 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27452 --target=${target_alias} \
22121df0 27453 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27454 $(STAGEprofile_CONFIGURE_FLAGS) \
27455 @extra_host_zlib_configure_flags@
a90ef4bf 27456@endif zlib-bootstrap
d545f33b 27457
a90ef4bf
JM
27458.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27459maybe-configure-stagefeedback-zlib:
27460@if zlib-bootstrap
27461maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27462configure-stagefeedback-zlib:
c52c6897 27463 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27464 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27465 @r=`${PWD_COMMAND}`; export r; \
27466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27467 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27468 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27469 $(HOST_EXPORTS) \
1b05fbbd
AO
27470 $(POSTSTAGE1_HOST_EXPORTS) \
27471 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27472 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27473 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27474 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27475 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27476 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27477 case $(srcdir) in \
27478 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27479 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27480 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27481 esac; \
1b6c0831
L
27482 module_srcdir=zlib; \
27483 $(SHELL) $$s/$$module_srcdir/configure \
27484 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27485 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27486 --target=${target_alias} \
22121df0 27487 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27488 $(STAGEfeedback_CONFIGURE_FLAGS) \
27489 @extra_host_zlib_configure_flags@
a90ef4bf 27490@endif zlib-bootstrap
d545f33b
PB
27491
27492
27493
27494
27495
a90ef4bf
JM
27496.PHONY: all-zlib maybe-all-zlib
27497maybe-all-zlib:
4f0ef2d8 27498@if gcc-bootstrap
a90ef4bf 27499all-zlib: stage_current
4f0ef2d8 27500@endif gcc-bootstrap
a90ef4bf
JM
27501@if zlib
27502TARGET-zlib=all
27503maybe-all-zlib: all-zlib
27504all-zlib: configure-zlib
c52c6897 27505 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27507 $(HOST_EXPORTS) \
a90ef4bf 27508 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27509 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27510 $(TARGET-zlib))
27511@endif zlib
04cf1b77 27512
a7254363 27513
d545f33b 27514
a90ef4bf
JM
27515.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27516.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27517maybe-all-stage1-zlib:
27518maybe-clean-stage1-zlib:
27519@if zlib-bootstrap
27520maybe-all-stage1-zlib: all-stage1-zlib
27521all-stage1: all-stage1-zlib
27522TARGET-stage1-zlib = $(TARGET-zlib)
27523all-stage1-zlib: configure-stage1-zlib
c52c6897 27524 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27525 @r=`${PWD_COMMAND}`; export r; \
27526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27527 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27528 $(HOST_EXPORTS) \
a90ef4bf 27529 cd $(HOST_SUBDIR)/zlib && \
05a13254 27530 \
7f6ef0c0 27531 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27532 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27533 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27534 LIBCFLAGS="$(LIBCFLAGS)" \
27535 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27536 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27537 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27538 $(EXTRA_HOST_FLAGS) \
27539 $(STAGE1_FLAGS_TO_PASS) \
05a13254 27540 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27541 $(TARGET-stage1-zlib)
d545f33b 27542
a90ef4bf
JM
27543maybe-clean-stage1-zlib: clean-stage1-zlib
27544clean-stage1: clean-stage1-zlib
27545clean-stage1-zlib:
9dbaa842 27546 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27547 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27548 else \
a90ef4bf 27549 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27550 $(MAKE) stage1-start; \
27551 fi; \
a90ef4bf 27552 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27553 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27554 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27555@endif zlib-bootstrap
d545f33b
PB
27556
27557
a90ef4bf
JM
27558.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27559.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27560maybe-all-stage2-zlib:
27561maybe-clean-stage2-zlib:
27562@if zlib-bootstrap
27563maybe-all-stage2-zlib: all-stage2-zlib
27564all-stage2: all-stage2-zlib
27565TARGET-stage2-zlib = $(TARGET-zlib)
27566all-stage2-zlib: configure-stage2-zlib
c52c6897 27567 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27568 @r=`${PWD_COMMAND}`; export r; \
27569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27570 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27571 $(HOST_EXPORTS) \
1f53ca9a 27572 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27573 cd $(HOST_SUBDIR)/zlib && \
05a13254 27574 \
7f6ef0c0 27575 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27576 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27577 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27578 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27579 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27580 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27581 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27582 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27583 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27584 $(TARGET-stage2-zlib)
d545f33b 27585
a90ef4bf
JM
27586maybe-clean-stage2-zlib: clean-stage2-zlib
27587clean-stage2: clean-stage2-zlib
27588clean-stage2-zlib:
9dbaa842 27589 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27590 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27591 else \
a90ef4bf 27592 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27593 $(MAKE) stage2-start; \
27594 fi; \
a90ef4bf 27595 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27596 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27597@endif zlib-bootstrap
d545f33b
PB
27598
27599
a90ef4bf
JM
27600.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27601.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27602maybe-all-stage3-zlib:
27603maybe-clean-stage3-zlib:
27604@if zlib-bootstrap
27605maybe-all-stage3-zlib: all-stage3-zlib
27606all-stage3: all-stage3-zlib
27607TARGET-stage3-zlib = $(TARGET-zlib)
27608all-stage3-zlib: configure-stage3-zlib
c52c6897 27609 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27610 @r=`${PWD_COMMAND}`; export r; \
27611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27612 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27613 $(HOST_EXPORTS) \
1f53ca9a 27614 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27615 cd $(HOST_SUBDIR)/zlib && \
05a13254 27616 \
7f6ef0c0 27617 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27618 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27619 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27620 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27621 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27622 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27623 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27624 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27625 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27626 $(TARGET-stage3-zlib)
d545f33b 27627
a90ef4bf
JM
27628maybe-clean-stage3-zlib: clean-stage3-zlib
27629clean-stage3: clean-stage3-zlib
27630clean-stage3-zlib:
9dbaa842 27631 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27632 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27633 else \
a90ef4bf 27634 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27635 $(MAKE) stage3-start; \
27636 fi; \
a90ef4bf 27637 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27638 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27639@endif zlib-bootstrap
d545f33b
PB
27640
27641
a90ef4bf
JM
27642.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27643.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27644maybe-all-stage4-zlib:
27645maybe-clean-stage4-zlib:
27646@if zlib-bootstrap
27647maybe-all-stage4-zlib: all-stage4-zlib
27648all-stage4: all-stage4-zlib
27649TARGET-stage4-zlib = $(TARGET-zlib)
27650all-stage4-zlib: configure-stage4-zlib
c52c6897 27651 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27652 @r=`${PWD_COMMAND}`; export r; \
27653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27654 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27655 $(HOST_EXPORTS) \
1f53ca9a 27656 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27657 cd $(HOST_SUBDIR)/zlib && \
05a13254 27658 \
7f6ef0c0 27659 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27660 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27661 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27662 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27663 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27664 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27665 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27666 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27667 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27668 $(TARGET-stage4-zlib)
d545f33b 27669
a90ef4bf
JM
27670maybe-clean-stage4-zlib: clean-stage4-zlib
27671clean-stage4: clean-stage4-zlib
27672clean-stage4-zlib:
9dbaa842 27673 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27674 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27675 else \
a90ef4bf 27676 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27677 $(MAKE) stage4-start; \
27678 fi; \
a90ef4bf 27679 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27680 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27681@endif zlib-bootstrap
d545f33b
PB
27682
27683
a90ef4bf
JM
27684.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27685.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27686maybe-all-stageprofile-zlib:
27687maybe-clean-stageprofile-zlib:
27688@if zlib-bootstrap
27689maybe-all-stageprofile-zlib: all-stageprofile-zlib
27690all-stageprofile: all-stageprofile-zlib
27691TARGET-stageprofile-zlib = $(TARGET-zlib)
27692all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27693 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27694 @r=`${PWD_COMMAND}`; export r; \
27695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27696 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27697 $(HOST_EXPORTS) \
1f53ca9a 27698 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27699 cd $(HOST_SUBDIR)/zlib && \
05a13254 27700 \
7f6ef0c0 27701 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27702 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27703 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27704 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27705 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27706 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27707 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27708 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27709 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27710 $(TARGET-stageprofile-zlib)
d545f33b 27711
a90ef4bf
JM
27712maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27713clean-stageprofile: clean-stageprofile-zlib
27714clean-stageprofile-zlib:
9dbaa842 27715 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27716 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27717 else \
a90ef4bf 27718 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27719 $(MAKE) stageprofile-start; \
27720 fi; \
a90ef4bf 27721 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27722 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27723@endif zlib-bootstrap
d545f33b
PB
27724
27725
a90ef4bf
JM
27726.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27727.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27728maybe-all-stagefeedback-zlib:
27729maybe-clean-stagefeedback-zlib:
27730@if zlib-bootstrap
27731maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27732all-stagefeedback: all-stagefeedback-zlib
27733TARGET-stagefeedback-zlib = $(TARGET-zlib)
27734all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27735 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27736 @r=`${PWD_COMMAND}`; export r; \
27737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27738 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27739 $(HOST_EXPORTS) \
1f53ca9a 27740 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27741 cd $(HOST_SUBDIR)/zlib && \
05a13254 27742 \
7f6ef0c0 27743 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27744 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27745 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27746 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27747 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27748 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27749 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27750 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27751 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27752 $(TARGET-stagefeedback-zlib)
d545f33b 27753
a90ef4bf
JM
27754maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27755clean-stagefeedback: clean-stagefeedback-zlib
27756clean-stagefeedback-zlib:
9dbaa842 27757 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27758 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27759 else \
a90ef4bf 27760 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27761 $(MAKE) stagefeedback-start; \
27762 fi; \
a90ef4bf 27763 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27764 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27765@endif zlib-bootstrap
d545f33b
PB
27766
27767
27768
27769
27770
a90ef4bf
JM
27771.PHONY: check-zlib maybe-check-zlib
27772maybe-check-zlib:
27773@if zlib
27774maybe-check-zlib: check-zlib
04cf1b77 27775
a90ef4bf 27776check-zlib:
04cf1b77 27777
a90ef4bf 27778@endif zlib
04cf1b77 27779
a90ef4bf
JM
27780.PHONY: install-zlib maybe-install-zlib
27781maybe-install-zlib:
27782@if zlib
27783maybe-install-zlib: install-zlib
04cf1b77 27784
a90ef4bf 27785install-zlib:
04cf1b77 27786
a90ef4bf 27787@endif zlib
04cf1b77 27788
a90ef4bf
JM
27789.PHONY: install-strip-zlib maybe-install-strip-zlib
27790maybe-install-strip-zlib:
27791@if zlib
27792maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27793
a90ef4bf 27794install-strip-zlib:
9b980aa1 27795
a90ef4bf 27796@endif zlib
9b980aa1 27797
56a8fe78 27798# Other targets (info, dvi, pdf, etc.)
04cf1b77 27799
a90ef4bf
JM
27800.PHONY: maybe-info-zlib info-zlib
27801maybe-info-zlib:
27802@if zlib
27803maybe-info-zlib: info-zlib
04cf1b77 27804
a90ef4bf
JM
27805info-zlib: \
27806 configure-zlib
27807 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27808 r=`${PWD_COMMAND}`; export r; \
27809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27810 $(HOST_EXPORTS) \
b813574b 27811 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27813 done; \
22121df0 27814 echo "Doing info in zlib"; \
a90ef4bf 27815 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27818 "RANLIB=$${RANLIB}" \
0c24b341 27819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27820 info) \
04cf1b77
PB
27821 || exit 1
27822
a90ef4bf 27823@endif zlib
04cf1b77 27824
a90ef4bf
JM
27825.PHONY: maybe-dvi-zlib dvi-zlib
27826maybe-dvi-zlib:
27827@if zlib
27828maybe-dvi-zlib: dvi-zlib
04cf1b77 27829
a90ef4bf
JM
27830dvi-zlib: \
27831 configure-zlib
27832 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27833 r=`${PWD_COMMAND}`; export r; \
27834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27835 $(HOST_EXPORTS) \
b813574b 27836 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27838 done; \
22121df0 27839 echo "Doing dvi in zlib"; \
a90ef4bf 27840 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27843 "RANLIB=$${RANLIB}" \
0c24b341 27844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27845 dvi) \
04cf1b77
PB
27846 || exit 1
27847
a90ef4bf 27848@endif zlib
04cf1b77 27849
a90ef4bf
JM
27850.PHONY: maybe-pdf-zlib pdf-zlib
27851maybe-pdf-zlib:
27852@if zlib
27853maybe-pdf-zlib: pdf-zlib
56a8fe78 27854
a90ef4bf
JM
27855pdf-zlib: \
27856 configure-zlib
27857 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27858 r=`${PWD_COMMAND}`; export r; \
27859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27860 $(HOST_EXPORTS) \
27861 for flag in $(EXTRA_HOST_FLAGS) ; do \
27862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27863 done; \
22121df0 27864 echo "Doing pdf in zlib"; \
a90ef4bf 27865 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27868 "RANLIB=$${RANLIB}" \
0c24b341 27869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27870 pdf) \
27871 || exit 1
27872
a90ef4bf 27873@endif zlib
56a8fe78 27874
a90ef4bf
JM
27875.PHONY: maybe-html-zlib html-zlib
27876maybe-html-zlib:
27877@if zlib
27878maybe-html-zlib: html-zlib
6d389afc 27879
a90ef4bf
JM
27880html-zlib: \
27881 configure-zlib
27882 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27883 r=`${PWD_COMMAND}`; export r; \
27884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27885 $(HOST_EXPORTS) \
27886 for flag in $(EXTRA_HOST_FLAGS) ; do \
27887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27888 done; \
22121df0 27889 echo "Doing html in zlib"; \
a90ef4bf 27890 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27893 "RANLIB=$${RANLIB}" \
0c24b341 27894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27895 html) \
27896 || exit 1
27897
a90ef4bf 27898@endif zlib
6d389afc 27899
a90ef4bf
JM
27900.PHONY: maybe-TAGS-zlib TAGS-zlib
27901maybe-TAGS-zlib:
27902@if zlib
27903maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27904
a90ef4bf
JM
27905TAGS-zlib: \
27906 configure-zlib
27907 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27908 r=`${PWD_COMMAND}`; export r; \
27909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27910 $(HOST_EXPORTS) \
b813574b 27911 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27913 done; \
22121df0 27914 echo "Doing TAGS in zlib"; \
a90ef4bf 27915 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27918 "RANLIB=$${RANLIB}" \
0c24b341 27919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27920 TAGS) \
04cf1b77
PB
27921 || exit 1
27922
a90ef4bf 27923@endif zlib
04cf1b77 27924
a90ef4bf
JM
27925.PHONY: maybe-install-info-zlib install-info-zlib
27926maybe-install-info-zlib:
27927@if zlib
27928maybe-install-info-zlib: install-info-zlib
04cf1b77 27929
a90ef4bf
JM
27930install-info-zlib: \
27931 configure-zlib \
27932 info-zlib
27933 @[ -f ./zlib/Makefile ] || exit 0; \
27934 r=`${PWD_COMMAND}`; export r; \
27935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27936 $(HOST_EXPORTS) \
b813574b 27937 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27939 done; \
22121df0 27940 echo "Doing install-info in zlib"; \
a90ef4bf 27941 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27944 "RANLIB=$${RANLIB}" \
0c24b341 27945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27946 install-info) \
04cf1b77
PB
27947 || exit 1
27948
a90ef4bf 27949@endif zlib
04cf1b77 27950
a90ef4bf
JM
27951.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27952maybe-install-pdf-zlib:
27953@if zlib
27954maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27955
a90ef4bf
JM
27956install-pdf-zlib: \
27957 configure-zlib \
27958 pdf-zlib
27959 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27960 r=`${PWD_COMMAND}`; export r; \
27961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27962 $(HOST_EXPORTS) \
27963 for flag in $(EXTRA_HOST_FLAGS) ; do \
27964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27965 done; \
22121df0 27966 echo "Doing install-pdf in zlib"; \
a90ef4bf 27967 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27970 "RANLIB=$${RANLIB}" \
0c24b341 27971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27972 install-pdf) \
27973 || exit 1
27974
a90ef4bf 27975@endif zlib
a3ca38d2 27976
a90ef4bf
JM
27977.PHONY: maybe-install-html-zlib install-html-zlib
27978maybe-install-html-zlib:
27979@if zlib
27980maybe-install-html-zlib: install-html-zlib
108a6f8e 27981
a90ef4bf
JM
27982install-html-zlib: \
27983 configure-zlib \
27984 html-zlib
27985 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27986 r=`${PWD_COMMAND}`; export r; \
27987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27988 $(HOST_EXPORTS) \
27989 for flag in $(EXTRA_HOST_FLAGS) ; do \
27990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27991 done; \
22121df0 27992 echo "Doing install-html in zlib"; \
a90ef4bf 27993 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27996 "RANLIB=$${RANLIB}" \
0c24b341 27997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27998 install-html) \
27999 || exit 1
28000
a90ef4bf 28001@endif zlib
108a6f8e 28002
a90ef4bf
JM
28003.PHONY: maybe-installcheck-zlib installcheck-zlib
28004maybe-installcheck-zlib:
28005@if zlib
28006maybe-installcheck-zlib: installcheck-zlib
04cf1b77 28007
a90ef4bf
JM
28008installcheck-zlib: \
28009 configure-zlib
28010 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28011 r=`${PWD_COMMAND}`; export r; \
28012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28013 $(HOST_EXPORTS) \
b813574b 28014 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28016 done; \
22121df0 28017 echo "Doing installcheck in zlib"; \
a90ef4bf 28018 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28021 "RANLIB=$${RANLIB}" \
0c24b341 28022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28023 installcheck) \
04cf1b77
PB
28024 || exit 1
28025
a90ef4bf 28026@endif zlib
04cf1b77 28027
a90ef4bf
JM
28028.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
28029maybe-mostlyclean-zlib:
28030@if zlib
28031maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 28032
a90ef4bf
JM
28033mostlyclean-zlib:
28034 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28035 r=`${PWD_COMMAND}`; export r; \
28036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28037 $(HOST_EXPORTS) \
b813574b 28038 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28040 done; \
22121df0 28041 echo "Doing mostlyclean in zlib"; \
a90ef4bf 28042 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28045 "RANLIB=$${RANLIB}" \
0c24b341 28046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28047 mostlyclean) \
04cf1b77
PB
28048 || exit 1
28049
a90ef4bf 28050@endif zlib
04cf1b77 28051
a90ef4bf
JM
28052.PHONY: maybe-clean-zlib clean-zlib
28053maybe-clean-zlib:
28054@if zlib
28055maybe-clean-zlib: clean-zlib
04cf1b77 28056
a90ef4bf
JM
28057clean-zlib:
28058 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28059 r=`${PWD_COMMAND}`; export r; \
28060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28061 $(HOST_EXPORTS) \
b813574b 28062 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28064 done; \
22121df0 28065 echo "Doing clean in zlib"; \
a90ef4bf 28066 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28069 "RANLIB=$${RANLIB}" \
0c24b341 28070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28071 clean) \
04cf1b77
PB
28072 || exit 1
28073
a90ef4bf 28074@endif zlib
04cf1b77 28075
a90ef4bf
JM
28076.PHONY: maybe-distclean-zlib distclean-zlib
28077maybe-distclean-zlib:
28078@if zlib
28079maybe-distclean-zlib: distclean-zlib
04cf1b77 28080
a90ef4bf
JM
28081distclean-zlib:
28082 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28083 r=`${PWD_COMMAND}`; export r; \
28084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28085 $(HOST_EXPORTS) \
b813574b 28086 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28088 done; \
22121df0 28089 echo "Doing distclean in zlib"; \
a90ef4bf 28090 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28093 "RANLIB=$${RANLIB}" \
0c24b341 28094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28095 distclean) \
04cf1b77
PB
28096 || exit 1
28097
a90ef4bf 28098@endif zlib
04cf1b77 28099
a90ef4bf
JM
28100.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
28101maybe-maintainer-clean-zlib:
28102@if zlib
28103maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 28104
a90ef4bf
JM
28105maintainer-clean-zlib:
28106 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28107 r=`${PWD_COMMAND}`; export r; \
28108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28109 $(HOST_EXPORTS) \
b813574b 28110 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28112 done; \
22121df0 28113 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 28114 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28117 "RANLIB=$${RANLIB}" \
0c24b341 28118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28119 maintainer-clean) \
04cf1b77
PB
28120 || exit 1
28121
a90ef4bf 28122@endif zlib
04cf1b77
PB
28123
28124
a7254363 28125
73cc7272
TT
28126.PHONY: configure-gnulib maybe-configure-gnulib
28127maybe-configure-gnulib:
28128@if gcc-bootstrap
28129configure-gnulib: stage_current
28130@endif gcc-bootstrap
28131@if gnulib
28132maybe-configure-gnulib: configure-gnulib
28133configure-gnulib:
28134 @: $(MAKE); $(unstage)
28135 @r=`${PWD_COMMAND}`; export r; \
28136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28137 test ! -f $(HOST_SUBDIR)/gnulib/Makefile || exit 0; \
28138 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnulib; \
28139 $(HOST_EXPORTS) \
28140 echo Configuring in $(HOST_SUBDIR)/gnulib; \
28141 cd "$(HOST_SUBDIR)/gnulib" || exit 1; \
28142 case $(srcdir) in \
28143 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28144 *) topdir=`echo $(HOST_SUBDIR)/gnulib/ | \
28145 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28146 esac; \
28147 module_srcdir=gnulib; \
28148 $(SHELL) \
28149 $$s/$$module_srcdir/configure \
28150 --srcdir=$${topdir}/$$module_srcdir \
28151 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28152 --target=${target_alias} \
28153 || exit 1
28154@endif gnulib
28155
28156
28157
28158
28159
28160.PHONY: all-gnulib maybe-all-gnulib
28161maybe-all-gnulib:
28162@if gcc-bootstrap
28163all-gnulib: stage_current
28164@endif gcc-bootstrap
28165@if gnulib
28166TARGET-gnulib=all
28167maybe-all-gnulib: all-gnulib
28168all-gnulib: configure-gnulib
28169 @: $(MAKE); $(unstage)
28170 @r=`${PWD_COMMAND}`; export r; \
28171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28172 $(HOST_EXPORTS) \
28173 (cd $(HOST_SUBDIR)/gnulib && \
28174 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
28175 $(TARGET-gnulib))
28176@endif gnulib
28177
28178
28179
28180
28181.PHONY: check-gnulib maybe-check-gnulib
28182maybe-check-gnulib:
28183@if gnulib
28184maybe-check-gnulib: check-gnulib
28185
28186check-gnulib:
28187 @: $(MAKE); $(unstage)
28188 @r=`${PWD_COMMAND}`; export r; \
28189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28190 $(HOST_EXPORTS) \
28191 (cd $(HOST_SUBDIR)/gnulib && \
28192 $(MAKE) $(FLAGS_TO_PASS) check)
28193
28194@endif gnulib
28195
28196.PHONY: install-gnulib maybe-install-gnulib
28197maybe-install-gnulib:
28198@if gnulib
28199maybe-install-gnulib: install-gnulib
28200
28201install-gnulib: installdirs
28202 @: $(MAKE); $(unstage)
28203 @r=`${PWD_COMMAND}`; export r; \
28204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28205 $(HOST_EXPORTS) \
28206 (cd $(HOST_SUBDIR)/gnulib && \
28207 $(MAKE) $(FLAGS_TO_PASS) install)
28208
28209@endif gnulib
28210
28211.PHONY: install-strip-gnulib maybe-install-strip-gnulib
28212maybe-install-strip-gnulib:
28213@if gnulib
28214maybe-install-strip-gnulib: install-strip-gnulib
28215
28216install-strip-gnulib: installdirs
28217 @: $(MAKE); $(unstage)
28218 @r=`${PWD_COMMAND}`; export r; \
28219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28220 $(HOST_EXPORTS) \
28221 (cd $(HOST_SUBDIR)/gnulib && \
28222 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28223
28224@endif gnulib
28225
28226# Other targets (info, dvi, pdf, etc.)
28227
28228.PHONY: maybe-info-gnulib info-gnulib
28229maybe-info-gnulib:
28230@if gnulib
28231maybe-info-gnulib: info-gnulib
28232
28233info-gnulib: \
28234 configure-gnulib
28235 @: $(MAKE); $(unstage)
28236 @[ -f ./gnulib/Makefile ] || exit 0; \
28237 r=`${PWD_COMMAND}`; export r; \
28238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28239 $(HOST_EXPORTS) \
28240 for flag in $(EXTRA_HOST_FLAGS) ; do \
28241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28242 done; \
28243 echo "Doing info in gnulib"; \
28244 (cd $(HOST_SUBDIR)/gnulib && \
28245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28247 "RANLIB=$${RANLIB}" \
28248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28249 info) \
28250 || exit 1
28251
28252@endif gnulib
28253
28254.PHONY: maybe-dvi-gnulib dvi-gnulib
28255maybe-dvi-gnulib:
28256@if gnulib
28257maybe-dvi-gnulib: dvi-gnulib
28258
28259dvi-gnulib: \
28260 configure-gnulib
28261 @: $(MAKE); $(unstage)
28262 @[ -f ./gnulib/Makefile ] || exit 0; \
28263 r=`${PWD_COMMAND}`; export r; \
28264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28265 $(HOST_EXPORTS) \
28266 for flag in $(EXTRA_HOST_FLAGS) ; do \
28267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28268 done; \
28269 echo "Doing dvi in gnulib"; \
28270 (cd $(HOST_SUBDIR)/gnulib && \
28271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28273 "RANLIB=$${RANLIB}" \
28274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28275 dvi) \
28276 || exit 1
28277
28278@endif gnulib
28279
28280.PHONY: maybe-pdf-gnulib pdf-gnulib
28281maybe-pdf-gnulib:
28282@if gnulib
28283maybe-pdf-gnulib: pdf-gnulib
28284
28285pdf-gnulib: \
28286 configure-gnulib
28287 @: $(MAKE); $(unstage)
28288 @[ -f ./gnulib/Makefile ] || exit 0; \
28289 r=`${PWD_COMMAND}`; export r; \
28290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28291 $(HOST_EXPORTS) \
28292 for flag in $(EXTRA_HOST_FLAGS) ; do \
28293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28294 done; \
28295 echo "Doing pdf in gnulib"; \
28296 (cd $(HOST_SUBDIR)/gnulib && \
28297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28299 "RANLIB=$${RANLIB}" \
28300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28301 pdf) \
28302 || exit 1
28303
28304@endif gnulib
28305
28306.PHONY: maybe-html-gnulib html-gnulib
28307maybe-html-gnulib:
28308@if gnulib
28309maybe-html-gnulib: html-gnulib
28310
28311html-gnulib: \
28312 configure-gnulib
28313 @: $(MAKE); $(unstage)
28314 @[ -f ./gnulib/Makefile ] || exit 0; \
28315 r=`${PWD_COMMAND}`; export r; \
28316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28317 $(HOST_EXPORTS) \
28318 for flag in $(EXTRA_HOST_FLAGS) ; do \
28319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28320 done; \
28321 echo "Doing html in gnulib"; \
28322 (cd $(HOST_SUBDIR)/gnulib && \
28323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28325 "RANLIB=$${RANLIB}" \
28326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28327 html) \
28328 || exit 1
28329
28330@endif gnulib
28331
28332.PHONY: maybe-TAGS-gnulib TAGS-gnulib
28333maybe-TAGS-gnulib:
28334@if gnulib
28335maybe-TAGS-gnulib: TAGS-gnulib
28336
28337TAGS-gnulib: \
28338 configure-gnulib
28339 @: $(MAKE); $(unstage)
28340 @[ -f ./gnulib/Makefile ] || exit 0; \
28341 r=`${PWD_COMMAND}`; export r; \
28342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28343 $(HOST_EXPORTS) \
28344 for flag in $(EXTRA_HOST_FLAGS) ; do \
28345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28346 done; \
28347 echo "Doing TAGS in gnulib"; \
28348 (cd $(HOST_SUBDIR)/gnulib && \
28349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28351 "RANLIB=$${RANLIB}" \
28352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28353 TAGS) \
28354 || exit 1
28355
28356@endif gnulib
28357
28358.PHONY: maybe-install-info-gnulib install-info-gnulib
28359maybe-install-info-gnulib:
28360@if gnulib
28361maybe-install-info-gnulib: install-info-gnulib
28362
28363install-info-gnulib: \
28364 configure-gnulib \
28365 info-gnulib
28366 @: $(MAKE); $(unstage)
28367 @[ -f ./gnulib/Makefile ] || exit 0; \
28368 r=`${PWD_COMMAND}`; export r; \
28369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28370 $(HOST_EXPORTS) \
28371 for flag in $(EXTRA_HOST_FLAGS) ; do \
28372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28373 done; \
28374 echo "Doing install-info in gnulib"; \
28375 (cd $(HOST_SUBDIR)/gnulib && \
28376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28378 "RANLIB=$${RANLIB}" \
28379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28380 install-info) \
28381 || exit 1
28382
28383@endif gnulib
28384
28385.PHONY: maybe-install-pdf-gnulib install-pdf-gnulib
28386maybe-install-pdf-gnulib:
28387@if gnulib
28388maybe-install-pdf-gnulib: install-pdf-gnulib
28389
28390install-pdf-gnulib: \
28391 configure-gnulib \
28392 pdf-gnulib
28393 @: $(MAKE); $(unstage)
28394 @[ -f ./gnulib/Makefile ] || exit 0; \
28395 r=`${PWD_COMMAND}`; export r; \
28396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28397 $(HOST_EXPORTS) \
28398 for flag in $(EXTRA_HOST_FLAGS) ; do \
28399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28400 done; \
28401 echo "Doing install-pdf in gnulib"; \
28402 (cd $(HOST_SUBDIR)/gnulib && \
28403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28405 "RANLIB=$${RANLIB}" \
28406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28407 install-pdf) \
28408 || exit 1
28409
28410@endif gnulib
28411
28412.PHONY: maybe-install-html-gnulib install-html-gnulib
28413maybe-install-html-gnulib:
28414@if gnulib
28415maybe-install-html-gnulib: install-html-gnulib
28416
28417install-html-gnulib: \
28418 configure-gnulib \
28419 html-gnulib
28420 @: $(MAKE); $(unstage)
28421 @[ -f ./gnulib/Makefile ] || exit 0; \
28422 r=`${PWD_COMMAND}`; export r; \
28423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28424 $(HOST_EXPORTS) \
28425 for flag in $(EXTRA_HOST_FLAGS) ; do \
28426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28427 done; \
28428 echo "Doing install-html in gnulib"; \
28429 (cd $(HOST_SUBDIR)/gnulib && \
28430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28432 "RANLIB=$${RANLIB}" \
28433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28434 install-html) \
28435 || exit 1
28436
28437@endif gnulib
28438
28439.PHONY: maybe-installcheck-gnulib installcheck-gnulib
28440maybe-installcheck-gnulib:
28441@if gnulib
28442maybe-installcheck-gnulib: installcheck-gnulib
28443
28444installcheck-gnulib: \
28445 configure-gnulib
28446 @: $(MAKE); $(unstage)
28447 @[ -f ./gnulib/Makefile ] || exit 0; \
28448 r=`${PWD_COMMAND}`; export r; \
28449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28450 $(HOST_EXPORTS) \
28451 for flag in $(EXTRA_HOST_FLAGS) ; do \
28452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28453 done; \
28454 echo "Doing installcheck in gnulib"; \
28455 (cd $(HOST_SUBDIR)/gnulib && \
28456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28458 "RANLIB=$${RANLIB}" \
28459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28460 installcheck) \
28461 || exit 1
28462
28463@endif gnulib
28464
28465.PHONY: maybe-mostlyclean-gnulib mostlyclean-gnulib
28466maybe-mostlyclean-gnulib:
28467@if gnulib
28468maybe-mostlyclean-gnulib: mostlyclean-gnulib
28469
28470mostlyclean-gnulib:
28471 @: $(MAKE); $(unstage)
28472 @[ -f ./gnulib/Makefile ] || exit 0; \
28473 r=`${PWD_COMMAND}`; export r; \
28474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28475 $(HOST_EXPORTS) \
28476 for flag in $(EXTRA_HOST_FLAGS) ; do \
28477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28478 done; \
28479 echo "Doing mostlyclean in gnulib"; \
28480 (cd $(HOST_SUBDIR)/gnulib && \
28481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28483 "RANLIB=$${RANLIB}" \
28484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28485 mostlyclean) \
28486 || exit 1
28487
28488@endif gnulib
28489
28490.PHONY: maybe-clean-gnulib clean-gnulib
28491maybe-clean-gnulib:
28492@if gnulib
28493maybe-clean-gnulib: clean-gnulib
28494
28495clean-gnulib:
28496 @: $(MAKE); $(unstage)
28497 @[ -f ./gnulib/Makefile ] || exit 0; \
28498 r=`${PWD_COMMAND}`; export r; \
28499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28500 $(HOST_EXPORTS) \
28501 for flag in $(EXTRA_HOST_FLAGS) ; do \
28502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28503 done; \
28504 echo "Doing clean in gnulib"; \
28505 (cd $(HOST_SUBDIR)/gnulib && \
28506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28508 "RANLIB=$${RANLIB}" \
28509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28510 clean) \
28511 || exit 1
28512
28513@endif gnulib
28514
28515.PHONY: maybe-distclean-gnulib distclean-gnulib
28516maybe-distclean-gnulib:
28517@if gnulib
28518maybe-distclean-gnulib: distclean-gnulib
28519
28520distclean-gnulib:
28521 @: $(MAKE); $(unstage)
28522 @[ -f ./gnulib/Makefile ] || exit 0; \
28523 r=`${PWD_COMMAND}`; export r; \
28524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28525 $(HOST_EXPORTS) \
28526 for flag in $(EXTRA_HOST_FLAGS) ; do \
28527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28528 done; \
28529 echo "Doing distclean in gnulib"; \
28530 (cd $(HOST_SUBDIR)/gnulib && \
28531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28533 "RANLIB=$${RANLIB}" \
28534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28535 distclean) \
28536 || exit 1
28537
28538@endif gnulib
28539
28540.PHONY: maybe-maintainer-clean-gnulib maintainer-clean-gnulib
28541maybe-maintainer-clean-gnulib:
28542@if gnulib
28543maybe-maintainer-clean-gnulib: maintainer-clean-gnulib
28544
28545maintainer-clean-gnulib:
28546 @: $(MAKE); $(unstage)
28547 @[ -f ./gnulib/Makefile ] || exit 0; \
28548 r=`${PWD_COMMAND}`; export r; \
28549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28550 $(HOST_EXPORTS) \
28551 for flag in $(EXTRA_HOST_FLAGS) ; do \
28552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28553 done; \
28554 echo "Doing maintainer-clean in gnulib"; \
28555 (cd $(HOST_SUBDIR)/gnulib && \
28556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28558 "RANLIB=$${RANLIB}" \
28559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28560 maintainer-clean) \
28561 || exit 1
28562
28563@endif gnulib
28564
28565
28566
01027315
TT
28567.PHONY: configure-gdbsupport maybe-configure-gdbsupport
28568maybe-configure-gdbsupport:
28569@if gcc-bootstrap
28570configure-gdbsupport: stage_current
28571@endif gcc-bootstrap
28572@if gdbsupport
28573maybe-configure-gdbsupport: configure-gdbsupport
28574configure-gdbsupport:
28575 @: $(MAKE); $(unstage)
28576 @r=`${PWD_COMMAND}`; export r; \
28577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28578 test ! -f $(HOST_SUBDIR)/gdbsupport/Makefile || exit 0; \
28579 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdbsupport; \
28580 $(HOST_EXPORTS) \
28581 echo Configuring in $(HOST_SUBDIR)/gdbsupport; \
28582 cd "$(HOST_SUBDIR)/gdbsupport" || exit 1; \
28583 case $(srcdir) in \
28584 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28585 *) topdir=`echo $(HOST_SUBDIR)/gdbsupport/ | \
28586 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28587 esac; \
28588 module_srcdir=gdbsupport; \
28589 $(SHELL) \
28590 $$s/$$module_srcdir/configure \
28591 --srcdir=$${topdir}/$$module_srcdir \
28592 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28593 --target=${target_alias} \
28594 || exit 1
28595@endif gdbsupport
28596
28597
28598
28599
28600
28601.PHONY: all-gdbsupport maybe-all-gdbsupport
28602maybe-all-gdbsupport:
28603@if gcc-bootstrap
28604all-gdbsupport: stage_current
28605@endif gcc-bootstrap
28606@if gdbsupport
28607TARGET-gdbsupport=all
28608maybe-all-gdbsupport: all-gdbsupport
28609all-gdbsupport: configure-gdbsupport
28610 @: $(MAKE); $(unstage)
28611 @r=`${PWD_COMMAND}`; export r; \
28612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28613 $(HOST_EXPORTS) \
28614 (cd $(HOST_SUBDIR)/gdbsupport && \
28615 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
28616 $(TARGET-gdbsupport))
28617@endif gdbsupport
28618
28619
28620
28621
28622.PHONY: check-gdbsupport maybe-check-gdbsupport
28623maybe-check-gdbsupport:
28624@if gdbsupport
28625maybe-check-gdbsupport: check-gdbsupport
28626
28627check-gdbsupport:
28628 @: $(MAKE); $(unstage)
28629 @r=`${PWD_COMMAND}`; export r; \
28630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28631 $(HOST_EXPORTS) \
28632 (cd $(HOST_SUBDIR)/gdbsupport && \
28633 $(MAKE) $(FLAGS_TO_PASS) check)
28634
28635@endif gdbsupport
28636
28637.PHONY: install-gdbsupport maybe-install-gdbsupport
28638maybe-install-gdbsupport:
28639@if gdbsupport
28640maybe-install-gdbsupport: install-gdbsupport
28641
28642install-gdbsupport: installdirs
28643 @: $(MAKE); $(unstage)
28644 @r=`${PWD_COMMAND}`; export r; \
28645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28646 $(HOST_EXPORTS) \
28647 (cd $(HOST_SUBDIR)/gdbsupport && \
28648 $(MAKE) $(FLAGS_TO_PASS) install)
28649
28650@endif gdbsupport
28651
28652.PHONY: install-strip-gdbsupport maybe-install-strip-gdbsupport
28653maybe-install-strip-gdbsupport:
28654@if gdbsupport
28655maybe-install-strip-gdbsupport: install-strip-gdbsupport
28656
28657install-strip-gdbsupport: installdirs
28658 @: $(MAKE); $(unstage)
28659 @r=`${PWD_COMMAND}`; export r; \
28660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28661 $(HOST_EXPORTS) \
28662 (cd $(HOST_SUBDIR)/gdbsupport && \
28663 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28664
28665@endif gdbsupport
28666
28667# Other targets (info, dvi, pdf, etc.)
28668
28669.PHONY: maybe-info-gdbsupport info-gdbsupport
28670maybe-info-gdbsupport:
28671@if gdbsupport
28672maybe-info-gdbsupport: info-gdbsupport
28673
28674info-gdbsupport: \
28675 configure-gdbsupport
28676 @: $(MAKE); $(unstage)
28677 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28678 r=`${PWD_COMMAND}`; export r; \
28679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28680 $(HOST_EXPORTS) \
28681 for flag in $(EXTRA_HOST_FLAGS) ; do \
28682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28683 done; \
28684 echo "Doing info in gdbsupport"; \
28685 (cd $(HOST_SUBDIR)/gdbsupport && \
28686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28688 "RANLIB=$${RANLIB}" \
28689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28690 info) \
28691 || exit 1
28692
28693@endif gdbsupport
28694
28695.PHONY: maybe-dvi-gdbsupport dvi-gdbsupport
28696maybe-dvi-gdbsupport:
28697@if gdbsupport
28698maybe-dvi-gdbsupport: dvi-gdbsupport
28699
28700dvi-gdbsupport: \
28701 configure-gdbsupport
28702 @: $(MAKE); $(unstage)
28703 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28704 r=`${PWD_COMMAND}`; export r; \
28705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28706 $(HOST_EXPORTS) \
28707 for flag in $(EXTRA_HOST_FLAGS) ; do \
28708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28709 done; \
28710 echo "Doing dvi in gdbsupport"; \
28711 (cd $(HOST_SUBDIR)/gdbsupport && \
28712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28714 "RANLIB=$${RANLIB}" \
28715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28716 dvi) \
28717 || exit 1
28718
28719@endif gdbsupport
28720
28721.PHONY: maybe-pdf-gdbsupport pdf-gdbsupport
28722maybe-pdf-gdbsupport:
28723@if gdbsupport
28724maybe-pdf-gdbsupport: pdf-gdbsupport
28725
28726pdf-gdbsupport: \
28727 configure-gdbsupport
28728 @: $(MAKE); $(unstage)
28729 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28730 r=`${PWD_COMMAND}`; export r; \
28731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28732 $(HOST_EXPORTS) \
28733 for flag in $(EXTRA_HOST_FLAGS) ; do \
28734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28735 done; \
28736 echo "Doing pdf in gdbsupport"; \
28737 (cd $(HOST_SUBDIR)/gdbsupport && \
28738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28740 "RANLIB=$${RANLIB}" \
28741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28742 pdf) \
28743 || exit 1
28744
28745@endif gdbsupport
28746
28747.PHONY: maybe-html-gdbsupport html-gdbsupport
28748maybe-html-gdbsupport:
28749@if gdbsupport
28750maybe-html-gdbsupport: html-gdbsupport
28751
28752html-gdbsupport: \
28753 configure-gdbsupport
28754 @: $(MAKE); $(unstage)
28755 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28756 r=`${PWD_COMMAND}`; export r; \
28757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28758 $(HOST_EXPORTS) \
28759 for flag in $(EXTRA_HOST_FLAGS) ; do \
28760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28761 done; \
28762 echo "Doing html in gdbsupport"; \
28763 (cd $(HOST_SUBDIR)/gdbsupport && \
28764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28766 "RANLIB=$${RANLIB}" \
28767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28768 html) \
28769 || exit 1
28770
28771@endif gdbsupport
28772
28773.PHONY: maybe-TAGS-gdbsupport TAGS-gdbsupport
28774maybe-TAGS-gdbsupport:
28775@if gdbsupport
28776maybe-TAGS-gdbsupport: TAGS-gdbsupport
28777
28778TAGS-gdbsupport: \
28779 configure-gdbsupport
28780 @: $(MAKE); $(unstage)
28781 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28782 r=`${PWD_COMMAND}`; export r; \
28783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28784 $(HOST_EXPORTS) \
28785 for flag in $(EXTRA_HOST_FLAGS) ; do \
28786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28787 done; \
28788 echo "Doing TAGS in gdbsupport"; \
28789 (cd $(HOST_SUBDIR)/gdbsupport && \
28790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28792 "RANLIB=$${RANLIB}" \
28793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28794 TAGS) \
28795 || exit 1
28796
28797@endif gdbsupport
28798
28799.PHONY: maybe-install-info-gdbsupport install-info-gdbsupport
28800maybe-install-info-gdbsupport:
28801@if gdbsupport
28802maybe-install-info-gdbsupport: install-info-gdbsupport
28803
28804install-info-gdbsupport: \
28805 configure-gdbsupport \
28806 info-gdbsupport
28807 @: $(MAKE); $(unstage)
28808 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28809 r=`${PWD_COMMAND}`; export r; \
28810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28811 $(HOST_EXPORTS) \
28812 for flag in $(EXTRA_HOST_FLAGS) ; do \
28813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28814 done; \
28815 echo "Doing install-info in gdbsupport"; \
28816 (cd $(HOST_SUBDIR)/gdbsupport && \
28817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28819 "RANLIB=$${RANLIB}" \
28820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28821 install-info) \
28822 || exit 1
28823
28824@endif gdbsupport
28825
28826.PHONY: maybe-install-pdf-gdbsupport install-pdf-gdbsupport
28827maybe-install-pdf-gdbsupport:
28828@if gdbsupport
28829maybe-install-pdf-gdbsupport: install-pdf-gdbsupport
28830
28831install-pdf-gdbsupport: \
28832 configure-gdbsupport \
28833 pdf-gdbsupport
28834 @: $(MAKE); $(unstage)
28835 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28836 r=`${PWD_COMMAND}`; export r; \
28837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28838 $(HOST_EXPORTS) \
28839 for flag in $(EXTRA_HOST_FLAGS) ; do \
28840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28841 done; \
28842 echo "Doing install-pdf in gdbsupport"; \
28843 (cd $(HOST_SUBDIR)/gdbsupport && \
28844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28846 "RANLIB=$${RANLIB}" \
28847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28848 install-pdf) \
28849 || exit 1
28850
28851@endif gdbsupport
28852
28853.PHONY: maybe-install-html-gdbsupport install-html-gdbsupport
28854maybe-install-html-gdbsupport:
28855@if gdbsupport
28856maybe-install-html-gdbsupport: install-html-gdbsupport
28857
28858install-html-gdbsupport: \
28859 configure-gdbsupport \
28860 html-gdbsupport
28861 @: $(MAKE); $(unstage)
28862 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28863 r=`${PWD_COMMAND}`; export r; \
28864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28865 $(HOST_EXPORTS) \
28866 for flag in $(EXTRA_HOST_FLAGS) ; do \
28867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28868 done; \
28869 echo "Doing install-html in gdbsupport"; \
28870 (cd $(HOST_SUBDIR)/gdbsupport && \
28871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28873 "RANLIB=$${RANLIB}" \
28874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28875 install-html) \
28876 || exit 1
28877
28878@endif gdbsupport
28879
28880.PHONY: maybe-installcheck-gdbsupport installcheck-gdbsupport
28881maybe-installcheck-gdbsupport:
28882@if gdbsupport
28883maybe-installcheck-gdbsupport: installcheck-gdbsupport
28884
28885installcheck-gdbsupport: \
28886 configure-gdbsupport
28887 @: $(MAKE); $(unstage)
28888 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28889 r=`${PWD_COMMAND}`; export r; \
28890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28891 $(HOST_EXPORTS) \
28892 for flag in $(EXTRA_HOST_FLAGS) ; do \
28893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28894 done; \
28895 echo "Doing installcheck in gdbsupport"; \
28896 (cd $(HOST_SUBDIR)/gdbsupport && \
28897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28899 "RANLIB=$${RANLIB}" \
28900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28901 installcheck) \
28902 || exit 1
28903
28904@endif gdbsupport
28905
28906.PHONY: maybe-mostlyclean-gdbsupport mostlyclean-gdbsupport
28907maybe-mostlyclean-gdbsupport:
28908@if gdbsupport
28909maybe-mostlyclean-gdbsupport: mostlyclean-gdbsupport
28910
28911mostlyclean-gdbsupport:
28912 @: $(MAKE); $(unstage)
28913 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28914 r=`${PWD_COMMAND}`; export r; \
28915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28916 $(HOST_EXPORTS) \
28917 for flag in $(EXTRA_HOST_FLAGS) ; do \
28918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28919 done; \
28920 echo "Doing mostlyclean in gdbsupport"; \
28921 (cd $(HOST_SUBDIR)/gdbsupport && \
28922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28924 "RANLIB=$${RANLIB}" \
28925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28926 mostlyclean) \
28927 || exit 1
28928
28929@endif gdbsupport
28930
28931.PHONY: maybe-clean-gdbsupport clean-gdbsupport
28932maybe-clean-gdbsupport:
28933@if gdbsupport
28934maybe-clean-gdbsupport: clean-gdbsupport
28935
28936clean-gdbsupport:
28937 @: $(MAKE); $(unstage)
28938 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28939 r=`${PWD_COMMAND}`; export r; \
28940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28941 $(HOST_EXPORTS) \
28942 for flag in $(EXTRA_HOST_FLAGS) ; do \
28943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28944 done; \
28945 echo "Doing clean in gdbsupport"; \
28946 (cd $(HOST_SUBDIR)/gdbsupport && \
28947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28949 "RANLIB=$${RANLIB}" \
28950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28951 clean) \
28952 || exit 1
28953
28954@endif gdbsupport
28955
28956.PHONY: maybe-distclean-gdbsupport distclean-gdbsupport
28957maybe-distclean-gdbsupport:
28958@if gdbsupport
28959maybe-distclean-gdbsupport: distclean-gdbsupport
28960
28961distclean-gdbsupport:
28962 @: $(MAKE); $(unstage)
28963 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28964 r=`${PWD_COMMAND}`; export r; \
28965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28966 $(HOST_EXPORTS) \
28967 for flag in $(EXTRA_HOST_FLAGS) ; do \
28968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28969 done; \
28970 echo "Doing distclean in gdbsupport"; \
28971 (cd $(HOST_SUBDIR)/gdbsupport && \
28972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28974 "RANLIB=$${RANLIB}" \
28975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28976 distclean) \
28977 || exit 1
28978
28979@endif gdbsupport
28980
28981.PHONY: maybe-maintainer-clean-gdbsupport maintainer-clean-gdbsupport
28982maybe-maintainer-clean-gdbsupport:
28983@if gdbsupport
28984maybe-maintainer-clean-gdbsupport: maintainer-clean-gdbsupport
28985
28986maintainer-clean-gdbsupport:
28987 @: $(MAKE); $(unstage)
28988 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28989 r=`${PWD_COMMAND}`; export r; \
28990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28991 $(HOST_EXPORTS) \
28992 for flag in $(EXTRA_HOST_FLAGS) ; do \
28993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28994 done; \
28995 echo "Doing maintainer-clean in gdbsupport"; \
28996 (cd $(HOST_SUBDIR)/gdbsupport && \
28997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28999 "RANLIB=$${RANLIB}" \
29000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29001 maintainer-clean) \
29002 || exit 1
29003
29004@endif gdbsupport
29005
29006
29007
a90ef4bf
JM
29008.PHONY: configure-gdb maybe-configure-gdb
29009maybe-configure-gdb:
4f0ef2d8 29010@if gcc-bootstrap
a90ef4bf 29011configure-gdb: stage_current
4f0ef2d8 29012@endif gcc-bootstrap
a90ef4bf
JM
29013@if gdb
29014maybe-configure-gdb: configure-gdb
29015configure-gdb:
29016 @: $(MAKE); $(unstage)
c52c6897
PB
29017 @r=`${PWD_COMMAND}`; export r; \
29018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29019 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 29020 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 29021 $(HOST_EXPORTS) \
a90ef4bf
JM
29022 echo Configuring in $(HOST_SUBDIR)/gdb; \
29023 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 29024 case $(srcdir) in \
b00612cc 29025 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29026 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 29027 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29028 esac; \
1b6c0831
L
29029 module_srcdir=gdb; \
29030 $(SHELL) \
29031 $$s/$$module_srcdir/configure \
29032 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29033 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29034 --target=${target_alias} \
4fa63067 29035 || exit 1
a90ef4bf 29036@endif gdb
4fa63067 29037
a7254363
PB
29038
29039
d545f33b 29040
8520c408 29041
a90ef4bf
JM
29042.PHONY: all-gdb maybe-all-gdb
29043maybe-all-gdb:
29044@if gcc-bootstrap
29045all-gdb: stage_current
29046@endif gcc-bootstrap
29047@if gdb
29048TARGET-gdb=all
29049maybe-all-gdb: all-gdb
29050all-gdb: configure-gdb
29051 @: $(MAKE); $(unstage)
c52c6897
PB
29052 @r=`${PWD_COMMAND}`; export r; \
29053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29054 $(HOST_EXPORTS) \
29055 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 29056 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29057 $(TARGET-gdb))
29058@endif gdb
8520c408 29059
a90ef4bf
JM
29060
29061
29062
29063.PHONY: check-gdb maybe-check-gdb
29064maybe-check-gdb:
29065@if gdb
29066maybe-check-gdb: check-gdb
29067
29068check-gdb:
29069 @: $(MAKE); $(unstage)
c52c6897
PB
29070 @r=`${PWD_COMMAND}`; export r; \
29071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29072 $(HOST_EXPORTS) \
a90ef4bf
JM
29073 (cd $(HOST_SUBDIR)/gdb && \
29074 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 29075
a90ef4bf
JM
29076@endif gdb
29077
29078.PHONY: install-gdb maybe-install-gdb
29079maybe-install-gdb:
29080@if gdb
29081maybe-install-gdb: install-gdb
29082
29083install-gdb: installdirs
29084 @: $(MAKE); $(unstage)
c52c6897
PB
29085 @r=`${PWD_COMMAND}`; export r; \
29086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29087 $(HOST_EXPORTS) \
a90ef4bf
JM
29088 (cd $(HOST_SUBDIR)/gdb && \
29089 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 29090
a90ef4bf
JM
29091@endif gdb
29092
29093.PHONY: install-strip-gdb maybe-install-strip-gdb
29094maybe-install-strip-gdb:
29095@if gdb
29096maybe-install-strip-gdb: install-strip-gdb
29097
29098install-strip-gdb: installdirs
29099 @: $(MAKE); $(unstage)
c52c6897
PB
29100 @r=`${PWD_COMMAND}`; export r; \
29101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29102 $(HOST_EXPORTS) \
a90ef4bf
JM
29103 (cd $(HOST_SUBDIR)/gdb && \
29104 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29105
a90ef4bf 29106@endif gdb
d545f33b 29107
a90ef4bf 29108# Other targets (info, dvi, pdf, etc.)
d545f33b 29109
a90ef4bf
JM
29110.PHONY: maybe-info-gdb info-gdb
29111maybe-info-gdb:
29112@if gdb
29113maybe-info-gdb: info-gdb
d545f33b 29114
a90ef4bf
JM
29115info-gdb: \
29116 configure-gdb
29117 @: $(MAKE); $(unstage)
29118 @[ -f ./gdb/Makefile ] || exit 0; \
29119 r=`${PWD_COMMAND}`; export r; \
4fa63067 29120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29121 $(HOST_EXPORTS) \
29122 for flag in $(EXTRA_HOST_FLAGS) ; do \
29123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29124 done; \
22121df0 29125 echo "Doing info in gdb"; \
a90ef4bf
JM
29126 (cd $(HOST_SUBDIR)/gdb && \
29127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29129 "RANLIB=$${RANLIB}" \
29130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29131 info) \
29132 || exit 1
4fa63067 29133
a90ef4bf 29134@endif gdb
a7254363 29135
a90ef4bf
JM
29136.PHONY: maybe-dvi-gdb dvi-gdb
29137maybe-dvi-gdb:
29138@if gdb
29139maybe-dvi-gdb: dvi-gdb
d545f33b 29140
a90ef4bf
JM
29141dvi-gdb: \
29142 configure-gdb
29143 @: $(MAKE); $(unstage)
29144 @[ -f ./gdb/Makefile ] || exit 0; \
29145 r=`${PWD_COMMAND}`; export r; \
d545f33b 29146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29147 $(HOST_EXPORTS) \
29148 for flag in $(EXTRA_HOST_FLAGS) ; do \
29149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29150 done; \
22121df0 29151 echo "Doing dvi in gdb"; \
a90ef4bf
JM
29152 (cd $(HOST_SUBDIR)/gdb && \
29153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29155 "RANLIB=$${RANLIB}" \
29156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29157 dvi) \
29158 || exit 1
d545f33b 29159
a90ef4bf 29160@endif gdb
d545f33b 29161
a90ef4bf
JM
29162.PHONY: maybe-pdf-gdb pdf-gdb
29163maybe-pdf-gdb:
29164@if gdb
29165maybe-pdf-gdb: pdf-gdb
d545f33b 29166
a90ef4bf
JM
29167pdf-gdb: \
29168 configure-gdb
9b980aa1 29169 @: $(MAKE); $(unstage)
a90ef4bf 29170 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29171 r=`${PWD_COMMAND}`; export r; \
29172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29173 $(HOST_EXPORTS) \
b813574b 29174 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29176 done; \
22121df0 29177 echo "Doing pdf in gdb"; \
a90ef4bf 29178 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29181 "RANLIB=$${RANLIB}" \
0c24b341 29182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29183 pdf) \
2a4cbe27
NN
29184 || exit 1
29185
a90ef4bf 29186@endif gdb
2a4cbe27 29187
a90ef4bf
JM
29188.PHONY: maybe-html-gdb html-gdb
29189maybe-html-gdb:
29190@if gdb
29191maybe-html-gdb: html-gdb
2a4cbe27 29192
a90ef4bf
JM
29193html-gdb: \
29194 configure-gdb
29195 @: $(MAKE); $(unstage)
29196 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29197 r=`${PWD_COMMAND}`; export r; \
29198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29199 $(HOST_EXPORTS) \
b813574b 29200 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29202 done; \
22121df0 29203 echo "Doing html in gdb"; \
a90ef4bf 29204 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29207 "RANLIB=$${RANLIB}" \
0c24b341 29208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29209 html) \
2a4cbe27
NN
29210 || exit 1
29211
a90ef4bf 29212@endif gdb
2a4cbe27 29213
a90ef4bf
JM
29214.PHONY: maybe-TAGS-gdb TAGS-gdb
29215maybe-TAGS-gdb:
29216@if gdb
29217maybe-TAGS-gdb: TAGS-gdb
56a8fe78 29218
a90ef4bf
JM
29219TAGS-gdb: \
29220 configure-gdb
29221 @: $(MAKE); $(unstage)
29222 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
29223 r=`${PWD_COMMAND}`; export r; \
29224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29225 $(HOST_EXPORTS) \
29226 for flag in $(EXTRA_HOST_FLAGS) ; do \
29227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29228 done; \
22121df0 29229 echo "Doing TAGS in gdb"; \
a90ef4bf 29230 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
29231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29233 "RANLIB=$${RANLIB}" \
0c24b341 29234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29235 TAGS) \
56a8fe78
DD
29236 || exit 1
29237
a90ef4bf 29238@endif gdb
56a8fe78 29239
a90ef4bf
JM
29240.PHONY: maybe-install-info-gdb install-info-gdb
29241maybe-install-info-gdb:
29242@if gdb
29243maybe-install-info-gdb: install-info-gdb
6d389afc 29244
a90ef4bf
JM
29245install-info-gdb: \
29246 configure-gdb \
29247 info-gdb
29248 @: $(MAKE); $(unstage)
29249 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
29250 r=`${PWD_COMMAND}`; export r; \
29251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29252 $(HOST_EXPORTS) \
29253 for flag in $(EXTRA_HOST_FLAGS) ; do \
29254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29255 done; \
22121df0 29256 echo "Doing install-info in gdb"; \
a90ef4bf 29257 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
29258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29260 "RANLIB=$${RANLIB}" \
0c24b341 29261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29262 install-info) \
6d389afc
MS
29263 || exit 1
29264
a90ef4bf 29265@endif gdb
6d389afc 29266
a90ef4bf
JM
29267.PHONY: maybe-install-pdf-gdb install-pdf-gdb
29268maybe-install-pdf-gdb:
29269@if gdb
29270maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 29271
a90ef4bf
JM
29272install-pdf-gdb: \
29273 configure-gdb \
29274 pdf-gdb
29275 @: $(MAKE); $(unstage)
29276 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29277 r=`${PWD_COMMAND}`; export r; \
29278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29279 $(HOST_EXPORTS) \
b813574b 29280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29282 done; \
22121df0 29283 echo "Doing install-pdf in gdb"; \
a90ef4bf 29284 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29287 "RANLIB=$${RANLIB}" \
0c24b341 29288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29289 install-pdf) \
2a4cbe27
NN
29290 || exit 1
29291
a90ef4bf 29292@endif gdb
2a4cbe27 29293
a90ef4bf
JM
29294.PHONY: maybe-install-html-gdb install-html-gdb
29295maybe-install-html-gdb:
29296@if gdb
29297maybe-install-html-gdb: install-html-gdb
2a4cbe27 29298
a90ef4bf
JM
29299install-html-gdb: \
29300 configure-gdb \
29301 html-gdb
29302 @: $(MAKE); $(unstage)
29303 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29304 r=`${PWD_COMMAND}`; export r; \
29305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29306 $(HOST_EXPORTS) \
b813574b 29307 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29309 done; \
22121df0 29310 echo "Doing install-html in gdb"; \
a90ef4bf 29311 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29314 "RANLIB=$${RANLIB}" \
0c24b341 29315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29316 install-html) \
2a4cbe27
NN
29317 || exit 1
29318
a90ef4bf 29319@endif gdb
2a4cbe27 29320
a90ef4bf
JM
29321.PHONY: maybe-installcheck-gdb installcheck-gdb
29322maybe-installcheck-gdb:
29323@if gdb
29324maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 29325
a90ef4bf
JM
29326installcheck-gdb: \
29327 configure-gdb
29328 @: $(MAKE); $(unstage)
29329 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
29330 r=`${PWD_COMMAND}`; export r; \
29331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29332 $(HOST_EXPORTS) \
29333 for flag in $(EXTRA_HOST_FLAGS) ; do \
29334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29335 done; \
22121df0 29336 echo "Doing installcheck in gdb"; \
a90ef4bf 29337 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
29338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29340 "RANLIB=$${RANLIB}" \
0c24b341 29341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29342 installcheck) \
a3ca38d2
DD
29343 || exit 1
29344
a90ef4bf 29345@endif gdb
a3ca38d2 29346
a90ef4bf
JM
29347.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
29348maybe-mostlyclean-gdb:
29349@if gdb
29350maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 29351
a90ef4bf
JM
29352mostlyclean-gdb:
29353 @: $(MAKE); $(unstage)
29354 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
29355 r=`${PWD_COMMAND}`; export r; \
29356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29357 $(HOST_EXPORTS) \
29358 for flag in $(EXTRA_HOST_FLAGS) ; do \
29359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29360 done; \
22121df0 29361 echo "Doing mostlyclean in gdb"; \
a90ef4bf 29362 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
29363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29365 "RANLIB=$${RANLIB}" \
0c24b341 29366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29367 mostlyclean) \
108a6f8e
CD
29368 || exit 1
29369
a90ef4bf 29370@endif gdb
108a6f8e 29371
a90ef4bf
JM
29372.PHONY: maybe-clean-gdb clean-gdb
29373maybe-clean-gdb:
29374@if gdb
29375maybe-clean-gdb: clean-gdb
2a4cbe27 29376
a90ef4bf
JM
29377clean-gdb:
29378 @: $(MAKE); $(unstage)
29379 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29380 r=`${PWD_COMMAND}`; export r; \
29381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29382 $(HOST_EXPORTS) \
b813574b 29383 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29385 done; \
22121df0 29386 echo "Doing clean in gdb"; \
a90ef4bf 29387 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29390 "RANLIB=$${RANLIB}" \
0c24b341 29391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29392 clean) \
2a4cbe27
NN
29393 || exit 1
29394
a90ef4bf 29395@endif gdb
2a4cbe27 29396
a90ef4bf
JM
29397.PHONY: maybe-distclean-gdb distclean-gdb
29398maybe-distclean-gdb:
29399@if gdb
29400maybe-distclean-gdb: distclean-gdb
2a4cbe27 29401
a90ef4bf
JM
29402distclean-gdb:
29403 @: $(MAKE); $(unstage)
29404 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29405 r=`${PWD_COMMAND}`; export r; \
29406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29407 $(HOST_EXPORTS) \
b813574b 29408 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29410 done; \
22121df0 29411 echo "Doing distclean in gdb"; \
a90ef4bf 29412 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29415 "RANLIB=$${RANLIB}" \
0c24b341 29416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29417 distclean) \
2a4cbe27
NN
29418 || exit 1
29419
a90ef4bf 29420@endif gdb
2a4cbe27 29421
a90ef4bf
JM
29422.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
29423maybe-maintainer-clean-gdb:
29424@if gdb
29425maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 29426
a90ef4bf
JM
29427maintainer-clean-gdb:
29428 @: $(MAKE); $(unstage)
29429 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29430 r=`${PWD_COMMAND}`; export r; \
29431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29432 $(HOST_EXPORTS) \
b813574b 29433 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29435 done; \
22121df0 29436 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 29437 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29440 "RANLIB=$${RANLIB}" \
0c24b341 29441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29442 maintainer-clean) \
2a4cbe27
NN
29443 || exit 1
29444
a90ef4bf 29445@endif gdb
2a4cbe27 29446
2a4cbe27 29447
a7254363 29448
a90ef4bf
JM
29449.PHONY: configure-expect maybe-configure-expect
29450maybe-configure-expect:
4f0ef2d8 29451@if gcc-bootstrap
a90ef4bf 29452configure-expect: stage_current
4f0ef2d8 29453@endif gcc-bootstrap
a90ef4bf
JM
29454@if expect
29455maybe-configure-expect: configure-expect
29456configure-expect:
29457 @: $(MAKE); $(unstage)
c52c6897
PB
29458 @r=`${PWD_COMMAND}`; export r; \
29459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29460 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 29461 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 29462 $(HOST_EXPORTS) \
a90ef4bf
JM
29463 echo Configuring in $(HOST_SUBDIR)/expect; \
29464 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
29465 case $(srcdir) in \
29466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29467 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
29468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29469 esac; \
1b6c0831
L
29470 module_srcdir=expect; \
29471 $(SHELL) \
29472 $$s/$$module_srcdir/configure \
29473 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29474 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29475 --target=${target_alias} \
be01d343 29476 || exit 1
a90ef4bf 29477@endif expect
be01d343
PB
29478
29479
29480
be01d343 29481
8520c408 29482
a90ef4bf
JM
29483.PHONY: all-expect maybe-all-expect
29484maybe-all-expect:
29485@if gcc-bootstrap
29486all-expect: stage_current
29487@endif gcc-bootstrap
29488@if expect
29489TARGET-expect=all
29490maybe-all-expect: all-expect
29491all-expect: configure-expect
29492 @: $(MAKE); $(unstage)
c52c6897
PB
29493 @r=`${PWD_COMMAND}`; export r; \
29494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29495 $(HOST_EXPORTS) \
29496 (cd $(HOST_SUBDIR)/expect && \
b3676d82 29497 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29498 $(TARGET-expect))
29499@endif expect
8520c408 29500
a90ef4bf
JM
29501
29502
29503
29504.PHONY: check-expect maybe-check-expect
29505maybe-check-expect:
29506@if expect
29507maybe-check-expect: check-expect
29508
29509check-expect:
29510 @: $(MAKE); $(unstage)
c52c6897
PB
29511 @r=`${PWD_COMMAND}`; export r; \
29512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29513 $(HOST_EXPORTS) \
a90ef4bf
JM
29514 (cd $(HOST_SUBDIR)/expect && \
29515 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 29516
a90ef4bf
JM
29517@endif expect
29518
29519.PHONY: install-expect maybe-install-expect
29520maybe-install-expect:
29521@if expect
29522maybe-install-expect: install-expect
29523
29524install-expect: installdirs
29525 @: $(MAKE); $(unstage)
c52c6897
PB
29526 @r=`${PWD_COMMAND}`; export r; \
29527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 29528 $(HOST_EXPORTS) \
a90ef4bf
JM
29529 (cd $(HOST_SUBDIR)/expect && \
29530 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 29531
a90ef4bf
JM
29532@endif expect
29533
29534.PHONY: install-strip-expect maybe-install-strip-expect
29535maybe-install-strip-expect:
29536@if expect
29537maybe-install-strip-expect: install-strip-expect
29538
29539install-strip-expect: installdirs
29540 @: $(MAKE); $(unstage)
c52c6897
PB
29541 @r=`${PWD_COMMAND}`; export r; \
29542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 29543 $(HOST_EXPORTS) \
a90ef4bf
JM
29544 (cd $(HOST_SUBDIR)/expect && \
29545 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 29546
a90ef4bf 29547@endif expect
be01d343 29548
a90ef4bf 29549# Other targets (info, dvi, pdf, etc.)
be01d343 29550
a90ef4bf
JM
29551.PHONY: maybe-info-expect info-expect
29552maybe-info-expect:
29553@if expect
29554maybe-info-expect: info-expect
be01d343 29555
a90ef4bf
JM
29556info-expect: \
29557 configure-expect
29558 @: $(MAKE); $(unstage)
29559 @[ -f ./expect/Makefile ] || exit 0; \
29560 r=`${PWD_COMMAND}`; export r; \
be01d343 29561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29562 $(HOST_EXPORTS) \
29563 for flag in $(EXTRA_HOST_FLAGS) ; do \
29564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29565 done; \
22121df0 29566 echo "Doing info in expect"; \
a90ef4bf
JM
29567 (cd $(HOST_SUBDIR)/expect && \
29568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29570 "RANLIB=$${RANLIB}" \
29571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29572 info) \
29573 || exit 1
be01d343 29574
a90ef4bf 29575@endif expect
be01d343 29576
a90ef4bf
JM
29577.PHONY: maybe-dvi-expect dvi-expect
29578maybe-dvi-expect:
29579@if expect
29580maybe-dvi-expect: dvi-expect
be01d343 29581
a90ef4bf
JM
29582dvi-expect: \
29583 configure-expect
29584 @: $(MAKE); $(unstage)
29585 @[ -f ./expect/Makefile ] || exit 0; \
29586 r=`${PWD_COMMAND}`; export r; \
be01d343 29587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29588 $(HOST_EXPORTS) \
29589 for flag in $(EXTRA_HOST_FLAGS) ; do \
29590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29591 done; \
22121df0 29592 echo "Doing dvi in expect"; \
a90ef4bf
JM
29593 (cd $(HOST_SUBDIR)/expect && \
29594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29596 "RANLIB=$${RANLIB}" \
29597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29598 dvi) \
29599 || exit 1
be01d343 29600
a90ef4bf 29601@endif expect
be01d343 29602
a90ef4bf
JM
29603.PHONY: maybe-pdf-expect pdf-expect
29604maybe-pdf-expect:
29605@if expect
29606maybe-pdf-expect: pdf-expect
be01d343 29607
a90ef4bf
JM
29608pdf-expect: \
29609 configure-expect
29610 @: $(MAKE); $(unstage)
29611 @[ -f ./expect/Makefile ] || exit 0; \
29612 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
29613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29614 $(HOST_EXPORTS) \
a90ef4bf
JM
29615 for flag in $(EXTRA_HOST_FLAGS) ; do \
29616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29617 done; \
22121df0 29618 echo "Doing pdf in expect"; \
a90ef4bf
JM
29619 (cd $(HOST_SUBDIR)/expect && \
29620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29622 "RANLIB=$${RANLIB}" \
29623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29624 pdf) \
29625 || exit 1
be01d343 29626
a90ef4bf 29627@endif expect
be01d343 29628
a90ef4bf
JM
29629.PHONY: maybe-html-expect html-expect
29630maybe-html-expect:
29631@if expect
29632maybe-html-expect: html-expect
be01d343 29633
a90ef4bf
JM
29634html-expect: \
29635 configure-expect
29636 @: $(MAKE); $(unstage)
29637 @[ -f ./expect/Makefile ] || exit 0; \
29638 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
29639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29640 $(HOST_EXPORTS) \
a90ef4bf
JM
29641 for flag in $(EXTRA_HOST_FLAGS) ; do \
29642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29643 done; \
22121df0 29644 echo "Doing html in expect"; \
a90ef4bf
JM
29645 (cd $(HOST_SUBDIR)/expect && \
29646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29648 "RANLIB=$${RANLIB}" \
29649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29650 html) \
29651 || exit 1
be01d343 29652
a90ef4bf 29653@endif expect
be01d343 29654
a90ef4bf
JM
29655.PHONY: maybe-TAGS-expect TAGS-expect
29656maybe-TAGS-expect:
29657@if expect
29658maybe-TAGS-expect: TAGS-expect
9b980aa1 29659
a90ef4bf
JM
29660TAGS-expect: \
29661 configure-expect
9b980aa1 29662 @: $(MAKE); $(unstage)
a90ef4bf 29663 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29664 r=`${PWD_COMMAND}`; export r; \
29665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29666 $(HOST_EXPORTS) \
29667 for flag in $(EXTRA_HOST_FLAGS) ; do \
29668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29669 done; \
22121df0 29670 echo "Doing TAGS in expect"; \
a90ef4bf 29671 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29674 "RANLIB=$${RANLIB}" \
0c24b341 29675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29676 TAGS) \
29677 || exit 1
29678
a90ef4bf 29679@endif expect
be01d343 29680
a90ef4bf
JM
29681.PHONY: maybe-install-info-expect install-info-expect
29682maybe-install-info-expect:
29683@if expect
29684maybe-install-info-expect: install-info-expect
be01d343 29685
a90ef4bf
JM
29686install-info-expect: \
29687 configure-expect \
29688 info-expect
29689 @: $(MAKE); $(unstage)
29690 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29691 r=`${PWD_COMMAND}`; export r; \
29692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29693 $(HOST_EXPORTS) \
29694 for flag in $(EXTRA_HOST_FLAGS) ; do \
29695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29696 done; \
22121df0 29697 echo "Doing install-info in expect"; \
a90ef4bf 29698 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29701 "RANLIB=$${RANLIB}" \
0c24b341 29702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29703 install-info) \
29704 || exit 1
29705
a90ef4bf 29706@endif expect
be01d343 29707
a90ef4bf
JM
29708.PHONY: maybe-install-pdf-expect install-pdf-expect
29709maybe-install-pdf-expect:
29710@if expect
29711maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 29712
a90ef4bf
JM
29713install-pdf-expect: \
29714 configure-expect \
29715 pdf-expect
29716 @: $(MAKE); $(unstage)
29717 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
29718 r=`${PWD_COMMAND}`; export r; \
29719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29720 $(HOST_EXPORTS) \
29721 for flag in $(EXTRA_HOST_FLAGS) ; do \
29722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29723 done; \
22121df0 29724 echo "Doing install-pdf in expect"; \
a90ef4bf 29725 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
29726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29728 "RANLIB=$${RANLIB}" \
0c24b341 29729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29730 install-pdf) \
29731 || exit 1
29732
a90ef4bf 29733@endif expect
a3ca38d2 29734
a90ef4bf
JM
29735.PHONY: maybe-install-html-expect install-html-expect
29736maybe-install-html-expect:
29737@if expect
29738maybe-install-html-expect: install-html-expect
108a6f8e 29739
a90ef4bf
JM
29740install-html-expect: \
29741 configure-expect \
29742 html-expect
29743 @: $(MAKE); $(unstage)
29744 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
29745 r=`${PWD_COMMAND}`; export r; \
29746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29747 $(HOST_EXPORTS) \
29748 for flag in $(EXTRA_HOST_FLAGS) ; do \
29749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29750 done; \
22121df0 29751 echo "Doing install-html in expect"; \
a90ef4bf 29752 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
29753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29755 "RANLIB=$${RANLIB}" \
0c24b341 29756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29757 install-html) \
29758 || exit 1
29759
a90ef4bf 29760@endif expect
108a6f8e 29761
a90ef4bf
JM
29762.PHONY: maybe-installcheck-expect installcheck-expect
29763maybe-installcheck-expect:
29764@if expect
29765maybe-installcheck-expect: installcheck-expect
be01d343 29766
a90ef4bf
JM
29767installcheck-expect: \
29768 configure-expect
29769 @: $(MAKE); $(unstage)
29770 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29771 r=`${PWD_COMMAND}`; export r; \
29772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29773 $(HOST_EXPORTS) \
29774 for flag in $(EXTRA_HOST_FLAGS) ; do \
29775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29776 done; \
22121df0 29777 echo "Doing installcheck in expect"; \
a90ef4bf 29778 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29781 "RANLIB=$${RANLIB}" \
0c24b341 29782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29783 installcheck) \
29784 || exit 1
29785
a90ef4bf 29786@endif expect
be01d343 29787
a90ef4bf
JM
29788.PHONY: maybe-mostlyclean-expect mostlyclean-expect
29789maybe-mostlyclean-expect:
29790@if expect
29791maybe-mostlyclean-expect: mostlyclean-expect
be01d343 29792
a90ef4bf
JM
29793mostlyclean-expect:
29794 @: $(MAKE); $(unstage)
29795 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29796 r=`${PWD_COMMAND}`; export r; \
29797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29798 $(HOST_EXPORTS) \
29799 for flag in $(EXTRA_HOST_FLAGS) ; do \
29800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29801 done; \
22121df0 29802 echo "Doing mostlyclean in expect"; \
a90ef4bf 29803 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29806 "RANLIB=$${RANLIB}" \
0c24b341 29807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29808 mostlyclean) \
29809 || exit 1
29810
a90ef4bf 29811@endif expect
be01d343 29812
a90ef4bf
JM
29813.PHONY: maybe-clean-expect clean-expect
29814maybe-clean-expect:
29815@if expect
29816maybe-clean-expect: clean-expect
be01d343 29817
a90ef4bf
JM
29818clean-expect:
29819 @: $(MAKE); $(unstage)
29820 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29821 r=`${PWD_COMMAND}`; export r; \
29822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29823 $(HOST_EXPORTS) \
29824 for flag in $(EXTRA_HOST_FLAGS) ; do \
29825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29826 done; \
22121df0 29827 echo "Doing clean in expect"; \
a90ef4bf 29828 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29831 "RANLIB=$${RANLIB}" \
0c24b341 29832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29833 clean) \
29834 || exit 1
29835
a90ef4bf 29836@endif expect
be01d343 29837
a90ef4bf
JM
29838.PHONY: maybe-distclean-expect distclean-expect
29839maybe-distclean-expect:
29840@if expect
29841maybe-distclean-expect: distclean-expect
be01d343 29842
a90ef4bf
JM
29843distclean-expect:
29844 @: $(MAKE); $(unstage)
29845 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29846 r=`${PWD_COMMAND}`; export r; \
29847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29848 $(HOST_EXPORTS) \
29849 for flag in $(EXTRA_HOST_FLAGS) ; do \
29850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29851 done; \
22121df0 29852 echo "Doing distclean in expect"; \
a90ef4bf 29853 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29856 "RANLIB=$${RANLIB}" \
0c24b341 29857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29858 distclean) \
29859 || exit 1
29860
a90ef4bf 29861@endif expect
be01d343 29862
a90ef4bf
JM
29863.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
29864maybe-maintainer-clean-expect:
29865@if expect
29866maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 29867
a90ef4bf
JM
29868maintainer-clean-expect:
29869 @: $(MAKE); $(unstage)
29870 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29871 r=`${PWD_COMMAND}`; export r; \
29872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29873 $(HOST_EXPORTS) \
29874 for flag in $(EXTRA_HOST_FLAGS) ; do \
29875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29876 done; \
22121df0 29877 echo "Doing maintainer-clean in expect"; \
a90ef4bf 29878 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29881 "RANLIB=$${RANLIB}" \
0c24b341 29882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29883 maintainer-clean) \
29884 || exit 1
29885
a90ef4bf 29886@endif expect
be01d343
PB
29887
29888
29889
a90ef4bf
JM
29890.PHONY: configure-guile maybe-configure-guile
29891maybe-configure-guile:
4f0ef2d8 29892@if gcc-bootstrap
a90ef4bf 29893configure-guile: stage_current
4f0ef2d8 29894@endif gcc-bootstrap
a90ef4bf
JM
29895@if guile
29896maybe-configure-guile: configure-guile
29897configure-guile:
0aed8855 29898 @: $(MAKE); $(unstage)
c52c6897 29899 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 29900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29901 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 29902 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 29903 $(HOST_EXPORTS) \
a90ef4bf
JM
29904 echo Configuring in $(HOST_SUBDIR)/guile; \
29905 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 29906 case $(srcdir) in \
b00612cc 29907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29908 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 29909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 29910 esac; \
1b6c0831
L
29911 module_srcdir=guile; \
29912 $(SHELL) \
29913 $$s/$$module_srcdir/configure \
29914 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29915 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29916 --target=${target_alias} \
4b1cb4fe 29917 || exit 1
a90ef4bf 29918@endif guile
4b1cb4fe 29919
a7254363
PB
29920
29921
d545f33b
PB
29922
29923
a90ef4bf
JM
29924.PHONY: all-guile maybe-all-guile
29925maybe-all-guile:
4f0ef2d8 29926@if gcc-bootstrap
a90ef4bf 29927all-guile: stage_current
4f0ef2d8 29928@endif gcc-bootstrap
a90ef4bf
JM
29929@if guile
29930TARGET-guile=all
29931maybe-all-guile: all-guile
29932all-guile: configure-guile
29933 @: $(MAKE); $(unstage)
4b1cb4fe
DD
29934 @r=`${PWD_COMMAND}`; export r; \
29935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29936 $(HOST_EXPORTS) \
a90ef4bf 29937 (cd $(HOST_SUBDIR)/guile && \
b3676d82 29938 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29939 $(TARGET-guile))
29940@endif guile
4b1cb4fe 29941
a7254363 29942
d545f33b
PB
29943
29944
a90ef4bf
JM
29945.PHONY: check-guile maybe-check-guile
29946maybe-check-guile:
29947@if guile
29948maybe-check-guile: check-guile
4b1cb4fe 29949
a90ef4bf 29950check-guile:
0aed8855 29951 @: $(MAKE); $(unstage)
4b1cb4fe
DD
29952 @r=`${PWD_COMMAND}`; export r; \
29953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29954 $(HOST_EXPORTS) \
a90ef4bf 29955 (cd $(HOST_SUBDIR)/guile && \
b00612cc 29956 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 29957
a90ef4bf 29958@endif guile
4b1cb4fe 29959
a90ef4bf
JM
29960.PHONY: install-guile maybe-install-guile
29961maybe-install-guile:
29962@if guile
29963maybe-install-guile: install-guile
4b1cb4fe 29964
a90ef4bf 29965install-guile: installdirs
0aed8855 29966 @: $(MAKE); $(unstage)
b813574b
PB
29967 @r=`${PWD_COMMAND}`; export r; \
29968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 29969 $(HOST_EXPORTS) \
a90ef4bf 29970 (cd $(HOST_SUBDIR)/guile && \
2da12f12 29971 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 29972
a90ef4bf 29973@endif guile
4b1cb4fe 29974
a90ef4bf
JM
29975.PHONY: install-strip-guile maybe-install-strip-guile
29976maybe-install-strip-guile:
29977@if guile
29978maybe-install-strip-guile: install-strip-guile
9b980aa1 29979
a90ef4bf 29980install-strip-guile: installdirs
9b980aa1
RW
29981 @: $(MAKE); $(unstage)
29982 @r=`${PWD_COMMAND}`; export r; \
29983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29984 $(HOST_EXPORTS) \
a90ef4bf 29985 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
29986 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29987
a90ef4bf 29988@endif guile
9b980aa1 29989
56a8fe78 29990# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 29991
a90ef4bf
JM
29992.PHONY: maybe-info-guile info-guile
29993maybe-info-guile:
29994@if guile
29995maybe-info-guile: info-guile
4b1cb4fe 29996
a90ef4bf
JM
29997info-guile: \
29998 configure-guile
0aed8855 29999 @: $(MAKE); $(unstage)
a90ef4bf 30000 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30001 r=`${PWD_COMMAND}`; export r; \
30002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30003 $(HOST_EXPORTS) \
b813574b 30004 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30006 done; \
22121df0 30007 echo "Doing info in guile"; \
a90ef4bf 30008 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30011 "RANLIB=$${RANLIB}" \
0c24b341 30012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30013 info) \
4b1cb4fe
DD
30014 || exit 1
30015
a90ef4bf 30016@endif guile
4b1cb4fe 30017
a90ef4bf
JM
30018.PHONY: maybe-dvi-guile dvi-guile
30019maybe-dvi-guile:
30020@if guile
30021maybe-dvi-guile: dvi-guile
4b1cb4fe 30022
a90ef4bf
JM
30023dvi-guile: \
30024 configure-guile
0aed8855 30025 @: $(MAKE); $(unstage)
a90ef4bf 30026 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30027 r=`${PWD_COMMAND}`; export r; \
30028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30029 $(HOST_EXPORTS) \
b813574b 30030 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30032 done; \
22121df0 30033 echo "Doing dvi in guile"; \
a90ef4bf 30034 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30037 "RANLIB=$${RANLIB}" \
0c24b341 30038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30039 dvi) \
4b1cb4fe
DD
30040 || exit 1
30041
a90ef4bf 30042@endif guile
4b1cb4fe 30043
a90ef4bf
JM
30044.PHONY: maybe-pdf-guile pdf-guile
30045maybe-pdf-guile:
30046@if guile
30047maybe-pdf-guile: pdf-guile
56a8fe78 30048
a90ef4bf
JM
30049pdf-guile: \
30050 configure-guile
56a8fe78 30051 @: $(MAKE); $(unstage)
a90ef4bf 30052 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
30053 r=`${PWD_COMMAND}`; export r; \
30054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30055 $(HOST_EXPORTS) \
30056 for flag in $(EXTRA_HOST_FLAGS) ; do \
30057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30058 done; \
22121df0 30059 echo "Doing pdf in guile"; \
a90ef4bf 30060 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
30061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30063 "RANLIB=$${RANLIB}" \
0c24b341 30064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30065 pdf) \
30066 || exit 1
30067
a90ef4bf 30068@endif guile
56a8fe78 30069
a90ef4bf
JM
30070.PHONY: maybe-html-guile html-guile
30071maybe-html-guile:
30072@if guile
30073maybe-html-guile: html-guile
6d389afc 30074
a90ef4bf
JM
30075html-guile: \
30076 configure-guile
0aed8855 30077 @: $(MAKE); $(unstage)
a90ef4bf 30078 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
30079 r=`${PWD_COMMAND}`; export r; \
30080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30081 $(HOST_EXPORTS) \
30082 for flag in $(EXTRA_HOST_FLAGS) ; do \
30083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30084 done; \
22121df0 30085 echo "Doing html in guile"; \
a90ef4bf 30086 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
30087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30089 "RANLIB=$${RANLIB}" \
0c24b341 30090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30091 html) \
30092 || exit 1
30093
a90ef4bf 30094@endif guile
6d389afc 30095
a90ef4bf
JM
30096.PHONY: maybe-TAGS-guile TAGS-guile
30097maybe-TAGS-guile:
30098@if guile
30099maybe-TAGS-guile: TAGS-guile
4b1cb4fe 30100
a90ef4bf
JM
30101TAGS-guile: \
30102 configure-guile
0aed8855 30103 @: $(MAKE); $(unstage)
a90ef4bf 30104 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30105 r=`${PWD_COMMAND}`; export r; \
30106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30107 $(HOST_EXPORTS) \
b813574b 30108 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30110 done; \
22121df0 30111 echo "Doing TAGS in guile"; \
a90ef4bf 30112 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30115 "RANLIB=$${RANLIB}" \
0c24b341 30116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30117 TAGS) \
4b1cb4fe
DD
30118 || exit 1
30119
a90ef4bf 30120@endif guile
4b1cb4fe 30121
a90ef4bf
JM
30122.PHONY: maybe-install-info-guile install-info-guile
30123maybe-install-info-guile:
30124@if guile
30125maybe-install-info-guile: install-info-guile
4b1cb4fe 30126
a90ef4bf
JM
30127install-info-guile: \
30128 configure-guile \
30129 info-guile
0aed8855 30130 @: $(MAKE); $(unstage)
a90ef4bf 30131 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30132 r=`${PWD_COMMAND}`; export r; \
30133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30134 $(HOST_EXPORTS) \
b813574b 30135 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30137 done; \
22121df0 30138 echo "Doing install-info in guile"; \
a90ef4bf 30139 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30142 "RANLIB=$${RANLIB}" \
0c24b341 30143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30144 install-info) \
4b1cb4fe
DD
30145 || exit 1
30146
a90ef4bf 30147@endif guile
4b1cb4fe 30148
a90ef4bf
JM
30149.PHONY: maybe-install-pdf-guile install-pdf-guile
30150maybe-install-pdf-guile:
30151@if guile
30152maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 30153
a90ef4bf
JM
30154install-pdf-guile: \
30155 configure-guile \
30156 pdf-guile
a3ca38d2 30157 @: $(MAKE); $(unstage)
a90ef4bf 30158 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
30159 r=`${PWD_COMMAND}`; export r; \
30160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30161 $(HOST_EXPORTS) \
30162 for flag in $(EXTRA_HOST_FLAGS) ; do \
30163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30164 done; \
22121df0 30165 echo "Doing install-pdf in guile"; \
a90ef4bf 30166 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
30167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30169 "RANLIB=$${RANLIB}" \
0c24b341 30170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30171 install-pdf) \
30172 || exit 1
30173
a90ef4bf 30174@endif guile
a3ca38d2 30175
a90ef4bf
JM
30176.PHONY: maybe-install-html-guile install-html-guile
30177maybe-install-html-guile:
30178@if guile
30179maybe-install-html-guile: install-html-guile
108a6f8e 30180
a90ef4bf
JM
30181install-html-guile: \
30182 configure-guile \
30183 html-guile
108a6f8e 30184 @: $(MAKE); $(unstage)
a90ef4bf 30185 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
30186 r=`${PWD_COMMAND}`; export r; \
30187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30188 $(HOST_EXPORTS) \
30189 for flag in $(EXTRA_HOST_FLAGS) ; do \
30190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30191 done; \
22121df0 30192 echo "Doing install-html in guile"; \
a90ef4bf 30193 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
30194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30196 "RANLIB=$${RANLIB}" \
0c24b341 30197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30198 install-html) \
30199 || exit 1
30200
a90ef4bf 30201@endif guile
108a6f8e 30202
a90ef4bf
JM
30203.PHONY: maybe-installcheck-guile installcheck-guile
30204maybe-installcheck-guile:
30205@if guile
30206maybe-installcheck-guile: installcheck-guile
4b1cb4fe 30207
a90ef4bf
JM
30208installcheck-guile: \
30209 configure-guile
0aed8855 30210 @: $(MAKE); $(unstage)
a90ef4bf 30211 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30212 r=`${PWD_COMMAND}`; export r; \
30213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30214 $(HOST_EXPORTS) \
b813574b 30215 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30217 done; \
22121df0 30218 echo "Doing installcheck in guile"; \
a90ef4bf 30219 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30222 "RANLIB=$${RANLIB}" \
0c24b341 30223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30224 installcheck) \
4b1cb4fe
DD
30225 || exit 1
30226
a90ef4bf 30227@endif guile
4b1cb4fe 30228
a90ef4bf
JM
30229.PHONY: maybe-mostlyclean-guile mostlyclean-guile
30230maybe-mostlyclean-guile:
30231@if guile
30232maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 30233
a90ef4bf 30234mostlyclean-guile:
0aed8855 30235 @: $(MAKE); $(unstage)
a90ef4bf 30236 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30237 r=`${PWD_COMMAND}`; export r; \
30238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30239 $(HOST_EXPORTS) \
b813574b 30240 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30242 done; \
22121df0 30243 echo "Doing mostlyclean in guile"; \
a90ef4bf 30244 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30247 "RANLIB=$${RANLIB}" \
0c24b341 30248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30249 mostlyclean) \
4b1cb4fe
DD
30250 || exit 1
30251
a90ef4bf 30252@endif guile
4b1cb4fe 30253
a90ef4bf
JM
30254.PHONY: maybe-clean-guile clean-guile
30255maybe-clean-guile:
30256@if guile
30257maybe-clean-guile: clean-guile
4b1cb4fe 30258
a90ef4bf 30259clean-guile:
0aed8855 30260 @: $(MAKE); $(unstage)
a90ef4bf 30261 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30262 r=`${PWD_COMMAND}`; export r; \
30263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30264 $(HOST_EXPORTS) \
b813574b 30265 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30267 done; \
22121df0 30268 echo "Doing clean in guile"; \
a90ef4bf 30269 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30272 "RANLIB=$${RANLIB}" \
0c24b341 30273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30274 clean) \
4b1cb4fe
DD
30275 || exit 1
30276
a90ef4bf 30277@endif guile
4b1cb4fe 30278
a90ef4bf
JM
30279.PHONY: maybe-distclean-guile distclean-guile
30280maybe-distclean-guile:
30281@if guile
30282maybe-distclean-guile: distclean-guile
4b1cb4fe 30283
a90ef4bf 30284distclean-guile:
0aed8855 30285 @: $(MAKE); $(unstage)
a90ef4bf 30286 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30287 r=`${PWD_COMMAND}`; export r; \
30288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30289 $(HOST_EXPORTS) \
b813574b 30290 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30292 done; \
22121df0 30293 echo "Doing distclean in guile"; \
a90ef4bf 30294 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30297 "RANLIB=$${RANLIB}" \
0c24b341 30298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30299 distclean) \
4b1cb4fe
DD
30300 || exit 1
30301
a90ef4bf 30302@endif guile
4b1cb4fe 30303
a90ef4bf
JM
30304.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
30305maybe-maintainer-clean-guile:
30306@if guile
30307maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 30308
a90ef4bf 30309maintainer-clean-guile:
0aed8855 30310 @: $(MAKE); $(unstage)
a90ef4bf 30311 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30312 r=`${PWD_COMMAND}`; export r; \
30313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30314 $(HOST_EXPORTS) \
b813574b 30315 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30317 done; \
22121df0 30318 echo "Doing maintainer-clean in guile"; \
a90ef4bf 30319 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30322 "RANLIB=$${RANLIB}" \
0c24b341 30323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30324 maintainer-clean) \
4b1cb4fe
DD
30325 || exit 1
30326
a90ef4bf 30327@endif guile
4b1cb4fe
DD
30328
30329
a7254363 30330
a90ef4bf
JM
30331.PHONY: configure-tk maybe-configure-tk
30332maybe-configure-tk:
4f0ef2d8 30333@if gcc-bootstrap
a90ef4bf 30334configure-tk: stage_current
4f0ef2d8 30335@endif gcc-bootstrap
a90ef4bf
JM
30336@if tk
30337maybe-configure-tk: configure-tk
30338configure-tk:
30339 @: $(MAKE); $(unstage)
c52c6897
PB
30340 @r=`${PWD_COMMAND}`; export r; \
30341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30342 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 30343 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 30344 $(HOST_EXPORTS) \
a90ef4bf
JM
30345 echo Configuring in $(HOST_SUBDIR)/tk; \
30346 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 30347 case $(srcdir) in \
b00612cc 30348 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30349 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 30350 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30351 esac; \
1b6c0831
L
30352 module_srcdir=tk; \
30353 $(SHELL) \
30354 $$s/$$module_srcdir/configure \
30355 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30356 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30357 --target=${target_alias} \
2a4cbe27 30358 || exit 1
a90ef4bf 30359@endif tk
2a4cbe27 30360
a7254363
PB
30361
30362
a90ef4bf
JM
30363
30364
30365.PHONY: all-tk maybe-all-tk
30366maybe-all-tk:
30367@if gcc-bootstrap
30368all-tk: stage_current
30369@endif gcc-bootstrap
30370@if tk
30371TARGET-tk=all
30372maybe-all-tk: all-tk
30373all-tk: configure-tk
30374 @: $(MAKE); $(unstage)
c52c6897
PB
30375 @r=`${PWD_COMMAND}`; export r; \
30376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30377 $(HOST_EXPORTS) \
30378 (cd $(HOST_SUBDIR)/tk && \
b3676d82 30379 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30380 $(TARGET-tk))
30381@endif tk
d545f33b 30382
a90ef4bf
JM
30383
30384
30385
30386.PHONY: check-tk maybe-check-tk
30387maybe-check-tk:
30388@if tk
30389maybe-check-tk: check-tk
30390
30391check-tk:
30392 @: $(MAKE); $(unstage)
c52c6897
PB
30393 @r=`${PWD_COMMAND}`; export r; \
30394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30395 $(HOST_EXPORTS) \
a90ef4bf
JM
30396 (cd $(HOST_SUBDIR)/tk && \
30397 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 30398
a90ef4bf
JM
30399@endif tk
30400
30401.PHONY: install-tk maybe-install-tk
30402maybe-install-tk:
30403@if tk
30404maybe-install-tk: install-tk
30405
30406install-tk: installdirs
30407 @: $(MAKE); $(unstage)
c52c6897
PB
30408 @r=`${PWD_COMMAND}`; export r; \
30409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 30410 $(HOST_EXPORTS) \
a90ef4bf
JM
30411 (cd $(HOST_SUBDIR)/tk && \
30412 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 30413
a90ef4bf
JM
30414@endif tk
30415
30416.PHONY: install-strip-tk maybe-install-strip-tk
30417maybe-install-strip-tk:
30418@if tk
30419maybe-install-strip-tk: install-strip-tk
30420
30421install-strip-tk: installdirs
30422 @: $(MAKE); $(unstage)
c52c6897
PB
30423 @r=`${PWD_COMMAND}`; export r; \
30424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 30425 $(HOST_EXPORTS) \
a90ef4bf
JM
30426 (cd $(HOST_SUBDIR)/tk && \
30427 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 30428
a90ef4bf 30429@endif tk
9b980aa1 30430
56a8fe78 30431# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30432
a90ef4bf
JM
30433.PHONY: maybe-info-tk info-tk
30434maybe-info-tk:
30435@if tk
30436maybe-info-tk: info-tk
4fa63067 30437
a90ef4bf
JM
30438info-tk: \
30439 configure-tk
30440 @: $(MAKE); $(unstage)
30441 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30442 r=`${PWD_COMMAND}`; export r; \
30443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30444 $(HOST_EXPORTS) \
b813574b 30445 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30447 done; \
22121df0 30448 echo "Doing info in tk"; \
a90ef4bf 30449 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
30450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30452 "RANLIB=$${RANLIB}" \
0c24b341 30453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30454 info) \
30455 || exit 1
30456
a90ef4bf 30457@endif tk
6d389afc 30458
a90ef4bf
JM
30459.PHONY: maybe-dvi-tk dvi-tk
30460maybe-dvi-tk:
30461@if tk
30462maybe-dvi-tk: dvi-tk
6d389afc 30463
a90ef4bf
JM
30464dvi-tk: \
30465 configure-tk
30466 @: $(MAKE); $(unstage)
30467 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
30468 r=`${PWD_COMMAND}`; export r; \
30469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30470 $(HOST_EXPORTS) \
30471 for flag in $(EXTRA_HOST_FLAGS) ; do \
30472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30473 done; \
22121df0 30474 echo "Doing dvi in tk"; \
a90ef4bf 30475 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30478 "RANLIB=$${RANLIB}" \
0c24b341 30479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 30480 dvi) \
2a4cbe27
NN
30481 || exit 1
30482
a90ef4bf 30483@endif tk
2a4cbe27 30484
a90ef4bf
JM
30485.PHONY: maybe-pdf-tk pdf-tk
30486maybe-pdf-tk:
30487@if tk
30488maybe-pdf-tk: pdf-tk
56a8fe78 30489
a90ef4bf
JM
30490pdf-tk: \
30491 configure-tk
30492 @: $(MAKE); $(unstage)
30493 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
30494 r=`${PWD_COMMAND}`; export r; \
30495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30496 $(HOST_EXPORTS) \
30497 for flag in $(EXTRA_HOST_FLAGS) ; do \
30498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30499 done; \
22121df0 30500 echo "Doing pdf in tk"; \
a90ef4bf 30501 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
30502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30504 "RANLIB=$${RANLIB}" \
0c24b341 30505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30506 pdf) \
30507 || exit 1
30508
a90ef4bf 30509@endif tk
56a8fe78 30510
a90ef4bf
JM
30511.PHONY: maybe-html-tk html-tk
30512maybe-html-tk:
30513@if tk
30514maybe-html-tk: html-tk
2a4cbe27 30515
a90ef4bf
JM
30516html-tk: \
30517 configure-tk
30518 @: $(MAKE); $(unstage)
30519 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30520 r=`${PWD_COMMAND}`; export r; \
30521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30522 $(HOST_EXPORTS) \
b813574b 30523 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30525 done; \
22121df0 30526 echo "Doing html in tk"; \
a90ef4bf 30527 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30530 "RANLIB=$${RANLIB}" \
0c24b341 30531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 30532 html) \
2a4cbe27
NN
30533 || exit 1
30534
a90ef4bf 30535@endif tk
2a4cbe27 30536
a90ef4bf
JM
30537.PHONY: maybe-TAGS-tk TAGS-tk
30538maybe-TAGS-tk:
30539@if tk
30540maybe-TAGS-tk: TAGS-tk
2a4cbe27 30541
a90ef4bf
JM
30542TAGS-tk: \
30543 configure-tk
30544 @: $(MAKE); $(unstage)
30545 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30546 r=`${PWD_COMMAND}`; export r; \
30547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30548 $(HOST_EXPORTS) \
b813574b 30549 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30551 done; \
22121df0 30552 echo "Doing TAGS in tk"; \
a90ef4bf 30553 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30556 "RANLIB=$${RANLIB}" \
0c24b341 30557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30558 TAGS) \
2a4cbe27
NN
30559 || exit 1
30560
a90ef4bf 30561@endif tk
2a4cbe27 30562
a90ef4bf
JM
30563.PHONY: maybe-install-info-tk install-info-tk
30564maybe-install-info-tk:
30565@if tk
30566maybe-install-info-tk: install-info-tk
2a4cbe27 30567
a90ef4bf
JM
30568install-info-tk: \
30569 configure-tk \
30570 info-tk
30571 @: $(MAKE); $(unstage)
30572 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30573 r=`${PWD_COMMAND}`; export r; \
30574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30575 $(HOST_EXPORTS) \
b813574b 30576 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30578 done; \
22121df0 30579 echo "Doing install-info in tk"; \
a90ef4bf 30580 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30583 "RANLIB=$${RANLIB}" \
0c24b341 30584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30585 install-info) \
2a4cbe27
NN
30586 || exit 1
30587
a90ef4bf 30588@endif tk
2a4cbe27 30589
a90ef4bf
JM
30590.PHONY: maybe-install-pdf-tk install-pdf-tk
30591maybe-install-pdf-tk:
30592@if tk
30593maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 30594
a90ef4bf
JM
30595install-pdf-tk: \
30596 configure-tk \
30597 pdf-tk
30598 @: $(MAKE); $(unstage)
30599 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
30600 r=`${PWD_COMMAND}`; export r; \
30601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30602 $(HOST_EXPORTS) \
30603 for flag in $(EXTRA_HOST_FLAGS) ; do \
30604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30605 done; \
22121df0 30606 echo "Doing install-pdf in tk"; \
a90ef4bf 30607 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
30608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30610 "RANLIB=$${RANLIB}" \
0c24b341 30611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30612 install-pdf) \
30613 || exit 1
30614
a90ef4bf 30615@endif tk
a3ca38d2 30616
a90ef4bf
JM
30617.PHONY: maybe-install-html-tk install-html-tk
30618maybe-install-html-tk:
30619@if tk
30620maybe-install-html-tk: install-html-tk
108a6f8e 30621
a90ef4bf
JM
30622install-html-tk: \
30623 configure-tk \
30624 html-tk
30625 @: $(MAKE); $(unstage)
30626 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
30627 r=`${PWD_COMMAND}`; export r; \
30628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30629 $(HOST_EXPORTS) \
30630 for flag in $(EXTRA_HOST_FLAGS) ; do \
30631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30632 done; \
22121df0 30633 echo "Doing install-html in tk"; \
a90ef4bf 30634 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
30635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30637 "RANLIB=$${RANLIB}" \
0c24b341 30638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30639 install-html) \
30640 || exit 1
30641
a90ef4bf 30642@endif tk
108a6f8e 30643
a90ef4bf
JM
30644.PHONY: maybe-installcheck-tk installcheck-tk
30645maybe-installcheck-tk:
30646@if tk
30647maybe-installcheck-tk: installcheck-tk
2a4cbe27 30648
a90ef4bf
JM
30649installcheck-tk: \
30650 configure-tk
30651 @: $(MAKE); $(unstage)
30652 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30653 r=`${PWD_COMMAND}`; export r; \
30654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30655 $(HOST_EXPORTS) \
b813574b 30656 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30658 done; \
22121df0 30659 echo "Doing installcheck in tk"; \
a90ef4bf 30660 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30663 "RANLIB=$${RANLIB}" \
0c24b341 30664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30665 installcheck) \
2a4cbe27
NN
30666 || exit 1
30667
a90ef4bf 30668@endif tk
2a4cbe27 30669
a90ef4bf
JM
30670.PHONY: maybe-mostlyclean-tk mostlyclean-tk
30671maybe-mostlyclean-tk:
30672@if tk
30673maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 30674
a90ef4bf
JM
30675mostlyclean-tk:
30676 @: $(MAKE); $(unstage)
30677 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30678 r=`${PWD_COMMAND}`; export r; \
30679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30680 $(HOST_EXPORTS) \
b813574b 30681 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30683 done; \
22121df0 30684 echo "Doing mostlyclean in tk"; \
a90ef4bf 30685 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30688 "RANLIB=$${RANLIB}" \
0c24b341 30689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30690 mostlyclean) \
2a4cbe27
NN
30691 || exit 1
30692
a90ef4bf 30693@endif tk
2a4cbe27 30694
a90ef4bf
JM
30695.PHONY: maybe-clean-tk clean-tk
30696maybe-clean-tk:
30697@if tk
30698maybe-clean-tk: clean-tk
2a4cbe27 30699
a90ef4bf
JM
30700clean-tk:
30701 @: $(MAKE); $(unstage)
30702 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30703 r=`${PWD_COMMAND}`; export r; \
30704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30705 $(HOST_EXPORTS) \
b813574b 30706 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30708 done; \
22121df0 30709 echo "Doing clean in tk"; \
a90ef4bf 30710 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30713 "RANLIB=$${RANLIB}" \
0c24b341 30714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30715 clean) \
2a4cbe27
NN
30716 || exit 1
30717
a90ef4bf 30718@endif tk
2a4cbe27 30719
a90ef4bf
JM
30720.PHONY: maybe-distclean-tk distclean-tk
30721maybe-distclean-tk:
30722@if tk
30723maybe-distclean-tk: distclean-tk
2a4cbe27 30724
a90ef4bf
JM
30725distclean-tk:
30726 @: $(MAKE); $(unstage)
30727 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30728 r=`${PWD_COMMAND}`; export r; \
30729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30730 $(HOST_EXPORTS) \
b813574b 30731 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30733 done; \
22121df0 30734 echo "Doing distclean in tk"; \
a90ef4bf 30735 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30738 "RANLIB=$${RANLIB}" \
0c24b341 30739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30740 distclean) \
2a4cbe27
NN
30741 || exit 1
30742
a90ef4bf 30743@endif tk
2a4cbe27 30744
a90ef4bf
JM
30745.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
30746maybe-maintainer-clean-tk:
30747@if tk
30748maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 30749
a90ef4bf
JM
30750maintainer-clean-tk:
30751 @: $(MAKE); $(unstage)
30752 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30753 r=`${PWD_COMMAND}`; export r; \
30754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30755 $(HOST_EXPORTS) \
b813574b 30756 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30758 done; \
22121df0 30759 echo "Doing maintainer-clean in tk"; \
a90ef4bf 30760 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30763 "RANLIB=$${RANLIB}" \
0c24b341 30764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30765 maintainer-clean) \
2a4cbe27
NN
30766 || exit 1
30767
a90ef4bf 30768@endif tk
2a4cbe27 30769
2a4cbe27 30770
a7254363 30771
a90ef4bf
JM
30772.PHONY: configure-libtermcap maybe-configure-libtermcap
30773maybe-configure-libtermcap:
dc448a7b 30774@if gcc-bootstrap
a90ef4bf 30775configure-libtermcap: stage_current
dc448a7b 30776@endif gcc-bootstrap
a90ef4bf
JM
30777@if libtermcap
30778maybe-configure-libtermcap: configure-libtermcap
30779configure-libtermcap:
dc448a7b
TT
30780 @: $(MAKE); $(unstage)
30781 @r=`${PWD_COMMAND}`; export r; \
30782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30783 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 30784 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 30785 $(HOST_EXPORTS) \
a90ef4bf
JM
30786 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
30787 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
30788 case $(srcdir) in \
30789 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30790 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
30791 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30792 esac; \
1b6c0831
L
30793 module_srcdir=libtermcap; \
30794 $(SHELL) \
30795 $$s/$$module_srcdir/configure \
30796 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 30797 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30798 --target=${target_alias} \
dc448a7b 30799 || exit 1
a90ef4bf 30800@endif libtermcap
dc448a7b
TT
30801
30802
30803
30804
30805
a90ef4bf
JM
30806.PHONY: all-libtermcap maybe-all-libtermcap
30807maybe-all-libtermcap:
dc448a7b 30808@if gcc-bootstrap
a90ef4bf 30809all-libtermcap: stage_current
dc448a7b 30810@endif gcc-bootstrap
a90ef4bf
JM
30811@if libtermcap
30812TARGET-libtermcap=all
30813maybe-all-libtermcap: all-libtermcap
30814all-libtermcap: configure-libtermcap
dc448a7b
TT
30815 @: $(MAKE); $(unstage)
30816 @r=`${PWD_COMMAND}`; export r; \
30817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30818 $(HOST_EXPORTS) \
a90ef4bf 30819 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 30820 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30821 $(TARGET-libtermcap))
30822@endif libtermcap
dc448a7b
TT
30823
30824
30825
30826
a90ef4bf
JM
30827.PHONY: check-libtermcap maybe-check-libtermcap
30828maybe-check-libtermcap:
30829@if libtermcap
30830maybe-check-libtermcap: check-libtermcap
dc448a7b 30831
a90ef4bf
JM
30832check-libtermcap:
30833
30834@endif libtermcap
30835
30836.PHONY: install-libtermcap maybe-install-libtermcap
30837maybe-install-libtermcap:
30838@if libtermcap
30839maybe-install-libtermcap: install-libtermcap
30840
30841install-libtermcap: installdirs
dc448a7b
TT
30842 @: $(MAKE); $(unstage)
30843 @r=`${PWD_COMMAND}`; export r; \
30844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30845 $(HOST_EXPORTS) \
a90ef4bf
JM
30846 (cd $(HOST_SUBDIR)/libtermcap && \
30847 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 30848
a90ef4bf 30849@endif libtermcap
dc448a7b 30850
a90ef4bf
JM
30851.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
30852maybe-install-strip-libtermcap:
30853@if libtermcap
30854maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 30855
a90ef4bf
JM
30856install-strip-libtermcap: installdirs
30857 @: $(MAKE); $(unstage)
30858 @r=`${PWD_COMMAND}`; export r; \
30859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30860 $(HOST_EXPORTS) \
30861 (cd $(HOST_SUBDIR)/libtermcap && \
30862 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 30863
a90ef4bf 30864@endif libtermcap
9b980aa1 30865
dc448a7b
TT
30866# Other targets (info, dvi, pdf, etc.)
30867
a90ef4bf
JM
30868.PHONY: maybe-info-libtermcap info-libtermcap
30869maybe-info-libtermcap:
30870@if libtermcap
30871maybe-info-libtermcap: info-libtermcap
dc448a7b 30872
a90ef4bf
JM
30873info-libtermcap: \
30874 configure-libtermcap
dc448a7b 30875 @: $(MAKE); $(unstage)
a90ef4bf 30876 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30877 r=`${PWD_COMMAND}`; export r; \
30878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30879 $(HOST_EXPORTS) \
30880 for flag in $(EXTRA_HOST_FLAGS) ; do \
30881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30882 done; \
22121df0 30883 echo "Doing info in libtermcap"; \
a90ef4bf 30884 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30887 "RANLIB=$${RANLIB}" \
30888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30889 info) \
30890 || exit 1
30891
a90ef4bf 30892@endif libtermcap
dc448a7b 30893
a90ef4bf
JM
30894.PHONY: maybe-dvi-libtermcap dvi-libtermcap
30895maybe-dvi-libtermcap:
30896@if libtermcap
30897maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 30898
a90ef4bf
JM
30899dvi-libtermcap: \
30900 configure-libtermcap
dc448a7b 30901 @: $(MAKE); $(unstage)
a90ef4bf 30902 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30903 r=`${PWD_COMMAND}`; export r; \
30904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30905 $(HOST_EXPORTS) \
30906 for flag in $(EXTRA_HOST_FLAGS) ; do \
30907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30908 done; \
22121df0 30909 echo "Doing dvi in libtermcap"; \
a90ef4bf 30910 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30913 "RANLIB=$${RANLIB}" \
30914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30915 dvi) \
30916 || exit 1
30917
a90ef4bf 30918@endif libtermcap
dc448a7b 30919
a90ef4bf
JM
30920.PHONY: maybe-pdf-libtermcap pdf-libtermcap
30921maybe-pdf-libtermcap:
30922@if libtermcap
30923maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 30924
a90ef4bf
JM
30925pdf-libtermcap: \
30926 configure-libtermcap
dc448a7b 30927 @: $(MAKE); $(unstage)
a90ef4bf 30928 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30929 r=`${PWD_COMMAND}`; export r; \
30930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30931 $(HOST_EXPORTS) \
30932 for flag in $(EXTRA_HOST_FLAGS) ; do \
30933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30934 done; \
22121df0 30935 echo "Doing pdf in libtermcap"; \
a90ef4bf 30936 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30939 "RANLIB=$${RANLIB}" \
30940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30941 pdf) \
30942 || exit 1
30943
a90ef4bf 30944@endif libtermcap
dc448a7b 30945
a90ef4bf
JM
30946.PHONY: maybe-html-libtermcap html-libtermcap
30947maybe-html-libtermcap:
30948@if libtermcap
30949maybe-html-libtermcap: html-libtermcap
dc448a7b 30950
a90ef4bf
JM
30951html-libtermcap: \
30952 configure-libtermcap
dc448a7b 30953 @: $(MAKE); $(unstage)
a90ef4bf 30954 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30955 r=`${PWD_COMMAND}`; export r; \
30956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30957 $(HOST_EXPORTS) \
30958 for flag in $(EXTRA_HOST_FLAGS) ; do \
30959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30960 done; \
22121df0 30961 echo "Doing html in libtermcap"; \
a90ef4bf 30962 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30965 "RANLIB=$${RANLIB}" \
30966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30967 html) \
30968 || exit 1
30969
a90ef4bf 30970@endif libtermcap
dc448a7b 30971
a90ef4bf
JM
30972.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
30973maybe-TAGS-libtermcap:
30974@if libtermcap
30975maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 30976
a90ef4bf
JM
30977TAGS-libtermcap: \
30978 configure-libtermcap
dc448a7b 30979 @: $(MAKE); $(unstage)
a90ef4bf 30980 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30981 r=`${PWD_COMMAND}`; export r; \
30982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30983 $(HOST_EXPORTS) \
30984 for flag in $(EXTRA_HOST_FLAGS) ; do \
30985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30986 done; \
22121df0 30987 echo "Doing TAGS in libtermcap"; \
a90ef4bf 30988 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30991 "RANLIB=$${RANLIB}" \
30992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30993 TAGS) \
30994 || exit 1
30995
a90ef4bf 30996@endif libtermcap
dc448a7b 30997
a90ef4bf
JM
30998.PHONY: maybe-install-info-libtermcap install-info-libtermcap
30999maybe-install-info-libtermcap:
31000@if libtermcap
31001maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 31002
a90ef4bf
JM
31003install-info-libtermcap: \
31004 configure-libtermcap \
31005 info-libtermcap
dc448a7b 31006 @: $(MAKE); $(unstage)
a90ef4bf 31007 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31008 r=`${PWD_COMMAND}`; export r; \
31009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31010 $(HOST_EXPORTS) \
31011 for flag in $(EXTRA_HOST_FLAGS) ; do \
31012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31013 done; \
22121df0 31014 echo "Doing install-info in libtermcap"; \
a90ef4bf 31015 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31018 "RANLIB=$${RANLIB}" \
31019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31020 install-info) \
dc448a7b
TT
31021 || exit 1
31022
a90ef4bf 31023@endif libtermcap
dc448a7b 31024
a90ef4bf
JM
31025.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
31026maybe-install-pdf-libtermcap:
31027@if libtermcap
31028maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 31029
a90ef4bf
JM
31030install-pdf-libtermcap: \
31031 configure-libtermcap \
31032 pdf-libtermcap
dc448a7b 31033 @: $(MAKE); $(unstage)
a90ef4bf 31034 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31035 r=`${PWD_COMMAND}`; export r; \
31036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31037 $(HOST_EXPORTS) \
31038 for flag in $(EXTRA_HOST_FLAGS) ; do \
31039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31040 done; \
22121df0 31041 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 31042 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31045 "RANLIB=$${RANLIB}" \
31046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31047 install-pdf) \
dc448a7b
TT
31048 || exit 1
31049
a90ef4bf 31050@endif libtermcap
dc448a7b 31051
a90ef4bf
JM
31052.PHONY: maybe-install-html-libtermcap install-html-libtermcap
31053maybe-install-html-libtermcap:
31054@if libtermcap
31055maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 31056
a90ef4bf
JM
31057install-html-libtermcap: \
31058 configure-libtermcap \
31059 html-libtermcap
dc448a7b 31060 @: $(MAKE); $(unstage)
a90ef4bf 31061 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31062 r=`${PWD_COMMAND}`; export r; \
31063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31064 $(HOST_EXPORTS) \
31065 for flag in $(EXTRA_HOST_FLAGS) ; do \
31066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31067 done; \
22121df0 31068 echo "Doing install-html in libtermcap"; \
a90ef4bf 31069 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31072 "RANLIB=$${RANLIB}" \
31073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31074 install-html) \
dc448a7b
TT
31075 || exit 1
31076
a90ef4bf 31077@endif libtermcap
dc448a7b 31078
a90ef4bf
JM
31079.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
31080maybe-installcheck-libtermcap:
31081@if libtermcap
31082maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 31083
a90ef4bf
JM
31084installcheck-libtermcap: \
31085 configure-libtermcap
dc448a7b 31086 @: $(MAKE); $(unstage)
a90ef4bf 31087 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31088 r=`${PWD_COMMAND}`; export r; \
31089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31090 $(HOST_EXPORTS) \
31091 for flag in $(EXTRA_HOST_FLAGS) ; do \
31092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31093 done; \
22121df0 31094 echo "Doing installcheck in libtermcap"; \
a90ef4bf 31095 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31098 "RANLIB=$${RANLIB}" \
31099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31100 installcheck) \
dc448a7b
TT
31101 || exit 1
31102
a90ef4bf 31103@endif libtermcap
dc448a7b 31104
a90ef4bf
JM
31105.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
31106maybe-mostlyclean-libtermcap:
31107@if libtermcap
31108maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 31109
a90ef4bf
JM
31110# libtermcap doesn't support mostlyclean.
31111mostlyclean-libtermcap:
dc448a7b 31112
a90ef4bf 31113@endif libtermcap
dc448a7b 31114
a90ef4bf
JM
31115.PHONY: maybe-clean-libtermcap clean-libtermcap
31116maybe-clean-libtermcap:
31117@if libtermcap
31118maybe-clean-libtermcap: clean-libtermcap
dc448a7b 31119
a90ef4bf
JM
31120# libtermcap doesn't support clean.
31121clean-libtermcap:
dc448a7b 31122
a90ef4bf
JM
31123@endif libtermcap
31124
31125.PHONY: maybe-distclean-libtermcap distclean-libtermcap
31126maybe-distclean-libtermcap:
31127@if libtermcap
31128maybe-distclean-libtermcap: distclean-libtermcap
31129
31130# libtermcap doesn't support distclean.
31131distclean-libtermcap:
31132
31133@endif libtermcap
31134
31135.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
31136maybe-maintainer-clean-libtermcap:
31137@if libtermcap
31138maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
31139
31140# libtermcap doesn't support maintainer-clean.
31141maintainer-clean-libtermcap:
31142
31143@endif libtermcap
31144
31145
31146
31147.PHONY: configure-utils maybe-configure-utils
31148maybe-configure-utils:
31149@if gcc-bootstrap
31150configure-utils: stage_current
31151@endif gcc-bootstrap
31152@if utils
31153maybe-configure-utils: configure-utils
31154configure-utils:
31155 @: $(MAKE); $(unstage)
c52c6897 31156 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31158 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 31159 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 31160 $(HOST_EXPORTS) \
a90ef4bf
JM
31161 echo Configuring in $(HOST_SUBDIR)/utils; \
31162 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 31163 case $(srcdir) in \
b00612cc 31164 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31165 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 31166 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31167 esac; \
1b6c0831
L
31168 module_srcdir=utils; \
31169 $(SHELL) \
31170 $$s/$$module_srcdir/configure \
31171 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31172 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31173 --target=${target_alias} \
2a4cbe27 31174 || exit 1
a90ef4bf 31175@endif utils
2a4cbe27 31176
a7254363
PB
31177
31178
d545f33b
PB
31179
31180
a90ef4bf
JM
31181.PHONY: all-utils maybe-all-utils
31182maybe-all-utils:
4f0ef2d8 31183@if gcc-bootstrap
a90ef4bf 31184all-utils: stage_current
4f0ef2d8 31185@endif gcc-bootstrap
a90ef4bf
JM
31186@if utils
31187TARGET-utils=all
31188maybe-all-utils: all-utils
31189all-utils: configure-utils
0aed8855 31190 @: $(MAKE); $(unstage)
4fa63067
NN
31191 @r=`${PWD_COMMAND}`; export r; \
31192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31193 $(HOST_EXPORTS) \
a90ef4bf 31194 (cd $(HOST_SUBDIR)/utils && \
b3676d82 31195 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31196 $(TARGET-utils))
31197@endif utils
2a4cbe27 31198
a7254363 31199
d545f33b
PB
31200
31201
a90ef4bf
JM
31202.PHONY: check-utils maybe-check-utils
31203maybe-check-utils:
31204@if utils
31205maybe-check-utils: check-utils
2a4cbe27 31206
a90ef4bf 31207check-utils:
2a4cbe27 31208
a90ef4bf 31209@endif utils
2a4cbe27 31210
a90ef4bf
JM
31211.PHONY: install-utils maybe-install-utils
31212maybe-install-utils:
31213@if utils
31214maybe-install-utils: install-utils
2a4cbe27 31215
a90ef4bf 31216install-utils: installdirs
0aed8855 31217 @: $(MAKE); $(unstage)
4fa63067 31218 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31220 $(HOST_EXPORTS) \
a90ef4bf 31221 (cd $(HOST_SUBDIR)/utils && \
2da12f12 31222 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 31223
a90ef4bf 31224@endif utils
2a4cbe27 31225
a90ef4bf
JM
31226.PHONY: install-strip-utils maybe-install-strip-utils
31227maybe-install-strip-utils:
31228@if utils
31229maybe-install-strip-utils: install-strip-utils
9b980aa1 31230
a90ef4bf 31231install-strip-utils: installdirs
9b980aa1
RW
31232 @: $(MAKE); $(unstage)
31233 @r=`${PWD_COMMAND}`; export r; \
31234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31235 $(HOST_EXPORTS) \
a90ef4bf 31236 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
31237 $(MAKE) $(FLAGS_TO_PASS) install-strip)
31238
a90ef4bf 31239@endif utils
9b980aa1 31240
56a8fe78 31241# Other targets (info, dvi, pdf, etc.)
2a4cbe27 31242
a90ef4bf
JM
31243.PHONY: maybe-info-utils info-utils
31244maybe-info-utils:
31245@if utils
31246maybe-info-utils: info-utils
4fa63067 31247
a90ef4bf
JM
31248info-utils: \
31249 configure-utils
0aed8855 31250 @: $(MAKE); $(unstage)
a90ef4bf 31251 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31252 r=`${PWD_COMMAND}`; export r; \
31253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31254 $(HOST_EXPORTS) \
b813574b 31255 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31257 done; \
22121df0 31258 echo "Doing info in utils"; \
a90ef4bf 31259 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31262 "RANLIB=$${RANLIB}" \
0c24b341 31263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31264 info) \
2a4cbe27
NN
31265 || exit 1
31266
a90ef4bf 31267@endif utils
2a4cbe27 31268
a90ef4bf
JM
31269.PHONY: maybe-dvi-utils dvi-utils
31270maybe-dvi-utils:
31271@if utils
31272maybe-dvi-utils: dvi-utils
2a4cbe27 31273
a90ef4bf
JM
31274dvi-utils: \
31275 configure-utils
0aed8855 31276 @: $(MAKE); $(unstage)
a90ef4bf 31277 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31278 r=`${PWD_COMMAND}`; export r; \
31279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31280 $(HOST_EXPORTS) \
b813574b 31281 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31283 done; \
22121df0 31284 echo "Doing dvi in utils"; \
a90ef4bf 31285 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31288 "RANLIB=$${RANLIB}" \
0c24b341 31289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31290 dvi) \
2a4cbe27
NN
31291 || exit 1
31292
a90ef4bf 31293@endif utils
2a4cbe27 31294
a90ef4bf
JM
31295.PHONY: maybe-pdf-utils pdf-utils
31296maybe-pdf-utils:
31297@if utils
31298maybe-pdf-utils: pdf-utils
56a8fe78 31299
a90ef4bf
JM
31300pdf-utils: \
31301 configure-utils
56a8fe78 31302 @: $(MAKE); $(unstage)
a90ef4bf 31303 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
31304 r=`${PWD_COMMAND}`; export r; \
31305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31306 $(HOST_EXPORTS) \
31307 for flag in $(EXTRA_HOST_FLAGS) ; do \
31308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31309 done; \
22121df0 31310 echo "Doing pdf in utils"; \
a90ef4bf 31311 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
31312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31314 "RANLIB=$${RANLIB}" \
0c24b341 31315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31316 pdf) \
31317 || exit 1
31318
a90ef4bf 31319@endif utils
56a8fe78 31320
a90ef4bf
JM
31321.PHONY: maybe-html-utils html-utils
31322maybe-html-utils:
31323@if utils
31324maybe-html-utils: html-utils
6d389afc 31325
a90ef4bf
JM
31326html-utils: \
31327 configure-utils
0aed8855 31328 @: $(MAKE); $(unstage)
a90ef4bf 31329 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
31330 r=`${PWD_COMMAND}`; export r; \
31331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
31332 $(HOST_EXPORTS) \
31333 for flag in $(EXTRA_HOST_FLAGS) ; do \
31334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31335 done; \
22121df0 31336 echo "Doing html in utils"; \
a90ef4bf 31337 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
31338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31340 "RANLIB=$${RANLIB}" \
0c24b341 31341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31342 html) \
31343 || exit 1
31344
a90ef4bf 31345@endif utils
6d389afc 31346
a90ef4bf
JM
31347.PHONY: maybe-TAGS-utils TAGS-utils
31348maybe-TAGS-utils:
31349@if utils
31350maybe-TAGS-utils: TAGS-utils
2a4cbe27 31351
a90ef4bf
JM
31352TAGS-utils: \
31353 configure-utils
0aed8855 31354 @: $(MAKE); $(unstage)
a90ef4bf 31355 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31356 r=`${PWD_COMMAND}`; export r; \
31357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31358 $(HOST_EXPORTS) \
b813574b 31359 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31361 done; \
22121df0 31362 echo "Doing TAGS in utils"; \
a90ef4bf 31363 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31366 "RANLIB=$${RANLIB}" \
0c24b341 31367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31368 TAGS) \
2a4cbe27
NN
31369 || exit 1
31370
a90ef4bf 31371@endif utils
2a4cbe27 31372
a90ef4bf
JM
31373.PHONY: maybe-install-info-utils install-info-utils
31374maybe-install-info-utils:
31375@if utils
31376maybe-install-info-utils: install-info-utils
2a4cbe27 31377
a90ef4bf
JM
31378install-info-utils: \
31379 configure-utils \
31380 info-utils
0aed8855 31381 @: $(MAKE); $(unstage)
a90ef4bf 31382 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31383 r=`${PWD_COMMAND}`; export r; \
31384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31385 $(HOST_EXPORTS) \
b813574b 31386 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31388 done; \
22121df0 31389 echo "Doing install-info in utils"; \
a90ef4bf 31390 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31393 "RANLIB=$${RANLIB}" \
0c24b341 31394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31395 install-info) \
2a4cbe27
NN
31396 || exit 1
31397
a90ef4bf 31398@endif utils
2a4cbe27 31399
a90ef4bf
JM
31400.PHONY: maybe-install-pdf-utils install-pdf-utils
31401maybe-install-pdf-utils:
31402@if utils
31403maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 31404
a90ef4bf
JM
31405install-pdf-utils: \
31406 configure-utils \
31407 pdf-utils
a3ca38d2 31408 @: $(MAKE); $(unstage)
a90ef4bf 31409 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
31410 r=`${PWD_COMMAND}`; export r; \
31411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31412 $(HOST_EXPORTS) \
31413 for flag in $(EXTRA_HOST_FLAGS) ; do \
31414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31415 done; \
22121df0 31416 echo "Doing install-pdf in utils"; \
a90ef4bf 31417 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
31418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31420 "RANLIB=$${RANLIB}" \
0c24b341 31421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31422 install-pdf) \
31423 || exit 1
31424
a90ef4bf 31425@endif utils
a3ca38d2 31426
a90ef4bf
JM
31427.PHONY: maybe-install-html-utils install-html-utils
31428maybe-install-html-utils:
31429@if utils
31430maybe-install-html-utils: install-html-utils
108a6f8e 31431
a90ef4bf
JM
31432install-html-utils: \
31433 configure-utils \
31434 html-utils
108a6f8e 31435 @: $(MAKE); $(unstage)
a90ef4bf 31436 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
31437 r=`${PWD_COMMAND}`; export r; \
31438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31439 $(HOST_EXPORTS) \
31440 for flag in $(EXTRA_HOST_FLAGS) ; do \
31441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31442 done; \
22121df0 31443 echo "Doing install-html in utils"; \
a90ef4bf 31444 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
31445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31447 "RANLIB=$${RANLIB}" \
0c24b341 31448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31449 install-html) \
31450 || exit 1
31451
a90ef4bf 31452@endif utils
108a6f8e 31453
a90ef4bf
JM
31454.PHONY: maybe-installcheck-utils installcheck-utils
31455maybe-installcheck-utils:
31456@if utils
31457maybe-installcheck-utils: installcheck-utils
2a4cbe27 31458
a90ef4bf
JM
31459installcheck-utils: \
31460 configure-utils
0aed8855 31461 @: $(MAKE); $(unstage)
a90ef4bf 31462 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31463 r=`${PWD_COMMAND}`; export r; \
31464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31465 $(HOST_EXPORTS) \
b813574b 31466 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31468 done; \
22121df0 31469 echo "Doing installcheck in utils"; \
a90ef4bf 31470 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31473 "RANLIB=$${RANLIB}" \
0c24b341 31474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31475 installcheck) \
2a4cbe27
NN
31476 || exit 1
31477
a90ef4bf 31478@endif utils
2a4cbe27 31479
a90ef4bf
JM
31480.PHONY: maybe-mostlyclean-utils mostlyclean-utils
31481maybe-mostlyclean-utils:
31482@if utils
31483maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 31484
a90ef4bf 31485mostlyclean-utils:
0aed8855 31486 @: $(MAKE); $(unstage)
a90ef4bf 31487 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31488 r=`${PWD_COMMAND}`; export r; \
31489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31490 $(HOST_EXPORTS) \
b813574b 31491 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31493 done; \
22121df0 31494 echo "Doing mostlyclean in utils"; \
a90ef4bf 31495 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31498 "RANLIB=$${RANLIB}" \
0c24b341 31499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31500 mostlyclean) \
2a4cbe27
NN
31501 || exit 1
31502
a90ef4bf 31503@endif utils
2a4cbe27 31504
a90ef4bf
JM
31505.PHONY: maybe-clean-utils clean-utils
31506maybe-clean-utils:
31507@if utils
31508maybe-clean-utils: clean-utils
2a4cbe27 31509
a90ef4bf 31510clean-utils:
0aed8855 31511 @: $(MAKE); $(unstage)
a90ef4bf 31512 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31513 r=`${PWD_COMMAND}`; export r; \
31514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31515 $(HOST_EXPORTS) \
b813574b 31516 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31518 done; \
22121df0 31519 echo "Doing clean in utils"; \
a90ef4bf 31520 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31523 "RANLIB=$${RANLIB}" \
0c24b341 31524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31525 clean) \
2a4cbe27
NN
31526 || exit 1
31527
a90ef4bf 31528@endif utils
2a4cbe27 31529
a90ef4bf
JM
31530.PHONY: maybe-distclean-utils distclean-utils
31531maybe-distclean-utils:
31532@if utils
31533maybe-distclean-utils: distclean-utils
2a4cbe27 31534
a90ef4bf 31535distclean-utils:
0aed8855 31536 @: $(MAKE); $(unstage)
a90ef4bf 31537 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31538 r=`${PWD_COMMAND}`; export r; \
31539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31540 $(HOST_EXPORTS) \
b813574b 31541 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31543 done; \
22121df0 31544 echo "Doing distclean in utils"; \
a90ef4bf 31545 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31548 "RANLIB=$${RANLIB}" \
0c24b341 31549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31550 distclean) \
2a4cbe27
NN
31551 || exit 1
31552
a90ef4bf 31553@endif utils
2a4cbe27 31554
a90ef4bf
JM
31555.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
31556maybe-maintainer-clean-utils:
31557@if utils
31558maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 31559
a90ef4bf 31560maintainer-clean-utils:
0aed8855 31561 @: $(MAKE); $(unstage)
a90ef4bf 31562 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31563 r=`${PWD_COMMAND}`; export r; \
31564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31565 $(HOST_EXPORTS) \
b813574b 31566 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31568 done; \
22121df0 31569 echo "Doing maintainer-clean in utils"; \
a90ef4bf 31570 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31573 "RANLIB=$${RANLIB}" \
0c24b341 31574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31575 maintainer-clean) \
2a4cbe27
NN
31576 || exit 1
31577
a90ef4bf 31578@endif utils
2a4cbe27 31579
2a4cbe27 31580
a7254363 31581
a90ef4bf
JM
31582.PHONY: configure-gnattools maybe-configure-gnattools
31583maybe-configure-gnattools:
4f0ef2d8 31584@if gcc-bootstrap
a90ef4bf 31585configure-gnattools: stage_current
4f0ef2d8 31586@endif gcc-bootstrap
a90ef4bf
JM
31587@if gnattools
31588maybe-configure-gnattools: configure-gnattools
31589configure-gnattools:
0aed8855 31590 @: $(MAKE); $(unstage)
c52c6897 31591 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31593 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 31594 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 31595 $(HOST_EXPORTS) \
a90ef4bf
JM
31596 echo Configuring in $(HOST_SUBDIR)/gnattools; \
31597 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 31598 case $(srcdir) in \
b00612cc 31599 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31600 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 31601 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31602 esac; \
1b6c0831
L
31603 module_srcdir=gnattools; \
31604 $(SHELL) \
31605 $$s/$$module_srcdir/configure \
31606 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31607 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31608 --target=${target_alias} \
2a4cbe27 31609 || exit 1
a90ef4bf 31610@endif gnattools
2a4cbe27 31611
a7254363
PB
31612
31613
d545f33b
PB
31614
31615
a90ef4bf
JM
31616.PHONY: all-gnattools maybe-all-gnattools
31617maybe-all-gnattools:
4f0ef2d8 31618@if gcc-bootstrap
a90ef4bf 31619all-gnattools: stage_current
4f0ef2d8 31620@endif gcc-bootstrap
a90ef4bf
JM
31621@if gnattools
31622TARGET-gnattools=all
31623maybe-all-gnattools: all-gnattools
31624all-gnattools: configure-gnattools
0aed8855 31625 @: $(MAKE); $(unstage)
4fa63067
NN
31626 @r=`${PWD_COMMAND}`; export r; \
31627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31628 $(HOST_EXPORTS) \
a90ef4bf 31629 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 31630 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31631 $(TARGET-gnattools))
31632@endif gnattools
4fa63067 31633
a7254363 31634
d545f33b
PB
31635
31636
a90ef4bf
JM
31637.PHONY: check-gnattools maybe-check-gnattools
31638maybe-check-gnattools:
31639@if gnattools
31640maybe-check-gnattools: check-gnattools
2a4cbe27 31641
a90ef4bf 31642check-gnattools:
0aed8855 31643 @: $(MAKE); $(unstage)
4fa63067
NN
31644 @r=`${PWD_COMMAND}`; export r; \
31645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31646 $(HOST_EXPORTS) \
a90ef4bf 31647 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 31648 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 31649
a90ef4bf 31650@endif gnattools
4fa63067 31651
a90ef4bf
JM
31652.PHONY: install-gnattools maybe-install-gnattools
31653maybe-install-gnattools:
31654@if gnattools
31655maybe-install-gnattools: install-gnattools
4fa63067 31656
a90ef4bf 31657install-gnattools: installdirs
0aed8855 31658 @: $(MAKE); $(unstage)
4fa63067
NN
31659 @r=`${PWD_COMMAND}`; export r; \
31660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31661 $(HOST_EXPORTS) \
a90ef4bf 31662 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 31663 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 31664
a90ef4bf 31665@endif gnattools
4fa63067 31666
a90ef4bf
JM
31667.PHONY: install-strip-gnattools maybe-install-strip-gnattools
31668maybe-install-strip-gnattools:
31669@if gnattools
31670maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 31671
a90ef4bf 31672install-strip-gnattools: installdirs
9b980aa1
RW
31673 @: $(MAKE); $(unstage)
31674 @r=`${PWD_COMMAND}`; export r; \
31675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31676 $(HOST_EXPORTS) \
a90ef4bf 31677 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
31678 $(MAKE) $(FLAGS_TO_PASS) install-strip)
31679
a90ef4bf 31680@endif gnattools
9b980aa1 31681
56a8fe78 31682# Other targets (info, dvi, pdf, etc.)
4fa63067 31683
a90ef4bf
JM
31684.PHONY: maybe-info-gnattools info-gnattools
31685maybe-info-gnattools:
31686@if gnattools
31687maybe-info-gnattools: info-gnattools
4fa63067 31688
a90ef4bf
JM
31689info-gnattools: \
31690 configure-gnattools
0aed8855 31691 @: $(MAKE); $(unstage)
a90ef4bf 31692 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31693 r=`${PWD_COMMAND}`; export r; \
31694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31695 $(HOST_EXPORTS) \
b813574b 31696 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31698 done; \
22121df0 31699 echo "Doing info in gnattools"; \
a90ef4bf 31700 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31703 "RANLIB=$${RANLIB}" \
0c24b341 31704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31705 info) \
2a4cbe27
NN
31706 || exit 1
31707
a90ef4bf 31708@endif gnattools
2a4cbe27 31709
a90ef4bf
JM
31710.PHONY: maybe-dvi-gnattools dvi-gnattools
31711maybe-dvi-gnattools:
31712@if gnattools
31713maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 31714
a90ef4bf
JM
31715dvi-gnattools: \
31716 configure-gnattools
0aed8855 31717 @: $(MAKE); $(unstage)
a90ef4bf 31718 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31719 r=`${PWD_COMMAND}`; export r; \
31720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31721 $(HOST_EXPORTS) \
b813574b 31722 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31724 done; \
22121df0 31725 echo "Doing dvi in gnattools"; \
a90ef4bf 31726 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31729 "RANLIB=$${RANLIB}" \
0c24b341 31730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31731 dvi) \
2a4cbe27
NN
31732 || exit 1
31733
a90ef4bf 31734@endif gnattools
2a4cbe27 31735
a90ef4bf
JM
31736.PHONY: maybe-pdf-gnattools pdf-gnattools
31737maybe-pdf-gnattools:
31738@if gnattools
31739maybe-pdf-gnattools: pdf-gnattools
56a8fe78 31740
a90ef4bf
JM
31741pdf-gnattools: \
31742 configure-gnattools
56a8fe78 31743 @: $(MAKE); $(unstage)
a90ef4bf 31744 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
31745 r=`${PWD_COMMAND}`; export r; \
31746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31747 $(HOST_EXPORTS) \
31748 for flag in $(EXTRA_HOST_FLAGS) ; do \
31749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31750 done; \
22121df0 31751 echo "Doing pdf in gnattools"; \
a90ef4bf 31752 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
31753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31755 "RANLIB=$${RANLIB}" \
0c24b341 31756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31757 pdf) \
31758 || exit 1
31759
a90ef4bf 31760@endif gnattools
56a8fe78 31761
a90ef4bf
JM
31762.PHONY: maybe-html-gnattools html-gnattools
31763maybe-html-gnattools:
31764@if gnattools
31765maybe-html-gnattools: html-gnattools
6d389afc 31766
a90ef4bf
JM
31767html-gnattools: \
31768 configure-gnattools
0aed8855 31769 @: $(MAKE); $(unstage)
a90ef4bf 31770 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
31771 r=`${PWD_COMMAND}`; export r; \
31772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
31773 $(HOST_EXPORTS) \
31774 for flag in $(EXTRA_HOST_FLAGS) ; do \
31775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31776 done; \
22121df0 31777 echo "Doing html in gnattools"; \
a90ef4bf 31778 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
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}" \
6d389afc
MS
31783 html) \
31784 || exit 1
31785
a90ef4bf 31786@endif gnattools
6d389afc 31787
a90ef4bf
JM
31788.PHONY: maybe-TAGS-gnattools TAGS-gnattools
31789maybe-TAGS-gnattools:
31790@if gnattools
31791maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 31792
a90ef4bf
JM
31793TAGS-gnattools: \
31794 configure-gnattools
0aed8855 31795 @: $(MAKE); $(unstage)
a90ef4bf 31796 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31797 r=`${PWD_COMMAND}`; export r; \
31798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31799 $(HOST_EXPORTS) \
b813574b 31800 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31802 done; \
22121df0 31803 echo "Doing TAGS in gnattools"; \
a90ef4bf 31804 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
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 TAGS) \
2a4cbe27
NN
31810 || exit 1
31811
a90ef4bf 31812@endif gnattools
2a4cbe27 31813
a90ef4bf
JM
31814.PHONY: maybe-install-info-gnattools install-info-gnattools
31815maybe-install-info-gnattools:
31816@if gnattools
31817maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 31818
a90ef4bf
JM
31819install-info-gnattools: \
31820 configure-gnattools \
31821 info-gnattools
0aed8855 31822 @: $(MAKE); $(unstage)
a90ef4bf 31823 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31824 r=`${PWD_COMMAND}`; export r; \
31825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31826 $(HOST_EXPORTS) \
b813574b 31827 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31829 done; \
22121df0 31830 echo "Doing install-info in gnattools"; \
a90ef4bf 31831 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31834 "RANLIB=$${RANLIB}" \
0c24b341 31835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31836 install-info) \
2a4cbe27
NN
31837 || exit 1
31838
a90ef4bf 31839@endif gnattools
2a4cbe27 31840
a90ef4bf
JM
31841.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
31842maybe-install-pdf-gnattools:
31843@if gnattools
31844maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 31845
a90ef4bf
JM
31846install-pdf-gnattools: \
31847 configure-gnattools \
31848 pdf-gnattools
a3ca38d2 31849 @: $(MAKE); $(unstage)
a90ef4bf 31850 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
31851 r=`${PWD_COMMAND}`; export r; \
31852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31853 $(HOST_EXPORTS) \
31854 for flag in $(EXTRA_HOST_FLAGS) ; do \
31855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31856 done; \
22121df0 31857 echo "Doing install-pdf in gnattools"; \
a90ef4bf 31858 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
31859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31861 "RANLIB=$${RANLIB}" \
0c24b341 31862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31863 install-pdf) \
31864 || exit 1
31865
a90ef4bf 31866@endif gnattools
a3ca38d2 31867
a90ef4bf
JM
31868.PHONY: maybe-install-html-gnattools install-html-gnattools
31869maybe-install-html-gnattools:
31870@if gnattools
31871maybe-install-html-gnattools: install-html-gnattools
108a6f8e 31872
a90ef4bf
JM
31873install-html-gnattools: \
31874 configure-gnattools \
31875 html-gnattools
108a6f8e 31876 @: $(MAKE); $(unstage)
a90ef4bf 31877 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
31878 r=`${PWD_COMMAND}`; export r; \
31879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31880 $(HOST_EXPORTS) \
31881 for flag in $(EXTRA_HOST_FLAGS) ; do \
31882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31883 done; \
22121df0 31884 echo "Doing install-html in gnattools"; \
a90ef4bf 31885 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
31886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31888 "RANLIB=$${RANLIB}" \
0c24b341 31889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31890 install-html) \
31891 || exit 1
31892
a90ef4bf 31893@endif gnattools
108a6f8e 31894
a90ef4bf
JM
31895.PHONY: maybe-installcheck-gnattools installcheck-gnattools
31896maybe-installcheck-gnattools:
31897@if gnattools
31898maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 31899
a90ef4bf
JM
31900installcheck-gnattools: \
31901 configure-gnattools
0aed8855 31902 @: $(MAKE); $(unstage)
a90ef4bf 31903 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31904 r=`${PWD_COMMAND}`; export r; \
31905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31906 $(HOST_EXPORTS) \
b813574b 31907 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31909 done; \
22121df0 31910 echo "Doing installcheck in gnattools"; \
a90ef4bf 31911 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31914 "RANLIB=$${RANLIB}" \
0c24b341 31915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31916 installcheck) \
2a4cbe27
NN
31917 || exit 1
31918
a90ef4bf 31919@endif gnattools
2a4cbe27 31920
a90ef4bf
JM
31921.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
31922maybe-mostlyclean-gnattools:
31923@if gnattools
31924maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 31925
a90ef4bf 31926mostlyclean-gnattools:
0aed8855 31927 @: $(MAKE); $(unstage)
a90ef4bf 31928 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31929 r=`${PWD_COMMAND}`; export r; \
31930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31931 $(HOST_EXPORTS) \
b813574b 31932 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31934 done; \
22121df0 31935 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 31936 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31939 "RANLIB=$${RANLIB}" \
0c24b341 31940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31941 mostlyclean) \
2a4cbe27
NN
31942 || exit 1
31943
a90ef4bf 31944@endif gnattools
2a4cbe27 31945
a90ef4bf
JM
31946.PHONY: maybe-clean-gnattools clean-gnattools
31947maybe-clean-gnattools:
31948@if gnattools
31949maybe-clean-gnattools: clean-gnattools
2a4cbe27 31950
a90ef4bf 31951clean-gnattools:
0aed8855 31952 @: $(MAKE); $(unstage)
a90ef4bf 31953 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31954 r=`${PWD_COMMAND}`; export r; \
31955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31956 $(HOST_EXPORTS) \
b813574b 31957 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31959 done; \
22121df0 31960 echo "Doing clean in gnattools"; \
a90ef4bf 31961 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31964 "RANLIB=$${RANLIB}" \
0c24b341 31965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31966 clean) \
2a4cbe27
NN
31967 || exit 1
31968
a90ef4bf 31969@endif gnattools
2a4cbe27 31970
a90ef4bf
JM
31971.PHONY: maybe-distclean-gnattools distclean-gnattools
31972maybe-distclean-gnattools:
31973@if gnattools
31974maybe-distclean-gnattools: distclean-gnattools
a2592b1b 31975
a90ef4bf 31976distclean-gnattools:
0aed8855 31977 @: $(MAKE); $(unstage)
a90ef4bf 31978 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
31979 r=`${PWD_COMMAND}`; export r; \
31980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31981 $(HOST_EXPORTS) \
b813574b 31982 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
31983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31984 done; \
22121df0 31985 echo "Doing distclean in gnattools"; \
a90ef4bf 31986 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
31987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31989 "RANLIB=$${RANLIB}" \
0c24b341 31990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31991 distclean) \
a2592b1b
DD
31992 || exit 1
31993
a90ef4bf 31994@endif gnattools
a2592b1b 31995
a90ef4bf
JM
31996.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
31997maybe-maintainer-clean-gnattools:
31998@if gnattools
31999maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 32000
a90ef4bf 32001maintainer-clean-gnattools:
0aed8855 32002 @: $(MAKE); $(unstage)
a90ef4bf 32003 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 32004 r=`${PWD_COMMAND}`; export r; \
b40e3958 32005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32006 $(HOST_EXPORTS) \
b813574b 32007 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
32008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32009 done; \
22121df0 32010 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 32011 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
32012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32014 "RANLIB=$${RANLIB}" \
0c24b341 32015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32016 maintainer-clean) \
4fa63067 32017 || exit 1
252b5132 32018
a90ef4bf 32019@endif gnattools
252b5132 32020
252b5132 32021
a7254363 32022
a90ef4bf
JM
32023.PHONY: configure-lto-plugin maybe-configure-lto-plugin
32024maybe-configure-lto-plugin:
4f0ef2d8 32025@if gcc-bootstrap
a90ef4bf 32026configure-lto-plugin: stage_current
4f0ef2d8 32027@endif gcc-bootstrap
a90ef4bf
JM
32028@if lto-plugin
32029maybe-configure-lto-plugin: configure-lto-plugin
32030configure-lto-plugin:
c52c6897 32031 @r=`${PWD_COMMAND}`; export r; \
b813574b 32032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32033 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 32034 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 32035 $(HOST_EXPORTS) \
a90ef4bf
JM
32036 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
32037 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 32038 case $(srcdir) in \
b00612cc 32039 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32040 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 32041 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 32042 esac; \
1b6c0831
L
32043 module_srcdir=lto-plugin; \
32044 $(SHELL) \
32045 $$s/$$module_srcdir/configure \
32046 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32047 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32048 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 32049 || exit 1
a90ef4bf 32050@endif lto-plugin
a7254363 32051
d545f33b
PB
32052
32053
a90ef4bf
JM
32054.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
32055maybe-configure-stage1-lto-plugin:
32056@if lto-plugin-bootstrap
32057maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
32058configure-stage1-lto-plugin:
32059 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32060 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
32061 @r=`${PWD_COMMAND}`; export r; \
32062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32063 TFLAGS="$(STAGE1_TFLAGS)"; \
32064 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
32065 $(HOST_EXPORTS) \
32066 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
32067 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
32068 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
32069 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
32070 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32071 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32072 case $(srcdir) in \
32073 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32074 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32075 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32076 esac; \
1b6c0831
L
32077 module_srcdir=lto-plugin; \
32078 $(SHELL) $$s/$$module_srcdir/configure \
32079 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32080 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
32081 --target=${target_alias} \
32082 \
a90ef4bf 32083 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 32084 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32085@endif lto-plugin-bootstrap
252b5132 32086
a90ef4bf
JM
32087.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
32088maybe-configure-stage2-lto-plugin:
32089@if lto-plugin-bootstrap
32090maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
32091configure-stage2-lto-plugin:
32092 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32093 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
32094 @r=`${PWD_COMMAND}`; export r; \
32095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32096 TFLAGS="$(STAGE2_TFLAGS)"; \
32097 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 32098 $(HOST_EXPORTS) \
a90ef4bf
JM
32099 $(POSTSTAGE1_HOST_EXPORTS) \
32100 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
32101 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
32102 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32103 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
32104 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32105 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32106 case $(srcdir) in \
32107 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32108 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32109 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32110 esac; \
1b6c0831
L
32111 module_srcdir=lto-plugin; \
32112 $(SHELL) $$s/$$module_srcdir/configure \
32113 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32114 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32115 --target=${target_alias} \
22121df0 32116 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32117 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 32118 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32119@endif lto-plugin-bootstrap
4fa63067 32120
a90ef4bf
JM
32121.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
32122maybe-configure-stage3-lto-plugin:
32123@if lto-plugin-bootstrap
32124maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
32125configure-stage3-lto-plugin:
32126 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32127 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
32128 @r=`${PWD_COMMAND}`; export r; \
32129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32130 TFLAGS="$(STAGE3_TFLAGS)"; \
32131 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 32132 $(HOST_EXPORTS) \
a90ef4bf
JM
32133 $(POSTSTAGE1_HOST_EXPORTS) \
32134 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
32135 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
32136 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32137 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
32138 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32139 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32140 case $(srcdir) in \
32141 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32142 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32143 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32144 esac; \
1b6c0831
L
32145 module_srcdir=lto-plugin; \
32146 $(SHELL) $$s/$$module_srcdir/configure \
32147 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32148 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32149 --target=${target_alias} \
22121df0 32150 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32151 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 32152 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32153@endif lto-plugin-bootstrap
9b980aa1 32154
a90ef4bf
JM
32155.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
32156maybe-configure-stage4-lto-plugin:
32157@if lto-plugin-bootstrap
32158maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
32159configure-stage4-lto-plugin:
32160 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32161 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
32162 @r=`${PWD_COMMAND}`; export r; \
32163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32164 TFLAGS="$(STAGE4_TFLAGS)"; \
32165 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 32166 $(HOST_EXPORTS) \
a90ef4bf
JM
32167 $(POSTSTAGE1_HOST_EXPORTS) \
32168 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
32169 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
32170 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32171 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
32172 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32173 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32174 case $(srcdir) in \
32175 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32176 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32177 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32178 esac; \
1b6c0831
L
32179 module_srcdir=lto-plugin; \
32180 $(SHELL) $$s/$$module_srcdir/configure \
32181 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32182 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32183 --target=${target_alias} \
22121df0 32184 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32185 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 32186 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32187@endif lto-plugin-bootstrap
4fa63067 32188
a90ef4bf
JM
32189.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
32190maybe-configure-stageprofile-lto-plugin:
32191@if lto-plugin-bootstrap
32192maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
32193configure-stageprofile-lto-plugin:
32194 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32195 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
32196 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32198 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32199 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 32200 $(HOST_EXPORTS) \
a90ef4bf
JM
32201 $(POSTSTAGE1_HOST_EXPORTS) \
32202 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
32203 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
32204 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32205 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
32206 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32207 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32208 case $(srcdir) in \
32209 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32210 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32211 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32212 esac; \
1b6c0831
L
32213 module_srcdir=lto-plugin; \
32214 $(SHELL) $$s/$$module_srcdir/configure \
32215 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32216 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32217 --target=${target_alias} \
22121df0 32218 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32219 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 32220 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32221@endif lto-plugin-bootstrap
4fa63067 32222
a90ef4bf
JM
32223.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
32224maybe-configure-stagefeedback-lto-plugin:
32225@if lto-plugin-bootstrap
32226maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
32227configure-stagefeedback-lto-plugin:
32228 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32229 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
32230 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32232 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32233 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 32234 $(HOST_EXPORTS) \
a90ef4bf
JM
32235 $(POSTSTAGE1_HOST_EXPORTS) \
32236 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
32237 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
32238 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32239 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
32240 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32241 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32242 case $(srcdir) in \
32243 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32244 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32245 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32246 esac; \
1b6c0831
L
32247 module_srcdir=lto-plugin; \
32248 $(SHELL) $$s/$$module_srcdir/configure \
32249 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32250 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32251 --target=${target_alias} \
22121df0 32252 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32253 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 32254 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32255@endif lto-plugin-bootstrap
252b5132 32256
56a8fe78 32257
56a8fe78 32258
56a8fe78 32259
6d389afc 32260
a90ef4bf
JM
32261.PHONY: all-lto-plugin maybe-all-lto-plugin
32262maybe-all-lto-plugin:
32263@if gcc-bootstrap
32264all-lto-plugin: stage_current
32265@endif gcc-bootstrap
32266@if lto-plugin
32267TARGET-lto-plugin=all
32268maybe-all-lto-plugin: all-lto-plugin
32269all-lto-plugin: configure-lto-plugin
32270 @r=`${PWD_COMMAND}`; export r; \
6d389afc 32271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32272 $(HOST_EXPORTS) \
32273 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32274 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
32275 $(TARGET-lto-plugin))
32276@endif lto-plugin
6d389afc 32277
6d389afc 32278
252b5132 32279
a90ef4bf
JM
32280.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
32281.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
32282maybe-all-stage1-lto-plugin:
32283maybe-clean-stage1-lto-plugin:
32284@if lto-plugin-bootstrap
32285maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
32286all-stage1: all-stage1-lto-plugin
32287TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
32288all-stage1-lto-plugin: configure-stage1-lto-plugin
32289 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32290 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32292 TFLAGS="$(STAGE1_TFLAGS)"; \
32293 $(HOST_EXPORTS) \
32294 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32295 \
a90ef4bf
JM
32296 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32297 CFLAGS="$(STAGE1_CFLAGS)" \
32298 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
32299 LIBCFLAGS="$(LIBCFLAGS)" \
32300 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32301 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32302 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 32303 $(EXTRA_HOST_FLAGS) \
1b6c0831 32304 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32305 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 32306 $(TARGET-stage1-lto-plugin)
3866be5d 32307
a90ef4bf
JM
32308maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
32309clean-stage1: clean-stage1-lto-plugin
32310clean-stage1-lto-plugin:
32311 @if [ $(current_stage) = stage1 ]; then \
32312 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32313 else \
32314 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
32315 $(MAKE) stage1-start; \
32316 fi; \
32317 cd $(HOST_SUBDIR)/lto-plugin && \
32318 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 32319 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32320@endif lto-plugin-bootstrap
3866be5d 32321
3866be5d 32322
a90ef4bf
JM
32323.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
32324.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
32325maybe-all-stage2-lto-plugin:
32326maybe-clean-stage2-lto-plugin:
32327@if lto-plugin-bootstrap
32328maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
32329all-stage2: all-stage2-lto-plugin
32330TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
32331all-stage2-lto-plugin: configure-stage2-lto-plugin
32332 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32333 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32335 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 32336 $(HOST_EXPORTS) \
a90ef4bf
JM
32337 $(POSTSTAGE1_HOST_EXPORTS) \
32338 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32339 \
a90ef4bf
JM
32340 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32341 CFLAGS="$(STAGE2_CFLAGS)" \
32342 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
32343 LIBCFLAGS="$(STAGE2_CFLAGS)" \
32344 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32345 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32346 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32347 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32348 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 32349 $(TARGET-stage2-lto-plugin)
3866be5d 32350
a90ef4bf
JM
32351maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
32352clean-stage2: clean-stage2-lto-plugin
32353clean-stage2-lto-plugin:
32354 @if [ $(current_stage) = stage2 ]; then \
32355 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32356 else \
32357 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
32358 $(MAKE) stage2-start; \
32359 fi; \
32360 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32361 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32362@endif lto-plugin-bootstrap
3866be5d 32363
a3ca38d2 32364
a90ef4bf
JM
32365.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
32366.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
32367maybe-all-stage3-lto-plugin:
32368maybe-clean-stage3-lto-plugin:
32369@if lto-plugin-bootstrap
32370maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
32371all-stage3: all-stage3-lto-plugin
32372TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
32373all-stage3-lto-plugin: configure-stage3-lto-plugin
32374 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32375 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 32376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32377 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 32378 $(HOST_EXPORTS) \
a90ef4bf
JM
32379 $(POSTSTAGE1_HOST_EXPORTS) \
32380 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32381 \
a90ef4bf
JM
32382 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32383 CFLAGS="$(STAGE3_CFLAGS)" \
32384 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
32385 LIBCFLAGS="$(STAGE3_CFLAGS)" \
32386 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32387 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32388 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32389 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32390 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 32391 $(TARGET-stage3-lto-plugin)
a3ca38d2 32392
a90ef4bf
JM
32393maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
32394clean-stage3: clean-stage3-lto-plugin
32395clean-stage3-lto-plugin:
32396 @if [ $(current_stage) = stage3 ]; then \
32397 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32398 else \
32399 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
32400 $(MAKE) stage3-start; \
32401 fi; \
32402 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32403 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32404@endif lto-plugin-bootstrap
a3ca38d2 32405
108a6f8e 32406
a90ef4bf
JM
32407.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
32408.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
32409maybe-all-stage4-lto-plugin:
32410maybe-clean-stage4-lto-plugin:
32411@if lto-plugin-bootstrap
32412maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
32413all-stage4: all-stage4-lto-plugin
32414TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
32415all-stage4-lto-plugin: configure-stage4-lto-plugin
32416 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32417 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 32418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32419 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 32420 $(HOST_EXPORTS) \
a90ef4bf
JM
32421 $(POSTSTAGE1_HOST_EXPORTS) \
32422 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32423 \
a90ef4bf
JM
32424 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32425 CFLAGS="$(STAGE4_CFLAGS)" \
32426 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
32427 LIBCFLAGS="$(STAGE4_CFLAGS)" \
32428 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32429 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32430 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32431 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32432 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 32433 $(TARGET-stage4-lto-plugin)
108a6f8e 32434
a90ef4bf
JM
32435maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
32436clean-stage4: clean-stage4-lto-plugin
32437clean-stage4-lto-plugin:
32438 @if [ $(current_stage) = stage4 ]; then \
32439 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32440 else \
32441 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
32442 $(MAKE) stage4-start; \
32443 fi; \
32444 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32445 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32446@endif lto-plugin-bootstrap
4fa63067 32447
4fa63067 32448
a90ef4bf
JM
32449.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
32450.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
32451maybe-all-stageprofile-lto-plugin:
32452maybe-clean-stageprofile-lto-plugin:
32453@if lto-plugin-bootstrap
32454maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
32455all-stageprofile: all-stageprofile-lto-plugin
32456TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
32457all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
32458 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32459 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32461 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 32462 $(HOST_EXPORTS) \
a90ef4bf
JM
32463 $(POSTSTAGE1_HOST_EXPORTS) \
32464 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32465 \
a90ef4bf
JM
32466 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32467 CFLAGS="$(STAGEprofile_CFLAGS)" \
32468 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
32469 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
32470 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32471 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32472 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32473 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32474 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 32475 $(TARGET-stageprofile-lto-plugin)
4fa63067 32476
a90ef4bf
JM
32477maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
32478clean-stageprofile: clean-stageprofile-lto-plugin
32479clean-stageprofile-lto-plugin:
32480 @if [ $(current_stage) = stageprofile ]; then \
32481 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32482 else \
32483 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
32484 $(MAKE) stageprofile-start; \
32485 fi; \
32486 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32487 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32488@endif lto-plugin-bootstrap
4fa63067 32489
4fa63067 32490
a90ef4bf
JM
32491.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
32492.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
32493maybe-all-stagefeedback-lto-plugin:
32494maybe-clean-stagefeedback-lto-plugin:
32495@if lto-plugin-bootstrap
32496maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
32497all-stagefeedback: all-stagefeedback-lto-plugin
32498TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
32499all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
32500 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32501 @r=`${PWD_COMMAND}`; export r; \
b40e3958 32502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32503 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 32504 $(HOST_EXPORTS) \
a90ef4bf
JM
32505 $(POSTSTAGE1_HOST_EXPORTS) \
32506 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32507 \
a90ef4bf
JM
32508 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32509 CFLAGS="$(STAGEfeedback_CFLAGS)" \
32510 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
32511 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
32512 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32513 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32514 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32515 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32516 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 32517 $(TARGET-stagefeedback-lto-plugin)
3866be5d 32518
a90ef4bf
JM
32519maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
32520clean-stagefeedback: clean-stagefeedback-lto-plugin
32521clean-stagefeedback-lto-plugin:
32522 @if [ $(current_stage) = stagefeedback ]; then \
32523 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32524 else \
32525 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
32526 $(MAKE) stagefeedback-start; \
32527 fi; \
32528 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32529 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32530@endif lto-plugin-bootstrap
a7254363 32531
e2b9e2dc 32532
a7254363
PB
32533
32534
d545f33b 32535
a90ef4bf
JM
32536.PHONY: check-lto-plugin maybe-check-lto-plugin
32537maybe-check-lto-plugin:
32538@if lto-plugin
32539maybe-check-lto-plugin: check-lto-plugin
d545f33b 32540
a90ef4bf 32541check-lto-plugin:
0aed8855 32542 @: $(MAKE); $(unstage)
b40e3958
L
32543 @r=`${PWD_COMMAND}`; export r; \
32544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32545 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 32546 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 32547 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 32548
a90ef4bf 32549@endif lto-plugin
3866be5d 32550
a90ef4bf
JM
32551.PHONY: install-lto-plugin maybe-install-lto-plugin
32552maybe-install-lto-plugin:
32553@if lto-plugin
32554maybe-install-lto-plugin: install-lto-plugin
4fa63067 32555
a90ef4bf 32556install-lto-plugin: installdirs
0aed8855 32557 @: $(MAKE); $(unstage)
4fa63067
NN
32558 @r=`${PWD_COMMAND}`; export r; \
32559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32560 $(HOST_EXPORTS) \
a90ef4bf 32561 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32562 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 32563
a90ef4bf 32564@endif lto-plugin
4fa63067 32565
a90ef4bf
JM
32566.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
32567maybe-install-strip-lto-plugin:
32568@if lto-plugin
32569maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 32570
a90ef4bf 32571install-strip-lto-plugin: installdirs
9b980aa1
RW
32572 @: $(MAKE); $(unstage)
32573 @r=`${PWD_COMMAND}`; export r; \
32574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32575 $(HOST_EXPORTS) \
a90ef4bf 32576 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32577 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 32578
a90ef4bf 32579@endif lto-plugin
9b980aa1 32580
56a8fe78 32581# Other targets (info, dvi, pdf, etc.)
4fa63067 32582
a90ef4bf
JM
32583.PHONY: maybe-info-lto-plugin info-lto-plugin
32584maybe-info-lto-plugin:
32585@if lto-plugin
32586maybe-info-lto-plugin: info-lto-plugin
4fa63067 32587
a90ef4bf
JM
32588info-lto-plugin: \
32589 configure-lto-plugin
32590 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32591 r=`${PWD_COMMAND}`; export r; \
32592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32593 $(HOST_EXPORTS) \
1b6c0831 32594 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32596 done; \
22121df0 32597 echo "Doing info in lto-plugin"; \
a90ef4bf 32598 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32601 "RANLIB=$${RANLIB}" \
0c24b341 32602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32603 info) \
4fa63067
NN
32604 || exit 1
32605
a90ef4bf 32606@endif lto-plugin
4fa63067 32607
a90ef4bf
JM
32608.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
32609maybe-dvi-lto-plugin:
32610@if lto-plugin
32611maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 32612
a90ef4bf
JM
32613dvi-lto-plugin: \
32614 configure-lto-plugin
32615 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32616 r=`${PWD_COMMAND}`; export r; \
32617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32618 $(HOST_EXPORTS) \
1b6c0831 32619 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32621 done; \
22121df0 32622 echo "Doing dvi in lto-plugin"; \
a90ef4bf 32623 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32626 "RANLIB=$${RANLIB}" \
0c24b341 32627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32628 dvi) \
4fa63067
NN
32629 || exit 1
32630
a90ef4bf 32631@endif lto-plugin
4fa63067 32632
a90ef4bf
JM
32633.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
32634maybe-pdf-lto-plugin:
32635@if lto-plugin
32636maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 32637
a90ef4bf
JM
32638pdf-lto-plugin: \
32639 configure-lto-plugin
32640 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
32641 r=`${PWD_COMMAND}`; export r; \
32642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32643 $(HOST_EXPORTS) \
1b6c0831 32644 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
32645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32646 done; \
22121df0 32647 echo "Doing pdf in lto-plugin"; \
a90ef4bf 32648 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
32649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32651 "RANLIB=$${RANLIB}" \
0c24b341 32652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
32653 pdf) \
32654 || exit 1
32655
a90ef4bf 32656@endif lto-plugin
56a8fe78 32657
a90ef4bf
JM
32658.PHONY: maybe-html-lto-plugin html-lto-plugin
32659maybe-html-lto-plugin:
32660@if lto-plugin
32661maybe-html-lto-plugin: html-lto-plugin
6d389afc 32662
a90ef4bf
JM
32663html-lto-plugin: \
32664 configure-lto-plugin
32665 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
32666 r=`${PWD_COMMAND}`; export r; \
32667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 32668 $(HOST_EXPORTS) \
1b6c0831 32669 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
32670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32671 done; \
22121df0 32672 echo "Doing html in lto-plugin"; \
a90ef4bf 32673 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
32674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32676 "RANLIB=$${RANLIB}" \
0c24b341 32677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
32678 html) \
32679 || exit 1
32680
a90ef4bf 32681@endif lto-plugin
6d389afc 32682
a90ef4bf
JM
32683.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
32684maybe-TAGS-lto-plugin:
32685@if lto-plugin
32686maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 32687
a90ef4bf
JM
32688TAGS-lto-plugin: \
32689 configure-lto-plugin
32690 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32691 r=`${PWD_COMMAND}`; export r; \
32692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32693 $(HOST_EXPORTS) \
1b6c0831 32694 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32696 done; \
22121df0 32697 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 32698 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32701 "RANLIB=$${RANLIB}" \
0c24b341 32702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32703 TAGS) \
4fa63067
NN
32704 || exit 1
32705
a90ef4bf 32706@endif lto-plugin
4fa63067 32707
a90ef4bf
JM
32708.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
32709maybe-install-info-lto-plugin:
32710@if lto-plugin
32711maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 32712
a90ef4bf
JM
32713install-info-lto-plugin: \
32714 configure-lto-plugin \
32715 info-lto-plugin
32716 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32717 r=`${PWD_COMMAND}`; export r; \
32718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32719 $(HOST_EXPORTS) \
1b6c0831 32720 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32722 done; \
22121df0 32723 echo "Doing install-info in lto-plugin"; \
a90ef4bf 32724 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32727 "RANLIB=$${RANLIB}" \
0c24b341 32728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32729 install-info) \
4fa63067
NN
32730 || exit 1
32731
a90ef4bf 32732@endif lto-plugin
4fa63067 32733
a90ef4bf
JM
32734.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
32735maybe-install-pdf-lto-plugin:
32736@if lto-plugin
32737maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 32738
a90ef4bf
JM
32739install-pdf-lto-plugin: \
32740 configure-lto-plugin \
32741 pdf-lto-plugin
32742 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
32743 r=`${PWD_COMMAND}`; export r; \
32744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32745 $(HOST_EXPORTS) \
1b6c0831 32746 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
32747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32748 done; \
22121df0 32749 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 32750 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
32751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32753 "RANLIB=$${RANLIB}" \
0c24b341 32754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
32755 install-pdf) \
32756 || exit 1
32757
a90ef4bf 32758@endif lto-plugin
a3ca38d2 32759
a90ef4bf
JM
32760.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
32761maybe-install-html-lto-plugin:
32762@if lto-plugin
32763maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 32764
a90ef4bf
JM
32765install-html-lto-plugin: \
32766 configure-lto-plugin \
32767 html-lto-plugin
32768 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
32769 r=`${PWD_COMMAND}`; export r; \
32770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32771 $(HOST_EXPORTS) \
1b6c0831 32772 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
32773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32774 done; \
22121df0 32775 echo "Doing install-html in lto-plugin"; \
a90ef4bf 32776 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
32777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32779 "RANLIB=$${RANLIB}" \
0c24b341 32780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
32781 install-html) \
32782 || exit 1
32783
a90ef4bf 32784@endif lto-plugin
108a6f8e 32785
a90ef4bf
JM
32786.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
32787maybe-installcheck-lto-plugin:
32788@if lto-plugin
32789maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 32790
a90ef4bf
JM
32791installcheck-lto-plugin: \
32792 configure-lto-plugin
32793 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32794 r=`${PWD_COMMAND}`; export r; \
32795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32796 $(HOST_EXPORTS) \
1b6c0831 32797 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32799 done; \
22121df0 32800 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 32801 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32804 "RANLIB=$${RANLIB}" \
0c24b341 32805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32806 installcheck) \
4fa63067
NN
32807 || exit 1
32808
a90ef4bf 32809@endif lto-plugin
4fa63067 32810
a90ef4bf
JM
32811.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
32812maybe-mostlyclean-lto-plugin:
32813@if lto-plugin
32814maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 32815
a90ef4bf
JM
32816mostlyclean-lto-plugin:
32817 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32818 r=`${PWD_COMMAND}`; export r; \
32819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32820 $(HOST_EXPORTS) \
1b6c0831 32821 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32823 done; \
22121df0 32824 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 32825 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32828 "RANLIB=$${RANLIB}" \
0c24b341 32829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32830 mostlyclean) \
4fa63067
NN
32831 || exit 1
32832
a90ef4bf 32833@endif lto-plugin
4fa63067 32834
a90ef4bf
JM
32835.PHONY: maybe-clean-lto-plugin clean-lto-plugin
32836maybe-clean-lto-plugin:
32837@if lto-plugin
32838maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 32839
a90ef4bf
JM
32840clean-lto-plugin:
32841 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32842 r=`${PWD_COMMAND}`; export r; \
32843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32844 $(HOST_EXPORTS) \
1b6c0831 32845 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32847 done; \
22121df0 32848 echo "Doing clean in lto-plugin"; \
a90ef4bf 32849 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32852 "RANLIB=$${RANLIB}" \
0c24b341 32853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32854 clean) \
4fa63067
NN
32855 || exit 1
32856
a90ef4bf 32857@endif lto-plugin
4fa63067 32858
a90ef4bf
JM
32859.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
32860maybe-distclean-lto-plugin:
32861@if lto-plugin
32862maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 32863
a90ef4bf
JM
32864distclean-lto-plugin:
32865 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32866 r=`${PWD_COMMAND}`; export r; \
32867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32868 $(HOST_EXPORTS) \
1b6c0831 32869 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32871 done; \
22121df0 32872 echo "Doing distclean in lto-plugin"; \
a90ef4bf 32873 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32876 "RANLIB=$${RANLIB}" \
0c24b341 32877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32878 distclean) \
4fa63067
NN
32879 || exit 1
32880
a90ef4bf 32881@endif lto-plugin
4fa63067 32882
a90ef4bf
JM
32883.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
32884maybe-maintainer-clean-lto-plugin:
32885@if lto-plugin
32886maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 32887
a90ef4bf
JM
32888maintainer-clean-lto-plugin:
32889 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32890 r=`${PWD_COMMAND}`; export r; \
32891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32892 $(HOST_EXPORTS) \
1b6c0831 32893 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32895 done; \
22121df0 32896 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 32897 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32900 "RANLIB=$${RANLIB}" \
0c24b341 32901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32902 maintainer-clean) \
4fa63067 32903 || exit 1
16ae0395 32904
a90ef4bf
JM
32905@endif lto-plugin
32906
32907
32908
1b6c0831
L
32909.PHONY: configure-libcc1 maybe-configure-libcc1
32910maybe-configure-libcc1:
4f0ef2d8 32911@if gcc-bootstrap
1b6c0831 32912configure-libcc1: stage_current
4f0ef2d8 32913@endif gcc-bootstrap
1b6c0831
L
32914@if libcc1
32915maybe-configure-libcc1: configure-libcc1
32916configure-libcc1:
32917 @: $(MAKE); $(unstage)
c52c6897 32918 @r=`${PWD_COMMAND}`; export r; \
b40e3958 32919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 32920 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 32921 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
32922 $(HOST_EXPORTS) \
32923 echo Configuring in $(HOST_SUBDIR)/libcc1; \
32924 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 32925 case $(srcdir) in \
b00612cc 32926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 32927 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 32928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 32929 esac; \
1b6c0831
L
32930 module_srcdir=libcc1; \
32931 $(SHELL) \
32932 $$s/$$module_srcdir/configure \
32933 --srcdir=$${topdir}/$$module_srcdir \
32934 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32935 --target=${target_alias} --enable-shared \
e2b9e2dc 32936 || exit 1
1b6c0831 32937@endif libcc1
d545f33b
PB
32938
32939
3866be5d 32940
16ae0395 32941
9b980aa1 32942
1b6c0831
L
32943.PHONY: all-libcc1 maybe-all-libcc1
32944maybe-all-libcc1:
32945@if gcc-bootstrap
32946all-libcc1: stage_current
32947@endif gcc-bootstrap
32948@if libcc1
32949TARGET-libcc1=all
32950maybe-all-libcc1: all-libcc1
32951all-libcc1: configure-libcc1
32952 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32953 @r=`${PWD_COMMAND}`; export r; \
32954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32955 $(HOST_EXPORTS) \
32956 (cd $(HOST_SUBDIR)/libcc1 && \
32957 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32958 $(TARGET-libcc1))
32959@endif libcc1
e8a5fa9c 32960
1b6c0831
L
32961
32962
32963
32964.PHONY: check-libcc1 maybe-check-libcc1
32965maybe-check-libcc1:
32966@if libcc1
32967maybe-check-libcc1: check-libcc1
32968
32969check-libcc1:
32970 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32971 @r=`${PWD_COMMAND}`; export r; \
32972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32973 $(HOST_EXPORTS) \
1b6c0831
L
32974 (cd $(HOST_SUBDIR)/libcc1 && \
32975 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 32976
1b6c0831
L
32977@endif libcc1
32978
32979.PHONY: install-libcc1 maybe-install-libcc1
32980maybe-install-libcc1:
32981@if libcc1
32982maybe-install-libcc1: install-libcc1
32983
32984install-libcc1: installdirs
32985 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32986 @r=`${PWD_COMMAND}`; export r; \
32987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32988 $(HOST_EXPORTS) \
32989 (cd $(HOST_SUBDIR)/libcc1 && \
32990 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 32991
1b6c0831
L
32992@endif libcc1
32993
32994.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
32995maybe-install-strip-libcc1:
32996@if libcc1
32997maybe-install-strip-libcc1: install-strip-libcc1
32998
32999install-strip-libcc1: installdirs
33000 @: $(MAKE); $(unstage)
e8a5fa9c
RW
33001 @r=`${PWD_COMMAND}`; export r; \
33002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33003 $(HOST_EXPORTS) \
33004 (cd $(HOST_SUBDIR)/libcc1 && \
33005 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 33006
1b6c0831 33007@endif libcc1
e8a5fa9c 33008
1b6c0831 33009# Other targets (info, dvi, pdf, etc.)
d545f33b 33010
1b6c0831
L
33011.PHONY: maybe-info-libcc1 info-libcc1
33012maybe-info-libcc1:
33013@if libcc1
33014maybe-info-libcc1: info-libcc1
d545f33b 33015
1b6c0831
L
33016info-libcc1: \
33017 configure-libcc1
33018 @: $(MAKE); $(unstage)
33019 @[ -f ./libcc1/Makefile ] || exit 0; \
33020 r=`${PWD_COMMAND}`; export r; \
b40e3958 33021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33022 $(HOST_EXPORTS) \
33023 for flag in $(EXTRA_HOST_FLAGS) ; do \
33024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33025 done; \
22121df0 33026 echo "Doing info in libcc1"; \
1b6c0831
L
33027 (cd $(HOST_SUBDIR)/libcc1 && \
33028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33030 "RANLIB=$${RANLIB}" \
33031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33032 info) \
33033 || exit 1
3866be5d 33034
1b6c0831 33035@endif libcc1
a7254363 33036
1b6c0831
L
33037.PHONY: maybe-dvi-libcc1 dvi-libcc1
33038maybe-dvi-libcc1:
33039@if libcc1
33040maybe-dvi-libcc1: dvi-libcc1
a7254363 33041
1b6c0831
L
33042dvi-libcc1: \
33043 configure-libcc1
33044 @: $(MAKE); $(unstage)
33045 @[ -f ./libcc1/Makefile ] || exit 0; \
33046 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33048 $(HOST_EXPORTS) \
33049 for flag in $(EXTRA_HOST_FLAGS) ; do \
33050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33051 done; \
22121df0 33052 echo "Doing dvi in libcc1"; \
1b6c0831
L
33053 (cd $(HOST_SUBDIR)/libcc1 && \
33054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33056 "RANLIB=$${RANLIB}" \
33057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33058 dvi) \
33059 || exit 1
e8a5fa9c 33060
1b6c0831 33061@endif libcc1
e8a5fa9c 33062
1b6c0831
L
33063.PHONY: maybe-pdf-libcc1 pdf-libcc1
33064maybe-pdf-libcc1:
33065@if libcc1
33066maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 33067
1b6c0831
L
33068pdf-libcc1: \
33069 configure-libcc1
33070 @: $(MAKE); $(unstage)
33071 @[ -f ./libcc1/Makefile ] || exit 0; \
33072 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33074 $(HOST_EXPORTS) \
33075 for flag in $(EXTRA_HOST_FLAGS) ; do \
33076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33077 done; \
22121df0 33078 echo "Doing pdf in libcc1"; \
1b6c0831
L
33079 (cd $(HOST_SUBDIR)/libcc1 && \
33080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33082 "RANLIB=$${RANLIB}" \
33083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33084 pdf) \
33085 || exit 1
e8a5fa9c 33086
1b6c0831 33087@endif libcc1
e8a5fa9c 33088
1b6c0831
L
33089.PHONY: maybe-html-libcc1 html-libcc1
33090maybe-html-libcc1:
33091@if libcc1
33092maybe-html-libcc1: html-libcc1
e8a5fa9c 33093
1b6c0831
L
33094html-libcc1: \
33095 configure-libcc1
33096 @: $(MAKE); $(unstage)
33097 @[ -f ./libcc1/Makefile ] || exit 0; \
33098 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33100 $(HOST_EXPORTS) \
33101 for flag in $(EXTRA_HOST_FLAGS) ; do \
33102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33103 done; \
22121df0 33104 echo "Doing html in libcc1"; \
1b6c0831
L
33105 (cd $(HOST_SUBDIR)/libcc1 && \
33106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33108 "RANLIB=$${RANLIB}" \
33109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33110 html) \
33111 || exit 1
e8a5fa9c 33112
1b6c0831 33113@endif libcc1
e8a5fa9c 33114
1b6c0831
L
33115.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
33116maybe-TAGS-libcc1:
33117@if libcc1
33118maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 33119
1b6c0831
L
33120TAGS-libcc1: \
33121 configure-libcc1
33122 @: $(MAKE); $(unstage)
33123 @[ -f ./libcc1/Makefile ] || exit 0; \
33124 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33126 $(HOST_EXPORTS) \
33127 for flag in $(EXTRA_HOST_FLAGS) ; do \
33128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33129 done; \
22121df0 33130 echo "Doing TAGS in libcc1"; \
1b6c0831
L
33131 (cd $(HOST_SUBDIR)/libcc1 && \
33132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33134 "RANLIB=$${RANLIB}" \
33135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33136 TAGS) \
33137 || exit 1
33138
33139@endif libcc1
33140
33141.PHONY: maybe-install-info-libcc1 install-info-libcc1
33142maybe-install-info-libcc1:
33143@if libcc1
33144maybe-install-info-libcc1: install-info-libcc1
33145
33146install-info-libcc1: \
33147 configure-libcc1 \
33148 info-libcc1
33149 @: $(MAKE); $(unstage)
33150 @[ -f ./libcc1/Makefile ] || exit 0; \
33151 r=`${PWD_COMMAND}`; export r; \
33152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33153 $(HOST_EXPORTS) \
33154 for flag in $(EXTRA_HOST_FLAGS) ; do \
33155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33156 done; \
22121df0 33157 echo "Doing install-info in libcc1"; \
1b6c0831
L
33158 (cd $(HOST_SUBDIR)/libcc1 && \
33159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33161 "RANLIB=$${RANLIB}" \
33162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33163 install-info) \
33164 || exit 1
33165
33166@endif libcc1
33167
33168.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
33169maybe-install-pdf-libcc1:
33170@if libcc1
33171maybe-install-pdf-libcc1: install-pdf-libcc1
33172
33173install-pdf-libcc1: \
33174 configure-libcc1 \
33175 pdf-libcc1
33176 @: $(MAKE); $(unstage)
33177 @[ -f ./libcc1/Makefile ] || exit 0; \
33178 r=`${PWD_COMMAND}`; export r; \
33179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33180 $(HOST_EXPORTS) \
33181 for flag in $(EXTRA_HOST_FLAGS) ; do \
33182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33183 done; \
22121df0 33184 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
33185 (cd $(HOST_SUBDIR)/libcc1 && \
33186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33188 "RANLIB=$${RANLIB}" \
33189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33190 install-pdf) \
33191 || exit 1
33192
33193@endif libcc1
33194
33195.PHONY: maybe-install-html-libcc1 install-html-libcc1
33196maybe-install-html-libcc1:
33197@if libcc1
33198maybe-install-html-libcc1: install-html-libcc1
33199
33200install-html-libcc1: \
33201 configure-libcc1 \
33202 html-libcc1
33203 @: $(MAKE); $(unstage)
33204 @[ -f ./libcc1/Makefile ] || exit 0; \
33205 r=`${PWD_COMMAND}`; export r; \
33206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33207 $(HOST_EXPORTS) \
33208 for flag in $(EXTRA_HOST_FLAGS) ; do \
33209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33210 done; \
22121df0 33211 echo "Doing install-html in libcc1"; \
1b6c0831
L
33212 (cd $(HOST_SUBDIR)/libcc1 && \
33213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33215 "RANLIB=$${RANLIB}" \
33216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33217 install-html) \
33218 || exit 1
33219
33220@endif libcc1
33221
33222.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
33223maybe-installcheck-libcc1:
33224@if libcc1
33225maybe-installcheck-libcc1: installcheck-libcc1
33226
33227installcheck-libcc1: \
33228 configure-libcc1
33229 @: $(MAKE); $(unstage)
33230 @[ -f ./libcc1/Makefile ] || exit 0; \
33231 r=`${PWD_COMMAND}`; export r; \
33232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33233 $(HOST_EXPORTS) \
33234 for flag in $(EXTRA_HOST_FLAGS) ; do \
33235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33236 done; \
22121df0 33237 echo "Doing installcheck in libcc1"; \
1b6c0831
L
33238 (cd $(HOST_SUBDIR)/libcc1 && \
33239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33241 "RANLIB=$${RANLIB}" \
33242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33243 installcheck) \
33244 || exit 1
33245
33246@endif libcc1
33247
33248.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
33249maybe-mostlyclean-libcc1:
33250@if libcc1
33251maybe-mostlyclean-libcc1: mostlyclean-libcc1
33252
33253mostlyclean-libcc1:
33254 @: $(MAKE); $(unstage)
33255 @[ -f ./libcc1/Makefile ] || exit 0; \
33256 r=`${PWD_COMMAND}`; export r; \
33257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33258 $(HOST_EXPORTS) \
33259 for flag in $(EXTRA_HOST_FLAGS) ; do \
33260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33261 done; \
22121df0 33262 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
33263 (cd $(HOST_SUBDIR)/libcc1 && \
33264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33266 "RANLIB=$${RANLIB}" \
33267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33268 mostlyclean) \
33269 || exit 1
33270
33271@endif libcc1
33272
33273.PHONY: maybe-clean-libcc1 clean-libcc1
33274maybe-clean-libcc1:
33275@if libcc1
33276maybe-clean-libcc1: clean-libcc1
33277
33278clean-libcc1:
33279 @: $(MAKE); $(unstage)
33280 @[ -f ./libcc1/Makefile ] || exit 0; \
33281 r=`${PWD_COMMAND}`; export r; \
33282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33283 $(HOST_EXPORTS) \
33284 for flag in $(EXTRA_HOST_FLAGS) ; do \
33285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33286 done; \
22121df0 33287 echo "Doing clean in libcc1"; \
1b6c0831
L
33288 (cd $(HOST_SUBDIR)/libcc1 && \
33289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33291 "RANLIB=$${RANLIB}" \
33292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33293 clean) \
33294 || exit 1
33295
33296@endif libcc1
33297
33298.PHONY: maybe-distclean-libcc1 distclean-libcc1
33299maybe-distclean-libcc1:
33300@if libcc1
33301maybe-distclean-libcc1: distclean-libcc1
33302
33303distclean-libcc1:
33304 @: $(MAKE); $(unstage)
33305 @[ -f ./libcc1/Makefile ] || exit 0; \
33306 r=`${PWD_COMMAND}`; export r; \
33307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33308 $(HOST_EXPORTS) \
33309 for flag in $(EXTRA_HOST_FLAGS) ; do \
33310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33311 done; \
22121df0 33312 echo "Doing distclean in libcc1"; \
1b6c0831
L
33313 (cd $(HOST_SUBDIR)/libcc1 && \
33314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33316 "RANLIB=$${RANLIB}" \
33317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33318 distclean) \
33319 || exit 1
33320
33321@endif libcc1
33322
33323.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
33324maybe-maintainer-clean-libcc1:
33325@if libcc1
33326maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
33327
33328maintainer-clean-libcc1:
33329 @: $(MAKE); $(unstage)
33330 @[ -f ./libcc1/Makefile ] || exit 0; \
33331 r=`${PWD_COMMAND}`; export r; \
33332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33333 $(HOST_EXPORTS) \
33334 for flag in $(EXTRA_HOST_FLAGS) ; do \
33335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33336 done; \
22121df0 33337 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
33338 (cd $(HOST_SUBDIR)/libcc1 && \
33339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33341 "RANLIB=$${RANLIB}" \
33342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33343 maintainer-clean) \
33344 || exit 1
33345
33346@endif libcc1
33347
33348
33349
33350.PHONY: configure-gotools maybe-configure-gotools
33351maybe-configure-gotools:
33352@if gcc-bootstrap
33353configure-gotools: stage_current
33354@endif gcc-bootstrap
33355@if gotools
33356maybe-configure-gotools: configure-gotools
33357configure-gotools:
33358 @: $(MAKE); $(unstage)
33359 @r=`${PWD_COMMAND}`; export r; \
33360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33361 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 33362 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
33363 $(HOST_EXPORTS) \
33364 echo Configuring in $(HOST_SUBDIR)/gotools; \
33365 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
33366 case $(srcdir) in \
33367 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33368 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
33369 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33370 esac; \
33371 module_srcdir=gotools; \
33372 $(SHELL) \
33373 $$s/$$module_srcdir/configure \
33374 --srcdir=$${topdir}/$$module_srcdir \
33375 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33376 --target=${target_alias} \
33377 || exit 1
33378@endif gotools
33379
33380
33381
33382
33383
33384.PHONY: all-gotools maybe-all-gotools
33385maybe-all-gotools:
33386@if gcc-bootstrap
33387all-gotools: stage_current
33388@endif gcc-bootstrap
33389@if gotools
33390TARGET-gotools=all
33391maybe-all-gotools: all-gotools
33392all-gotools: configure-gotools
33393 @: $(MAKE); $(unstage)
33394 @r=`${PWD_COMMAND}`; export r; \
33395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33396 $(HOST_EXPORTS) \
33397 (cd $(HOST_SUBDIR)/gotools && \
33398 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
33399 $(TARGET-gotools))
33400@endif gotools
33401
33402
33403
33404
33405.PHONY: check-gotools maybe-check-gotools
33406maybe-check-gotools:
33407@if gotools
33408maybe-check-gotools: check-gotools
33409
33410check-gotools:
33411 @: $(MAKE); $(unstage)
33412 @r=`${PWD_COMMAND}`; export r; \
33413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 33414 $(HOST_EXPORTS) \
1b6c0831
L
33415 (cd $(HOST_SUBDIR)/gotools && \
33416 $(MAKE) $(FLAGS_TO_PASS) check)
33417
33418@endif gotools
33419
33420.PHONY: install-gotools maybe-install-gotools
33421maybe-install-gotools:
33422@if gotools
33423maybe-install-gotools: install-gotools
33424
33425install-gotools: installdirs
33426 @: $(MAKE); $(unstage)
33427 @r=`${PWD_COMMAND}`; export r; \
33428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33429 $(HOST_EXPORTS) \
33430 (cd $(HOST_SUBDIR)/gotools && \
33431 $(MAKE) $(FLAGS_TO_PASS) install)
33432
33433@endif gotools
33434
33435.PHONY: install-strip-gotools maybe-install-strip-gotools
33436maybe-install-strip-gotools:
33437@if gotools
33438maybe-install-strip-gotools: install-strip-gotools
33439
33440install-strip-gotools: installdirs
33441 @: $(MAKE); $(unstage)
33442 @r=`${PWD_COMMAND}`; export r; \
33443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33444 $(HOST_EXPORTS) \
33445 (cd $(HOST_SUBDIR)/gotools && \
33446 $(MAKE) $(FLAGS_TO_PASS) install-strip)
33447
33448@endif gotools
33449
33450# Other targets (info, dvi, pdf, etc.)
33451
33452.PHONY: maybe-info-gotools info-gotools
33453maybe-info-gotools:
33454@if gotools
33455maybe-info-gotools: info-gotools
33456
33457info-gotools: \
33458 configure-gotools
33459 @: $(MAKE); $(unstage)
33460 @[ -f ./gotools/Makefile ] || exit 0; \
33461 r=`${PWD_COMMAND}`; export r; \
33462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33463 $(HOST_EXPORTS) \
33464 for flag in $(EXTRA_HOST_FLAGS) ; do \
33465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33466 done; \
22121df0 33467 echo "Doing info in gotools"; \
1b6c0831
L
33468 (cd $(HOST_SUBDIR)/gotools && \
33469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33471 "RANLIB=$${RANLIB}" \
33472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33473 info) \
33474 || exit 1
33475
33476@endif gotools
33477
33478.PHONY: maybe-dvi-gotools dvi-gotools
33479maybe-dvi-gotools:
33480@if gotools
33481maybe-dvi-gotools: dvi-gotools
33482
33483dvi-gotools: \
33484 configure-gotools
33485 @: $(MAKE); $(unstage)
33486 @[ -f ./gotools/Makefile ] || exit 0; \
33487 r=`${PWD_COMMAND}`; export r; \
33488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33489 $(HOST_EXPORTS) \
33490 for flag in $(EXTRA_HOST_FLAGS) ; do \
33491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33492 done; \
22121df0 33493 echo "Doing dvi in gotools"; \
1b6c0831
L
33494 (cd $(HOST_SUBDIR)/gotools && \
33495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33497 "RANLIB=$${RANLIB}" \
33498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33499 dvi) \
33500 || exit 1
33501
33502@endif gotools
33503
33504.PHONY: maybe-pdf-gotools pdf-gotools
33505maybe-pdf-gotools:
33506@if gotools
33507maybe-pdf-gotools: pdf-gotools
33508
33509pdf-gotools: \
33510 configure-gotools
33511 @: $(MAKE); $(unstage)
33512 @[ -f ./gotools/Makefile ] || exit 0; \
33513 r=`${PWD_COMMAND}`; export r; \
33514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33515 $(HOST_EXPORTS) \
33516 for flag in $(EXTRA_HOST_FLAGS) ; do \
33517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33518 done; \
22121df0 33519 echo "Doing pdf in gotools"; \
1b6c0831
L
33520 (cd $(HOST_SUBDIR)/gotools && \
33521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33523 "RANLIB=$${RANLIB}" \
33524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33525 pdf) \
33526 || exit 1
33527
33528@endif gotools
33529
33530.PHONY: maybe-html-gotools html-gotools
33531maybe-html-gotools:
33532@if gotools
33533maybe-html-gotools: html-gotools
33534
33535html-gotools: \
33536 configure-gotools
33537 @: $(MAKE); $(unstage)
33538 @[ -f ./gotools/Makefile ] || exit 0; \
33539 r=`${PWD_COMMAND}`; export r; \
33540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33541 $(HOST_EXPORTS) \
33542 for flag in $(EXTRA_HOST_FLAGS) ; do \
33543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33544 done; \
22121df0 33545 echo "Doing html in gotools"; \
1b6c0831
L
33546 (cd $(HOST_SUBDIR)/gotools && \
33547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33549 "RANLIB=$${RANLIB}" \
33550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33551 html) \
33552 || exit 1
33553
33554@endif gotools
33555
33556.PHONY: maybe-TAGS-gotools TAGS-gotools
33557maybe-TAGS-gotools:
33558@if gotools
33559maybe-TAGS-gotools: TAGS-gotools
33560
33561TAGS-gotools: \
33562 configure-gotools
33563 @: $(MAKE); $(unstage)
33564 @[ -f ./gotools/Makefile ] || exit 0; \
33565 r=`${PWD_COMMAND}`; export r; \
33566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33567 $(HOST_EXPORTS) \
33568 for flag in $(EXTRA_HOST_FLAGS) ; do \
33569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33570 done; \
22121df0 33571 echo "Doing TAGS in gotools"; \
1b6c0831
L
33572 (cd $(HOST_SUBDIR)/gotools && \
33573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33575 "RANLIB=$${RANLIB}" \
33576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33577 TAGS) \
33578 || exit 1
33579
33580@endif gotools
33581
33582.PHONY: maybe-install-info-gotools install-info-gotools
33583maybe-install-info-gotools:
33584@if gotools
33585maybe-install-info-gotools: install-info-gotools
33586
33587install-info-gotools: \
33588 configure-gotools \
33589 info-gotools
33590 @: $(MAKE); $(unstage)
33591 @[ -f ./gotools/Makefile ] || exit 0; \
33592 r=`${PWD_COMMAND}`; export r; \
33593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33594 $(HOST_EXPORTS) \
33595 for flag in $(EXTRA_HOST_FLAGS) ; do \
33596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33597 done; \
22121df0 33598 echo "Doing install-info in gotools"; \
1b6c0831
L
33599 (cd $(HOST_SUBDIR)/gotools && \
33600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33602 "RANLIB=$${RANLIB}" \
33603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33604 install-info) \
33605 || exit 1
33606
33607@endif gotools
33608
33609.PHONY: maybe-install-pdf-gotools install-pdf-gotools
33610maybe-install-pdf-gotools:
33611@if gotools
33612maybe-install-pdf-gotools: install-pdf-gotools
33613
33614install-pdf-gotools: \
33615 configure-gotools \
33616 pdf-gotools
33617 @: $(MAKE); $(unstage)
33618 @[ -f ./gotools/Makefile ] || exit 0; \
33619 r=`${PWD_COMMAND}`; export r; \
33620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33621 $(HOST_EXPORTS) \
33622 for flag in $(EXTRA_HOST_FLAGS) ; do \
33623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33624 done; \
22121df0 33625 echo "Doing install-pdf in gotools"; \
1b6c0831
L
33626 (cd $(HOST_SUBDIR)/gotools && \
33627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33629 "RANLIB=$${RANLIB}" \
33630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33631 install-pdf) \
33632 || exit 1
33633
33634@endif gotools
33635
33636.PHONY: maybe-install-html-gotools install-html-gotools
33637maybe-install-html-gotools:
33638@if gotools
33639maybe-install-html-gotools: install-html-gotools
33640
33641install-html-gotools: \
33642 configure-gotools \
33643 html-gotools
33644 @: $(MAKE); $(unstage)
33645 @[ -f ./gotools/Makefile ] || exit 0; \
33646 r=`${PWD_COMMAND}`; export r; \
33647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33648 $(HOST_EXPORTS) \
33649 for flag in $(EXTRA_HOST_FLAGS) ; do \
33650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33651 done; \
22121df0 33652 echo "Doing install-html in gotools"; \
1b6c0831
L
33653 (cd $(HOST_SUBDIR)/gotools && \
33654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33656 "RANLIB=$${RANLIB}" \
33657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33658 install-html) \
33659 || exit 1
33660
33661@endif gotools
33662
33663.PHONY: maybe-installcheck-gotools installcheck-gotools
33664maybe-installcheck-gotools:
33665@if gotools
33666maybe-installcheck-gotools: installcheck-gotools
33667
33668installcheck-gotools: \
33669 configure-gotools
33670 @: $(MAKE); $(unstage)
33671 @[ -f ./gotools/Makefile ] || exit 0; \
33672 r=`${PWD_COMMAND}`; export r; \
33673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33674 $(HOST_EXPORTS) \
33675 for flag in $(EXTRA_HOST_FLAGS) ; do \
33676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33677 done; \
22121df0 33678 echo "Doing installcheck in gotools"; \
1b6c0831
L
33679 (cd $(HOST_SUBDIR)/gotools && \
33680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33682 "RANLIB=$${RANLIB}" \
33683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33684 installcheck) \
33685 || exit 1
33686
33687@endif gotools
33688
33689.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
33690maybe-mostlyclean-gotools:
33691@if gotools
33692maybe-mostlyclean-gotools: mostlyclean-gotools
33693
33694mostlyclean-gotools:
33695 @: $(MAKE); $(unstage)
33696 @[ -f ./gotools/Makefile ] || exit 0; \
33697 r=`${PWD_COMMAND}`; export r; \
33698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33699 $(HOST_EXPORTS) \
33700 for flag in $(EXTRA_HOST_FLAGS) ; do \
33701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33702 done; \
22121df0 33703 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
33704 (cd $(HOST_SUBDIR)/gotools && \
33705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33707 "RANLIB=$${RANLIB}" \
33708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33709 mostlyclean) \
33710 || exit 1
33711
33712@endif gotools
33713
33714.PHONY: maybe-clean-gotools clean-gotools
33715maybe-clean-gotools:
33716@if gotools
33717maybe-clean-gotools: clean-gotools
33718
33719clean-gotools:
33720 @: $(MAKE); $(unstage)
33721 @[ -f ./gotools/Makefile ] || exit 0; \
33722 r=`${PWD_COMMAND}`; export r; \
33723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33724 $(HOST_EXPORTS) \
33725 for flag in $(EXTRA_HOST_FLAGS) ; do \
33726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33727 done; \
22121df0 33728 echo "Doing clean in gotools"; \
1b6c0831
L
33729 (cd $(HOST_SUBDIR)/gotools && \
33730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33732 "RANLIB=$${RANLIB}" \
33733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33734 clean) \
33735 || exit 1
33736
33737@endif gotools
33738
33739.PHONY: maybe-distclean-gotools distclean-gotools
33740maybe-distclean-gotools:
33741@if gotools
33742maybe-distclean-gotools: distclean-gotools
33743
33744distclean-gotools:
33745 @: $(MAKE); $(unstage)
33746 @[ -f ./gotools/Makefile ] || exit 0; \
33747 r=`${PWD_COMMAND}`; export r; \
33748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33749 $(HOST_EXPORTS) \
33750 for flag in $(EXTRA_HOST_FLAGS) ; do \
33751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33752 done; \
22121df0 33753 echo "Doing distclean in gotools"; \
1b6c0831
L
33754 (cd $(HOST_SUBDIR)/gotools && \
33755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33757 "RANLIB=$${RANLIB}" \
33758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33759 distclean) \
33760 || exit 1
33761
33762@endif gotools
33763
33764.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
33765maybe-maintainer-clean-gotools:
33766@if gotools
33767maybe-maintainer-clean-gotools: maintainer-clean-gotools
33768
33769maintainer-clean-gotools:
33770 @: $(MAKE); $(unstage)
33771 @[ -f ./gotools/Makefile ] || exit 0; \
33772 r=`${PWD_COMMAND}`; export r; \
33773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33774 $(HOST_EXPORTS) \
33775 for flag in $(EXTRA_HOST_FLAGS) ; do \
33776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33777 done; \
22121df0 33778 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
33779 (cd $(HOST_SUBDIR)/gotools && \
33780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33782 "RANLIB=$${RANLIB}" \
33783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33784 maintainer-clean) \
33785 || exit 1
33786
33787@endif gotools
33788
33789
33790
0e65dfba
NA
33791.PHONY: configure-libctf maybe-configure-libctf
33792maybe-configure-libctf:
33793@if gcc-bootstrap
33794configure-libctf: stage_current
33795@endif gcc-bootstrap
33796@if libctf
33797maybe-configure-libctf: configure-libctf
33798configure-libctf:
33799 @r=`${PWD_COMMAND}`; export r; \
33800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33801 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33802 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33803 $(HOST_EXPORTS) \
33804 echo Configuring in $(HOST_SUBDIR)/libctf; \
33805 cd "$(HOST_SUBDIR)/libctf" || exit 1; \
33806 case $(srcdir) in \
33807 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33808 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33809 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33810 esac; \
33811 module_srcdir=libctf; \
33812 $(SHELL) \
33813 $$s/$$module_srcdir/configure \
33814 --srcdir=$${topdir}/$$module_srcdir \
33815 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33816 --target=${target_alias} \
33817 || exit 1
33818@endif libctf
33819
33820
33821
33822.PHONY: configure-stage1-libctf maybe-configure-stage1-libctf
33823maybe-configure-stage1-libctf:
33824@if libctf-bootstrap
33825maybe-configure-stage1-libctf: configure-stage1-libctf
33826configure-stage1-libctf:
33827 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33828 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33829 @r=`${PWD_COMMAND}`; export r; \
33830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33831 TFLAGS="$(STAGE1_TFLAGS)"; \
33832 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33833 $(HOST_EXPORTS) \
33834 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
33835 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
33836 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
33837 echo Configuring stage 1 in $(HOST_SUBDIR)/libctf; \
33838 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33839 cd $(HOST_SUBDIR)/libctf || exit 1; \
33840 case $(srcdir) in \
33841 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33842 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33843 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33844 esac; \
33845 module_srcdir=libctf; \
33846 $(SHELL) $$s/$$module_srcdir/configure \
33847 --srcdir=$${topdir}/$$module_srcdir \
33848 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33849 --target=${target_alias} \
33850 \
33851 $(STAGE1_CONFIGURE_FLAGS)
33852@endif libctf-bootstrap
33853
33854.PHONY: configure-stage2-libctf maybe-configure-stage2-libctf
33855maybe-configure-stage2-libctf:
33856@if libctf-bootstrap
33857maybe-configure-stage2-libctf: configure-stage2-libctf
33858configure-stage2-libctf:
33859 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33860 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33861 @r=`${PWD_COMMAND}`; export r; \
33862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33863 TFLAGS="$(STAGE2_TFLAGS)"; \
33864 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33865 $(HOST_EXPORTS) \
33866 $(POSTSTAGE1_HOST_EXPORTS) \
33867 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
33868 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
33869 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
33870 echo Configuring stage 2 in $(HOST_SUBDIR)/libctf; \
33871 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33872 cd $(HOST_SUBDIR)/libctf || exit 1; \
33873 case $(srcdir) in \
33874 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33875 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33876 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33877 esac; \
33878 module_srcdir=libctf; \
33879 $(SHELL) $$s/$$module_srcdir/configure \
33880 --srcdir=$${topdir}/$$module_srcdir \
33881 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33882 --target=${target_alias} \
33883 --with-build-libsubdir=$(HOST_SUBDIR) \
33884 $(STAGE2_CONFIGURE_FLAGS)
33885@endif libctf-bootstrap
33886
33887.PHONY: configure-stage3-libctf maybe-configure-stage3-libctf
33888maybe-configure-stage3-libctf:
33889@if libctf-bootstrap
33890maybe-configure-stage3-libctf: configure-stage3-libctf
33891configure-stage3-libctf:
33892 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33893 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33894 @r=`${PWD_COMMAND}`; export r; \
33895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33896 TFLAGS="$(STAGE3_TFLAGS)"; \
33897 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33898 $(HOST_EXPORTS) \
33899 $(POSTSTAGE1_HOST_EXPORTS) \
33900 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
33901 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
33902 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
33903 echo Configuring stage 3 in $(HOST_SUBDIR)/libctf; \
33904 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33905 cd $(HOST_SUBDIR)/libctf || exit 1; \
33906 case $(srcdir) in \
33907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33908 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33910 esac; \
33911 module_srcdir=libctf; \
33912 $(SHELL) $$s/$$module_srcdir/configure \
33913 --srcdir=$${topdir}/$$module_srcdir \
33914 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33915 --target=${target_alias} \
33916 --with-build-libsubdir=$(HOST_SUBDIR) \
33917 $(STAGE3_CONFIGURE_FLAGS)
33918@endif libctf-bootstrap
33919
33920.PHONY: configure-stage4-libctf maybe-configure-stage4-libctf
33921maybe-configure-stage4-libctf:
33922@if libctf-bootstrap
33923maybe-configure-stage4-libctf: configure-stage4-libctf
33924configure-stage4-libctf:
33925 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33926 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33927 @r=`${PWD_COMMAND}`; export r; \
33928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33929 TFLAGS="$(STAGE4_TFLAGS)"; \
33930 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33931 $(HOST_EXPORTS) \
33932 $(POSTSTAGE1_HOST_EXPORTS) \
33933 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
33934 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
33935 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
33936 echo Configuring stage 4 in $(HOST_SUBDIR)/libctf; \
33937 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33938 cd $(HOST_SUBDIR)/libctf || exit 1; \
33939 case $(srcdir) in \
33940 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33941 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33942 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33943 esac; \
33944 module_srcdir=libctf; \
33945 $(SHELL) $$s/$$module_srcdir/configure \
33946 --srcdir=$${topdir}/$$module_srcdir \
33947 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33948 --target=${target_alias} \
33949 --with-build-libsubdir=$(HOST_SUBDIR) \
33950 $(STAGE4_CONFIGURE_FLAGS)
33951@endif libctf-bootstrap
33952
33953.PHONY: configure-stageprofile-libctf maybe-configure-stageprofile-libctf
33954maybe-configure-stageprofile-libctf:
33955@if libctf-bootstrap
33956maybe-configure-stageprofile-libctf: configure-stageprofile-libctf
33957configure-stageprofile-libctf:
33958 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33959 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33960 @r=`${PWD_COMMAND}`; export r; \
33961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33962 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33963 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33964 $(HOST_EXPORTS) \
33965 $(POSTSTAGE1_HOST_EXPORTS) \
33966 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
33967 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
33968 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
33969 echo Configuring stage profile in $(HOST_SUBDIR)/libctf; \
33970 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33971 cd $(HOST_SUBDIR)/libctf || exit 1; \
33972 case $(srcdir) in \
33973 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33974 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33975 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33976 esac; \
33977 module_srcdir=libctf; \
33978 $(SHELL) $$s/$$module_srcdir/configure \
33979 --srcdir=$${topdir}/$$module_srcdir \
33980 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33981 --target=${target_alias} \
33982 --with-build-libsubdir=$(HOST_SUBDIR) \
33983 $(STAGEprofile_CONFIGURE_FLAGS)
33984@endif libctf-bootstrap
33985
33986.PHONY: configure-stagefeedback-libctf maybe-configure-stagefeedback-libctf
33987maybe-configure-stagefeedback-libctf:
33988@if libctf-bootstrap
33989maybe-configure-stagefeedback-libctf: configure-stagefeedback-libctf
33990configure-stagefeedback-libctf:
33991 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33992 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33993 @r=`${PWD_COMMAND}`; export r; \
33994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33995 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33996 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33997 $(HOST_EXPORTS) \
33998 $(POSTSTAGE1_HOST_EXPORTS) \
33999 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
34000 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
34001 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
34002 echo Configuring stage feedback in $(HOST_SUBDIR)/libctf; \
34003 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34004 cd $(HOST_SUBDIR)/libctf || exit 1; \
34005 case $(srcdir) in \
34006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34007 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34009 esac; \
34010 module_srcdir=libctf; \
34011 $(SHELL) $$s/$$module_srcdir/configure \
34012 --srcdir=$${topdir}/$$module_srcdir \
34013 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34014 --target=${target_alias} \
34015 --with-build-libsubdir=$(HOST_SUBDIR) \
34016 $(STAGEfeedback_CONFIGURE_FLAGS)
34017@endif libctf-bootstrap
34018
34019
34020
34021
34022
34023.PHONY: all-libctf maybe-all-libctf
34024maybe-all-libctf:
34025@if gcc-bootstrap
34026all-libctf: stage_current
34027@endif gcc-bootstrap
34028@if libctf
34029TARGET-libctf=all
34030maybe-all-libctf: all-libctf
34031all-libctf: configure-libctf
34032 @r=`${PWD_COMMAND}`; export r; \
34033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34034 $(HOST_EXPORTS) \
34035 (cd $(HOST_SUBDIR)/libctf && \
34036 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
34037 $(TARGET-libctf))
34038@endif libctf
34039
34040
34041
34042.PHONY: all-stage1-libctf maybe-all-stage1-libctf
34043.PHONY: clean-stage1-libctf maybe-clean-stage1-libctf
34044maybe-all-stage1-libctf:
34045maybe-clean-stage1-libctf:
34046@if libctf-bootstrap
34047maybe-all-stage1-libctf: all-stage1-libctf
34048all-stage1: all-stage1-libctf
34049TARGET-stage1-libctf = $(TARGET-libctf)
34050all-stage1-libctf: configure-stage1-libctf
34051 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34052 @r=`${PWD_COMMAND}`; export r; \
34053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34054 TFLAGS="$(STAGE1_TFLAGS)"; \
34055 $(HOST_EXPORTS) \
34056 cd $(HOST_SUBDIR)/libctf && \
34057 \
34058 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34059 CFLAGS="$(STAGE1_CFLAGS)" \
34060 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
34061 LIBCFLAGS="$(LIBCFLAGS)" \
34062 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34063 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34064 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34065 $(EXTRA_HOST_FLAGS) \
34066 $(STAGE1_FLAGS_TO_PASS) \
34067 TFLAGS="$(STAGE1_TFLAGS)" \
34068 $(TARGET-stage1-libctf)
34069
34070maybe-clean-stage1-libctf: clean-stage1-libctf
34071clean-stage1: clean-stage1-libctf
34072clean-stage1-libctf:
34073 @if [ $(current_stage) = stage1 ]; then \
34074 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34075 else \
34076 [ -f $(HOST_SUBDIR)/stage1-libctf/Makefile ] || exit 0; \
34077 $(MAKE) stage1-start; \
34078 fi; \
34079 cd $(HOST_SUBDIR)/libctf && \
34080 $(MAKE) $(EXTRA_HOST_FLAGS) \
34081 $(STAGE1_FLAGS_TO_PASS) clean
34082@endif libctf-bootstrap
34083
34084
34085.PHONY: all-stage2-libctf maybe-all-stage2-libctf
34086.PHONY: clean-stage2-libctf maybe-clean-stage2-libctf
34087maybe-all-stage2-libctf:
34088maybe-clean-stage2-libctf:
34089@if libctf-bootstrap
34090maybe-all-stage2-libctf: all-stage2-libctf
34091all-stage2: all-stage2-libctf
34092TARGET-stage2-libctf = $(TARGET-libctf)
34093all-stage2-libctf: configure-stage2-libctf
34094 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34095 @r=`${PWD_COMMAND}`; export r; \
34096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34097 TFLAGS="$(STAGE2_TFLAGS)"; \
34098 $(HOST_EXPORTS) \
34099 $(POSTSTAGE1_HOST_EXPORTS) \
34100 cd $(HOST_SUBDIR)/libctf && \
34101 \
34102 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34103 CFLAGS="$(STAGE2_CFLAGS)" \
34104 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
34105 LIBCFLAGS="$(STAGE2_CFLAGS)" \
34106 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34107 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34108 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34109 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34110 TFLAGS="$(STAGE2_TFLAGS)" \
34111 $(TARGET-stage2-libctf)
34112
34113maybe-clean-stage2-libctf: clean-stage2-libctf
34114clean-stage2: clean-stage2-libctf
34115clean-stage2-libctf:
34116 @if [ $(current_stage) = stage2 ]; then \
34117 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34118 else \
34119 [ -f $(HOST_SUBDIR)/stage2-libctf/Makefile ] || exit 0; \
34120 $(MAKE) stage2-start; \
34121 fi; \
34122 cd $(HOST_SUBDIR)/libctf && \
34123 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34124@endif libctf-bootstrap
34125
34126
34127.PHONY: all-stage3-libctf maybe-all-stage3-libctf
34128.PHONY: clean-stage3-libctf maybe-clean-stage3-libctf
34129maybe-all-stage3-libctf:
34130maybe-clean-stage3-libctf:
34131@if libctf-bootstrap
34132maybe-all-stage3-libctf: all-stage3-libctf
34133all-stage3: all-stage3-libctf
34134TARGET-stage3-libctf = $(TARGET-libctf)
34135all-stage3-libctf: configure-stage3-libctf
34136 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34137 @r=`${PWD_COMMAND}`; export r; \
34138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34139 TFLAGS="$(STAGE3_TFLAGS)"; \
34140 $(HOST_EXPORTS) \
34141 $(POSTSTAGE1_HOST_EXPORTS) \
34142 cd $(HOST_SUBDIR)/libctf && \
34143 \
34144 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34145 CFLAGS="$(STAGE3_CFLAGS)" \
34146 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
34147 LIBCFLAGS="$(STAGE3_CFLAGS)" \
34148 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34149 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34150 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34151 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34152 TFLAGS="$(STAGE3_TFLAGS)" \
34153 $(TARGET-stage3-libctf)
34154
34155maybe-clean-stage3-libctf: clean-stage3-libctf
34156clean-stage3: clean-stage3-libctf
34157clean-stage3-libctf:
34158 @if [ $(current_stage) = stage3 ]; then \
34159 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34160 else \
34161 [ -f $(HOST_SUBDIR)/stage3-libctf/Makefile ] || exit 0; \
34162 $(MAKE) stage3-start; \
34163 fi; \
34164 cd $(HOST_SUBDIR)/libctf && \
34165 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34166@endif libctf-bootstrap
34167
34168
34169.PHONY: all-stage4-libctf maybe-all-stage4-libctf
34170.PHONY: clean-stage4-libctf maybe-clean-stage4-libctf
34171maybe-all-stage4-libctf:
34172maybe-clean-stage4-libctf:
34173@if libctf-bootstrap
34174maybe-all-stage4-libctf: all-stage4-libctf
34175all-stage4: all-stage4-libctf
34176TARGET-stage4-libctf = $(TARGET-libctf)
34177all-stage4-libctf: configure-stage4-libctf
34178 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34179 @r=`${PWD_COMMAND}`; export r; \
34180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34181 TFLAGS="$(STAGE4_TFLAGS)"; \
34182 $(HOST_EXPORTS) \
34183 $(POSTSTAGE1_HOST_EXPORTS) \
34184 cd $(HOST_SUBDIR)/libctf && \
34185 \
34186 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34187 CFLAGS="$(STAGE4_CFLAGS)" \
34188 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
34189 LIBCFLAGS="$(STAGE4_CFLAGS)" \
34190 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34191 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34192 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34193 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34194 TFLAGS="$(STAGE4_TFLAGS)" \
34195 $(TARGET-stage4-libctf)
34196
34197maybe-clean-stage4-libctf: clean-stage4-libctf
34198clean-stage4: clean-stage4-libctf
34199clean-stage4-libctf:
34200 @if [ $(current_stage) = stage4 ]; then \
34201 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34202 else \
34203 [ -f $(HOST_SUBDIR)/stage4-libctf/Makefile ] || exit 0; \
34204 $(MAKE) stage4-start; \
34205 fi; \
34206 cd $(HOST_SUBDIR)/libctf && \
34207 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34208@endif libctf-bootstrap
34209
34210
34211.PHONY: all-stageprofile-libctf maybe-all-stageprofile-libctf
34212.PHONY: clean-stageprofile-libctf maybe-clean-stageprofile-libctf
34213maybe-all-stageprofile-libctf:
34214maybe-clean-stageprofile-libctf:
34215@if libctf-bootstrap
34216maybe-all-stageprofile-libctf: all-stageprofile-libctf
34217all-stageprofile: all-stageprofile-libctf
34218TARGET-stageprofile-libctf = $(TARGET-libctf)
34219all-stageprofile-libctf: configure-stageprofile-libctf
34220 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34221 @r=`${PWD_COMMAND}`; export r; \
34222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34223 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34224 $(HOST_EXPORTS) \
34225 $(POSTSTAGE1_HOST_EXPORTS) \
34226 cd $(HOST_SUBDIR)/libctf && \
34227 \
34228 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34229 CFLAGS="$(STAGEprofile_CFLAGS)" \
34230 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
34231 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
34232 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34233 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34234 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34235 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34236 TFLAGS="$(STAGEprofile_TFLAGS)" \
34237 $(TARGET-stageprofile-libctf)
34238
34239maybe-clean-stageprofile-libctf: clean-stageprofile-libctf
34240clean-stageprofile: clean-stageprofile-libctf
34241clean-stageprofile-libctf:
34242 @if [ $(current_stage) = stageprofile ]; then \
34243 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34244 else \
34245 [ -f $(HOST_SUBDIR)/stageprofile-libctf/Makefile ] || exit 0; \
34246 $(MAKE) stageprofile-start; \
34247 fi; \
34248 cd $(HOST_SUBDIR)/libctf && \
34249 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34250@endif libctf-bootstrap
34251
34252
34253.PHONY: all-stagefeedback-libctf maybe-all-stagefeedback-libctf
34254.PHONY: clean-stagefeedback-libctf maybe-clean-stagefeedback-libctf
34255maybe-all-stagefeedback-libctf:
34256maybe-clean-stagefeedback-libctf:
34257@if libctf-bootstrap
34258maybe-all-stagefeedback-libctf: all-stagefeedback-libctf
34259all-stagefeedback: all-stagefeedback-libctf
34260TARGET-stagefeedback-libctf = $(TARGET-libctf)
34261all-stagefeedback-libctf: configure-stagefeedback-libctf
34262 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34263 @r=`${PWD_COMMAND}`; export r; \
34264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34265 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34266 $(HOST_EXPORTS) \
34267 $(POSTSTAGE1_HOST_EXPORTS) \
34268 cd $(HOST_SUBDIR)/libctf && \
34269 \
34270 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34271 CFLAGS="$(STAGEfeedback_CFLAGS)" \
34272 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
34273 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
34274 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34275 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34276 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34277 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34278 TFLAGS="$(STAGEfeedback_TFLAGS)" \
34279 $(TARGET-stagefeedback-libctf)
34280
34281maybe-clean-stagefeedback-libctf: clean-stagefeedback-libctf
34282clean-stagefeedback: clean-stagefeedback-libctf
34283clean-stagefeedback-libctf:
34284 @if [ $(current_stage) = stagefeedback ]; then \
34285 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34286 else \
34287 [ -f $(HOST_SUBDIR)/stagefeedback-libctf/Makefile ] || exit 0; \
34288 $(MAKE) stagefeedback-start; \
34289 fi; \
34290 cd $(HOST_SUBDIR)/libctf && \
34291 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34292@endif libctf-bootstrap
34293
34294
34295
34296
34297
34298.PHONY: check-libctf maybe-check-libctf
34299maybe-check-libctf:
34300@if libctf
34301maybe-check-libctf: check-libctf
34302
34303check-libctf:
34304
34305@endif libctf
34306
34307.PHONY: install-libctf maybe-install-libctf
34308maybe-install-libctf:
34309@if libctf
34310maybe-install-libctf: install-libctf
34311
87279e3c
NA
34312install-libctf: installdirs
34313 @: $(MAKE); $(unstage)
34314 @r=`${PWD_COMMAND}`; export r; \
34315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34316 $(HOST_EXPORTS) \
34317 (cd $(HOST_SUBDIR)/libctf && \
34318 $(MAKE) $(FLAGS_TO_PASS) install)
0e65dfba
NA
34319
34320@endif libctf
34321
34322.PHONY: install-strip-libctf maybe-install-strip-libctf
34323maybe-install-strip-libctf:
34324@if libctf
34325maybe-install-strip-libctf: install-strip-libctf
34326
87279e3c
NA
34327install-strip-libctf: installdirs
34328 @: $(MAKE); $(unstage)
34329 @r=`${PWD_COMMAND}`; export r; \
34330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34331 $(HOST_EXPORTS) \
34332 (cd $(HOST_SUBDIR)/libctf && \
34333 $(MAKE) $(FLAGS_TO_PASS) install-strip)
0e65dfba
NA
34334
34335@endif libctf
34336
34337# Other targets (info, dvi, pdf, etc.)
34338
34339.PHONY: maybe-info-libctf info-libctf
34340maybe-info-libctf:
34341@if libctf
34342maybe-info-libctf: info-libctf
34343
34344info-libctf: \
34345 configure-libctf
34346 @[ -f ./libctf/Makefile ] || exit 0; \
34347 r=`${PWD_COMMAND}`; export r; \
34348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34349 $(HOST_EXPORTS) \
34350 for flag in $(EXTRA_HOST_FLAGS) ; do \
34351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34352 done; \
34353 echo "Doing info in libctf"; \
34354 (cd $(HOST_SUBDIR)/libctf && \
34355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34357 "RANLIB=$${RANLIB}" \
34358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34359 info) \
34360 || exit 1
34361
34362@endif libctf
34363
34364.PHONY: maybe-dvi-libctf dvi-libctf
34365maybe-dvi-libctf:
34366@if libctf
34367maybe-dvi-libctf: dvi-libctf
34368
34369dvi-libctf: \
34370 configure-libctf
34371 @[ -f ./libctf/Makefile ] || exit 0; \
34372 r=`${PWD_COMMAND}`; export r; \
34373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34374 $(HOST_EXPORTS) \
34375 for flag in $(EXTRA_HOST_FLAGS) ; do \
34376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34377 done; \
34378 echo "Doing dvi in libctf"; \
34379 (cd $(HOST_SUBDIR)/libctf && \
34380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34382 "RANLIB=$${RANLIB}" \
34383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34384 dvi) \
34385 || exit 1
34386
34387@endif libctf
34388
34389.PHONY: maybe-pdf-libctf pdf-libctf
34390maybe-pdf-libctf:
34391@if libctf
34392maybe-pdf-libctf: pdf-libctf
34393
34394pdf-libctf: \
34395 configure-libctf
34396 @[ -f ./libctf/Makefile ] || exit 0; \
34397 r=`${PWD_COMMAND}`; export r; \
34398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34399 $(HOST_EXPORTS) \
34400 for flag in $(EXTRA_HOST_FLAGS) ; do \
34401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34402 done; \
34403 echo "Doing pdf in libctf"; \
34404 (cd $(HOST_SUBDIR)/libctf && \
34405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34407 "RANLIB=$${RANLIB}" \
34408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34409 pdf) \
34410 || exit 1
34411
34412@endif libctf
34413
34414.PHONY: maybe-html-libctf html-libctf
34415maybe-html-libctf:
34416@if libctf
34417maybe-html-libctf: html-libctf
34418
34419html-libctf: \
34420 configure-libctf
34421 @[ -f ./libctf/Makefile ] || exit 0; \
34422 r=`${PWD_COMMAND}`; export r; \
34423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34424 $(HOST_EXPORTS) \
34425 for flag in $(EXTRA_HOST_FLAGS) ; do \
34426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34427 done; \
34428 echo "Doing html in libctf"; \
34429 (cd $(HOST_SUBDIR)/libctf && \
34430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34432 "RANLIB=$${RANLIB}" \
34433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34434 html) \
34435 || exit 1
34436
34437@endif libctf
34438
34439.PHONY: maybe-TAGS-libctf TAGS-libctf
34440maybe-TAGS-libctf:
34441@if libctf
34442maybe-TAGS-libctf: TAGS-libctf
34443
34444TAGS-libctf: \
34445 configure-libctf
34446 @[ -f ./libctf/Makefile ] || exit 0; \
34447 r=`${PWD_COMMAND}`; export r; \
34448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34449 $(HOST_EXPORTS) \
34450 for flag in $(EXTRA_HOST_FLAGS) ; do \
34451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34452 done; \
34453 echo "Doing TAGS in libctf"; \
34454 (cd $(HOST_SUBDIR)/libctf && \
34455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34457 "RANLIB=$${RANLIB}" \
34458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34459 TAGS) \
34460 || exit 1
34461
34462@endif libctf
34463
34464.PHONY: maybe-install-info-libctf install-info-libctf
34465maybe-install-info-libctf:
34466@if libctf
34467maybe-install-info-libctf: install-info-libctf
34468
34469install-info-libctf: \
34470 configure-libctf \
34471 info-libctf
34472 @[ -f ./libctf/Makefile ] || exit 0; \
34473 r=`${PWD_COMMAND}`; export r; \
34474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34475 $(HOST_EXPORTS) \
34476 for flag in $(EXTRA_HOST_FLAGS) ; do \
34477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34478 done; \
34479 echo "Doing install-info in libctf"; \
34480 (cd $(HOST_SUBDIR)/libctf && \
34481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34483 "RANLIB=$${RANLIB}" \
34484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34485 install-info) \
34486 || exit 1
34487
34488@endif libctf
34489
34490.PHONY: maybe-install-pdf-libctf install-pdf-libctf
34491maybe-install-pdf-libctf:
34492@if libctf
34493maybe-install-pdf-libctf: install-pdf-libctf
34494
34495install-pdf-libctf: \
34496 configure-libctf \
34497 pdf-libctf
34498 @[ -f ./libctf/Makefile ] || exit 0; \
34499 r=`${PWD_COMMAND}`; export r; \
34500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34501 $(HOST_EXPORTS) \
34502 for flag in $(EXTRA_HOST_FLAGS) ; do \
34503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34504 done; \
34505 echo "Doing install-pdf in libctf"; \
34506 (cd $(HOST_SUBDIR)/libctf && \
34507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34509 "RANLIB=$${RANLIB}" \
34510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34511 install-pdf) \
34512 || exit 1
34513
34514@endif libctf
34515
34516.PHONY: maybe-install-html-libctf install-html-libctf
34517maybe-install-html-libctf:
34518@if libctf
34519maybe-install-html-libctf: install-html-libctf
34520
34521install-html-libctf: \
34522 configure-libctf \
34523 html-libctf
34524 @[ -f ./libctf/Makefile ] || exit 0; \
34525 r=`${PWD_COMMAND}`; export r; \
34526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34527 $(HOST_EXPORTS) \
34528 for flag in $(EXTRA_HOST_FLAGS) ; do \
34529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34530 done; \
34531 echo "Doing install-html in libctf"; \
34532 (cd $(HOST_SUBDIR)/libctf && \
34533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34535 "RANLIB=$${RANLIB}" \
34536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34537 install-html) \
34538 || exit 1
34539
34540@endif libctf
34541
34542.PHONY: maybe-installcheck-libctf installcheck-libctf
34543maybe-installcheck-libctf:
34544@if libctf
34545maybe-installcheck-libctf: installcheck-libctf
34546
34547installcheck-libctf: \
34548 configure-libctf
34549 @[ -f ./libctf/Makefile ] || exit 0; \
34550 r=`${PWD_COMMAND}`; export r; \
34551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34552 $(HOST_EXPORTS) \
34553 for flag in $(EXTRA_HOST_FLAGS) ; do \
34554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34555 done; \
34556 echo "Doing installcheck in libctf"; \
34557 (cd $(HOST_SUBDIR)/libctf && \
34558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34560 "RANLIB=$${RANLIB}" \
34561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34562 installcheck) \
34563 || exit 1
34564
34565@endif libctf
34566
34567.PHONY: maybe-mostlyclean-libctf mostlyclean-libctf
34568maybe-mostlyclean-libctf:
34569@if libctf
34570maybe-mostlyclean-libctf: mostlyclean-libctf
34571
34572mostlyclean-libctf:
34573 @[ -f ./libctf/Makefile ] || exit 0; \
34574 r=`${PWD_COMMAND}`; export r; \
34575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34576 $(HOST_EXPORTS) \
34577 for flag in $(EXTRA_HOST_FLAGS) ; do \
34578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34579 done; \
34580 echo "Doing mostlyclean in libctf"; \
34581 (cd $(HOST_SUBDIR)/libctf && \
34582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34584 "RANLIB=$${RANLIB}" \
34585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34586 mostlyclean) \
34587 || exit 1
34588
34589@endif libctf
34590
34591.PHONY: maybe-clean-libctf clean-libctf
34592maybe-clean-libctf:
34593@if libctf
34594maybe-clean-libctf: clean-libctf
34595
34596clean-libctf:
34597 @[ -f ./libctf/Makefile ] || exit 0; \
34598 r=`${PWD_COMMAND}`; export r; \
34599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34600 $(HOST_EXPORTS) \
34601 for flag in $(EXTRA_HOST_FLAGS) ; do \
34602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34603 done; \
34604 echo "Doing clean in libctf"; \
34605 (cd $(HOST_SUBDIR)/libctf && \
34606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34608 "RANLIB=$${RANLIB}" \
34609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34610 clean) \
34611 || exit 1
34612
34613@endif libctf
34614
34615.PHONY: maybe-distclean-libctf distclean-libctf
34616maybe-distclean-libctf:
34617@if libctf
34618maybe-distclean-libctf: distclean-libctf
34619
34620distclean-libctf:
34621 @[ -f ./libctf/Makefile ] || exit 0; \
34622 r=`${PWD_COMMAND}`; export r; \
34623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34624 $(HOST_EXPORTS) \
34625 for flag in $(EXTRA_HOST_FLAGS) ; do \
34626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34627 done; \
34628 echo "Doing distclean in libctf"; \
34629 (cd $(HOST_SUBDIR)/libctf && \
34630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34632 "RANLIB=$${RANLIB}" \
34633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34634 distclean) \
34635 || exit 1
34636
34637@endif libctf
34638
34639.PHONY: maybe-maintainer-clean-libctf maintainer-clean-libctf
34640maybe-maintainer-clean-libctf:
34641@if libctf
34642maybe-maintainer-clean-libctf: maintainer-clean-libctf
34643
34644maintainer-clean-libctf:
34645 @[ -f ./libctf/Makefile ] || exit 0; \
34646 r=`${PWD_COMMAND}`; export r; \
34647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34648 $(HOST_EXPORTS) \
34649 for flag in $(EXTRA_HOST_FLAGS) ; do \
34650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34651 done; \
34652 echo "Doing maintainer-clean in libctf"; \
34653 (cd $(HOST_SUBDIR)/libctf && \
34654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34656 "RANLIB=$${RANLIB}" \
34657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34658 maintainer-clean) \
34659 || exit 1
34660
34661@endif libctf
34662
34663
34664
1b6c0831
L
34665# ---------------------------------------
34666# Modules which run on the target machine
34667# ---------------------------------------
34668
34669
34670
34671
34672.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
34673maybe-configure-target-libstdc++-v3:
34674@if gcc-bootstrap
34675configure-target-libstdc++-v3: stage_current
34676@endif gcc-bootstrap
34677@if target-libstdc++-v3
34678maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
34679configure-target-libstdc++-v3:
34680 @r=`${PWD_COMMAND}`; export r; \
34681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34682 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
34683 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
34684 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34685 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34686 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34687 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34688 else \
34689 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34690 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34691 fi; \
34692 else \
34693 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34694 fi; \
34695 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 34696 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34697 $(RAW_CXX_TARGET_EXPORTS) \
34698 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
34699 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
34700 case $(srcdir) in \
34701 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34702 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34703 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34704 esac; \
34705 module_srcdir=libstdc++-v3; \
34706 rm -f no-such-file || : ; \
34707 CONFIG_SITE=no-such-file $(SHELL) \
34708 $$s/$$module_srcdir/configure \
34709 --srcdir=$${topdir}/$$module_srcdir \
34710 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34711 --target=${target_alias} \
34712 || exit 1
34713@endif target-libstdc++-v3
34714
34715
34716
34717.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
34718maybe-configure-stage1-target-libstdc++-v3:
34719@if target-libstdc++-v3-bootstrap
34720maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
34721configure-stage1-target-libstdc++-v3:
34722 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34723 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34724 @r=`${PWD_COMMAND}`; export r; \
34725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34726 TFLAGS="$(STAGE1_TFLAGS)"; \
34727 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34728 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34729 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34730 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34731 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34732 else \
34733 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34734 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34735 fi; \
34736 else \
34737 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34738 fi; \
34739 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34740 $(RAW_CXX_TARGET_EXPORTS) \
34741 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34742 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34743 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34744 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
34745 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34746 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34747 case $(srcdir) in \
34748 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34749 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34750 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34751 esac; \
34752 module_srcdir=libstdc++-v3; \
34753 $(SHELL) $$s/$$module_srcdir/configure \
34754 --srcdir=$${topdir}/$$module_srcdir \
34755 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34756 --target=${target_alias} \
34757 \
34758 $(STAGE1_CONFIGURE_FLAGS)
34759@endif target-libstdc++-v3-bootstrap
34760
34761.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
34762maybe-configure-stage2-target-libstdc++-v3:
34763@if target-libstdc++-v3-bootstrap
34764maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
34765configure-stage2-target-libstdc++-v3:
34766 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34767 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34768 @r=`${PWD_COMMAND}`; export r; \
34769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34770 TFLAGS="$(STAGE2_TFLAGS)"; \
34771 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34772 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34773 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34774 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34775 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34776 else \
34777 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34778 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34779 fi; \
34780 else \
34781 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34782 fi; \
34783 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34784 $(RAW_CXX_TARGET_EXPORTS) \
34785 \
34786 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34787 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34788 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34789 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
34790 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34791 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34792 case $(srcdir) in \
34793 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34794 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34795 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34796 esac; \
34797 module_srcdir=libstdc++-v3; \
34798 $(SHELL) $$s/$$module_srcdir/configure \
34799 --srcdir=$${topdir}/$$module_srcdir \
34800 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34801 --target=${target_alias} \
22121df0 34802 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34803 $(STAGE2_CONFIGURE_FLAGS)
34804@endif target-libstdc++-v3-bootstrap
34805
34806.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
34807maybe-configure-stage3-target-libstdc++-v3:
34808@if target-libstdc++-v3-bootstrap
34809maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
34810configure-stage3-target-libstdc++-v3:
34811 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34812 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34813 @r=`${PWD_COMMAND}`; export r; \
34814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34815 TFLAGS="$(STAGE3_TFLAGS)"; \
34816 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34817 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34818 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34819 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34820 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34821 else \
34822 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34823 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34824 fi; \
34825 else \
34826 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34827 fi; \
34828 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34829 $(RAW_CXX_TARGET_EXPORTS) \
34830 \
34831 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34832 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34833 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34834 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
34835 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34836 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34837 case $(srcdir) in \
34838 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34839 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34840 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34841 esac; \
34842 module_srcdir=libstdc++-v3; \
34843 $(SHELL) $$s/$$module_srcdir/configure \
34844 --srcdir=$${topdir}/$$module_srcdir \
34845 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34846 --target=${target_alias} \
22121df0 34847 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34848 $(STAGE3_CONFIGURE_FLAGS)
34849@endif target-libstdc++-v3-bootstrap
34850
34851.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
34852maybe-configure-stage4-target-libstdc++-v3:
34853@if target-libstdc++-v3-bootstrap
34854maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
34855configure-stage4-target-libstdc++-v3:
34856 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34857 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34858 @r=`${PWD_COMMAND}`; export r; \
34859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34860 TFLAGS="$(STAGE4_TFLAGS)"; \
34861 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34862 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34863 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34864 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34865 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34866 else \
34867 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34868 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34869 fi; \
34870 else \
34871 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34872 fi; \
34873 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34874 $(RAW_CXX_TARGET_EXPORTS) \
34875 \
34876 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34877 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34878 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34879 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
34880 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34881 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34882 case $(srcdir) in \
34883 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34884 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34885 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34886 esac; \
34887 module_srcdir=libstdc++-v3; \
34888 $(SHELL) $$s/$$module_srcdir/configure \
34889 --srcdir=$${topdir}/$$module_srcdir \
34890 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34891 --target=${target_alias} \
22121df0 34892 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34893 $(STAGE4_CONFIGURE_FLAGS)
34894@endif target-libstdc++-v3-bootstrap
34895
34896.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
34897maybe-configure-stageprofile-target-libstdc++-v3:
34898@if target-libstdc++-v3-bootstrap
34899maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
34900configure-stageprofile-target-libstdc++-v3:
34901 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34902 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34903 @r=`${PWD_COMMAND}`; export r; \
34904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34905 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34906 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34907 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34908 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34909 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34910 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34911 else \
34912 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34913 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34914 fi; \
34915 else \
34916 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34917 fi; \
34918 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34919 $(RAW_CXX_TARGET_EXPORTS) \
34920 \
34921 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34922 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34923 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34924 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
34925 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34926 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34927 case $(srcdir) in \
34928 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34929 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34930 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34931 esac; \
34932 module_srcdir=libstdc++-v3; \
34933 $(SHELL) $$s/$$module_srcdir/configure \
34934 --srcdir=$${topdir}/$$module_srcdir \
34935 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34936 --target=${target_alias} \
22121df0 34937 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34938 $(STAGEprofile_CONFIGURE_FLAGS)
34939@endif target-libstdc++-v3-bootstrap
34940
34941.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
34942maybe-configure-stagefeedback-target-libstdc++-v3:
34943@if target-libstdc++-v3-bootstrap
34944maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
34945configure-stagefeedback-target-libstdc++-v3:
34946 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34947 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34948 @r=`${PWD_COMMAND}`; export r; \
34949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34950 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34951 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34952 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34953 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34954 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34955 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34956 else \
34957 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34958 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34959 fi; \
34960 else \
34961 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34962 fi; \
34963 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34964 $(RAW_CXX_TARGET_EXPORTS) \
34965 \
34966 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34967 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34968 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34969 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
34970 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34971 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34972 case $(srcdir) in \
34973 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34974 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34975 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34976 esac; \
34977 module_srcdir=libstdc++-v3; \
34978 $(SHELL) $$s/$$module_srcdir/configure \
34979 --srcdir=$${topdir}/$$module_srcdir \
34980 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34981 --target=${target_alias} \
22121df0 34982 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34983 $(STAGEfeedback_CONFIGURE_FLAGS)
34984@endif target-libstdc++-v3-bootstrap
34985
34986
34987
34988
34989
34990.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
34991maybe-all-target-libstdc++-v3:
34992@if gcc-bootstrap
34993all-target-libstdc++-v3: stage_current
34994@endif gcc-bootstrap
34995@if target-libstdc++-v3
34996TARGET-target-libstdc++-v3=all
34997maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
34998all-target-libstdc++-v3: configure-target-libstdc++-v3
34999 @r=`${PWD_COMMAND}`; export r; \
35000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35001 $(RAW_CXX_TARGET_EXPORTS) \
35002 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35003 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35004 $(TARGET-target-libstdc++-v3))
35005@endif target-libstdc++-v3
35006
35007
35008
35009.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
35010.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
35011maybe-all-stage1-target-libstdc++-v3:
35012maybe-clean-stage1-target-libstdc++-v3:
35013@if target-libstdc++-v3-bootstrap
35014maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
35015all-stage1: all-stage1-target-libstdc++-v3
35016TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35017all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
35018 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35019 @r=`${PWD_COMMAND}`; export r; \
35020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35021 TFLAGS="$(STAGE1_TFLAGS)"; \
35022 $(RAW_CXX_TARGET_EXPORTS) \
35023 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35024 \
1b6c0831
L
35025 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35026 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35027 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35028 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35029 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35030 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35031 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35032 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35033 \
05a13254 35034 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
35035 $(TARGET-stage1-target-libstdc++-v3)
35036
35037maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
35038clean-stage1: clean-stage1-target-libstdc++-v3
35039clean-stage1-target-libstdc++-v3:
35040 @if [ $(current_stage) = stage1 ]; then \
35041 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35042 else \
35043 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
35044 $(MAKE) stage1-start; \
35045 fi; \
35046 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35047 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35048 clean
35049@endif target-libstdc++-v3-bootstrap
35050
35051
35052.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
35053.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
35054maybe-all-stage2-target-libstdc++-v3:
35055maybe-clean-stage2-target-libstdc++-v3:
35056@if target-libstdc++-v3-bootstrap
35057maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
35058all-stage2: all-stage2-target-libstdc++-v3
35059TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35060all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
35061 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35062 @r=`${PWD_COMMAND}`; export r; \
35063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35064 TFLAGS="$(STAGE2_TFLAGS)"; \
35065 $(RAW_CXX_TARGET_EXPORTS) \
35066 \
35067 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35068 \
1b6c0831
L
35069 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35070 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35071 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35072 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35073 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35074 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35075 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35076 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35077 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
35078 $(TARGET-stage2-target-libstdc++-v3)
35079
35080maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
35081clean-stage2: clean-stage2-target-libstdc++-v3
35082clean-stage2-target-libstdc++-v3:
35083 @if [ $(current_stage) = stage2 ]; then \
35084 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35085 else \
35086 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
35087 $(MAKE) stage2-start; \
35088 fi; \
35089 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35090 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35091@endif target-libstdc++-v3-bootstrap
35092
35093
35094.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
35095.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
35096maybe-all-stage3-target-libstdc++-v3:
35097maybe-clean-stage3-target-libstdc++-v3:
35098@if target-libstdc++-v3-bootstrap
35099maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
35100all-stage3: all-stage3-target-libstdc++-v3
35101TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35102all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
35103 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35104 @r=`${PWD_COMMAND}`; export r; \
35105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35106 TFLAGS="$(STAGE3_TFLAGS)"; \
35107 $(RAW_CXX_TARGET_EXPORTS) \
35108 \
35109 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35110 \
1b6c0831
L
35111 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35112 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35113 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35114 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35115 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35116 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35117 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35118 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35119 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
35120 $(TARGET-stage3-target-libstdc++-v3)
35121
35122maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
35123clean-stage3: clean-stage3-target-libstdc++-v3
35124clean-stage3-target-libstdc++-v3:
35125 @if [ $(current_stage) = stage3 ]; then \
35126 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35127 else \
35128 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
35129 $(MAKE) stage3-start; \
35130 fi; \
35131 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35132 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35133@endif target-libstdc++-v3-bootstrap
35134
35135
35136.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
35137.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
35138maybe-all-stage4-target-libstdc++-v3:
35139maybe-clean-stage4-target-libstdc++-v3:
35140@if target-libstdc++-v3-bootstrap
35141maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
35142all-stage4: all-stage4-target-libstdc++-v3
35143TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35144all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
35145 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35146 @r=`${PWD_COMMAND}`; export r; \
35147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35148 TFLAGS="$(STAGE4_TFLAGS)"; \
35149 $(RAW_CXX_TARGET_EXPORTS) \
35150 \
35151 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35152 \
1b6c0831
L
35153 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35154 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35155 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35156 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35157 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35158 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35159 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35160 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35161 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
35162 $(TARGET-stage4-target-libstdc++-v3)
35163
35164maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
35165clean-stage4: clean-stage4-target-libstdc++-v3
35166clean-stage4-target-libstdc++-v3:
35167 @if [ $(current_stage) = stage4 ]; then \
35168 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35169 else \
35170 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
35171 $(MAKE) stage4-start; \
35172 fi; \
35173 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35174 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35175@endif target-libstdc++-v3-bootstrap
35176
35177
35178.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
35179.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
35180maybe-all-stageprofile-target-libstdc++-v3:
35181maybe-clean-stageprofile-target-libstdc++-v3:
35182@if target-libstdc++-v3-bootstrap
35183maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
35184all-stageprofile: all-stageprofile-target-libstdc++-v3
35185TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35186all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
35187 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35188 @r=`${PWD_COMMAND}`; export r; \
35189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35190 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35191 $(RAW_CXX_TARGET_EXPORTS) \
35192 \
35193 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35194 \
1b6c0831
L
35195 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35196 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35197 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35198 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35199 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35200 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35201 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35202 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35203 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
35204 $(TARGET-stageprofile-target-libstdc++-v3)
35205
35206maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
35207clean-stageprofile: clean-stageprofile-target-libstdc++-v3
35208clean-stageprofile-target-libstdc++-v3:
35209 @if [ $(current_stage) = stageprofile ]; then \
35210 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35211 else \
35212 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
35213 $(MAKE) stageprofile-start; \
35214 fi; \
35215 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35216 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35217@endif target-libstdc++-v3-bootstrap
35218
35219
35220.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
35221.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
35222maybe-all-stagefeedback-target-libstdc++-v3:
35223maybe-clean-stagefeedback-target-libstdc++-v3:
35224@if target-libstdc++-v3-bootstrap
35225maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
35226all-stagefeedback: all-stagefeedback-target-libstdc++-v3
35227TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35228all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
35229 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35230 @r=`${PWD_COMMAND}`; export r; \
35231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35232 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35233 $(RAW_CXX_TARGET_EXPORTS) \
35234 \
35235 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35236 \
1b6c0831
L
35237 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35238 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35239 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35240 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35241 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35242 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35243 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35244 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35245 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
35246 $(TARGET-stagefeedback-target-libstdc++-v3)
35247
35248maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
35249clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
35250clean-stagefeedback-target-libstdc++-v3:
35251 @if [ $(current_stage) = stagefeedback ]; then \
35252 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35253 else \
35254 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
35255 $(MAKE) stagefeedback-start; \
35256 fi; \
35257 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35258 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35259@endif target-libstdc++-v3-bootstrap
35260
35261
35262
35263
35264
35265
35266.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
35267maybe-check-target-libstdc++-v3:
35268@if target-libstdc++-v3
35269maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
35270
35271check-target-libstdc++-v3:
35272 @: $(MAKE); $(unstage)
35273 @r=`${PWD_COMMAND}`; export r; \
35274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35275 $(RAW_CXX_TARGET_EXPORTS) \
35276 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35277 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
35278
35279@endif target-libstdc++-v3
35280
35281.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
35282maybe-install-target-libstdc++-v3:
35283@if target-libstdc++-v3
35284maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
35285
35286install-target-libstdc++-v3: installdirs
35287 @: $(MAKE); $(unstage)
35288 @r=`${PWD_COMMAND}`; export r; \
35289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35290 $(RAW_CXX_TARGET_EXPORTS) \
35291 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35292 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35293
35294@endif target-libstdc++-v3
35295
35296.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
35297maybe-install-strip-target-libstdc++-v3:
35298@if target-libstdc++-v3
35299maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
35300
35301install-strip-target-libstdc++-v3: installdirs
35302 @: $(MAKE); $(unstage)
35303 @r=`${PWD_COMMAND}`; export r; \
35304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35305 $(RAW_CXX_TARGET_EXPORTS) \
35306 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35307 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35308
35309@endif target-libstdc++-v3
35310
35311# Other targets (info, dvi, pdf, etc.)
35312
35313.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
35314maybe-info-target-libstdc++-v3:
35315@if target-libstdc++-v3
35316maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
35317
35318info-target-libstdc++-v3: \
35319 configure-target-libstdc++-v3
35320 @: $(MAKE); $(unstage)
22121df0 35321 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35322 r=`${PWD_COMMAND}`; export r; \
35323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35324 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35325 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35326 for flag in $(EXTRA_TARGET_FLAGS); do \
35327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35328 done; \
35329 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35332 "RANLIB=$${RANLIB}" \
35333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35334 info) \
35335 || exit 1
35336
35337@endif target-libstdc++-v3
35338
35339.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
35340maybe-dvi-target-libstdc++-v3:
35341@if target-libstdc++-v3
35342maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
35343
35344dvi-target-libstdc++-v3: \
35345 configure-target-libstdc++-v3
35346 @: $(MAKE); $(unstage)
22121df0 35347 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35348 r=`${PWD_COMMAND}`; export r; \
35349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35350 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35351 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35352 for flag in $(EXTRA_TARGET_FLAGS); do \
35353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35354 done; \
35355 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35358 "RANLIB=$${RANLIB}" \
35359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35360 dvi) \
35361 || exit 1
35362
35363@endif target-libstdc++-v3
35364
35365.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
35366maybe-pdf-target-libstdc++-v3:
35367@if target-libstdc++-v3
35368maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
35369
35370pdf-target-libstdc++-v3: \
35371 configure-target-libstdc++-v3
35372 @: $(MAKE); $(unstage)
22121df0 35373 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35374 r=`${PWD_COMMAND}`; export r; \
35375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35376 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35377 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35378 for flag in $(EXTRA_TARGET_FLAGS); do \
35379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35380 done; \
35381 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35384 "RANLIB=$${RANLIB}" \
35385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35386 pdf) \
35387 || exit 1
35388
35389@endif target-libstdc++-v3
35390
35391.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
35392maybe-html-target-libstdc++-v3:
35393@if target-libstdc++-v3
35394maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
35395
35396html-target-libstdc++-v3: \
35397 configure-target-libstdc++-v3
35398 @: $(MAKE); $(unstage)
22121df0 35399 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35400 r=`${PWD_COMMAND}`; export r; \
35401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35402 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35403 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35404 for flag in $(EXTRA_TARGET_FLAGS); do \
35405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35406 done; \
35407 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35410 "RANLIB=$${RANLIB}" \
35411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35412 html) \
35413 || exit 1
35414
35415@endif target-libstdc++-v3
35416
35417.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
35418maybe-TAGS-target-libstdc++-v3:
35419@if target-libstdc++-v3
35420maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
35421
35422TAGS-target-libstdc++-v3: \
35423 configure-target-libstdc++-v3
35424 @: $(MAKE); $(unstage)
22121df0 35425 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35426 r=`${PWD_COMMAND}`; export r; \
35427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35428 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35429 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35430 for flag in $(EXTRA_TARGET_FLAGS); do \
35431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35432 done; \
35433 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35436 "RANLIB=$${RANLIB}" \
35437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35438 TAGS) \
35439 || exit 1
35440
35441@endif target-libstdc++-v3
35442
35443.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
35444maybe-install-info-target-libstdc++-v3:
35445@if target-libstdc++-v3
35446maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
35447
35448install-info-target-libstdc++-v3: \
35449 configure-target-libstdc++-v3 \
35450 info-target-libstdc++-v3
35451 @: $(MAKE); $(unstage)
22121df0 35452 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35453 r=`${PWD_COMMAND}`; export r; \
35454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35455 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35456 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35457 for flag in $(EXTRA_TARGET_FLAGS); do \
35458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35459 done; \
35460 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35463 "RANLIB=$${RANLIB}" \
35464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35465 install-info) \
35466 || exit 1
35467
35468@endif target-libstdc++-v3
35469
35470.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
35471maybe-install-pdf-target-libstdc++-v3:
35472@if target-libstdc++-v3
35473maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
35474
35475install-pdf-target-libstdc++-v3: \
35476 configure-target-libstdc++-v3 \
35477 pdf-target-libstdc++-v3
35478 @: $(MAKE); $(unstage)
22121df0 35479 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35480 r=`${PWD_COMMAND}`; export r; \
35481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35482 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35483 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35484 for flag in $(EXTRA_TARGET_FLAGS); do \
35485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35486 done; \
35487 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35490 "RANLIB=$${RANLIB}" \
35491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35492 install-pdf) \
35493 || exit 1
35494
35495@endif target-libstdc++-v3
35496
35497.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
35498maybe-install-html-target-libstdc++-v3:
35499@if target-libstdc++-v3
35500maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
35501
35502install-html-target-libstdc++-v3: \
35503 configure-target-libstdc++-v3 \
35504 html-target-libstdc++-v3
35505 @: $(MAKE); $(unstage)
22121df0 35506 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35507 r=`${PWD_COMMAND}`; export r; \
35508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35509 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35510 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35511 for flag in $(EXTRA_TARGET_FLAGS); do \
35512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35513 done; \
35514 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35517 "RANLIB=$${RANLIB}" \
35518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35519 install-html) \
35520 || exit 1
35521
35522@endif target-libstdc++-v3
35523
35524.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
35525maybe-installcheck-target-libstdc++-v3:
35526@if target-libstdc++-v3
35527maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
35528
35529installcheck-target-libstdc++-v3: \
35530 configure-target-libstdc++-v3
35531 @: $(MAKE); $(unstage)
22121df0 35532 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35533 r=`${PWD_COMMAND}`; export r; \
35534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35535 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35536 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35537 for flag in $(EXTRA_TARGET_FLAGS); do \
35538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35539 done; \
35540 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35543 "RANLIB=$${RANLIB}" \
35544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35545 installcheck) \
35546 || exit 1
35547
35548@endif target-libstdc++-v3
35549
35550.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
35551maybe-mostlyclean-target-libstdc++-v3:
35552@if target-libstdc++-v3
35553maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
35554
35555mostlyclean-target-libstdc++-v3:
35556 @: $(MAKE); $(unstage)
22121df0 35557 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35558 r=`${PWD_COMMAND}`; export r; \
35559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35560 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35561 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35562 for flag in $(EXTRA_TARGET_FLAGS); do \
35563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35564 done; \
35565 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35568 "RANLIB=$${RANLIB}" \
35569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35570 mostlyclean) \
35571 || exit 1
35572
35573@endif target-libstdc++-v3
35574
35575.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
35576maybe-clean-target-libstdc++-v3:
35577@if target-libstdc++-v3
35578maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
35579
35580clean-target-libstdc++-v3:
35581 @: $(MAKE); $(unstage)
22121df0 35582 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35583 r=`${PWD_COMMAND}`; export r; \
35584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35585 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35586 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35587 for flag in $(EXTRA_TARGET_FLAGS); do \
35588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35589 done; \
35590 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35593 "RANLIB=$${RANLIB}" \
35594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35595 clean) \
35596 || exit 1
35597
35598@endif target-libstdc++-v3
35599
35600.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
35601maybe-distclean-target-libstdc++-v3:
35602@if target-libstdc++-v3
35603maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
35604
35605distclean-target-libstdc++-v3:
35606 @: $(MAKE); $(unstage)
22121df0 35607 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35608 r=`${PWD_COMMAND}`; export r; \
35609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35610 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35611 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35612 for flag in $(EXTRA_TARGET_FLAGS); do \
35613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35614 done; \
35615 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35618 "RANLIB=$${RANLIB}" \
35619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35620 distclean) \
35621 || exit 1
35622
35623@endif target-libstdc++-v3
35624
35625.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
35626maybe-maintainer-clean-target-libstdc++-v3:
35627@if target-libstdc++-v3
35628maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
35629
35630maintainer-clean-target-libstdc++-v3:
35631 @: $(MAKE); $(unstage)
22121df0 35632 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35633 r=`${PWD_COMMAND}`; export r; \
35634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35635 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35636 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35637 for flag in $(EXTRA_TARGET_FLAGS); do \
35638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35639 done; \
35640 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35643 "RANLIB=$${RANLIB}" \
35644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35645 maintainer-clean) \
35646 || exit 1
35647
35648@endif target-libstdc++-v3
35649
35650
35651
35652
35653
35654.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
35655maybe-configure-target-libsanitizer:
35656@if gcc-bootstrap
35657configure-target-libsanitizer: stage_current
35658@endif gcc-bootstrap
35659@if target-libsanitizer
35660maybe-configure-target-libsanitizer: configure-target-libsanitizer
35661configure-target-libsanitizer:
35662 @r=`${PWD_COMMAND}`; export r; \
35663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35664 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
35665 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
35666 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35667 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35668 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35669 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35670 else \
35671 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35672 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35673 fi; \
35674 else \
35675 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35676 fi; \
35677 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 35678 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35679 $(RAW_CXX_TARGET_EXPORTS) \
35680 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
35681 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
35682 case $(srcdir) in \
35683 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35684 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35685 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35686 esac; \
35687 module_srcdir=libsanitizer; \
35688 rm -f no-such-file || : ; \
35689 CONFIG_SITE=no-such-file $(SHELL) \
35690 $$s/$$module_srcdir/configure \
35691 --srcdir=$${topdir}/$$module_srcdir \
35692 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35693 --target=${target_alias} \
35694 || exit 1
35695@endif target-libsanitizer
35696
35697
35698
35699.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
35700maybe-configure-stage1-target-libsanitizer:
35701@if target-libsanitizer-bootstrap
35702maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
35703configure-stage1-target-libsanitizer:
35704 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35705 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35706 @r=`${PWD_COMMAND}`; export r; \
35707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35708 TFLAGS="$(STAGE1_TFLAGS)"; \
35709 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35710 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35711 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35712 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35713 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35714 else \
35715 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35716 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35717 fi; \
35718 else \
35719 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35720 fi; \
35721 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35722 $(RAW_CXX_TARGET_EXPORTS) \
35723 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35724 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35725 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35726 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
35727 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35728 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35729 case $(srcdir) in \
35730 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35731 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35732 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35733 esac; \
35734 module_srcdir=libsanitizer; \
35735 $(SHELL) $$s/$$module_srcdir/configure \
35736 --srcdir=$${topdir}/$$module_srcdir \
35737 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35738 --target=${target_alias} \
35739 \
35740 $(STAGE1_CONFIGURE_FLAGS)
35741@endif target-libsanitizer-bootstrap
35742
35743.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
35744maybe-configure-stage2-target-libsanitizer:
35745@if target-libsanitizer-bootstrap
35746maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
35747configure-stage2-target-libsanitizer:
35748 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35749 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35750 @r=`${PWD_COMMAND}`; export r; \
35751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35752 TFLAGS="$(STAGE2_TFLAGS)"; \
35753 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35754 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35755 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35756 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35757 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35758 else \
35759 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35760 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35761 fi; \
35762 else \
35763 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35764 fi; \
35765 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35766 $(RAW_CXX_TARGET_EXPORTS) \
35767 \
35768 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35769 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35770 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35771 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
35772 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35773 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35774 case $(srcdir) in \
35775 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35776 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35777 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35778 esac; \
35779 module_srcdir=libsanitizer; \
35780 $(SHELL) $$s/$$module_srcdir/configure \
35781 --srcdir=$${topdir}/$$module_srcdir \
35782 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35783 --target=${target_alias} \
22121df0 35784 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35785 $(STAGE2_CONFIGURE_FLAGS)
35786@endif target-libsanitizer-bootstrap
35787
35788.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
35789maybe-configure-stage3-target-libsanitizer:
35790@if target-libsanitizer-bootstrap
35791maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
35792configure-stage3-target-libsanitizer:
35793 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35794 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35795 @r=`${PWD_COMMAND}`; export r; \
35796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35797 TFLAGS="$(STAGE3_TFLAGS)"; \
35798 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35799 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35800 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35801 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35802 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35803 else \
35804 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35805 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35806 fi; \
35807 else \
35808 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35809 fi; \
35810 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35811 $(RAW_CXX_TARGET_EXPORTS) \
35812 \
35813 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35814 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35815 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35816 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
35817 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35818 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35819 case $(srcdir) in \
35820 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35821 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35822 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35823 esac; \
35824 module_srcdir=libsanitizer; \
35825 $(SHELL) $$s/$$module_srcdir/configure \
35826 --srcdir=$${topdir}/$$module_srcdir \
35827 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35828 --target=${target_alias} \
22121df0 35829 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35830 $(STAGE3_CONFIGURE_FLAGS)
35831@endif target-libsanitizer-bootstrap
35832
35833.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
35834maybe-configure-stage4-target-libsanitizer:
35835@if target-libsanitizer-bootstrap
35836maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
35837configure-stage4-target-libsanitizer:
35838 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35839 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35840 @r=`${PWD_COMMAND}`; export r; \
35841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35842 TFLAGS="$(STAGE4_TFLAGS)"; \
35843 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35844 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35845 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35846 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35847 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35848 else \
35849 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35850 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35851 fi; \
35852 else \
35853 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35854 fi; \
35855 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35856 $(RAW_CXX_TARGET_EXPORTS) \
35857 \
35858 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35859 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35860 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35861 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
35862 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35863 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35864 case $(srcdir) in \
35865 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35866 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35867 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35868 esac; \
35869 module_srcdir=libsanitizer; \
35870 $(SHELL) $$s/$$module_srcdir/configure \
35871 --srcdir=$${topdir}/$$module_srcdir \
35872 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35873 --target=${target_alias} \
22121df0 35874 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35875 $(STAGE4_CONFIGURE_FLAGS)
35876@endif target-libsanitizer-bootstrap
35877
35878.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
35879maybe-configure-stageprofile-target-libsanitizer:
35880@if target-libsanitizer-bootstrap
35881maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
35882configure-stageprofile-target-libsanitizer:
35883 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35884 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35885 @r=`${PWD_COMMAND}`; export r; \
35886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35887 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35888 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35889 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35890 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35891 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35892 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35893 else \
35894 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35895 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35896 fi; \
35897 else \
35898 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35899 fi; \
35900 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35901 $(RAW_CXX_TARGET_EXPORTS) \
35902 \
35903 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35904 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35905 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35906 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
35907 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35908 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35909 case $(srcdir) in \
35910 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35911 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35912 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35913 esac; \
35914 module_srcdir=libsanitizer; \
35915 $(SHELL) $$s/$$module_srcdir/configure \
35916 --srcdir=$${topdir}/$$module_srcdir \
35917 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35918 --target=${target_alias} \
22121df0 35919 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35920 $(STAGEprofile_CONFIGURE_FLAGS)
35921@endif target-libsanitizer-bootstrap
35922
35923.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
35924maybe-configure-stagefeedback-target-libsanitizer:
35925@if target-libsanitizer-bootstrap
35926maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
35927configure-stagefeedback-target-libsanitizer:
35928 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35929 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35930 @r=`${PWD_COMMAND}`; export r; \
35931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35932 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35933 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35934 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35935 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35936 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35937 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35938 else \
35939 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35940 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35941 fi; \
35942 else \
35943 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35944 fi; \
35945 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35946 $(RAW_CXX_TARGET_EXPORTS) \
35947 \
35948 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35949 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35950 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35951 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
35952 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35953 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35954 case $(srcdir) in \
35955 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35956 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35957 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35958 esac; \
35959 module_srcdir=libsanitizer; \
35960 $(SHELL) $$s/$$module_srcdir/configure \
35961 --srcdir=$${topdir}/$$module_srcdir \
35962 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35963 --target=${target_alias} \
22121df0 35964 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35965 $(STAGEfeedback_CONFIGURE_FLAGS)
35966@endif target-libsanitizer-bootstrap
35967
35968
35969
35970
35971
35972.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
35973maybe-all-target-libsanitizer:
35974@if gcc-bootstrap
35975all-target-libsanitizer: stage_current
35976@endif gcc-bootstrap
35977@if target-libsanitizer
35978TARGET-target-libsanitizer=all
35979maybe-all-target-libsanitizer: all-target-libsanitizer
35980all-target-libsanitizer: configure-target-libsanitizer
35981 @r=`${PWD_COMMAND}`; export r; \
35982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35983 $(RAW_CXX_TARGET_EXPORTS) \
35984 (cd $(TARGET_SUBDIR)/libsanitizer && \
35985 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35986 $(TARGET-target-libsanitizer))
35987@endif target-libsanitizer
35988
35989
35990
35991.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
35992.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
35993maybe-all-stage1-target-libsanitizer:
35994maybe-clean-stage1-target-libsanitizer:
35995@if target-libsanitizer-bootstrap
35996maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
35997all-stage1: all-stage1-target-libsanitizer
35998TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
35999all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
36000 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36001 @r=`${PWD_COMMAND}`; export r; \
36002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36003 TFLAGS="$(STAGE1_TFLAGS)"; \
36004 $(RAW_CXX_TARGET_EXPORTS) \
36005 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36006 \
1b6c0831
L
36007 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36008 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36009 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36010 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36011 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36012 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36013 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36014 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36015 \
05a13254 36016 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
36017 $(TARGET-stage1-target-libsanitizer)
36018
36019maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
36020clean-stage1: clean-stage1-target-libsanitizer
36021clean-stage1-target-libsanitizer:
36022 @if [ $(current_stage) = stage1 ]; then \
36023 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36024 else \
36025 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
36026 $(MAKE) stage1-start; \
36027 fi; \
36028 cd $(TARGET_SUBDIR)/libsanitizer && \
36029 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36030 clean
36031@endif target-libsanitizer-bootstrap
36032
36033
36034.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
36035.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
36036maybe-all-stage2-target-libsanitizer:
36037maybe-clean-stage2-target-libsanitizer:
36038@if target-libsanitizer-bootstrap
36039maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
36040all-stage2: all-stage2-target-libsanitizer
36041TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
36042all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
36043 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36044 @r=`${PWD_COMMAND}`; export r; \
36045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36046 TFLAGS="$(STAGE2_TFLAGS)"; \
36047 $(RAW_CXX_TARGET_EXPORTS) \
36048 \
36049 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36050 \
1b6c0831
L
36051 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36052 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36053 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36054 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36055 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36056 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36057 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36058 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36059 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
36060 $(TARGET-stage2-target-libsanitizer)
36061
36062maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
36063clean-stage2: clean-stage2-target-libsanitizer
36064clean-stage2-target-libsanitizer:
36065 @if [ $(current_stage) = stage2 ]; then \
36066 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36067 else \
36068 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
36069 $(MAKE) stage2-start; \
36070 fi; \
36071 cd $(TARGET_SUBDIR)/libsanitizer && \
36072 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36073@endif target-libsanitizer-bootstrap
36074
36075
36076.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
36077.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
36078maybe-all-stage3-target-libsanitizer:
36079maybe-clean-stage3-target-libsanitizer:
36080@if target-libsanitizer-bootstrap
36081maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
36082all-stage3: all-stage3-target-libsanitizer
36083TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
36084all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
36085 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36086 @r=`${PWD_COMMAND}`; export r; \
36087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36088 TFLAGS="$(STAGE3_TFLAGS)"; \
36089 $(RAW_CXX_TARGET_EXPORTS) \
36090 \
36091 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36092 \
1b6c0831
L
36093 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36094 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36095 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36096 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36097 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36098 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36099 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36100 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36101 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
36102 $(TARGET-stage3-target-libsanitizer)
36103
36104maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
36105clean-stage3: clean-stage3-target-libsanitizer
36106clean-stage3-target-libsanitizer:
36107 @if [ $(current_stage) = stage3 ]; then \
36108 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36109 else \
36110 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
36111 $(MAKE) stage3-start; \
36112 fi; \
36113 cd $(TARGET_SUBDIR)/libsanitizer && \
36114 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36115@endif target-libsanitizer-bootstrap
36116
36117
36118.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
36119.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
36120maybe-all-stage4-target-libsanitizer:
36121maybe-clean-stage4-target-libsanitizer:
36122@if target-libsanitizer-bootstrap
36123maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
36124all-stage4: all-stage4-target-libsanitizer
36125TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
36126all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
36127 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36128 @r=`${PWD_COMMAND}`; export r; \
36129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36130 TFLAGS="$(STAGE4_TFLAGS)"; \
36131 $(RAW_CXX_TARGET_EXPORTS) \
36132 \
36133 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36134 \
1b6c0831
L
36135 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36136 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36137 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36138 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
36139 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36140 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36141 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36142 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36143 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 36144 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 36145
1b6c0831
L
36146maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
36147clean-stage4: clean-stage4-target-libsanitizer
36148clean-stage4-target-libsanitizer:
e8a5fa9c 36149 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 36150 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36151 else \
1b6c0831 36152 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36153 $(MAKE) stage4-start; \
36154 fi; \
1b6c0831 36155 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36156 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36157@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36158
36159
1b6c0831
L
36160.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
36161.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
36162maybe-all-stageprofile-target-libsanitizer:
36163maybe-clean-stageprofile-target-libsanitizer:
36164@if target-libsanitizer-bootstrap
36165maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
36166all-stageprofile: all-stageprofile-target-libsanitizer
36167TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
36168all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
36169 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36170 @r=`${PWD_COMMAND}`; export r; \
36171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36172 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36173 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 36174 \
1b6c0831 36175 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36176 \
e8a5fa9c
RW
36177 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36178 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36179 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36180 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36181 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36182 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36183 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36184 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36185 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 36186 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 36187
1b6c0831
L
36188maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
36189clean-stageprofile: clean-stageprofile-target-libsanitizer
36190clean-stageprofile-target-libsanitizer:
e8a5fa9c 36191 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 36192 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36193 else \
1b6c0831 36194 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36195 $(MAKE) stageprofile-start; \
36196 fi; \
1b6c0831 36197 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36198 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36199@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36200
36201
1b6c0831
L
36202.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
36203.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
36204maybe-all-stagefeedback-target-libsanitizer:
36205maybe-clean-stagefeedback-target-libsanitizer:
36206@if target-libsanitizer-bootstrap
36207maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
36208all-stagefeedback: all-stagefeedback-target-libsanitizer
36209TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
36210all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
36211 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36212 @r=`${PWD_COMMAND}`; export r; \
36213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36214 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36215 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 36216 \
1b6c0831 36217 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36218 \
e8a5fa9c
RW
36219 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36220 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36221 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36222 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36223 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36224 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36225 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36226 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36227 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 36228 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 36229
1b6c0831
L
36230maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
36231clean-stagefeedback: clean-stagefeedback-target-libsanitizer
36232clean-stagefeedback-target-libsanitizer:
e8a5fa9c 36233 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 36234 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36235 else \
1b6c0831 36236 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36237 $(MAKE) stagefeedback-start; \
36238 fi; \
1b6c0831 36239 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36240 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36241@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36242
36243
36244
36245
d545f33b
PB
36246
36247
1b6c0831
L
36248.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
36249maybe-check-target-libsanitizer:
36250@if target-libsanitizer
36251maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 36252
1b6c0831 36253check-target-libsanitizer:
0aed8855 36254 @: $(MAKE); $(unstage)
b40e3958
L
36255 @r=`${PWD_COMMAND}`; export r; \
36256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36257 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36258 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 36259 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 36260
1b6c0831 36261@endif target-libsanitizer
3866be5d 36262
1b6c0831
L
36263.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
36264maybe-install-target-libsanitizer:
36265@if target-libsanitizer
36266maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 36267
1b6c0831 36268install-target-libsanitizer: installdirs
0aed8855 36269 @: $(MAKE); $(unstage)
b40e3958
L
36270 @r=`${PWD_COMMAND}`; export r; \
36271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36272 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36273 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 36274 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 36275
1b6c0831 36276@endif target-libsanitizer
e2b9e2dc 36277
1b6c0831
L
36278.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
36279maybe-install-strip-target-libsanitizer:
36280@if target-libsanitizer
36281maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 36282
1b6c0831 36283install-strip-target-libsanitizer: installdirs
9b980aa1
RW
36284 @: $(MAKE); $(unstage)
36285 @r=`${PWD_COMMAND}`; export r; \
36286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36287 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36288 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
36289 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36290
1b6c0831 36291@endif target-libsanitizer
9b980aa1 36292
56a8fe78 36293# Other targets (info, dvi, pdf, etc.)
3866be5d 36294
1b6c0831
L
36295.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
36296maybe-info-target-libsanitizer:
36297@if target-libsanitizer
36298maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 36299
1b6c0831
L
36300info-target-libsanitizer: \
36301 configure-target-libsanitizer
0aed8855 36302 @: $(MAKE); $(unstage)
22121df0 36303 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36304 r=`${PWD_COMMAND}`; export r; \
b40e3958 36305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36306 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36307 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36308 for flag in $(EXTRA_TARGET_FLAGS); do \
36309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36310 done; \
1b6c0831 36311 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36314 "RANLIB=$${RANLIB}" \
0c24b341 36315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36316 info) \
4fa63067 36317 || exit 1
3866be5d 36318
1b6c0831 36319@endif target-libsanitizer
3866be5d 36320
1b6c0831
L
36321.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
36322maybe-dvi-target-libsanitizer:
36323@if target-libsanitizer
36324maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 36325
1b6c0831
L
36326dvi-target-libsanitizer: \
36327 configure-target-libsanitizer
0aed8855 36328 @: $(MAKE); $(unstage)
22121df0 36329 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36330 r=`${PWD_COMMAND}`; export r; \
b40e3958 36331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36332 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36333 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36334 for flag in $(EXTRA_TARGET_FLAGS); do \
36335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36336 done; \
1b6c0831 36337 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36340 "RANLIB=$${RANLIB}" \
0c24b341 36341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36342 dvi) \
4fa63067 36343 || exit 1
3866be5d 36344
1b6c0831 36345@endif target-libsanitizer
3866be5d 36346
1b6c0831
L
36347.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
36348maybe-pdf-target-libsanitizer:
36349@if target-libsanitizer
36350maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 36351
1b6c0831
L
36352pdf-target-libsanitizer: \
36353 configure-target-libsanitizer
56a8fe78 36354 @: $(MAKE); $(unstage)
22121df0 36355 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
36356 r=`${PWD_COMMAND}`; export r; \
36357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36358 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36359 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
36360 for flag in $(EXTRA_TARGET_FLAGS); do \
36361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36362 done; \
1b6c0831 36363 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
36364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36366 "RANLIB=$${RANLIB}" \
0c24b341 36367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
36368 pdf) \
36369 || exit 1
36370
1b6c0831 36371@endif target-libsanitizer
56a8fe78 36372
1b6c0831
L
36373.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
36374maybe-html-target-libsanitizer:
36375@if target-libsanitizer
36376maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 36377
1b6c0831
L
36378html-target-libsanitizer: \
36379 configure-target-libsanitizer
0aed8855 36380 @: $(MAKE); $(unstage)
22121df0 36381 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
36382 r=`${PWD_COMMAND}`; export r; \
36383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 36384 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36385 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
36386 for flag in $(EXTRA_TARGET_FLAGS); do \
36387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36388 done; \
1b6c0831 36389 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
36390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36392 "RANLIB=$${RANLIB}" \
0c24b341 36393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
36394 html) \
36395 || exit 1
36396
1b6c0831 36397@endif target-libsanitizer
6d389afc 36398
1b6c0831
L
36399.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
36400maybe-TAGS-target-libsanitizer:
36401@if target-libsanitizer
36402maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 36403
1b6c0831
L
36404TAGS-target-libsanitizer: \
36405 configure-target-libsanitizer
0aed8855 36406 @: $(MAKE); $(unstage)
22121df0 36407 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
36408 r=`${PWD_COMMAND}`; export r; \
36409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36410 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36411 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36412 for flag in $(EXTRA_TARGET_FLAGS); do \
36413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36414 done; \
1b6c0831 36415 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36418 "RANLIB=$${RANLIB}" \
0c24b341 36419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36420 TAGS) \
e2b9e2dc
NN
36421 || exit 1
36422
1b6c0831 36423@endif target-libsanitizer
3866be5d 36424
1b6c0831
L
36425.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
36426maybe-install-info-target-libsanitizer:
36427@if target-libsanitizer
36428maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 36429
1b6c0831
L
36430install-info-target-libsanitizer: \
36431 configure-target-libsanitizer \
36432 info-target-libsanitizer
0aed8855 36433 @: $(MAKE); $(unstage)
22121df0 36434 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36435 r=`${PWD_COMMAND}`; export r; \
b40e3958 36436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36437 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36438 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36439 for flag in $(EXTRA_TARGET_FLAGS); do \
36440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36441 done; \
1b6c0831 36442 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36445 "RANLIB=$${RANLIB}" \
0c24b341 36446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36447 install-info) \
4fa63067 36448 || exit 1
3866be5d 36449
1b6c0831 36450@endif target-libsanitizer
3866be5d 36451
1b6c0831
L
36452.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
36453maybe-install-pdf-target-libsanitizer:
36454@if target-libsanitizer
36455maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 36456
1b6c0831
L
36457install-pdf-target-libsanitizer: \
36458 configure-target-libsanitizer \
36459 pdf-target-libsanitizer
a3ca38d2 36460 @: $(MAKE); $(unstage)
22121df0 36461 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
36462 r=`${PWD_COMMAND}`; export r; \
36463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36464 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36465 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
36466 for flag in $(EXTRA_TARGET_FLAGS); do \
36467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36468 done; \
1b6c0831 36469 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
36470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36472 "RANLIB=$${RANLIB}" \
0c24b341 36473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
36474 install-pdf) \
36475 || exit 1
36476
1b6c0831 36477@endif target-libsanitizer
a3ca38d2 36478
1b6c0831
L
36479.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
36480maybe-install-html-target-libsanitizer:
36481@if target-libsanitizer
36482maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 36483
1b6c0831
L
36484install-html-target-libsanitizer: \
36485 configure-target-libsanitizer \
36486 html-target-libsanitizer
108a6f8e 36487 @: $(MAKE); $(unstage)
22121df0 36488 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
36489 r=`${PWD_COMMAND}`; export r; \
36490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36491 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36492 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
36493 for flag in $(EXTRA_TARGET_FLAGS); do \
36494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36495 done; \
1b6c0831 36496 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
36497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36499 "RANLIB=$${RANLIB}" \
0c24b341 36500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
36501 install-html) \
36502 || exit 1
36503
1b6c0831 36504@endif target-libsanitizer
108a6f8e 36505
1b6c0831
L
36506.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
36507maybe-installcheck-target-libsanitizer:
36508@if target-libsanitizer
36509maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 36510
1b6c0831
L
36511installcheck-target-libsanitizer: \
36512 configure-target-libsanitizer
0aed8855 36513 @: $(MAKE); $(unstage)
22121df0 36514 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36515 r=`${PWD_COMMAND}`; export r; \
b40e3958 36516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36517 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36518 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36519 for flag in $(EXTRA_TARGET_FLAGS); do \
36520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36521 done; \
1b6c0831 36522 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36525 "RANLIB=$${RANLIB}" \
0c24b341 36526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36527 installcheck) \
4fa63067 36528 || exit 1
3866be5d 36529
1b6c0831 36530@endif target-libsanitizer
3866be5d 36531
1b6c0831
L
36532.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
36533maybe-mostlyclean-target-libsanitizer:
36534@if target-libsanitizer
36535maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 36536
1b6c0831 36537mostlyclean-target-libsanitizer:
0aed8855 36538 @: $(MAKE); $(unstage)
22121df0 36539 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
36540 r=`${PWD_COMMAND}`; export r; \
36541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36542 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36543 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36544 for flag in $(EXTRA_TARGET_FLAGS); do \
36545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36546 done; \
1b6c0831 36547 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36550 "RANLIB=$${RANLIB}" \
0c24b341 36551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36552 mostlyclean) \
e2b9e2dc
NN
36553 || exit 1
36554
1b6c0831 36555@endif target-libsanitizer
4fa63067 36556
1b6c0831
L
36557.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
36558maybe-clean-target-libsanitizer:
36559@if target-libsanitizer
36560maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 36561
1b6c0831 36562clean-target-libsanitizer:
0aed8855 36563 @: $(MAKE); $(unstage)
22121df0 36564 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36565 r=`${PWD_COMMAND}`; export r; \
b40e3958 36566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36567 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36568 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
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)/libsanitizer && \
4fa63067
NN
36573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36575 "RANLIB=$${RANLIB}" \
0c24b341 36576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36577 clean) \
4fa63067 36578 || exit 1
3866be5d 36579
1b6c0831 36580@endif target-libsanitizer
3866be5d 36581
1b6c0831
L
36582.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
36583maybe-distclean-target-libsanitizer:
36584@if target-libsanitizer
36585maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 36586
1b6c0831 36587distclean-target-libsanitizer:
0aed8855 36588 @: $(MAKE); $(unstage)
22121df0 36589 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36590 r=`${PWD_COMMAND}`; export r; \
b40e3958 36591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36592 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36593 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
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)/libsanitizer && \
4fa63067
NN
36598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36600 "RANLIB=$${RANLIB}" \
0c24b341 36601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36602 distclean) \
4fa63067 36603 || exit 1
3866be5d 36604
1b6c0831 36605@endif target-libsanitizer
3866be5d 36606
1b6c0831
L
36607.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
36608maybe-maintainer-clean-target-libsanitizer:
36609@if target-libsanitizer
36610maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 36611
1b6c0831 36612maintainer-clean-target-libsanitizer:
0aed8855 36613 @: $(MAKE); $(unstage)
22121df0 36614 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36615 r=`${PWD_COMMAND}`; export r; \
b40e3958 36616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36617 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36618 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
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)/libsanitizer && \
4fa63067
NN
36623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36625 "RANLIB=$${RANLIB}" \
0c24b341 36626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36627 maintainer-clean) \
4fa63067 36628 || exit 1
3866be5d 36629
1b6c0831 36630@endif target-libsanitizer
3866be5d 36631
4fa63067 36632
4fa63067 36633
a7254363
PB
36634
36635
1b6c0831
L
36636.PHONY: configure-target-libmpx maybe-configure-target-libmpx
36637maybe-configure-target-libmpx:
5286fdef 36638@if gcc-bootstrap
1b6c0831 36639configure-target-libmpx: stage_current
5286fdef 36640@endif gcc-bootstrap
1b6c0831
L
36641@if target-libmpx
36642maybe-configure-target-libmpx: configure-target-libmpx
36643configure-target-libmpx:
5286fdef
L
36644 @r=`${PWD_COMMAND}`; export r; \
36645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36646 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
36647 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
36648 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36649 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36650 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36651 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 36652 else \
1b6c0831
L
36653 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36654 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
36655 fi; \
36656 else \
1b6c0831 36657 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 36658 fi; \
1b6c0831 36659 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 36660 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
36661 $(NORMAL_TARGET_EXPORTS) \
36662 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
36663 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
36664 case $(srcdir) in \
36665 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36666 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
36667 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36668 esac; \
1b6c0831 36669 module_srcdir=libmpx; \
5286fdef 36670 rm -f no-such-file || : ; \
1b6c0831
L
36671 CONFIG_SITE=no-such-file $(SHELL) \
36672 $$s/$$module_srcdir/configure \
36673 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 36674 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36675 --target=${target_alias} \
5286fdef 36676 || exit 1
1b6c0831 36677@endif target-libmpx
5286fdef
L
36678
36679
36680
1b6c0831
L
36681.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
36682maybe-configure-stage1-target-libmpx:
36683@if target-libmpx-bootstrap
36684maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
36685configure-stage1-target-libmpx:
5eb08693 36686 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 36687 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36688 @r=`${PWD_COMMAND}`; export r; \
36689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36690 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 36691 echo "Checking multilib configuration for libmpx..."; \
22121df0 36692 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36693 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36694 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36695 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36696 else \
1b6c0831
L
36697 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36698 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36699 fi; \
36700 else \
1b6c0831 36701 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36702 fi; \
1b6c0831
L
36703 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36704 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36705 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36706 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36707 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36708 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
36709 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36710 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36711 case $(srcdir) in \
36712 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36713 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36714 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36715 esac; \
1b6c0831
L
36716 module_srcdir=libmpx; \
36717 $(SHELL) $$s/$$module_srcdir/configure \
36718 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36719 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
36720 --target=${target_alias} \
36721 \
5eb08693 36722 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 36723@endif target-libmpx-bootstrap
5eb08693 36724
1b6c0831
L
36725.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
36726maybe-configure-stage2-target-libmpx:
36727@if target-libmpx-bootstrap
36728maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
36729configure-stage2-target-libmpx:
5eb08693 36730 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 36731 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36732 @r=`${PWD_COMMAND}`; export r; \
36733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36734 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 36735 echo "Checking multilib configuration for libmpx..."; \
22121df0 36736 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36737 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36738 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36739 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36740 else \
1b6c0831
L
36741 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36742 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36743 fi; \
36744 else \
1b6c0831 36745 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36746 fi; \
1b6c0831
L
36747 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36748 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36749 \
36750 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36751 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36752 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36753 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
36754 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36755 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36756 case $(srcdir) in \
36757 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36758 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36759 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36760 esac; \
1b6c0831
L
36761 module_srcdir=libmpx; \
36762 $(SHELL) $$s/$$module_srcdir/configure \
36763 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36764 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36765 --target=${target_alias} \
22121df0 36766 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36767 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 36768@endif target-libmpx-bootstrap
5eb08693 36769
1b6c0831
L
36770.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
36771maybe-configure-stage3-target-libmpx:
36772@if target-libmpx-bootstrap
36773maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
36774configure-stage3-target-libmpx:
5eb08693 36775 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 36776 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36777 @r=`${PWD_COMMAND}`; export r; \
36778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36779 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 36780 echo "Checking multilib configuration for libmpx..."; \
22121df0 36781 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36782 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36783 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36784 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36785 else \
1b6c0831
L
36786 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36787 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36788 fi; \
36789 else \
1b6c0831 36790 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36791 fi; \
1b6c0831
L
36792 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36793 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36794 \
36795 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36796 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36797 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36798 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
36799 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36800 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36801 case $(srcdir) in \
36802 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36803 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36804 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36805 esac; \
1b6c0831
L
36806 module_srcdir=libmpx; \
36807 $(SHELL) $$s/$$module_srcdir/configure \
36808 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36809 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36810 --target=${target_alias} \
22121df0 36811 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36812 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 36813@endif target-libmpx-bootstrap
5eb08693 36814
1b6c0831
L
36815.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
36816maybe-configure-stage4-target-libmpx:
36817@if target-libmpx-bootstrap
36818maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
36819configure-stage4-target-libmpx:
5eb08693 36820 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 36821 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36822 @r=`${PWD_COMMAND}`; export r; \
36823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36824 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 36825 echo "Checking multilib configuration for libmpx..."; \
22121df0 36826 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36827 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36828 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36829 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36830 else \
1b6c0831
L
36831 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36832 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36833 fi; \
36834 else \
1b6c0831 36835 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36836 fi; \
1b6c0831
L
36837 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36838 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36839 \
36840 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36841 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36842 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36843 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
36844 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36845 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36846 case $(srcdir) in \
36847 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36848 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36849 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36850 esac; \
1b6c0831
L
36851 module_srcdir=libmpx; \
36852 $(SHELL) $$s/$$module_srcdir/configure \
36853 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36854 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36855 --target=${target_alias} \
22121df0 36856 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36857 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 36858@endif target-libmpx-bootstrap
5eb08693 36859
1b6c0831
L
36860.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
36861maybe-configure-stageprofile-target-libmpx:
36862@if target-libmpx-bootstrap
36863maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
36864configure-stageprofile-target-libmpx:
5eb08693 36865 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 36866 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36867 @r=`${PWD_COMMAND}`; export r; \
36868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36869 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 36870 echo "Checking multilib configuration for libmpx..."; \
22121df0 36871 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36872 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36873 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36874 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36875 else \
1b6c0831
L
36876 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36877 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36878 fi; \
36879 else \
1b6c0831 36880 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36881 fi; \
1b6c0831
L
36882 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36883 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36884 \
36885 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36886 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36887 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36888 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
36889 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36890 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36891 case $(srcdir) in \
36892 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36893 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36894 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36895 esac; \
1b6c0831
L
36896 module_srcdir=libmpx; \
36897 $(SHELL) $$s/$$module_srcdir/configure \
36898 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36899 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36900 --target=${target_alias} \
22121df0 36901 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36902 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 36903@endif target-libmpx-bootstrap
5eb08693 36904
1b6c0831
L
36905.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
36906maybe-configure-stagefeedback-target-libmpx:
36907@if target-libmpx-bootstrap
36908maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
36909configure-stagefeedback-target-libmpx:
5eb08693 36910 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 36911 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36912 @r=`${PWD_COMMAND}`; export r; \
36913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36914 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 36915 echo "Checking multilib configuration for libmpx..."; \
22121df0 36916 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36917 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36918 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36919 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36920 else \
1b6c0831
L
36921 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36922 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36923 fi; \
36924 else \
1b6c0831 36925 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36926 fi; \
1b6c0831
L
36927 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36928 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36929 \
36930 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36931 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36932 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36933 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
36934 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36935 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36936 case $(srcdir) in \
36937 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36938 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36939 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36940 esac; \
1b6c0831
L
36941 module_srcdir=libmpx; \
36942 $(SHELL) $$s/$$module_srcdir/configure \
36943 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36944 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36945 --target=${target_alias} \
22121df0 36946 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36947 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 36948@endif target-libmpx-bootstrap
5eb08693
L
36949
36950
36951
5286fdef
L
36952
36953
1b6c0831
L
36954.PHONY: all-target-libmpx maybe-all-target-libmpx
36955maybe-all-target-libmpx:
5286fdef 36956@if gcc-bootstrap
1b6c0831 36957all-target-libmpx: stage_current
5286fdef 36958@endif gcc-bootstrap
1b6c0831
L
36959@if target-libmpx
36960TARGET-target-libmpx=all
36961maybe-all-target-libmpx: all-target-libmpx
36962all-target-libmpx: configure-target-libmpx
5286fdef
L
36963 @r=`${PWD_COMMAND}`; export r; \
36964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36965 $(NORMAL_TARGET_EXPORTS) \
36966 (cd $(TARGET_SUBDIR)/libmpx && \
36967 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36968 $(TARGET-target-libmpx))
36969@endif target-libmpx
5286fdef
L
36970
36971
36972
1b6c0831
L
36973.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
36974.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
36975maybe-all-stage1-target-libmpx:
36976maybe-clean-stage1-target-libmpx:
36977@if target-libmpx-bootstrap
36978maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
36979all-stage1: all-stage1-target-libmpx
36980TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
36981all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
36982 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36983 @r=`${PWD_COMMAND}`; export r; \
36984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36985 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
36986 $(NORMAL_TARGET_EXPORTS) \
36987 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36988 \
5eb08693
L
36989 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36990 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36991 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36992 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36993 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36994 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36995 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36996 $(EXTRA_TARGET_FLAGS) \
5eb08693 36997 \
05a13254 36998 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 36999 $(TARGET-stage1-target-libmpx)
5eb08693 37000
1b6c0831
L
37001maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
37002clean-stage1: clean-stage1-target-libmpx
37003clean-stage1-target-libmpx:
5eb08693 37004 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 37005 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37006 else \
1b6c0831 37007 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
37008 $(MAKE) stage1-start; \
37009 fi; \
1b6c0831
L
37010 cd $(TARGET_SUBDIR)/libmpx && \
37011 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 37012 clean
1b6c0831
L
37013@endif target-libmpx-bootstrap
37014
37015
37016.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
37017.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
37018maybe-all-stage2-target-libmpx:
37019maybe-clean-stage2-target-libmpx:
37020@if target-libmpx-bootstrap
37021maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
37022all-stage2: all-stage2-target-libmpx
37023TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
37024all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
37025 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37026 @r=`${PWD_COMMAND}`; export r; \
37027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37028 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 37029 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37030 \
1b6c0831 37031 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37032 \
5eb08693
L
37033 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37034 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37035 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37036 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37037 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37038 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37039 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37040 $(EXTRA_TARGET_FLAGS) \
05a13254 37041 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 37042 $(TARGET-stage2-target-libmpx)
5eb08693 37043
1b6c0831
L
37044maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
37045clean-stage2: clean-stage2-target-libmpx
37046clean-stage2-target-libmpx:
5eb08693 37047 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 37048 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37049 else \
1b6c0831 37050 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
37051 $(MAKE) stage2-start; \
37052 fi; \
1b6c0831
L
37053 cd $(TARGET_SUBDIR)/libmpx && \
37054 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37055@endif target-libmpx-bootstrap
37056
37057
37058.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
37059.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
37060maybe-all-stage3-target-libmpx:
37061maybe-clean-stage3-target-libmpx:
37062@if target-libmpx-bootstrap
37063maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
37064all-stage3: all-stage3-target-libmpx
37065TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
37066all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
37067 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37068 @r=`${PWD_COMMAND}`; export r; \
37069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37070 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 37071 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37072 \
1b6c0831 37073 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37074 \
5eb08693
L
37075 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37076 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37077 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37078 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37079 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37080 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37081 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37082 $(EXTRA_TARGET_FLAGS) \
05a13254 37083 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 37084 $(TARGET-stage3-target-libmpx)
5eb08693 37085
1b6c0831
L
37086maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
37087clean-stage3: clean-stage3-target-libmpx
37088clean-stage3-target-libmpx:
5eb08693 37089 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 37090 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37091 else \
1b6c0831 37092 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
37093 $(MAKE) stage3-start; \
37094 fi; \
1b6c0831
L
37095 cd $(TARGET_SUBDIR)/libmpx && \
37096 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37097@endif target-libmpx-bootstrap
37098
37099
37100.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
37101.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
37102maybe-all-stage4-target-libmpx:
37103maybe-clean-stage4-target-libmpx:
37104@if target-libmpx-bootstrap
37105maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
37106all-stage4: all-stage4-target-libmpx
37107TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
37108all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
37109 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37110 @r=`${PWD_COMMAND}`; export r; \
37111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37112 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 37113 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37114 \
1b6c0831 37115 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37116 \
5eb08693
L
37117 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37118 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37119 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37120 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37121 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37122 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37123 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37124 $(EXTRA_TARGET_FLAGS) \
05a13254 37125 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 37126 $(TARGET-stage4-target-libmpx)
5eb08693 37127
1b6c0831
L
37128maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
37129clean-stage4: clean-stage4-target-libmpx
37130clean-stage4-target-libmpx:
5eb08693 37131 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 37132 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37133 else \
1b6c0831 37134 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
37135 $(MAKE) stage4-start; \
37136 fi; \
1b6c0831
L
37137 cd $(TARGET_SUBDIR)/libmpx && \
37138 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37139@endif target-libmpx-bootstrap
37140
37141
37142.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
37143.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
37144maybe-all-stageprofile-target-libmpx:
37145maybe-clean-stageprofile-target-libmpx:
37146@if target-libmpx-bootstrap
37147maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
37148all-stageprofile: all-stageprofile-target-libmpx
37149TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
37150all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
37151 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37152 @r=`${PWD_COMMAND}`; export r; \
37153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37154 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 37155 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37156 \
1b6c0831 37157 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37158 \
5eb08693
L
37159 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37160 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37161 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37162 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37163 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37164 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37165 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37166 $(EXTRA_TARGET_FLAGS) \
05a13254 37167 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 37168 $(TARGET-stageprofile-target-libmpx)
5eb08693 37169
1b6c0831
L
37170maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
37171clean-stageprofile: clean-stageprofile-target-libmpx
37172clean-stageprofile-target-libmpx:
5eb08693 37173 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 37174 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37175 else \
1b6c0831 37176 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
37177 $(MAKE) stageprofile-start; \
37178 fi; \
1b6c0831
L
37179 cd $(TARGET_SUBDIR)/libmpx && \
37180 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37181@endif target-libmpx-bootstrap
37182
37183
37184.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
37185.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
37186maybe-all-stagefeedback-target-libmpx:
37187maybe-clean-stagefeedback-target-libmpx:
37188@if target-libmpx-bootstrap
37189maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
37190all-stagefeedback: all-stagefeedback-target-libmpx
37191TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
37192all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
37193 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37194 @r=`${PWD_COMMAND}`; export r; \
37195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37196 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 37197 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37198 \
1b6c0831 37199 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37200 \
5eb08693
L
37201 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37202 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37203 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37204 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37205 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37206 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37207 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37208 $(EXTRA_TARGET_FLAGS) \
05a13254 37209 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 37210 $(TARGET-stagefeedback-target-libmpx)
5eb08693 37211
1b6c0831
L
37212maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
37213clean-stagefeedback: clean-stagefeedback-target-libmpx
37214clean-stagefeedback-target-libmpx:
5eb08693 37215 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 37216 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37217 else \
1b6c0831 37218 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
37219 $(MAKE) stagefeedback-start; \
37220 fi; \
1b6c0831
L
37221 cd $(TARGET_SUBDIR)/libmpx && \
37222 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37223@endif target-libmpx-bootstrap
5eb08693
L
37224
37225
37226
37227
5286fdef
L
37228
37229
1b6c0831
L
37230.PHONY: check-target-libmpx maybe-check-target-libmpx
37231maybe-check-target-libmpx:
37232@if target-libmpx
37233maybe-check-target-libmpx: check-target-libmpx
5286fdef 37234
1b6c0831 37235check-target-libmpx:
5286fdef
L
37236 @: $(MAKE); $(unstage)
37237 @r=`${PWD_COMMAND}`; export r; \
37238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37239 $(NORMAL_TARGET_EXPORTS) \
37240 (cd $(TARGET_SUBDIR)/libmpx && \
37241 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 37242
1b6c0831 37243@endif target-libmpx
5286fdef 37244
1b6c0831
L
37245.PHONY: install-target-libmpx maybe-install-target-libmpx
37246maybe-install-target-libmpx:
37247@if target-libmpx
37248maybe-install-target-libmpx: install-target-libmpx
5286fdef 37249
1b6c0831 37250install-target-libmpx: installdirs
5286fdef
L
37251 @: $(MAKE); $(unstage)
37252 @r=`${PWD_COMMAND}`; export r; \
37253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37254 $(NORMAL_TARGET_EXPORTS) \
37255 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37256 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37257
1b6c0831 37258@endif target-libmpx
5286fdef 37259
1b6c0831
L
37260.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
37261maybe-install-strip-target-libmpx:
37262@if target-libmpx
37263maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 37264
1b6c0831 37265install-strip-target-libmpx: installdirs
5286fdef
L
37266 @: $(MAKE); $(unstage)
37267 @r=`${PWD_COMMAND}`; export r; \
37268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37269 $(NORMAL_TARGET_EXPORTS) \
37270 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37271 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37272
1b6c0831 37273@endif target-libmpx
5286fdef
L
37274
37275# Other targets (info, dvi, pdf, etc.)
37276
1b6c0831
L
37277.PHONY: maybe-info-target-libmpx info-target-libmpx
37278maybe-info-target-libmpx:
37279@if target-libmpx
37280maybe-info-target-libmpx: info-target-libmpx
5286fdef 37281
1b6c0831
L
37282info-target-libmpx: \
37283 configure-target-libmpx
5286fdef 37284 @: $(MAKE); $(unstage)
22121df0 37285 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37286 r=`${PWD_COMMAND}`; export r; \
37287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37288 $(NORMAL_TARGET_EXPORTS) \
22121df0 37289 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37290 for flag in $(EXTRA_TARGET_FLAGS); do \
37291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37292 done; \
1b6c0831 37293 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37296 "RANLIB=$${RANLIB}" \
37297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37298 info) \
37299 || exit 1
37300
1b6c0831 37301@endif target-libmpx
5286fdef 37302
1b6c0831
L
37303.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
37304maybe-dvi-target-libmpx:
37305@if target-libmpx
37306maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 37307
1b6c0831
L
37308dvi-target-libmpx: \
37309 configure-target-libmpx
5286fdef 37310 @: $(MAKE); $(unstage)
22121df0 37311 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37312 r=`${PWD_COMMAND}`; export r; \
37313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37314 $(NORMAL_TARGET_EXPORTS) \
22121df0 37315 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37316 for flag in $(EXTRA_TARGET_FLAGS); do \
37317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37318 done; \
1b6c0831 37319 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37322 "RANLIB=$${RANLIB}" \
37323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37324 dvi) \
37325 || exit 1
37326
1b6c0831 37327@endif target-libmpx
5286fdef 37328
1b6c0831
L
37329.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
37330maybe-pdf-target-libmpx:
37331@if target-libmpx
37332maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 37333
1b6c0831
L
37334pdf-target-libmpx: \
37335 configure-target-libmpx
5286fdef 37336 @: $(MAKE); $(unstage)
22121df0 37337 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37338 r=`${PWD_COMMAND}`; export r; \
37339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37340 $(NORMAL_TARGET_EXPORTS) \
22121df0 37341 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37342 for flag in $(EXTRA_TARGET_FLAGS); do \
37343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37344 done; \
1b6c0831 37345 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37348 "RANLIB=$${RANLIB}" \
37349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37350 pdf) \
37351 || exit 1
37352
1b6c0831 37353@endif target-libmpx
5286fdef 37354
1b6c0831
L
37355.PHONY: maybe-html-target-libmpx html-target-libmpx
37356maybe-html-target-libmpx:
37357@if target-libmpx
37358maybe-html-target-libmpx: html-target-libmpx
5286fdef 37359
1b6c0831
L
37360html-target-libmpx: \
37361 configure-target-libmpx
5286fdef 37362 @: $(MAKE); $(unstage)
22121df0 37363 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37364 r=`${PWD_COMMAND}`; export r; \
37365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37366 $(NORMAL_TARGET_EXPORTS) \
22121df0 37367 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37368 for flag in $(EXTRA_TARGET_FLAGS); do \
37369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37370 done; \
1b6c0831 37371 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37374 "RANLIB=$${RANLIB}" \
37375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37376 html) \
37377 || exit 1
37378
1b6c0831 37379@endif target-libmpx
5286fdef 37380
1b6c0831
L
37381.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
37382maybe-TAGS-target-libmpx:
37383@if target-libmpx
37384maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 37385
1b6c0831
L
37386TAGS-target-libmpx: \
37387 configure-target-libmpx
5286fdef 37388 @: $(MAKE); $(unstage)
22121df0 37389 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37390 r=`${PWD_COMMAND}`; export r; \
37391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37392 $(NORMAL_TARGET_EXPORTS) \
22121df0 37393 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37394 for flag in $(EXTRA_TARGET_FLAGS); do \
37395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37396 done; \
1b6c0831 37397 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37400 "RANLIB=$${RANLIB}" \
37401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37402 TAGS) \
37403 || exit 1
37404
1b6c0831 37405@endif target-libmpx
5286fdef 37406
1b6c0831
L
37407.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
37408maybe-install-info-target-libmpx:
37409@if target-libmpx
37410maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 37411
1b6c0831
L
37412install-info-target-libmpx: \
37413 configure-target-libmpx \
37414 info-target-libmpx
5286fdef 37415 @: $(MAKE); $(unstage)
22121df0 37416 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37417 r=`${PWD_COMMAND}`; export r; \
37418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37419 $(NORMAL_TARGET_EXPORTS) \
22121df0 37420 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37421 for flag in $(EXTRA_TARGET_FLAGS); do \
37422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37423 done; \
1b6c0831 37424 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37427 "RANLIB=$${RANLIB}" \
37428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37429 install-info) \
37430 || exit 1
37431
1b6c0831 37432@endif target-libmpx
5286fdef 37433
1b6c0831
L
37434.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
37435maybe-install-pdf-target-libmpx:
37436@if target-libmpx
37437maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 37438
1b6c0831
L
37439install-pdf-target-libmpx: \
37440 configure-target-libmpx \
37441 pdf-target-libmpx
5286fdef 37442 @: $(MAKE); $(unstage)
22121df0 37443 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37444 r=`${PWD_COMMAND}`; export r; \
37445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37446 $(NORMAL_TARGET_EXPORTS) \
22121df0 37447 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37448 for flag in $(EXTRA_TARGET_FLAGS); do \
37449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37450 done; \
1b6c0831 37451 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37454 "RANLIB=$${RANLIB}" \
37455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37456 install-pdf) \
37457 || exit 1
37458
1b6c0831 37459@endif target-libmpx
5286fdef 37460
1b6c0831
L
37461.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
37462maybe-install-html-target-libmpx:
37463@if target-libmpx
37464maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 37465
1b6c0831
L
37466install-html-target-libmpx: \
37467 configure-target-libmpx \
37468 html-target-libmpx
5286fdef 37469 @: $(MAKE); $(unstage)
22121df0 37470 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37471 r=`${PWD_COMMAND}`; export r; \
37472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37473 $(NORMAL_TARGET_EXPORTS) \
22121df0 37474 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37475 for flag in $(EXTRA_TARGET_FLAGS); do \
37476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37477 done; \
1b6c0831 37478 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37481 "RANLIB=$${RANLIB}" \
37482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37483 install-html) \
37484 || exit 1
37485
1b6c0831 37486@endif target-libmpx
5286fdef 37487
1b6c0831
L
37488.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
37489maybe-installcheck-target-libmpx:
37490@if target-libmpx
37491maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 37492
1b6c0831
L
37493installcheck-target-libmpx: \
37494 configure-target-libmpx
5286fdef 37495 @: $(MAKE); $(unstage)
22121df0 37496 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37497 r=`${PWD_COMMAND}`; export r; \
37498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37499 $(NORMAL_TARGET_EXPORTS) \
22121df0 37500 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37501 for flag in $(EXTRA_TARGET_FLAGS); do \
37502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37503 done; \
1b6c0831 37504 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37507 "RANLIB=$${RANLIB}" \
37508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37509 installcheck) \
37510 || exit 1
37511
1b6c0831 37512@endif target-libmpx
5286fdef 37513
1b6c0831
L
37514.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
37515maybe-mostlyclean-target-libmpx:
37516@if target-libmpx
37517maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 37518
1b6c0831 37519mostlyclean-target-libmpx:
5286fdef 37520 @: $(MAKE); $(unstage)
22121df0 37521 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37522 r=`${PWD_COMMAND}`; export r; \
37523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37524 $(NORMAL_TARGET_EXPORTS) \
22121df0 37525 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37526 for flag in $(EXTRA_TARGET_FLAGS); do \
37527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37528 done; \
1b6c0831 37529 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37532 "RANLIB=$${RANLIB}" \
37533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37534 mostlyclean) \
37535 || exit 1
37536
1b6c0831 37537@endif target-libmpx
5286fdef 37538
1b6c0831
L
37539.PHONY: maybe-clean-target-libmpx clean-target-libmpx
37540maybe-clean-target-libmpx:
37541@if target-libmpx
37542maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 37543
1b6c0831 37544clean-target-libmpx:
5286fdef 37545 @: $(MAKE); $(unstage)
22121df0 37546 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37547 r=`${PWD_COMMAND}`; export r; \
37548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37549 $(NORMAL_TARGET_EXPORTS) \
22121df0 37550 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37551 for flag in $(EXTRA_TARGET_FLAGS); do \
37552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37553 done; \
1b6c0831 37554 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
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 clean) \
37560 || exit 1
37561
1b6c0831 37562@endif target-libmpx
5286fdef 37563
1b6c0831
L
37564.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
37565maybe-distclean-target-libmpx:
37566@if target-libmpx
37567maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 37568
1b6c0831 37569distclean-target-libmpx:
5286fdef 37570 @: $(MAKE); $(unstage)
22121df0 37571 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37572 r=`${PWD_COMMAND}`; export r; \
37573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37574 $(NORMAL_TARGET_EXPORTS) \
22121df0 37575 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37576 for flag in $(EXTRA_TARGET_FLAGS); do \
37577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37578 done; \
1b6c0831 37579 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
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 distclean) \
37585 || exit 1
37586
1b6c0831 37587@endif target-libmpx
5286fdef 37588
1b6c0831
L
37589.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
37590maybe-maintainer-clean-target-libmpx:
37591@if target-libmpx
37592maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 37593
1b6c0831 37594maintainer-clean-target-libmpx:
5286fdef 37595 @: $(MAKE); $(unstage)
22121df0 37596 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37597 r=`${PWD_COMMAND}`; export r; \
37598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37599 $(NORMAL_TARGET_EXPORTS) \
22121df0 37600 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37601 for flag in $(EXTRA_TARGET_FLAGS); do \
37602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37603 done; \
1b6c0831 37604 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
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 maintainer-clean) \
37610 || exit 1
37611
1b6c0831 37612@endif target-libmpx
5286fdef
L
37613
37614
37615
37616
37617
95e43135
JBG
37618.PHONY: configure-target-libvtv maybe-configure-target-libvtv
37619maybe-configure-target-libvtv:
37620@if gcc-bootstrap
37621configure-target-libvtv: stage_current
37622@endif gcc-bootstrap
37623@if target-libvtv
37624maybe-configure-target-libvtv: configure-target-libvtv
37625configure-target-libvtv:
37626 @r=`${PWD_COMMAND}`; export r; \
37627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37628 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
37629 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
37630 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37631 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37632 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37633 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37634 else \
37635 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37636 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37637 fi; \
37638 else \
37639 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37640 fi; \
37641 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 37642 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37643 $(RAW_CXX_TARGET_EXPORTS) \
37644 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
37645 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
37646 case $(srcdir) in \
37647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37648 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37650 esac; \
1b6c0831 37651 module_srcdir=libvtv; \
95e43135 37652 rm -f no-such-file || : ; \
1b6c0831
L
37653 CONFIG_SITE=no-such-file $(SHELL) \
37654 $$s/$$module_srcdir/configure \
37655 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37656 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37657 --target=${target_alias} \
95e43135
JBG
37658 || exit 1
37659@endif target-libvtv
37660
37661
37662
37663.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
37664maybe-configure-stage1-target-libvtv:
37665@if target-libvtv-bootstrap
37666maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
37667configure-stage1-target-libvtv:
37668 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37669 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37670 @r=`${PWD_COMMAND}`; export r; \
37671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37672 TFLAGS="$(STAGE1_TFLAGS)"; \
37673 echo "Checking multilib configuration for libvtv..."; \
22121df0 37674 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37675 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37676 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37677 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37678 else \
37679 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37680 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37681 fi; \
37682 else \
37683 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37684 fi; \
37685 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37686 $(RAW_CXX_TARGET_EXPORTS) \
37687 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37688 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37689 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37690 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
37691 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37692 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37693 case $(srcdir) in \
37694 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37695 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37696 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37697 esac; \
1b6c0831
L
37698 module_srcdir=libvtv; \
37699 $(SHELL) $$s/$$module_srcdir/configure \
37700 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37701 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
37702 --target=${target_alias} \
37703 \
95e43135
JBG
37704 $(STAGE1_CONFIGURE_FLAGS)
37705@endif target-libvtv-bootstrap
37706
37707.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
37708maybe-configure-stage2-target-libvtv:
37709@if target-libvtv-bootstrap
37710maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
37711configure-stage2-target-libvtv:
37712 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37713 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37714 @r=`${PWD_COMMAND}`; export r; \
37715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37716 TFLAGS="$(STAGE2_TFLAGS)"; \
37717 echo "Checking multilib configuration for libvtv..."; \
22121df0 37718 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37719 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37720 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37721 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37722 else \
37723 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37724 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37725 fi; \
37726 else \
37727 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37728 fi; \
37729 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37730 $(RAW_CXX_TARGET_EXPORTS) \
37731 \
37732 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37733 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37734 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37735 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
37736 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37737 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37738 case $(srcdir) in \
37739 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37740 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37741 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37742 esac; \
1b6c0831
L
37743 module_srcdir=libvtv; \
37744 $(SHELL) $$s/$$module_srcdir/configure \
37745 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37746 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37747 --target=${target_alias} \
22121df0 37748 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37749 $(STAGE2_CONFIGURE_FLAGS)
37750@endif target-libvtv-bootstrap
37751
37752.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
37753maybe-configure-stage3-target-libvtv:
37754@if target-libvtv-bootstrap
37755maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
37756configure-stage3-target-libvtv:
37757 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37758 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37759 @r=`${PWD_COMMAND}`; export r; \
37760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37761 TFLAGS="$(STAGE3_TFLAGS)"; \
37762 echo "Checking multilib configuration for libvtv..."; \
22121df0 37763 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37764 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37765 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37766 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37767 else \
37768 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37769 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37770 fi; \
37771 else \
37772 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37773 fi; \
37774 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37775 $(RAW_CXX_TARGET_EXPORTS) \
37776 \
37777 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37778 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37779 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37780 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
37781 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37782 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37783 case $(srcdir) in \
37784 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37785 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37786 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37787 esac; \
1b6c0831
L
37788 module_srcdir=libvtv; \
37789 $(SHELL) $$s/$$module_srcdir/configure \
37790 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37791 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37792 --target=${target_alias} \
22121df0 37793 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37794 $(STAGE3_CONFIGURE_FLAGS)
37795@endif target-libvtv-bootstrap
37796
37797.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
37798maybe-configure-stage4-target-libvtv:
37799@if target-libvtv-bootstrap
37800maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
37801configure-stage4-target-libvtv:
37802 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37803 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37804 @r=`${PWD_COMMAND}`; export r; \
37805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37806 TFLAGS="$(STAGE4_TFLAGS)"; \
37807 echo "Checking multilib configuration for libvtv..."; \
22121df0 37808 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37809 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37810 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37811 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37812 else \
37813 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37814 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37815 fi; \
37816 else \
37817 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37818 fi; \
37819 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37820 $(RAW_CXX_TARGET_EXPORTS) \
37821 \
37822 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37823 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37824 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37825 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
37826 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37827 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37828 case $(srcdir) in \
37829 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37830 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37831 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37832 esac; \
1b6c0831
L
37833 module_srcdir=libvtv; \
37834 $(SHELL) $$s/$$module_srcdir/configure \
37835 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37836 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37837 --target=${target_alias} \
22121df0 37838 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37839 $(STAGE4_CONFIGURE_FLAGS)
37840@endif target-libvtv-bootstrap
37841
37842.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
37843maybe-configure-stageprofile-target-libvtv:
37844@if target-libvtv-bootstrap
37845maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
37846configure-stageprofile-target-libvtv:
37847 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37848 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37849 @r=`${PWD_COMMAND}`; export r; \
37850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37851 TFLAGS="$(STAGEprofile_TFLAGS)"; \
37852 echo "Checking multilib configuration for libvtv..."; \
22121df0 37853 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37854 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37855 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37856 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37857 else \
37858 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37859 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37860 fi; \
37861 else \
37862 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37863 fi; \
37864 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37865 $(RAW_CXX_TARGET_EXPORTS) \
37866 \
37867 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37868 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37869 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37870 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
37871 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37872 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37873 case $(srcdir) in \
37874 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37875 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37876 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37877 esac; \
1b6c0831
L
37878 module_srcdir=libvtv; \
37879 $(SHELL) $$s/$$module_srcdir/configure \
37880 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37881 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37882 --target=${target_alias} \
22121df0 37883 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37884 $(STAGEprofile_CONFIGURE_FLAGS)
37885@endif target-libvtv-bootstrap
37886
37887.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
37888maybe-configure-stagefeedback-target-libvtv:
37889@if target-libvtv-bootstrap
37890maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
37891configure-stagefeedback-target-libvtv:
37892 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37893 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37894 @r=`${PWD_COMMAND}`; export r; \
37895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37896 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
37897 echo "Checking multilib configuration for libvtv..."; \
22121df0 37898 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37899 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37900 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37901 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37902 else \
37903 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37904 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37905 fi; \
37906 else \
37907 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37908 fi; \
37909 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37910 $(RAW_CXX_TARGET_EXPORTS) \
37911 \
37912 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37913 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37914 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37915 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
37916 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37917 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37918 case $(srcdir) in \
37919 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37920 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37921 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37922 esac; \
1b6c0831
L
37923 module_srcdir=libvtv; \
37924 $(SHELL) $$s/$$module_srcdir/configure \
37925 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37926 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37927 --target=${target_alias} \
22121df0 37928 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37929 $(STAGEfeedback_CONFIGURE_FLAGS)
37930@endif target-libvtv-bootstrap
37931
37932
37933
37934
37935
37936.PHONY: all-target-libvtv maybe-all-target-libvtv
37937maybe-all-target-libvtv:
37938@if gcc-bootstrap
37939all-target-libvtv: stage_current
37940@endif gcc-bootstrap
37941@if target-libvtv
37942TARGET-target-libvtv=all
37943maybe-all-target-libvtv: all-target-libvtv
37944all-target-libvtv: configure-target-libvtv
37945 @r=`${PWD_COMMAND}`; export r; \
37946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37947 $(RAW_CXX_TARGET_EXPORTS) \
37948 (cd $(TARGET_SUBDIR)/libvtv && \
37949 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37950 $(TARGET-target-libvtv))
37951@endif target-libvtv
37952
37953
37954
37955.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
37956.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
37957maybe-all-stage1-target-libvtv:
37958maybe-clean-stage1-target-libvtv:
37959@if target-libvtv-bootstrap
37960maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
37961all-stage1: all-stage1-target-libvtv
37962TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
37963all-stage1-target-libvtv: configure-stage1-target-libvtv
37964 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37965 @r=`${PWD_COMMAND}`; export r; \
37966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37967 TFLAGS="$(STAGE1_TFLAGS)"; \
37968 $(RAW_CXX_TARGET_EXPORTS) \
37969 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37970 \
95e43135
JBG
37971 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37972 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37973 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37974 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37975 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37976 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37977 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37978 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37979 \
05a13254 37980 TFLAGS="$(STAGE1_TFLAGS)" \
95e43135
JBG
37981 $(TARGET-stage1-target-libvtv)
37982
37983maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
37984clean-stage1: clean-stage1-target-libvtv
37985clean-stage1-target-libvtv:
37986 @if [ $(current_stage) = stage1 ]; then \
37987 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37988 else \
37989 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
37990 $(MAKE) stage1-start; \
37991 fi; \
37992 cd $(TARGET_SUBDIR)/libvtv && \
37993 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37994 clean
37995@endif target-libvtv-bootstrap
37996
37997
37998.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
37999.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
38000maybe-all-stage2-target-libvtv:
38001maybe-clean-stage2-target-libvtv:
38002@if target-libvtv-bootstrap
38003maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
38004all-stage2: all-stage2-target-libvtv
38005TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
38006all-stage2-target-libvtv: configure-stage2-target-libvtv
38007 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38008 @r=`${PWD_COMMAND}`; export r; \
38009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38010 TFLAGS="$(STAGE2_TFLAGS)"; \
38011 $(RAW_CXX_TARGET_EXPORTS) \
38012 \
38013 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38014 \
95e43135
JBG
38015 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38016 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38017 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38018 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38019 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38020 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38021 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38022 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38023 TFLAGS="$(STAGE2_TFLAGS)" \
95e43135
JBG
38024 $(TARGET-stage2-target-libvtv)
38025
38026maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
38027clean-stage2: clean-stage2-target-libvtv
38028clean-stage2-target-libvtv:
38029 @if [ $(current_stage) = stage2 ]; then \
38030 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38031 else \
38032 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
38033 $(MAKE) stage2-start; \
38034 fi; \
38035 cd $(TARGET_SUBDIR)/libvtv && \
38036 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38037@endif target-libvtv-bootstrap
38038
38039
38040.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
38041.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
38042maybe-all-stage3-target-libvtv:
38043maybe-clean-stage3-target-libvtv:
38044@if target-libvtv-bootstrap
38045maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
38046all-stage3: all-stage3-target-libvtv
38047TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
38048all-stage3-target-libvtv: configure-stage3-target-libvtv
38049 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38050 @r=`${PWD_COMMAND}`; export r; \
38051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38052 TFLAGS="$(STAGE3_TFLAGS)"; \
38053 $(RAW_CXX_TARGET_EXPORTS) \
38054 \
38055 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38056 \
95e43135
JBG
38057 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38058 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38059 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38060 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38061 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38062 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38063 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38064 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38065 TFLAGS="$(STAGE3_TFLAGS)" \
95e43135
JBG
38066 $(TARGET-stage3-target-libvtv)
38067
38068maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
38069clean-stage3: clean-stage3-target-libvtv
38070clean-stage3-target-libvtv:
38071 @if [ $(current_stage) = stage3 ]; then \
38072 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38073 else \
38074 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
38075 $(MAKE) stage3-start; \
38076 fi; \
38077 cd $(TARGET_SUBDIR)/libvtv && \
38078 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38079@endif target-libvtv-bootstrap
38080
38081
38082.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
38083.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
38084maybe-all-stage4-target-libvtv:
38085maybe-clean-stage4-target-libvtv:
38086@if target-libvtv-bootstrap
38087maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
38088all-stage4: all-stage4-target-libvtv
38089TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
38090all-stage4-target-libvtv: configure-stage4-target-libvtv
38091 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38092 @r=`${PWD_COMMAND}`; export r; \
38093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38094 TFLAGS="$(STAGE4_TFLAGS)"; \
38095 $(RAW_CXX_TARGET_EXPORTS) \
38096 \
38097 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38098 \
95e43135
JBG
38099 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38100 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38101 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38102 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38103 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38104 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38105 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38106 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38107 TFLAGS="$(STAGE4_TFLAGS)" \
95e43135
JBG
38108 $(TARGET-stage4-target-libvtv)
38109
38110maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
38111clean-stage4: clean-stage4-target-libvtv
38112clean-stage4-target-libvtv:
38113 @if [ $(current_stage) = stage4 ]; then \
38114 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38115 else \
38116 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
38117 $(MAKE) stage4-start; \
38118 fi; \
38119 cd $(TARGET_SUBDIR)/libvtv && \
38120 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38121@endif target-libvtv-bootstrap
38122
38123
38124.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
38125.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
38126maybe-all-stageprofile-target-libvtv:
38127maybe-clean-stageprofile-target-libvtv:
38128@if target-libvtv-bootstrap
38129maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
38130all-stageprofile: all-stageprofile-target-libvtv
38131TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
38132all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
38133 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38134 @r=`${PWD_COMMAND}`; export r; \
38135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38136 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38137 $(RAW_CXX_TARGET_EXPORTS) \
38138 \
38139 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38140 \
95e43135
JBG
38141 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38142 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38143 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38144 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38145 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38146 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38147 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38148 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38149 TFLAGS="$(STAGEprofile_TFLAGS)" \
95e43135
JBG
38150 $(TARGET-stageprofile-target-libvtv)
38151
38152maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
38153clean-stageprofile: clean-stageprofile-target-libvtv
38154clean-stageprofile-target-libvtv:
38155 @if [ $(current_stage) = stageprofile ]; then \
38156 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38157 else \
38158 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
38159 $(MAKE) stageprofile-start; \
38160 fi; \
38161 cd $(TARGET_SUBDIR)/libvtv && \
38162 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38163@endif target-libvtv-bootstrap
38164
38165
38166.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
38167.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
38168maybe-all-stagefeedback-target-libvtv:
38169maybe-clean-stagefeedback-target-libvtv:
38170@if target-libvtv-bootstrap
38171maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
38172all-stagefeedback: all-stagefeedback-target-libvtv
38173TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
38174all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
38175 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38176 @r=`${PWD_COMMAND}`; export r; \
38177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38178 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38179 $(RAW_CXX_TARGET_EXPORTS) \
38180 \
38181 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38182 \
95e43135
JBG
38183 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38184 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38185 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38186 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38187 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38188 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38189 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38190 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38191 TFLAGS="$(STAGEfeedback_TFLAGS)" \
95e43135
JBG
38192 $(TARGET-stagefeedback-target-libvtv)
38193
38194maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
38195clean-stagefeedback: clean-stagefeedback-target-libvtv
38196clean-stagefeedback-target-libvtv:
38197 @if [ $(current_stage) = stagefeedback ]; then \
38198 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38199 else \
38200 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
38201 $(MAKE) stagefeedback-start; \
38202 fi; \
38203 cd $(TARGET_SUBDIR)/libvtv && \
38204 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38205@endif target-libvtv-bootstrap
38206
38207
38208
38209
38210
38211
38212.PHONY: check-target-libvtv maybe-check-target-libvtv
38213maybe-check-target-libvtv:
38214@if target-libvtv
38215maybe-check-target-libvtv: check-target-libvtv
38216
38217check-target-libvtv:
38218 @: $(MAKE); $(unstage)
38219 @r=`${PWD_COMMAND}`; export r; \
38220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38221 $(RAW_CXX_TARGET_EXPORTS) \
38222 (cd $(TARGET_SUBDIR)/libvtv && \
38223 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
38224
38225@endif target-libvtv
38226
38227.PHONY: install-target-libvtv maybe-install-target-libvtv
38228maybe-install-target-libvtv:
38229@if target-libvtv
38230maybe-install-target-libvtv: install-target-libvtv
38231
38232install-target-libvtv: installdirs
38233 @: $(MAKE); $(unstage)
38234 @r=`${PWD_COMMAND}`; export r; \
38235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38236 $(RAW_CXX_TARGET_EXPORTS) \
38237 (cd $(TARGET_SUBDIR)/libvtv && \
38238 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38239
38240@endif target-libvtv
38241
38242.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
38243maybe-install-strip-target-libvtv:
38244@if target-libvtv
38245maybe-install-strip-target-libvtv: install-strip-target-libvtv
38246
38247install-strip-target-libvtv: installdirs
38248 @: $(MAKE); $(unstage)
38249 @r=`${PWD_COMMAND}`; export r; \
38250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38251 $(RAW_CXX_TARGET_EXPORTS) \
38252 (cd $(TARGET_SUBDIR)/libvtv && \
38253 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38254
38255@endif target-libvtv
38256
38257# Other targets (info, dvi, pdf, etc.)
38258
38259.PHONY: maybe-info-target-libvtv info-target-libvtv
38260maybe-info-target-libvtv:
38261@if target-libvtv
38262maybe-info-target-libvtv: info-target-libvtv
38263
38264info-target-libvtv: \
38265 configure-target-libvtv
38266 @: $(MAKE); $(unstage)
22121df0 38267 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38268 r=`${PWD_COMMAND}`; export r; \
38269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38270 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38271 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38272 for flag in $(EXTRA_TARGET_FLAGS); do \
38273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38274 done; \
38275 (cd $(TARGET_SUBDIR)/libvtv && \
38276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38278 "RANLIB=$${RANLIB}" \
38279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38280 info) \
38281 || exit 1
38282
38283@endif target-libvtv
38284
38285.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
38286maybe-dvi-target-libvtv:
38287@if target-libvtv
38288maybe-dvi-target-libvtv: dvi-target-libvtv
38289
38290dvi-target-libvtv: \
38291 configure-target-libvtv
38292 @: $(MAKE); $(unstage)
22121df0 38293 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38294 r=`${PWD_COMMAND}`; export r; \
38295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38296 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38297 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38298 for flag in $(EXTRA_TARGET_FLAGS); do \
38299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38300 done; \
38301 (cd $(TARGET_SUBDIR)/libvtv && \
38302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38304 "RANLIB=$${RANLIB}" \
38305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38306 dvi) \
38307 || exit 1
38308
38309@endif target-libvtv
38310
38311.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
38312maybe-pdf-target-libvtv:
38313@if target-libvtv
38314maybe-pdf-target-libvtv: pdf-target-libvtv
38315
38316pdf-target-libvtv: \
38317 configure-target-libvtv
38318 @: $(MAKE); $(unstage)
22121df0 38319 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38320 r=`${PWD_COMMAND}`; export r; \
38321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38322 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38323 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38324 for flag in $(EXTRA_TARGET_FLAGS); do \
38325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38326 done; \
38327 (cd $(TARGET_SUBDIR)/libvtv && \
38328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38330 "RANLIB=$${RANLIB}" \
38331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38332 pdf) \
38333 || exit 1
38334
38335@endif target-libvtv
38336
38337.PHONY: maybe-html-target-libvtv html-target-libvtv
38338maybe-html-target-libvtv:
38339@if target-libvtv
38340maybe-html-target-libvtv: html-target-libvtv
38341
38342html-target-libvtv: \
38343 configure-target-libvtv
38344 @: $(MAKE); $(unstage)
22121df0 38345 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38346 r=`${PWD_COMMAND}`; export r; \
38347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38348 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38349 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38350 for flag in $(EXTRA_TARGET_FLAGS); do \
38351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38352 done; \
38353 (cd $(TARGET_SUBDIR)/libvtv && \
38354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38356 "RANLIB=$${RANLIB}" \
38357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38358 html) \
38359 || exit 1
38360
38361@endif target-libvtv
38362
38363.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
38364maybe-TAGS-target-libvtv:
38365@if target-libvtv
38366maybe-TAGS-target-libvtv: TAGS-target-libvtv
38367
38368TAGS-target-libvtv: \
38369 configure-target-libvtv
38370 @: $(MAKE); $(unstage)
22121df0 38371 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38372 r=`${PWD_COMMAND}`; export r; \
38373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38374 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38375 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38376 for flag in $(EXTRA_TARGET_FLAGS); do \
38377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38378 done; \
38379 (cd $(TARGET_SUBDIR)/libvtv && \
38380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38382 "RANLIB=$${RANLIB}" \
38383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38384 TAGS) \
38385 || exit 1
38386
38387@endif target-libvtv
38388
38389.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
38390maybe-install-info-target-libvtv:
38391@if target-libvtv
38392maybe-install-info-target-libvtv: install-info-target-libvtv
38393
38394install-info-target-libvtv: \
38395 configure-target-libvtv \
38396 info-target-libvtv
38397 @: $(MAKE); $(unstage)
22121df0 38398 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38399 r=`${PWD_COMMAND}`; export r; \
38400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38401 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38402 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38403 for flag in $(EXTRA_TARGET_FLAGS); do \
38404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38405 done; \
38406 (cd $(TARGET_SUBDIR)/libvtv && \
38407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38409 "RANLIB=$${RANLIB}" \
38410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38411 install-info) \
38412 || exit 1
38413
38414@endif target-libvtv
38415
38416.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
38417maybe-install-pdf-target-libvtv:
38418@if target-libvtv
38419maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
38420
38421install-pdf-target-libvtv: \
38422 configure-target-libvtv \
38423 pdf-target-libvtv
38424 @: $(MAKE); $(unstage)
22121df0 38425 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38426 r=`${PWD_COMMAND}`; export r; \
38427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38428 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38429 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38430 for flag in $(EXTRA_TARGET_FLAGS); do \
38431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38432 done; \
38433 (cd $(TARGET_SUBDIR)/libvtv && \
38434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38436 "RANLIB=$${RANLIB}" \
38437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38438 install-pdf) \
38439 || exit 1
38440
38441@endif target-libvtv
38442
38443.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
38444maybe-install-html-target-libvtv:
38445@if target-libvtv
38446maybe-install-html-target-libvtv: install-html-target-libvtv
38447
38448install-html-target-libvtv: \
38449 configure-target-libvtv \
38450 html-target-libvtv
38451 @: $(MAKE); $(unstage)
22121df0 38452 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38453 r=`${PWD_COMMAND}`; export r; \
38454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38455 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38456 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38457 for flag in $(EXTRA_TARGET_FLAGS); do \
38458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38459 done; \
38460 (cd $(TARGET_SUBDIR)/libvtv && \
38461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38463 "RANLIB=$${RANLIB}" \
38464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38465 install-html) \
38466 || exit 1
38467
38468@endif target-libvtv
38469
38470.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
38471maybe-installcheck-target-libvtv:
38472@if target-libvtv
38473maybe-installcheck-target-libvtv: installcheck-target-libvtv
38474
38475installcheck-target-libvtv: \
38476 configure-target-libvtv
38477 @: $(MAKE); $(unstage)
22121df0 38478 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38479 r=`${PWD_COMMAND}`; export r; \
38480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38481 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38482 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38483 for flag in $(EXTRA_TARGET_FLAGS); do \
38484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38485 done; \
38486 (cd $(TARGET_SUBDIR)/libvtv && \
38487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38489 "RANLIB=$${RANLIB}" \
38490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38491 installcheck) \
38492 || exit 1
38493
38494@endif target-libvtv
38495
38496.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
38497maybe-mostlyclean-target-libvtv:
38498@if target-libvtv
38499maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
38500
38501mostlyclean-target-libvtv:
38502 @: $(MAKE); $(unstage)
22121df0 38503 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38504 r=`${PWD_COMMAND}`; export r; \
38505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38506 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38507 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38508 for flag in $(EXTRA_TARGET_FLAGS); do \
38509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38510 done; \
38511 (cd $(TARGET_SUBDIR)/libvtv && \
38512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38514 "RANLIB=$${RANLIB}" \
38515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38516 mostlyclean) \
38517 || exit 1
38518
38519@endif target-libvtv
38520
38521.PHONY: maybe-clean-target-libvtv clean-target-libvtv
38522maybe-clean-target-libvtv:
38523@if target-libvtv
38524maybe-clean-target-libvtv: clean-target-libvtv
38525
38526clean-target-libvtv:
38527 @: $(MAKE); $(unstage)
22121df0 38528 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38529 r=`${PWD_COMMAND}`; export r; \
38530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38531 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38532 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38533 for flag in $(EXTRA_TARGET_FLAGS); do \
38534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38535 done; \
38536 (cd $(TARGET_SUBDIR)/libvtv && \
38537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38539 "RANLIB=$${RANLIB}" \
38540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38541 clean) \
38542 || exit 1
38543
38544@endif target-libvtv
38545
38546.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
38547maybe-distclean-target-libvtv:
38548@if target-libvtv
38549maybe-distclean-target-libvtv: distclean-target-libvtv
38550
38551distclean-target-libvtv:
38552 @: $(MAKE); $(unstage)
22121df0 38553 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38554 r=`${PWD_COMMAND}`; export r; \
38555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38556 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38557 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38558 for flag in $(EXTRA_TARGET_FLAGS); do \
38559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38560 done; \
38561 (cd $(TARGET_SUBDIR)/libvtv && \
38562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38564 "RANLIB=$${RANLIB}" \
38565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38566 distclean) \
38567 || exit 1
38568
38569@endif target-libvtv
38570
38571.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
38572maybe-maintainer-clean-target-libvtv:
38573@if target-libvtv
38574maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
38575
38576maintainer-clean-target-libvtv:
38577 @: $(MAKE); $(unstage)
22121df0 38578 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38579 r=`${PWD_COMMAND}`; export r; \
38580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38581 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38582 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38583 for flag in $(EXTRA_TARGET_FLAGS); do \
38584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38585 done; \
38586 (cd $(TARGET_SUBDIR)/libvtv && \
38587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38589 "RANLIB=$${RANLIB}" \
38590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38591 maintainer-clean) \
38592 || exit 1
38593
38594@endif target-libvtv
38595
38596
38597
38598
38599
e3f56a99
NC
38600.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
38601maybe-configure-target-libcilkrts:
38602@if gcc-bootstrap
38603configure-target-libcilkrts: stage_current
38604@endif gcc-bootstrap
38605@if target-libcilkrts
38606maybe-configure-target-libcilkrts: configure-target-libcilkrts
38607configure-target-libcilkrts:
38608 @: $(MAKE); $(unstage)
38609 @r=`${PWD_COMMAND}`; export r; \
38610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38611 echo "Checking multilib configuration for libcilkrts..."; \
38612 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
38613 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
38614 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
38615 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
38616 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
38617 else \
38618 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
38619 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
38620 fi; \
38621 else \
38622 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
38623 fi; \
38624 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
38625 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
38626 $(NORMAL_TARGET_EXPORTS) \
38627 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
38628 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
38629 case $(srcdir) in \
38630 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38631 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
38632 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38633 esac; \
38634 module_srcdir=libcilkrts; \
38635 rm -f no-such-file || : ; \
38636 CONFIG_SITE=no-such-file $(SHELL) \
38637 $$s/$$module_srcdir/configure \
38638 --srcdir=$${topdir}/$$module_srcdir \
38639 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38640 --target=${target_alias} \
38641 || exit 1
38642@endif target-libcilkrts
38643
38644
38645
38646
38647
38648.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
38649maybe-all-target-libcilkrts:
38650@if gcc-bootstrap
38651all-target-libcilkrts: stage_current
38652@endif gcc-bootstrap
38653@if target-libcilkrts
38654TARGET-target-libcilkrts=all
38655maybe-all-target-libcilkrts: all-target-libcilkrts
38656all-target-libcilkrts: configure-target-libcilkrts
38657 @: $(MAKE); $(unstage)
38658 @r=`${PWD_COMMAND}`; export r; \
38659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38660 $(NORMAL_TARGET_EXPORTS) \
38661 (cd $(TARGET_SUBDIR)/libcilkrts && \
38662 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
38663 $(TARGET-target-libcilkrts))
38664@endif target-libcilkrts
38665
38666
38667
38668
38669
38670.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
38671maybe-check-target-libcilkrts:
38672@if target-libcilkrts
38673maybe-check-target-libcilkrts: check-target-libcilkrts
38674
38675check-target-libcilkrts:
38676 @: $(MAKE); $(unstage)
38677 @r=`${PWD_COMMAND}`; export r; \
38678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38679 $(NORMAL_TARGET_EXPORTS) \
38680 (cd $(TARGET_SUBDIR)/libcilkrts && \
38681 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38682
38683@endif target-libcilkrts
38684
38685.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
38686maybe-install-target-libcilkrts:
38687@if target-libcilkrts
38688maybe-install-target-libcilkrts: install-target-libcilkrts
38689
38690install-target-libcilkrts: installdirs
38691 @: $(MAKE); $(unstage)
38692 @r=`${PWD_COMMAND}`; export r; \
38693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38694 $(NORMAL_TARGET_EXPORTS) \
38695 (cd $(TARGET_SUBDIR)/libcilkrts && \
38696 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38697
38698@endif target-libcilkrts
38699
38700.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
38701maybe-install-strip-target-libcilkrts:
38702@if target-libcilkrts
38703maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
38704
38705install-strip-target-libcilkrts: installdirs
38706 @: $(MAKE); $(unstage)
38707 @r=`${PWD_COMMAND}`; export r; \
38708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38709 $(NORMAL_TARGET_EXPORTS) \
38710 (cd $(TARGET_SUBDIR)/libcilkrts && \
38711 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38712
38713@endif target-libcilkrts
38714
38715# Other targets (info, dvi, pdf, etc.)
38716
38717.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
38718maybe-info-target-libcilkrts:
38719@if target-libcilkrts
38720maybe-info-target-libcilkrts: info-target-libcilkrts
38721
38722info-target-libcilkrts: \
38723 configure-target-libcilkrts
38724 @: $(MAKE); $(unstage)
38725 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38726 r=`${PWD_COMMAND}`; export r; \
38727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38728 $(NORMAL_TARGET_EXPORTS) \
38729 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
38730 for flag in $(EXTRA_TARGET_FLAGS); do \
38731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38732 done; \
38733 (cd $(TARGET_SUBDIR)/libcilkrts && \
38734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38736 "RANLIB=$${RANLIB}" \
38737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38738 info) \
38739 || exit 1
38740
38741@endif target-libcilkrts
38742
38743.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
38744maybe-dvi-target-libcilkrts:
38745@if target-libcilkrts
38746maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
38747
38748dvi-target-libcilkrts: \
38749 configure-target-libcilkrts
38750 @: $(MAKE); $(unstage)
38751 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38752 r=`${PWD_COMMAND}`; export r; \
38753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38754 $(NORMAL_TARGET_EXPORTS) \
38755 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
38756 for flag in $(EXTRA_TARGET_FLAGS); do \
38757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38758 done; \
38759 (cd $(TARGET_SUBDIR)/libcilkrts && \
38760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38762 "RANLIB=$${RANLIB}" \
38763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38764 dvi) \
38765 || exit 1
38766
38767@endif target-libcilkrts
38768
38769.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
38770maybe-pdf-target-libcilkrts:
38771@if target-libcilkrts
38772maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
38773
38774pdf-target-libcilkrts: \
38775 configure-target-libcilkrts
38776 @: $(MAKE); $(unstage)
38777 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38778 r=`${PWD_COMMAND}`; export r; \
38779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38780 $(NORMAL_TARGET_EXPORTS) \
38781 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
38782 for flag in $(EXTRA_TARGET_FLAGS); do \
38783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38784 done; \
38785 (cd $(TARGET_SUBDIR)/libcilkrts && \
38786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38788 "RANLIB=$${RANLIB}" \
38789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38790 pdf) \
38791 || exit 1
38792
38793@endif target-libcilkrts
38794
38795.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
38796maybe-html-target-libcilkrts:
38797@if target-libcilkrts
38798maybe-html-target-libcilkrts: html-target-libcilkrts
38799
38800html-target-libcilkrts: \
38801 configure-target-libcilkrts
38802 @: $(MAKE); $(unstage)
38803 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38804 r=`${PWD_COMMAND}`; export r; \
38805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38806 $(NORMAL_TARGET_EXPORTS) \
38807 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
38808 for flag in $(EXTRA_TARGET_FLAGS); do \
38809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38810 done; \
38811 (cd $(TARGET_SUBDIR)/libcilkrts && \
38812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38814 "RANLIB=$${RANLIB}" \
38815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38816 html) \
38817 || exit 1
38818
38819@endif target-libcilkrts
38820
38821.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
38822maybe-TAGS-target-libcilkrts:
38823@if target-libcilkrts
38824maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
38825
38826TAGS-target-libcilkrts: \
38827 configure-target-libcilkrts
38828 @: $(MAKE); $(unstage)
38829 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38830 r=`${PWD_COMMAND}`; export r; \
38831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38832 $(NORMAL_TARGET_EXPORTS) \
38833 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
38834 for flag in $(EXTRA_TARGET_FLAGS); do \
38835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38836 done; \
38837 (cd $(TARGET_SUBDIR)/libcilkrts && \
38838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38840 "RANLIB=$${RANLIB}" \
38841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38842 TAGS) \
38843 || exit 1
38844
38845@endif target-libcilkrts
38846
38847.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
38848maybe-install-info-target-libcilkrts:
38849@if target-libcilkrts
38850maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
38851
38852install-info-target-libcilkrts: \
38853 configure-target-libcilkrts \
38854 info-target-libcilkrts
38855 @: $(MAKE); $(unstage)
38856 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38857 r=`${PWD_COMMAND}`; export r; \
38858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38859 $(NORMAL_TARGET_EXPORTS) \
38860 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
38861 for flag in $(EXTRA_TARGET_FLAGS); do \
38862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38863 done; \
38864 (cd $(TARGET_SUBDIR)/libcilkrts && \
38865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38867 "RANLIB=$${RANLIB}" \
38868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38869 install-info) \
38870 || exit 1
38871
38872@endif target-libcilkrts
38873
38874.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
38875maybe-install-pdf-target-libcilkrts:
38876@if target-libcilkrts
38877maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
38878
38879install-pdf-target-libcilkrts: \
38880 configure-target-libcilkrts \
38881 pdf-target-libcilkrts
38882 @: $(MAKE); $(unstage)
38883 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38884 r=`${PWD_COMMAND}`; export r; \
38885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38886 $(NORMAL_TARGET_EXPORTS) \
38887 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
38888 for flag in $(EXTRA_TARGET_FLAGS); do \
38889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38890 done; \
38891 (cd $(TARGET_SUBDIR)/libcilkrts && \
38892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38894 "RANLIB=$${RANLIB}" \
38895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38896 install-pdf) \
38897 || exit 1
38898
38899@endif target-libcilkrts
38900
38901.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
38902maybe-install-html-target-libcilkrts:
38903@if target-libcilkrts
38904maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
38905
38906install-html-target-libcilkrts: \
38907 configure-target-libcilkrts \
38908 html-target-libcilkrts
38909 @: $(MAKE); $(unstage)
38910 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38911 r=`${PWD_COMMAND}`; export r; \
38912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38913 $(NORMAL_TARGET_EXPORTS) \
38914 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
38915 for flag in $(EXTRA_TARGET_FLAGS); do \
38916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38917 done; \
38918 (cd $(TARGET_SUBDIR)/libcilkrts && \
38919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38921 "RANLIB=$${RANLIB}" \
38922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38923 install-html) \
38924 || exit 1
38925
38926@endif target-libcilkrts
38927
38928.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
38929maybe-installcheck-target-libcilkrts:
38930@if target-libcilkrts
38931maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
38932
38933installcheck-target-libcilkrts: \
38934 configure-target-libcilkrts
38935 @: $(MAKE); $(unstage)
38936 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38937 r=`${PWD_COMMAND}`; export r; \
38938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38939 $(NORMAL_TARGET_EXPORTS) \
38940 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
38941 for flag in $(EXTRA_TARGET_FLAGS); do \
38942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38943 done; \
38944 (cd $(TARGET_SUBDIR)/libcilkrts && \
38945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38947 "RANLIB=$${RANLIB}" \
38948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38949 installcheck) \
38950 || exit 1
38951
38952@endif target-libcilkrts
38953
38954.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
38955maybe-mostlyclean-target-libcilkrts:
38956@if target-libcilkrts
38957maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
38958
38959mostlyclean-target-libcilkrts:
38960 @: $(MAKE); $(unstage)
38961 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38962 r=`${PWD_COMMAND}`; export r; \
38963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38964 $(NORMAL_TARGET_EXPORTS) \
38965 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
38966 for flag in $(EXTRA_TARGET_FLAGS); do \
38967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38968 done; \
38969 (cd $(TARGET_SUBDIR)/libcilkrts && \
38970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38972 "RANLIB=$${RANLIB}" \
38973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38974 mostlyclean) \
38975 || exit 1
38976
38977@endif target-libcilkrts
38978
38979.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
38980maybe-clean-target-libcilkrts:
38981@if target-libcilkrts
38982maybe-clean-target-libcilkrts: clean-target-libcilkrts
38983
38984clean-target-libcilkrts:
38985 @: $(MAKE); $(unstage)
38986 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38987 r=`${PWD_COMMAND}`; export r; \
38988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38989 $(NORMAL_TARGET_EXPORTS) \
38990 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
38991 for flag in $(EXTRA_TARGET_FLAGS); do \
38992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38993 done; \
38994 (cd $(TARGET_SUBDIR)/libcilkrts && \
38995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38997 "RANLIB=$${RANLIB}" \
38998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38999 clean) \
39000 || exit 1
39001
39002@endif target-libcilkrts
39003
39004.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
39005maybe-distclean-target-libcilkrts:
39006@if target-libcilkrts
39007maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
39008
39009distclean-target-libcilkrts:
39010 @: $(MAKE); $(unstage)
39011 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39012 r=`${PWD_COMMAND}`; export r; \
39013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39014 $(NORMAL_TARGET_EXPORTS) \
39015 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
39016 for flag in $(EXTRA_TARGET_FLAGS); do \
39017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39018 done; \
39019 (cd $(TARGET_SUBDIR)/libcilkrts && \
39020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39022 "RANLIB=$${RANLIB}" \
39023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39024 distclean) \
39025 || exit 1
39026
39027@endif target-libcilkrts
39028
39029.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
39030maybe-maintainer-clean-target-libcilkrts:
39031@if target-libcilkrts
39032maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
39033
39034maintainer-clean-target-libcilkrts:
39035 @: $(MAKE); $(unstage)
39036 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39037 r=`${PWD_COMMAND}`; export r; \
39038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39039 $(NORMAL_TARGET_EXPORTS) \
39040 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
39041 for flag in $(EXTRA_TARGET_FLAGS); do \
39042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39043 done; \
39044 (cd $(TARGET_SUBDIR)/libcilkrts && \
39045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39047 "RANLIB=$${RANLIB}" \
39048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39049 maintainer-clean) \
39050 || exit 1
39051
39052@endif target-libcilkrts
39053
39054
39055
39056
39057
1b6c0831
L
39058.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
39059maybe-configure-target-liboffloadmic:
39060@if gcc-bootstrap
39061configure-target-liboffloadmic: stage_current
39062@endif gcc-bootstrap
39063@if target-liboffloadmic
39064maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
39065configure-target-liboffloadmic:
39066 @: $(MAKE); $(unstage)
39067 @r=`${PWD_COMMAND}`; export r; \
39068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39069 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
39070 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
39071 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
39072 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
39073 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
39074 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
39075 else \
39076 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
39077 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
39078 fi; \
39079 else \
39080 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
39081 fi; \
39082 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 39083 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
39084 $(NORMAL_TARGET_EXPORTS) \
39085 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
39086 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
39087 case $(srcdir) in \
39088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39089 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
39090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39091 esac; \
39092 module_srcdir=liboffloadmic; \
39093 rm -f no-such-file || : ; \
39094 CONFIG_SITE=no-such-file $(SHELL) \
39095 $$s/$$module_srcdir/configure \
39096 --srcdir=$${topdir}/$$module_srcdir \
39097 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39098 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
39099 || exit 1
39100@endif target-liboffloadmic
39101
39102
39103
39104
39105
39106.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
39107maybe-all-target-liboffloadmic:
39108@if gcc-bootstrap
39109all-target-liboffloadmic: stage_current
39110@endif gcc-bootstrap
39111@if target-liboffloadmic
39112TARGET-target-liboffloadmic=all
39113maybe-all-target-liboffloadmic: all-target-liboffloadmic
39114all-target-liboffloadmic: configure-target-liboffloadmic
39115 @: $(MAKE); $(unstage)
39116 @r=`${PWD_COMMAND}`; export r; \
39117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39118 $(NORMAL_TARGET_EXPORTS) \
39119 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39120 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
39121 $(TARGET-target-liboffloadmic))
39122@endif target-liboffloadmic
39123
39124
39125
39126
39127
39128.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
39129maybe-check-target-liboffloadmic:
39130@if target-liboffloadmic
39131maybe-check-target-liboffloadmic: check-target-liboffloadmic
39132
39133check-target-liboffloadmic:
39134 @: $(MAKE); $(unstage)
39135 @r=`${PWD_COMMAND}`; export r; \
39136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39137 $(NORMAL_TARGET_EXPORTS) \
39138 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39139 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39140
39141@endif target-liboffloadmic
39142
39143.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
39144maybe-install-target-liboffloadmic:
39145@if target-liboffloadmic
39146maybe-install-target-liboffloadmic: install-target-liboffloadmic
39147
39148install-target-liboffloadmic: installdirs
39149 @: $(MAKE); $(unstage)
39150 @r=`${PWD_COMMAND}`; export r; \
39151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39152 $(NORMAL_TARGET_EXPORTS) \
39153 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39154 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39155
39156@endif target-liboffloadmic
39157
39158.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
39159maybe-install-strip-target-liboffloadmic:
39160@if target-liboffloadmic
39161maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
39162
39163install-strip-target-liboffloadmic: installdirs
39164 @: $(MAKE); $(unstage)
39165 @r=`${PWD_COMMAND}`; export r; \
39166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39167 $(NORMAL_TARGET_EXPORTS) \
39168 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39169 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39170
39171@endif target-liboffloadmic
39172
39173# Other targets (info, dvi, pdf, etc.)
39174
39175.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
39176maybe-info-target-liboffloadmic:
39177@if target-liboffloadmic
39178maybe-info-target-liboffloadmic: info-target-liboffloadmic
39179
39180info-target-liboffloadmic: \
39181 configure-target-liboffloadmic
39182 @: $(MAKE); $(unstage)
22121df0 39183 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39184 r=`${PWD_COMMAND}`; export r; \
39185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39186 $(NORMAL_TARGET_EXPORTS) \
22121df0 39187 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39188 for flag in $(EXTRA_TARGET_FLAGS); do \
39189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39190 done; \
39191 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39194 "RANLIB=$${RANLIB}" \
39195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39196 info) \
39197 || exit 1
39198
39199@endif target-liboffloadmic
39200
39201.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
39202maybe-dvi-target-liboffloadmic:
39203@if target-liboffloadmic
39204maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
39205
39206dvi-target-liboffloadmic: \
39207 configure-target-liboffloadmic
39208 @: $(MAKE); $(unstage)
22121df0 39209 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39210 r=`${PWD_COMMAND}`; export r; \
39211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39212 $(NORMAL_TARGET_EXPORTS) \
22121df0 39213 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39214 for flag in $(EXTRA_TARGET_FLAGS); do \
39215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39216 done; \
39217 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39220 "RANLIB=$${RANLIB}" \
39221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39222 dvi) \
39223 || exit 1
39224
39225@endif target-liboffloadmic
39226
39227.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
39228maybe-pdf-target-liboffloadmic:
39229@if target-liboffloadmic
39230maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
39231
39232pdf-target-liboffloadmic: \
39233 configure-target-liboffloadmic
39234 @: $(MAKE); $(unstage)
22121df0 39235 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39236 r=`${PWD_COMMAND}`; export r; \
39237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39238 $(NORMAL_TARGET_EXPORTS) \
22121df0 39239 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39240 for flag in $(EXTRA_TARGET_FLAGS); do \
39241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39242 done; \
39243 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39246 "RANLIB=$${RANLIB}" \
39247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39248 pdf) \
39249 || exit 1
39250
39251@endif target-liboffloadmic
39252
39253.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
39254maybe-html-target-liboffloadmic:
39255@if target-liboffloadmic
39256maybe-html-target-liboffloadmic: html-target-liboffloadmic
39257
39258html-target-liboffloadmic: \
39259 configure-target-liboffloadmic
39260 @: $(MAKE); $(unstage)
22121df0 39261 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39262 r=`${PWD_COMMAND}`; export r; \
39263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39264 $(NORMAL_TARGET_EXPORTS) \
22121df0 39265 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39266 for flag in $(EXTRA_TARGET_FLAGS); do \
39267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39268 done; \
39269 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39272 "RANLIB=$${RANLIB}" \
39273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39274 html) \
39275 || exit 1
39276
39277@endif target-liboffloadmic
39278
39279.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
39280maybe-TAGS-target-liboffloadmic:
39281@if target-liboffloadmic
39282maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
39283
39284TAGS-target-liboffloadmic: \
39285 configure-target-liboffloadmic
39286 @: $(MAKE); $(unstage)
22121df0 39287 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39288 r=`${PWD_COMMAND}`; export r; \
39289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39290 $(NORMAL_TARGET_EXPORTS) \
22121df0 39291 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39292 for flag in $(EXTRA_TARGET_FLAGS); do \
39293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39294 done; \
39295 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39298 "RANLIB=$${RANLIB}" \
39299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39300 TAGS) \
39301 || exit 1
39302
39303@endif target-liboffloadmic
39304
39305.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
39306maybe-install-info-target-liboffloadmic:
39307@if target-liboffloadmic
39308maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
39309
39310install-info-target-liboffloadmic: \
39311 configure-target-liboffloadmic \
39312 info-target-liboffloadmic
39313 @: $(MAKE); $(unstage)
22121df0 39314 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39315 r=`${PWD_COMMAND}`; export r; \
39316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39317 $(NORMAL_TARGET_EXPORTS) \
22121df0 39318 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39319 for flag in $(EXTRA_TARGET_FLAGS); do \
39320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39321 done; \
39322 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39325 "RANLIB=$${RANLIB}" \
39326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39327 install-info) \
39328 || exit 1
39329
39330@endif target-liboffloadmic
39331
39332.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
39333maybe-install-pdf-target-liboffloadmic:
39334@if target-liboffloadmic
39335maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
39336
39337install-pdf-target-liboffloadmic: \
39338 configure-target-liboffloadmic \
39339 pdf-target-liboffloadmic
39340 @: $(MAKE); $(unstage)
22121df0 39341 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39342 r=`${PWD_COMMAND}`; export r; \
39343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39344 $(NORMAL_TARGET_EXPORTS) \
22121df0 39345 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39346 for flag in $(EXTRA_TARGET_FLAGS); do \
39347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39348 done; \
39349 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39352 "RANLIB=$${RANLIB}" \
39353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39354 install-pdf) \
39355 || exit 1
39356
39357@endif target-liboffloadmic
39358
39359.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
39360maybe-install-html-target-liboffloadmic:
39361@if target-liboffloadmic
39362maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
39363
39364install-html-target-liboffloadmic: \
39365 configure-target-liboffloadmic \
39366 html-target-liboffloadmic
39367 @: $(MAKE); $(unstage)
22121df0 39368 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39369 r=`${PWD_COMMAND}`; export r; \
39370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39371 $(NORMAL_TARGET_EXPORTS) \
22121df0 39372 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39373 for flag in $(EXTRA_TARGET_FLAGS); do \
39374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39375 done; \
39376 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39379 "RANLIB=$${RANLIB}" \
39380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39381 install-html) \
39382 || exit 1
39383
39384@endif target-liboffloadmic
39385
39386.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
39387maybe-installcheck-target-liboffloadmic:
39388@if target-liboffloadmic
39389maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
39390
39391installcheck-target-liboffloadmic: \
39392 configure-target-liboffloadmic
39393 @: $(MAKE); $(unstage)
22121df0 39394 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39395 r=`${PWD_COMMAND}`; export r; \
39396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39397 $(NORMAL_TARGET_EXPORTS) \
22121df0 39398 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39399 for flag in $(EXTRA_TARGET_FLAGS); do \
39400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39401 done; \
39402 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39405 "RANLIB=$${RANLIB}" \
39406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39407 installcheck) \
39408 || exit 1
39409
39410@endif target-liboffloadmic
39411
39412.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
39413maybe-mostlyclean-target-liboffloadmic:
39414@if target-liboffloadmic
39415maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
39416
39417mostlyclean-target-liboffloadmic:
39418 @: $(MAKE); $(unstage)
22121df0 39419 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39420 r=`${PWD_COMMAND}`; export r; \
39421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39422 $(NORMAL_TARGET_EXPORTS) \
22121df0 39423 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39424 for flag in $(EXTRA_TARGET_FLAGS); do \
39425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39426 done; \
39427 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39430 "RANLIB=$${RANLIB}" \
39431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39432 mostlyclean) \
39433 || exit 1
39434
39435@endif target-liboffloadmic
39436
39437.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
39438maybe-clean-target-liboffloadmic:
39439@if target-liboffloadmic
39440maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
39441
39442clean-target-liboffloadmic:
39443 @: $(MAKE); $(unstage)
22121df0 39444 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39445 r=`${PWD_COMMAND}`; export r; \
39446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39447 $(NORMAL_TARGET_EXPORTS) \
22121df0 39448 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39449 for flag in $(EXTRA_TARGET_FLAGS); do \
39450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39451 done; \
39452 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39455 "RANLIB=$${RANLIB}" \
39456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39457 clean) \
39458 || exit 1
39459
39460@endif target-liboffloadmic
39461
39462.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
39463maybe-distclean-target-liboffloadmic:
39464@if target-liboffloadmic
39465maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
39466
39467distclean-target-liboffloadmic:
39468 @: $(MAKE); $(unstage)
22121df0 39469 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39470 r=`${PWD_COMMAND}`; export r; \
39471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39472 $(NORMAL_TARGET_EXPORTS) \
22121df0 39473 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39474 for flag in $(EXTRA_TARGET_FLAGS); do \
39475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39476 done; \
39477 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39480 "RANLIB=$${RANLIB}" \
39481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39482 distclean) \
39483 || exit 1
39484
39485@endif target-liboffloadmic
39486
39487.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
39488maybe-maintainer-clean-target-liboffloadmic:
39489@if target-liboffloadmic
39490maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
39491
39492maintainer-clean-target-liboffloadmic:
39493 @: $(MAKE); $(unstage)
22121df0 39494 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39495 r=`${PWD_COMMAND}`; export r; \
39496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39497 $(NORMAL_TARGET_EXPORTS) \
22121df0 39498 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39499 for flag in $(EXTRA_TARGET_FLAGS); do \
39500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39501 done; \
39502 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39505 "RANLIB=$${RANLIB}" \
39506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39507 maintainer-clean) \
39508 || exit 1
39509
39510@endif target-liboffloadmic
39511
39512
39513
39514
39515
a90ef4bf
JM
39516.PHONY: configure-target-libssp maybe-configure-target-libssp
39517maybe-configure-target-libssp:
4f0ef2d8 39518@if gcc-bootstrap
a90ef4bf 39519configure-target-libssp: stage_current
4f0ef2d8 39520@endif gcc-bootstrap
a90ef4bf
JM
39521@if target-libssp
39522maybe-configure-target-libssp: configure-target-libssp
39523configure-target-libssp:
0aed8855
PB
39524 @: $(MAKE); $(unstage)
39525 @r=`${PWD_COMMAND}`; export r; \
39526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39527 echo "Checking multilib configuration for libssp..."; \
22121df0
L
39528 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
39529 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39530 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
39531 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
39532 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 39533 else \
a90ef4bf
JM
39534 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
39535 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
39536 fi; \
39537 else \
a90ef4bf 39538 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 39539 fi; \
a90ef4bf 39540 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 39541 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 39542 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39543 echo Configuring in $(TARGET_SUBDIR)/libssp; \
39544 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 39545 case $(srcdir) in \
b00612cc 39546 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39547 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 39548 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 39549 esac; \
1b6c0831 39550 module_srcdir=libssp; \
4b1cb4fe 39551 rm -f no-such-file || : ; \
1b6c0831
L
39552 CONFIG_SITE=no-such-file $(SHELL) \
39553 $$s/$$module_srcdir/configure \
39554 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39555 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39556 --target=${target_alias} \
4b1cb4fe 39557 || exit 1
a90ef4bf 39558@endif target-libssp
4b1cb4fe 39559
a7254363
PB
39560
39561
d545f33b
PB
39562
39563
a90ef4bf
JM
39564.PHONY: all-target-libssp maybe-all-target-libssp
39565maybe-all-target-libssp:
4f0ef2d8 39566@if gcc-bootstrap
a90ef4bf 39567all-target-libssp: stage_current
4f0ef2d8 39568@endif gcc-bootstrap
a90ef4bf
JM
39569@if target-libssp
39570TARGET-target-libssp=all
39571maybe-all-target-libssp: all-target-libssp
39572all-target-libssp: configure-target-libssp
0aed8855 39573 @: $(MAKE); $(unstage)
4b1cb4fe
DD
39574 @r=`${PWD_COMMAND}`; export r; \
39575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39576 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39577 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 39578 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39579 $(TARGET-target-libssp))
39580@endif target-libssp
4b1cb4fe 39581
a7254363
PB
39582
39583
d545f33b
PB
39584
39585
a90ef4bf
JM
39586.PHONY: check-target-libssp maybe-check-target-libssp
39587maybe-check-target-libssp:
39588@if target-libssp
39589maybe-check-target-libssp: check-target-libssp
4b1cb4fe 39590
a90ef4bf 39591check-target-libssp:
0aed8855 39592 @: $(MAKE); $(unstage)
b40e3958
L
39593 @r=`${PWD_COMMAND}`; export r; \
39594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39595 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39596 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 39597 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 39598
a90ef4bf 39599@endif target-libssp
3866be5d 39600
a90ef4bf
JM
39601.PHONY: install-target-libssp maybe-install-target-libssp
39602maybe-install-target-libssp:
39603@if target-libssp
39604maybe-install-target-libssp: install-target-libssp
e2b9e2dc 39605
a90ef4bf 39606install-target-libssp: installdirs
0aed8855 39607 @: $(MAKE); $(unstage)
b40e3958
L
39608 @r=`${PWD_COMMAND}`; export r; \
39609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39610 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39611 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 39612 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 39613
a90ef4bf 39614@endif target-libssp
3866be5d 39615
a90ef4bf
JM
39616.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
39617maybe-install-strip-target-libssp:
39618@if target-libssp
39619maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 39620
a90ef4bf 39621install-strip-target-libssp: installdirs
9b980aa1
RW
39622 @: $(MAKE); $(unstage)
39623 @r=`${PWD_COMMAND}`; export r; \
39624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39625 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39626 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
39627 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39628
a90ef4bf 39629@endif target-libssp
9b980aa1 39630
56a8fe78 39631# Other targets (info, dvi, pdf, etc.)
3866be5d 39632
a90ef4bf
JM
39633.PHONY: maybe-info-target-libssp info-target-libssp
39634maybe-info-target-libssp:
39635@if target-libssp
39636maybe-info-target-libssp: info-target-libssp
3866be5d 39637
a90ef4bf
JM
39638info-target-libssp: \
39639 configure-target-libssp
0aed8855 39640 @: $(MAKE); $(unstage)
22121df0 39641 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
39642 r=`${PWD_COMMAND}`; export r; \
39643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39644 $(NORMAL_TARGET_EXPORTS) \
22121df0 39645 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39646 for flag in $(EXTRA_TARGET_FLAGS); do \
39647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39648 done; \
a90ef4bf 39649 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39652 "RANLIB=$${RANLIB}" \
0c24b341 39653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39654 info) \
4fa63067 39655 || exit 1
16ae0395 39656
a90ef4bf 39657@endif target-libssp
3866be5d 39658
a90ef4bf
JM
39659.PHONY: maybe-dvi-target-libssp dvi-target-libssp
39660maybe-dvi-target-libssp:
39661@if target-libssp
39662maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 39663
a90ef4bf
JM
39664dvi-target-libssp: \
39665 configure-target-libssp
0aed8855 39666 @: $(MAKE); $(unstage)
22121df0 39667 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
39668 r=`${PWD_COMMAND}`; export r; \
39669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39670 $(NORMAL_TARGET_EXPORTS) \
22121df0 39671 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39672 for flag in $(EXTRA_TARGET_FLAGS); do \
39673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39674 done; \
a90ef4bf 39675 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39678 "RANLIB=$${RANLIB}" \
0c24b341 39679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39680 dvi) \
e2b9e2dc
NN
39681 || exit 1
39682
a90ef4bf 39683@endif target-libssp
3866be5d 39684
a90ef4bf
JM
39685.PHONY: maybe-pdf-target-libssp pdf-target-libssp
39686maybe-pdf-target-libssp:
39687@if target-libssp
39688maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 39689
a90ef4bf
JM
39690pdf-target-libssp: \
39691 configure-target-libssp
56a8fe78 39692 @: $(MAKE); $(unstage)
22121df0 39693 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
39694 r=`${PWD_COMMAND}`; export r; \
39695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39696 $(NORMAL_TARGET_EXPORTS) \
22121df0 39697 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
39698 for flag in $(EXTRA_TARGET_FLAGS); do \
39699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39700 done; \
a90ef4bf 39701 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
39702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39704 "RANLIB=$${RANLIB}" \
0c24b341 39705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39706 pdf) \
39707 || exit 1
39708
a90ef4bf 39709@endif target-libssp
a3ca38d2 39710
a90ef4bf
JM
39711.PHONY: maybe-html-target-libssp html-target-libssp
39712maybe-html-target-libssp:
39713@if target-libssp
39714maybe-html-target-libssp: html-target-libssp
108a6f8e 39715
a90ef4bf
JM
39716html-target-libssp: \
39717 configure-target-libssp
108a6f8e 39718 @: $(MAKE); $(unstage)
22121df0 39719 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
39720 r=`${PWD_COMMAND}`; export r; \
39721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39722 $(NORMAL_TARGET_EXPORTS) \
22121df0 39723 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
39724 for flag in $(EXTRA_TARGET_FLAGS); do \
39725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39726 done; \
a90ef4bf 39727 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
39728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39730 "RANLIB=$${RANLIB}" \
0c24b341 39731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39732 html) \
108a6f8e
CD
39733 || exit 1
39734
a90ef4bf 39735@endif target-libssp
108a6f8e 39736
a90ef4bf
JM
39737.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
39738maybe-TAGS-target-libssp:
39739@if target-libssp
39740maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 39741
a90ef4bf
JM
39742TAGS-target-libssp: \
39743 configure-target-libssp
0aed8855 39744 @: $(MAKE); $(unstage)
22121df0 39745 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
39746 r=`${PWD_COMMAND}`; export r; \
39747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39748 $(NORMAL_TARGET_EXPORTS) \
22121df0 39749 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39750 for flag in $(EXTRA_TARGET_FLAGS); do \
39751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39752 done; \
a90ef4bf 39753 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39756 "RANLIB=$${RANLIB}" \
0c24b341 39757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39758 TAGS) \
e2b9e2dc
NN
39759 || exit 1
39760
a90ef4bf 39761@endif target-libssp
3866be5d 39762
a90ef4bf
JM
39763.PHONY: maybe-install-info-target-libssp install-info-target-libssp
39764maybe-install-info-target-libssp:
39765@if target-libssp
39766maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 39767
a90ef4bf
JM
39768install-info-target-libssp: \
39769 configure-target-libssp \
39770 info-target-libssp
0aed8855 39771 @: $(MAKE); $(unstage)
22121df0 39772 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 39773 r=`${PWD_COMMAND}`; export r; \
b40e3958 39774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39775 $(NORMAL_TARGET_EXPORTS) \
22121df0 39776 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39777 for flag in $(EXTRA_TARGET_FLAGS); do \
39778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39779 done; \
a90ef4bf 39780 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39783 "RANLIB=$${RANLIB}" \
0c24b341 39784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39785 install-info) \
4fa63067 39786 || exit 1
3866be5d 39787
a90ef4bf 39788@endif target-libssp
3866be5d 39789
a90ef4bf
JM
39790.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
39791maybe-install-pdf-target-libssp:
39792@if target-libssp
39793maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 39794
a90ef4bf
JM
39795install-pdf-target-libssp: \
39796 configure-target-libssp \
39797 pdf-target-libssp
0aed8855 39798 @: $(MAKE); $(unstage)
22121df0 39799 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 39800 r=`${PWD_COMMAND}`; export r; \
b40e3958 39801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39802 $(NORMAL_TARGET_EXPORTS) \
22121df0 39803 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39804 for flag in $(EXTRA_TARGET_FLAGS); do \
39805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39806 done; \
a90ef4bf 39807 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39810 "RANLIB=$${RANLIB}" \
0c24b341 39811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39812 install-pdf) \
4fa63067 39813 || exit 1
3866be5d 39814
a90ef4bf 39815@endif target-libssp
3866be5d 39816
a90ef4bf
JM
39817.PHONY: maybe-install-html-target-libssp install-html-target-libssp
39818maybe-install-html-target-libssp:
39819@if target-libssp
39820maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 39821
a90ef4bf
JM
39822install-html-target-libssp: \
39823 configure-target-libssp \
39824 html-target-libssp
0aed8855 39825 @: $(MAKE); $(unstage)
22121df0 39826 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
39827 r=`${PWD_COMMAND}`; export r; \
39828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39829 $(NORMAL_TARGET_EXPORTS) \
22121df0 39830 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39831 for flag in $(EXTRA_TARGET_FLAGS); do \
39832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39833 done; \
a90ef4bf 39834 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39837 "RANLIB=$${RANLIB}" \
0c24b341 39838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39839 install-html) \
e2b9e2dc
NN
39840 || exit 1
39841
a90ef4bf 39842@endif target-libssp
3866be5d 39843
a90ef4bf
JM
39844.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
39845maybe-installcheck-target-libssp:
39846@if target-libssp
39847maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 39848
a90ef4bf
JM
39849installcheck-target-libssp: \
39850 configure-target-libssp
0aed8855 39851 @: $(MAKE); $(unstage)
22121df0 39852 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 39853 r=`${PWD_COMMAND}`; export r; \
b40e3958 39854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39855 $(NORMAL_TARGET_EXPORTS) \
22121df0 39856 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39857 for flag in $(EXTRA_TARGET_FLAGS); do \
39858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39859 done; \
a90ef4bf 39860 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39863 "RANLIB=$${RANLIB}" \
0c24b341 39864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39865 installcheck) \
6aa8ef82 39866 || exit 1
6aa8ef82 39867
a90ef4bf 39868@endif target-libssp
6aa8ef82 39869
a90ef4bf
JM
39870.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
39871maybe-mostlyclean-target-libssp:
39872@if target-libssp
39873maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 39874
a90ef4bf
JM
39875mostlyclean-target-libssp:
39876 @: $(MAKE); $(unstage)
22121df0 39877 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39878 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39880 $(NORMAL_TARGET_EXPORTS) \
22121df0 39881 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39882 for flag in $(EXTRA_TARGET_FLAGS); do \
39883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39884 done; \
39885 (cd $(TARGET_SUBDIR)/libssp && \
39886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39888 "RANLIB=$${RANLIB}" \
39889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39890 mostlyclean) \
39891 || exit 1
6aa8ef82 39892
a90ef4bf 39893@endif target-libssp
6aa8ef82 39894
a90ef4bf
JM
39895.PHONY: maybe-clean-target-libssp clean-target-libssp
39896maybe-clean-target-libssp:
39897@if target-libssp
39898maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 39899
a90ef4bf
JM
39900clean-target-libssp:
39901 @: $(MAKE); $(unstage)
22121df0 39902 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39903 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39905 $(NORMAL_TARGET_EXPORTS) \
22121df0 39906 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39907 for flag in $(EXTRA_TARGET_FLAGS); do \
39908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39909 done; \
39910 (cd $(TARGET_SUBDIR)/libssp && \
39911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39913 "RANLIB=$${RANLIB}" \
39914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39915 clean) \
39916 || exit 1
6aa8ef82 39917
a90ef4bf 39918@endif target-libssp
6aa8ef82 39919
a90ef4bf
JM
39920.PHONY: maybe-distclean-target-libssp distclean-target-libssp
39921maybe-distclean-target-libssp:
39922@if target-libssp
39923maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 39924
a90ef4bf
JM
39925distclean-target-libssp:
39926 @: $(MAKE); $(unstage)
22121df0 39927 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39928 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39930 $(NORMAL_TARGET_EXPORTS) \
22121df0 39931 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39932 for flag in $(EXTRA_TARGET_FLAGS); do \
39933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39934 done; \
39935 (cd $(TARGET_SUBDIR)/libssp && \
39936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39938 "RANLIB=$${RANLIB}" \
39939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39940 distclean) \
39941 || exit 1
6aa8ef82 39942
a90ef4bf 39943@endif target-libssp
6aa8ef82 39944
a90ef4bf
JM
39945.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
39946maybe-maintainer-clean-target-libssp:
39947@if target-libssp
39948maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 39949
a90ef4bf
JM
39950maintainer-clean-target-libssp:
39951 @: $(MAKE); $(unstage)
22121df0 39952 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39953 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39955 $(NORMAL_TARGET_EXPORTS) \
22121df0 39956 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39957 for flag in $(EXTRA_TARGET_FLAGS); do \
39958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39959 done; \
39960 (cd $(TARGET_SUBDIR)/libssp && \
39961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39963 "RANLIB=$${RANLIB}" \
39964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39965 maintainer-clean) \
39966 || exit 1
6aa8ef82 39967
a90ef4bf 39968@endif target-libssp
6aa8ef82
DJ
39969
39970
a90ef4bf
JM
39971
39972
39973
39974.PHONY: configure-target-newlib maybe-configure-target-newlib
39975maybe-configure-target-newlib:
39976@if gcc-bootstrap
39977configure-target-newlib: stage_current
39978@endif gcc-bootstrap
39979@if target-newlib
39980maybe-configure-target-newlib: configure-target-newlib
39981configure-target-newlib:
39982 @: $(MAKE); $(unstage)
6aa8ef82
DJ
39983 @r=`${PWD_COMMAND}`; export r; \
39984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39985 echo "Checking multilib configuration for newlib..."; \
22121df0
L
39986 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
39987 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39988 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
39989 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
39990 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
39991 else \
39992 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
39993 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
39994 fi; \
6aa8ef82 39995 else \
a90ef4bf 39996 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 39997 fi; \
a90ef4bf 39998 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 39999 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
40000 $(NORMAL_TARGET_EXPORTS) \
40001 echo Configuring in $(TARGET_SUBDIR)/newlib; \
40002 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
40003 case $(srcdir) in \
40004 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40005 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
40006 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40007 esac; \
1b6c0831 40008 module_srcdir=newlib; \
a90ef4bf 40009 rm -f no-such-file || : ; \
1b6c0831
L
40010 CONFIG_SITE=no-such-file $(SHELL) \
40011 $$s/$$module_srcdir/configure \
40012 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40013 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40014 --target=${target_alias} \
a90ef4bf
JM
40015 || exit 1
40016@endif target-newlib
6aa8ef82
DJ
40017
40018
40019
40020
40021
a90ef4bf
JM
40022.PHONY: all-target-newlib maybe-all-target-newlib
40023maybe-all-target-newlib:
40024@if gcc-bootstrap
40025all-target-newlib: stage_current
40026@endif gcc-bootstrap
40027@if target-newlib
40028TARGET-target-newlib=all
40029maybe-all-target-newlib: all-target-newlib
40030all-target-newlib: configure-target-newlib
40031 @: $(MAKE); $(unstage)
40032 @r=`${PWD_COMMAND}`; export r; \
40033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40034 $(NORMAL_TARGET_EXPORTS) \
40035 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 40036 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40037 $(TARGET-target-newlib))
40038@endif target-newlib
6aa8ef82 40039
6aa8ef82 40040
6aa8ef82 40041
6aa8ef82 40042
6aa8ef82 40043
a90ef4bf
JM
40044.PHONY: check-target-newlib maybe-check-target-newlib
40045maybe-check-target-newlib:
40046@if target-newlib
40047maybe-check-target-newlib: check-target-newlib
40048
40049check-target-newlib:
6aa8ef82
DJ
40050 @: $(MAKE); $(unstage)
40051 @r=`${PWD_COMMAND}`; export r; \
40052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40053 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40054 (cd $(TARGET_SUBDIR)/newlib && \
40055 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40056
40057@endif target-newlib
40058
40059.PHONY: install-target-newlib maybe-install-target-newlib
40060maybe-install-target-newlib:
40061@if target-newlib
40062maybe-install-target-newlib: install-target-newlib
40063
40064install-target-newlib: installdirs
40065 @: $(MAKE); $(unstage)
40066 @r=`${PWD_COMMAND}`; export r; \
40067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40068 $(NORMAL_TARGET_EXPORTS) \
40069 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40070 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40071
a90ef4bf 40072@endif target-newlib
6aa8ef82 40073
a90ef4bf
JM
40074.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
40075maybe-install-strip-target-newlib:
40076@if target-newlib
40077maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 40078
a90ef4bf 40079install-strip-target-newlib: installdirs
9b980aa1
RW
40080 @: $(MAKE); $(unstage)
40081 @r=`${PWD_COMMAND}`; export r; \
40082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40083 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40084 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
40085 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40086
a90ef4bf 40087@endif target-newlib
9b980aa1 40088
6aa8ef82
DJ
40089# Other targets (info, dvi, pdf, etc.)
40090
a90ef4bf
JM
40091.PHONY: maybe-info-target-newlib info-target-newlib
40092maybe-info-target-newlib:
40093@if target-newlib
40094maybe-info-target-newlib: info-target-newlib
6aa8ef82 40095
a90ef4bf
JM
40096info-target-newlib: \
40097 configure-target-newlib
6aa8ef82 40098 @: $(MAKE); $(unstage)
22121df0 40099 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40100 r=`${PWD_COMMAND}`; export r; \
40101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40102 $(NORMAL_TARGET_EXPORTS) \
22121df0 40103 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40104 for flag in $(EXTRA_TARGET_FLAGS); do \
40105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40106 done; \
a90ef4bf 40107 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40110 "RANLIB=$${RANLIB}" \
0c24b341 40111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40112 info) \
40113 || exit 1
40114
a90ef4bf 40115@endif target-newlib
6aa8ef82 40116
a90ef4bf
JM
40117.PHONY: maybe-dvi-target-newlib dvi-target-newlib
40118maybe-dvi-target-newlib:
40119@if target-newlib
40120maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 40121
a90ef4bf
JM
40122dvi-target-newlib: \
40123 configure-target-newlib
6aa8ef82 40124 @: $(MAKE); $(unstage)
22121df0 40125 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40126 r=`${PWD_COMMAND}`; export r; \
40127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40128 $(NORMAL_TARGET_EXPORTS) \
22121df0 40129 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40130 for flag in $(EXTRA_TARGET_FLAGS); do \
40131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40132 done; \
a90ef4bf 40133 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40136 "RANLIB=$${RANLIB}" \
0c24b341 40137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40138 dvi) \
40139 || exit 1
40140
a90ef4bf 40141@endif target-newlib
6aa8ef82 40142
a90ef4bf
JM
40143.PHONY: maybe-pdf-target-newlib pdf-target-newlib
40144maybe-pdf-target-newlib:
40145@if target-newlib
40146maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 40147
a90ef4bf
JM
40148pdf-target-newlib: \
40149 configure-target-newlib
6aa8ef82 40150 @: $(MAKE); $(unstage)
22121df0 40151 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40152 r=`${PWD_COMMAND}`; export r; \
40153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40154 $(NORMAL_TARGET_EXPORTS) \
22121df0 40155 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40156 for flag in $(EXTRA_TARGET_FLAGS); do \
40157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40158 done; \
a90ef4bf 40159 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40162 "RANLIB=$${RANLIB}" \
0c24b341 40163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40164 pdf) \
40165 || exit 1
40166
a90ef4bf 40167@endif target-newlib
6aa8ef82 40168
a90ef4bf
JM
40169.PHONY: maybe-html-target-newlib html-target-newlib
40170maybe-html-target-newlib:
40171@if target-newlib
40172maybe-html-target-newlib: html-target-newlib
6aa8ef82 40173
a90ef4bf
JM
40174html-target-newlib: \
40175 configure-target-newlib
6aa8ef82 40176 @: $(MAKE); $(unstage)
22121df0 40177 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40178 r=`${PWD_COMMAND}`; export r; \
40179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40180 $(NORMAL_TARGET_EXPORTS) \
22121df0 40181 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40182 for flag in $(EXTRA_TARGET_FLAGS); do \
40183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40184 done; \
a90ef4bf 40185 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40188 "RANLIB=$${RANLIB}" \
0c24b341 40189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40190 html) \
40191 || exit 1
40192
a90ef4bf 40193@endif target-newlib
6aa8ef82 40194
a90ef4bf
JM
40195.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
40196maybe-TAGS-target-newlib:
40197@if target-newlib
40198maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 40199
a90ef4bf
JM
40200TAGS-target-newlib: \
40201 configure-target-newlib
6aa8ef82 40202 @: $(MAKE); $(unstage)
22121df0 40203 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40204 r=`${PWD_COMMAND}`; export r; \
40205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40206 $(NORMAL_TARGET_EXPORTS) \
22121df0 40207 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40208 for flag in $(EXTRA_TARGET_FLAGS); do \
40209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40210 done; \
a90ef4bf 40211 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40214 "RANLIB=$${RANLIB}" \
0c24b341 40215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40216 TAGS) \
40217 || exit 1
40218
a90ef4bf 40219@endif target-newlib
6aa8ef82 40220
a90ef4bf
JM
40221.PHONY: maybe-install-info-target-newlib install-info-target-newlib
40222maybe-install-info-target-newlib:
40223@if target-newlib
40224maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 40225
a90ef4bf
JM
40226install-info-target-newlib: \
40227 configure-target-newlib \
40228 info-target-newlib
6aa8ef82 40229 @: $(MAKE); $(unstage)
22121df0 40230 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40231 r=`${PWD_COMMAND}`; export r; \
40232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40233 $(NORMAL_TARGET_EXPORTS) \
22121df0 40234 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40235 for flag in $(EXTRA_TARGET_FLAGS); do \
40236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40237 done; \
a90ef4bf 40238 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40241 "RANLIB=$${RANLIB}" \
0c24b341 40242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40243 install-info) \
40244 || exit 1
40245
a90ef4bf 40246@endif target-newlib
6aa8ef82 40247
a90ef4bf
JM
40248.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
40249maybe-install-pdf-target-newlib:
40250@if target-newlib
40251maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 40252
a90ef4bf
JM
40253install-pdf-target-newlib: \
40254 configure-target-newlib \
40255 pdf-target-newlib
a3ca38d2 40256 @: $(MAKE); $(unstage)
22121df0 40257 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
40258 r=`${PWD_COMMAND}`; export r; \
40259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40260 $(NORMAL_TARGET_EXPORTS) \
22121df0 40261 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
40262 for flag in $(EXTRA_TARGET_FLAGS); do \
40263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40264 done; \
a90ef4bf 40265 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
40266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40268 "RANLIB=$${RANLIB}" \
0c24b341 40269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40270 install-pdf) \
40271 || exit 1
40272
a90ef4bf 40273@endif target-newlib
a3ca38d2 40274
a90ef4bf
JM
40275.PHONY: maybe-install-html-target-newlib install-html-target-newlib
40276maybe-install-html-target-newlib:
40277@if target-newlib
40278maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 40279
a90ef4bf
JM
40280install-html-target-newlib: \
40281 configure-target-newlib \
40282 html-target-newlib
6aa8ef82 40283 @: $(MAKE); $(unstage)
22121df0 40284 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40285 r=`${PWD_COMMAND}`; export r; \
40286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40287 $(NORMAL_TARGET_EXPORTS) \
22121df0 40288 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40289 for flag in $(EXTRA_TARGET_FLAGS); do \
40290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40291 done; \
a90ef4bf 40292 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40295 "RANLIB=$${RANLIB}" \
0c24b341 40296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40297 install-html) \
40298 || exit 1
40299
a90ef4bf 40300@endif target-newlib
6aa8ef82 40301
a90ef4bf
JM
40302.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
40303maybe-installcheck-target-newlib:
40304@if target-newlib
40305maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 40306
a90ef4bf
JM
40307installcheck-target-newlib: \
40308 configure-target-newlib
6aa8ef82 40309 @: $(MAKE); $(unstage)
22121df0 40310 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40311 r=`${PWD_COMMAND}`; export r; \
40312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40313 $(NORMAL_TARGET_EXPORTS) \
22121df0 40314 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40315 for flag in $(EXTRA_TARGET_FLAGS); do \
40316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40317 done; \
a90ef4bf 40318 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40321 "RANLIB=$${RANLIB}" \
0c24b341 40322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40323 installcheck) \
40324 || exit 1
40325
a90ef4bf 40326@endif target-newlib
6aa8ef82 40327
a90ef4bf
JM
40328.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
40329maybe-mostlyclean-target-newlib:
40330@if target-newlib
40331maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 40332
a90ef4bf 40333mostlyclean-target-newlib:
6aa8ef82 40334 @: $(MAKE); $(unstage)
22121df0 40335 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40336 r=`${PWD_COMMAND}`; export r; \
40337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40338 $(NORMAL_TARGET_EXPORTS) \
22121df0 40339 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40340 for flag in $(EXTRA_TARGET_FLAGS); do \
40341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40342 done; \
a90ef4bf 40343 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40346 "RANLIB=$${RANLIB}" \
0c24b341 40347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40348 mostlyclean) \
40349 || exit 1
40350
a90ef4bf 40351@endif target-newlib
6aa8ef82 40352
a90ef4bf
JM
40353.PHONY: maybe-clean-target-newlib clean-target-newlib
40354maybe-clean-target-newlib:
40355@if target-newlib
40356maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 40357
a90ef4bf 40358clean-target-newlib:
6aa8ef82 40359 @: $(MAKE); $(unstage)
22121df0 40360 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40361 r=`${PWD_COMMAND}`; export r; \
40362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40363 $(NORMAL_TARGET_EXPORTS) \
22121df0 40364 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40365 for flag in $(EXTRA_TARGET_FLAGS); do \
40366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40367 done; \
a90ef4bf 40368 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40371 "RANLIB=$${RANLIB}" \
0c24b341 40372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40373 clean) \
40374 || exit 1
40375
a90ef4bf 40376@endif target-newlib
6aa8ef82 40377
a90ef4bf
JM
40378.PHONY: maybe-distclean-target-newlib distclean-target-newlib
40379maybe-distclean-target-newlib:
40380@if target-newlib
40381maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 40382
a90ef4bf 40383distclean-target-newlib:
6aa8ef82 40384 @: $(MAKE); $(unstage)
22121df0 40385 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40386 r=`${PWD_COMMAND}`; export r; \
40387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40388 $(NORMAL_TARGET_EXPORTS) \
22121df0 40389 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40390 for flag in $(EXTRA_TARGET_FLAGS); do \
40391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40392 done; \
a90ef4bf 40393 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40396 "RANLIB=$${RANLIB}" \
0c24b341 40397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40398 distclean) \
40399 || exit 1
40400
a90ef4bf 40401@endif target-newlib
6aa8ef82 40402
a90ef4bf
JM
40403.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
40404maybe-maintainer-clean-target-newlib:
40405@if target-newlib
40406maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 40407
a90ef4bf 40408maintainer-clean-target-newlib:
6aa8ef82 40409 @: $(MAKE); $(unstage)
22121df0 40410 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40411 r=`${PWD_COMMAND}`; export r; \
40412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40413 $(NORMAL_TARGET_EXPORTS) \
22121df0 40414 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40415 for flag in $(EXTRA_TARGET_FLAGS); do \
40416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40417 done; \
a90ef4bf 40418 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40421 "RANLIB=$${RANLIB}" \
0c24b341 40422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40423 maintainer-clean) \
40424 || exit 1
40425
a90ef4bf 40426@endif target-newlib
6aa8ef82
DJ
40427
40428
40429
40430
40431
a90ef4bf
JM
40432.PHONY: configure-target-libgcc maybe-configure-target-libgcc
40433maybe-configure-target-libgcc:
e552509b 40434@if gcc-bootstrap
a90ef4bf 40435configure-target-libgcc: stage_current
e552509b 40436@endif gcc-bootstrap
a90ef4bf
JM
40437@if target-libgcc
40438maybe-configure-target-libgcc: configure-target-libgcc
40439configure-target-libgcc:
e552509b
ILT
40440 @r=`${PWD_COMMAND}`; export r; \
40441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40442 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
40443 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
40444 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40445 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40446 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40447 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 40448 else \
a90ef4bf
JM
40449 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40450 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
40451 fi; \
40452 else \
a90ef4bf 40453 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 40454 fi; \
a90ef4bf 40455 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 40456 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 40457 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40458 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
40459 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
40460 case $(srcdir) in \
40461 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40462 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
40463 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40464 esac; \
1b6c0831 40465 module_srcdir=libgcc; \
e552509b 40466 rm -f no-such-file || : ; \
1b6c0831
L
40467 CONFIG_SITE=no-such-file $(SHELL) \
40468 $$s/$$module_srcdir/configure \
40469 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40470 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40471 --target=${target_alias} \
e552509b 40472 || exit 1
a90ef4bf 40473@endif target-libgcc
e552509b
ILT
40474
40475
e552509b 40476
a90ef4bf
JM
40477.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
40478maybe-configure-stage1-target-libgcc:
40479@if target-libgcc-bootstrap
40480maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
40481configure-stage1-target-libgcc:
40482 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40483 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40484 @r=`${PWD_COMMAND}`; export r; \
40485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40486 TFLAGS="$(STAGE1_TFLAGS)"; \
40487 echo "Checking multilib configuration for libgcc..."; \
22121df0 40488 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40489 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40490 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40491 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40492 else \
40493 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40494 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40495 fi; \
40496 else \
40497 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40498 fi; \
40499 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40500 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40501 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40502 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40503 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40504 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
40505 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40506 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40507 case $(srcdir) in \
40508 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40509 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40510 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40511 esac; \
1b6c0831
L
40512 module_srcdir=libgcc; \
40513 $(SHELL) $$s/$$module_srcdir/configure \
40514 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40515 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
40516 --target=${target_alias} \
40517 \
a90ef4bf
JM
40518 $(STAGE1_CONFIGURE_FLAGS)
40519@endif target-libgcc-bootstrap
e552509b 40520
a90ef4bf
JM
40521.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
40522maybe-configure-stage2-target-libgcc:
40523@if target-libgcc-bootstrap
40524maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
40525configure-stage2-target-libgcc:
40526 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
40527 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40528 @r=`${PWD_COMMAND}`; export r; \
40529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40530 TFLAGS="$(STAGE2_TFLAGS)"; \
40531 echo "Checking multilib configuration for libgcc..."; \
22121df0 40532 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40533 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40534 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40535 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40536 else \
40537 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40538 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40539 fi; \
40540 else \
40541 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40542 fi; \
40543 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40544 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40545 \
40546 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40547 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40548 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40549 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
40550 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40551 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40552 case $(srcdir) in \
40553 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40554 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40555 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40556 esac; \
1b6c0831
L
40557 module_srcdir=libgcc; \
40558 $(SHELL) $$s/$$module_srcdir/configure \
40559 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40560 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40561 --target=${target_alias} \
22121df0 40562 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40563 $(STAGE2_CONFIGURE_FLAGS)
40564@endif target-libgcc-bootstrap
9b980aa1 40565
a90ef4bf
JM
40566.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
40567maybe-configure-stage3-target-libgcc:
40568@if target-libgcc-bootstrap
40569maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
40570configure-stage3-target-libgcc:
40571 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
40572 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
40573 @r=`${PWD_COMMAND}`; export r; \
40574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40575 TFLAGS="$(STAGE3_TFLAGS)"; \
40576 echo "Checking multilib configuration for libgcc..."; \
22121df0 40577 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40578 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40579 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40580 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40581 else \
40582 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40583 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40584 fi; \
40585 else \
40586 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40587 fi; \
40588 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 40589 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40590 \
40591 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40592 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40593 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40594 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
40595 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40596 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40597 case $(srcdir) in \
40598 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40599 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40600 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40601 esac; \
1b6c0831
L
40602 module_srcdir=libgcc; \
40603 $(SHELL) $$s/$$module_srcdir/configure \
40604 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40605 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40606 --target=${target_alias} \
22121df0 40607 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40608 $(STAGE3_CONFIGURE_FLAGS)
40609@endif target-libgcc-bootstrap
e552509b 40610
a90ef4bf
JM
40611.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
40612maybe-configure-stage4-target-libgcc:
40613@if target-libgcc-bootstrap
40614maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
40615configure-stage4-target-libgcc:
40616 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
40617 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
40618 @r=`${PWD_COMMAND}`; export r; \
e552509b 40619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40620 TFLAGS="$(STAGE4_TFLAGS)"; \
40621 echo "Checking multilib configuration for libgcc..."; \
22121df0 40622 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40623 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40624 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40625 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40626 else \
40627 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40628 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40629 fi; \
40630 else \
40631 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40632 fi; \
40633 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40634 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40635 \
40636 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40637 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40638 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40639 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
40640 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40641 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40642 case $(srcdir) in \
40643 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40644 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40645 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40646 esac; \
1b6c0831
L
40647 module_srcdir=libgcc; \
40648 $(SHELL) $$s/$$module_srcdir/configure \
40649 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40650 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40651 --target=${target_alias} \
22121df0 40652 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40653 $(STAGE4_CONFIGURE_FLAGS)
40654@endif target-libgcc-bootstrap
40655
40656.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
40657maybe-configure-stageprofile-target-libgcc:
40658@if target-libgcc-bootstrap
40659maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
40660configure-stageprofile-target-libgcc:
40661 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
40662 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
40663 @r=`${PWD_COMMAND}`; export r; \
e552509b 40664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40665 TFLAGS="$(STAGEprofile_TFLAGS)"; \
40666 echo "Checking multilib configuration for libgcc..."; \
22121df0 40667 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40668 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40669 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40670 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40671 else \
40672 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40673 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40674 fi; \
40675 else \
40676 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40677 fi; \
40678 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40679 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40680 \
40681 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40682 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40683 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40684 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
40685 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40686 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40687 case $(srcdir) in \
40688 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40689 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40690 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40691 esac; \
1b6c0831
L
40692 module_srcdir=libgcc; \
40693 $(SHELL) $$s/$$module_srcdir/configure \
40694 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40695 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40696 --target=${target_alias} \
22121df0 40697 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40698 $(STAGEprofile_CONFIGURE_FLAGS)
40699@endif target-libgcc-bootstrap
e552509b 40700
a90ef4bf
JM
40701.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
40702maybe-configure-stagefeedback-target-libgcc:
40703@if target-libgcc-bootstrap
40704maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
40705configure-stagefeedback-target-libgcc:
40706 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
40707 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
40708 @r=`${PWD_COMMAND}`; export r; \
e552509b 40709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40710 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
40711 echo "Checking multilib configuration for libgcc..."; \
22121df0 40712 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40713 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40714 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40715 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40716 else \
40717 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40718 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40719 fi; \
40720 else \
40721 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40722 fi; \
40723 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40724 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40725 \
40726 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40727 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40728 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40729 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
40730 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40731 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40732 case $(srcdir) in \
40733 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40734 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40735 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40736 esac; \
1b6c0831
L
40737 module_srcdir=libgcc; \
40738 $(SHELL) $$s/$$module_srcdir/configure \
40739 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40740 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40741 --target=${target_alias} \
22121df0 40742 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40743 $(STAGEfeedback_CONFIGURE_FLAGS)
40744@endif target-libgcc-bootstrap
e552509b 40745
e552509b 40746
e552509b 40747
e552509b 40748
e552509b 40749
a90ef4bf
JM
40750.PHONY: all-target-libgcc maybe-all-target-libgcc
40751maybe-all-target-libgcc:
40752@if gcc-bootstrap
40753all-target-libgcc: stage_current
40754@endif gcc-bootstrap
40755@if target-libgcc
40756TARGET-target-libgcc=all
40757maybe-all-target-libgcc: all-target-libgcc
40758all-target-libgcc: configure-target-libgcc
40759 @r=`${PWD_COMMAND}`; export r; \
e552509b 40760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40761 $(NORMAL_TARGET_EXPORTS) \
40762 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40763 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40764 $(TARGET-target-libgcc))
40765@endif target-libgcc
e552509b 40766
e552509b 40767
e552509b 40768
a90ef4bf
JM
40769.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
40770.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
40771maybe-all-stage1-target-libgcc:
40772maybe-clean-stage1-target-libgcc:
40773@if target-libgcc-bootstrap
40774maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
40775all-stage1: all-stage1-target-libgcc
40776TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
40777all-stage1-target-libgcc: configure-stage1-target-libgcc
40778 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40779 @r=`${PWD_COMMAND}`; export r; \
e552509b 40780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40781 TFLAGS="$(STAGE1_TFLAGS)"; \
40782 $(NORMAL_TARGET_EXPORTS) \
40783 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40784 \
a90ef4bf
JM
40785 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40786 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40787 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40788 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40789 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40790 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40791 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
40792 $(EXTRA_TARGET_FLAGS) \
40793 \
05a13254 40794 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 40795 $(TARGET-stage1-target-libgcc)
e552509b 40796
a90ef4bf
JM
40797maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
40798clean-stage1: clean-stage1-target-libgcc
40799clean-stage1-target-libgcc:
40800 @if [ $(current_stage) = stage1 ]; then \
40801 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40802 else \
40803 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
40804 $(MAKE) stage1-start; \
40805 fi; \
40806 cd $(TARGET_SUBDIR)/libgcc && \
40807 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 40808 clean
a90ef4bf 40809@endif target-libgcc-bootstrap
e552509b 40810
e552509b 40811
a90ef4bf
JM
40812.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
40813.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
40814maybe-all-stage2-target-libgcc:
40815maybe-clean-stage2-target-libgcc:
40816@if target-libgcc-bootstrap
40817maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
40818all-stage2: all-stage2-target-libgcc
40819TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
40820all-stage2-target-libgcc: configure-stage2-target-libgcc
40821 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
40822 @r=`${PWD_COMMAND}`; export r; \
e552509b 40823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40824 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 40825 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40826 \
40827 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40828 \
a90ef4bf
JM
40829 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40830 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40831 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40832 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40833 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40834 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40835 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40836 $(EXTRA_TARGET_FLAGS) \
05a13254 40837 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 40838 $(TARGET-stage2-target-libgcc)
e552509b 40839
a90ef4bf
JM
40840maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
40841clean-stage2: clean-stage2-target-libgcc
40842clean-stage2-target-libgcc:
40843 @if [ $(current_stage) = stage2 ]; then \
40844 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40845 else \
40846 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
40847 $(MAKE) stage2-start; \
40848 fi; \
40849 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40850 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40851@endif target-libgcc-bootstrap
e552509b 40852
e552509b 40853
a90ef4bf
JM
40854.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
40855.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
40856maybe-all-stage3-target-libgcc:
40857maybe-clean-stage3-target-libgcc:
40858@if target-libgcc-bootstrap
40859maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
40860all-stage3: all-stage3-target-libgcc
40861TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
40862all-stage3-target-libgcc: configure-stage3-target-libgcc
40863 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
40864 @r=`${PWD_COMMAND}`; export r; \
e552509b 40865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40866 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 40867 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40868 \
40869 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40870 \
a90ef4bf
JM
40871 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40872 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40873 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40874 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40875 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40876 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40877 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40878 $(EXTRA_TARGET_FLAGS) \
05a13254 40879 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 40880 $(TARGET-stage3-target-libgcc)
e552509b 40881
a90ef4bf
JM
40882maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
40883clean-stage3: clean-stage3-target-libgcc
40884clean-stage3-target-libgcc:
40885 @if [ $(current_stage) = stage3 ]; then \
40886 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40887 else \
40888 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
40889 $(MAKE) stage3-start; \
40890 fi; \
40891 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40892 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40893@endif target-libgcc-bootstrap
e552509b 40894
e552509b 40895
a90ef4bf
JM
40896.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
40897.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
40898maybe-all-stage4-target-libgcc:
40899maybe-clean-stage4-target-libgcc:
40900@if target-libgcc-bootstrap
40901maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
40902all-stage4: all-stage4-target-libgcc
40903TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
40904all-stage4-target-libgcc: configure-stage4-target-libgcc
40905 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
40906 @r=`${PWD_COMMAND}`; export r; \
e552509b 40907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40908 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 40909 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40910 \
40911 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40912 \
a90ef4bf
JM
40913 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40914 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40915 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40916 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40917 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40918 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40919 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40920 $(EXTRA_TARGET_FLAGS) \
05a13254 40921 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 40922 $(TARGET-stage4-target-libgcc)
e552509b 40923
a90ef4bf
JM
40924maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
40925clean-stage4: clean-stage4-target-libgcc
40926clean-stage4-target-libgcc:
40927 @if [ $(current_stage) = stage4 ]; then \
40928 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40929 else \
40930 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
40931 $(MAKE) stage4-start; \
40932 fi; \
40933 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40934 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40935@endif target-libgcc-bootstrap
e552509b
ILT
40936
40937
a90ef4bf
JM
40938.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
40939.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
40940maybe-all-stageprofile-target-libgcc:
40941maybe-clean-stageprofile-target-libgcc:
40942@if target-libgcc-bootstrap
40943maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
40944all-stageprofile: all-stageprofile-target-libgcc
40945TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
40946all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
40947 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
40948 @r=`${PWD_COMMAND}`; export r; \
40949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40950 TFLAGS="$(STAGEprofile_TFLAGS)"; \
40951 $(NORMAL_TARGET_EXPORTS) \
40952 \
40953 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40954 \
a90ef4bf
JM
40955 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40956 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40957 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40958 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40959 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40960 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40961 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40962 $(EXTRA_TARGET_FLAGS) \
05a13254 40963 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
40964 $(TARGET-stageprofile-target-libgcc)
40965
40966maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
40967clean-stageprofile: clean-stageprofile-target-libgcc
40968clean-stageprofile-target-libgcc:
40969 @if [ $(current_stage) = stageprofile ]; then \
40970 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 40971 else \
a90ef4bf
JM
40972 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
40973 $(MAKE) stageprofile-start; \
c52c6897 40974 fi; \
a90ef4bf 40975 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40976 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40977@endif target-libgcc-bootstrap
d545f33b
PB
40978
40979
a90ef4bf
JM
40980.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
40981.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
40982maybe-all-stagefeedback-target-libgcc:
40983maybe-clean-stagefeedback-target-libgcc:
40984@if target-libgcc-bootstrap
40985maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
40986all-stagefeedback: all-stagefeedback-target-libgcc
40987TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
40988all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
40989 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
40990 @r=`${PWD_COMMAND}`; export r; \
40991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40992 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
40993 $(NORMAL_TARGET_EXPORTS) \
40994 \
40995 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40996 \
a90ef4bf
JM
40997 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40998 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40999 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41000 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41001 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41002 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41003 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41004 $(EXTRA_TARGET_FLAGS) \
05a13254 41005 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
41006 $(TARGET-stagefeedback-target-libgcc)
41007
41008maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
41009clean-stagefeedback: clean-stagefeedback-target-libgcc
41010clean-stagefeedback-target-libgcc:
41011 @if [ $(current_stage) = stagefeedback ]; then \
41012 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41013 else \
41014 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
41015 $(MAKE) stagefeedback-start; \
41016 fi; \
41017 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41018 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41019@endif target-libgcc-bootstrap
4b1cb4fe 41020
a7254363
PB
41021
41022
d545f33b
PB
41023
41024
4b1cb4fe 41025
a90ef4bf
JM
41026.PHONY: check-target-libgcc maybe-check-target-libgcc
41027maybe-check-target-libgcc:
41028@if target-libgcc
41029maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 41030
a90ef4bf
JM
41031# Dummy target for uncheckable module.
41032check-target-libgcc:
4b1cb4fe 41033
a90ef4bf 41034@endif target-libgcc
4b1cb4fe 41035
a90ef4bf
JM
41036.PHONY: install-target-libgcc maybe-install-target-libgcc
41037maybe-install-target-libgcc:
41038@if target-libgcc
41039maybe-install-target-libgcc: install-target-libgcc
41040
41041install-target-libgcc: installdirs
0aed8855 41042 @: $(MAKE); $(unstage)
4b1cb4fe
DD
41043 @r=`${PWD_COMMAND}`; export r; \
41044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41045 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41046 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 41047 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 41048
a90ef4bf 41049@endif target-libgcc
4b1cb4fe 41050
a90ef4bf
JM
41051.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
41052maybe-install-strip-target-libgcc:
41053@if target-libgcc
41054maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 41055
a90ef4bf 41056install-strip-target-libgcc: installdirs
9b980aa1
RW
41057 @: $(MAKE); $(unstage)
41058 @r=`${PWD_COMMAND}`; export r; \
41059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41060 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41061 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
41062 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41063
a90ef4bf 41064@endif target-libgcc
9b980aa1 41065
56a8fe78 41066# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 41067
a90ef4bf
JM
41068.PHONY: maybe-info-target-libgcc info-target-libgcc
41069maybe-info-target-libgcc:
41070@if target-libgcc
41071maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 41072
a90ef4bf
JM
41073info-target-libgcc: \
41074 configure-target-libgcc
0aed8855 41075 @: $(MAKE); $(unstage)
22121df0 41076 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41077 r=`${PWD_COMMAND}`; export r; \
41078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41079 $(NORMAL_TARGET_EXPORTS) \
22121df0 41080 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41081 for flag in $(EXTRA_TARGET_FLAGS); do \
41082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41083 done; \
a90ef4bf 41084 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41087 "RANLIB=$${RANLIB}" \
0c24b341 41088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41089 info) \
4b1cb4fe
DD
41090 || exit 1
41091
a90ef4bf 41092@endif target-libgcc
4b1cb4fe 41093
a90ef4bf
JM
41094.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
41095maybe-dvi-target-libgcc:
41096@if target-libgcc
41097maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 41098
a90ef4bf
JM
41099dvi-target-libgcc: \
41100 configure-target-libgcc
0aed8855 41101 @: $(MAKE); $(unstage)
22121df0 41102 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41103 r=`${PWD_COMMAND}`; export r; \
41104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41105 $(NORMAL_TARGET_EXPORTS) \
22121df0 41106 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41107 for flag in $(EXTRA_TARGET_FLAGS); do \
41108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41109 done; \
a90ef4bf 41110 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41113 "RANLIB=$${RANLIB}" \
0c24b341 41114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41115 dvi) \
4b1cb4fe
DD
41116 || exit 1
41117
a90ef4bf 41118@endif target-libgcc
4b1cb4fe 41119
a90ef4bf
JM
41120.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
41121maybe-pdf-target-libgcc:
41122@if target-libgcc
41123maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 41124
a90ef4bf
JM
41125pdf-target-libgcc: \
41126 configure-target-libgcc
56a8fe78 41127 @: $(MAKE); $(unstage)
22121df0 41128 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
41129 r=`${PWD_COMMAND}`; export r; \
41130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41131 $(NORMAL_TARGET_EXPORTS) \
22121df0 41132 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
41133 for flag in $(EXTRA_TARGET_FLAGS); do \
41134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41135 done; \
a90ef4bf 41136 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
41137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41139 "RANLIB=$${RANLIB}" \
0c24b341 41140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41141 pdf) \
41142 || exit 1
41143
a90ef4bf 41144@endif target-libgcc
56a8fe78 41145
a90ef4bf
JM
41146.PHONY: maybe-html-target-libgcc html-target-libgcc
41147maybe-html-target-libgcc:
41148@if target-libgcc
41149maybe-html-target-libgcc: html-target-libgcc
6d389afc 41150
a90ef4bf
JM
41151html-target-libgcc: \
41152 configure-target-libgcc
0aed8855 41153 @: $(MAKE); $(unstage)
22121df0 41154 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
41155 r=`${PWD_COMMAND}`; export r; \
41156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41157 $(NORMAL_TARGET_EXPORTS) \
22121df0 41158 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
41159 for flag in $(EXTRA_TARGET_FLAGS); do \
41160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41161 done; \
a90ef4bf 41162 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
41163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41165 "RANLIB=$${RANLIB}" \
0c24b341 41166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41167 html) \
41168 || exit 1
41169
a90ef4bf 41170@endif target-libgcc
6d389afc 41171
a90ef4bf
JM
41172.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
41173maybe-TAGS-target-libgcc:
41174@if target-libgcc
41175maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 41176
a90ef4bf
JM
41177TAGS-target-libgcc: \
41178 configure-target-libgcc
0aed8855 41179 @: $(MAKE); $(unstage)
22121df0 41180 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41181 r=`${PWD_COMMAND}`; export r; \
41182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41183 $(NORMAL_TARGET_EXPORTS) \
22121df0 41184 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41185 for flag in $(EXTRA_TARGET_FLAGS); do \
41186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41187 done; \
a90ef4bf 41188 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41191 "RANLIB=$${RANLIB}" \
0c24b341 41192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41193 TAGS) \
4b1cb4fe
DD
41194 || exit 1
41195
a90ef4bf 41196@endif target-libgcc
4b1cb4fe 41197
a90ef4bf
JM
41198.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
41199maybe-install-info-target-libgcc:
41200@if target-libgcc
41201maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 41202
a90ef4bf
JM
41203install-info-target-libgcc: \
41204 configure-target-libgcc \
41205 info-target-libgcc
0aed8855 41206 @: $(MAKE); $(unstage)
22121df0 41207 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41208 r=`${PWD_COMMAND}`; export r; \
41209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41210 $(NORMAL_TARGET_EXPORTS) \
22121df0 41211 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41212 for flag in $(EXTRA_TARGET_FLAGS); do \
41213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41214 done; \
a90ef4bf 41215 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41218 "RANLIB=$${RANLIB}" \
0c24b341 41219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41220 install-info) \
4b1cb4fe
DD
41221 || exit 1
41222
a90ef4bf 41223@endif target-libgcc
4b1cb4fe 41224
a90ef4bf
JM
41225.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
41226maybe-install-pdf-target-libgcc:
41227@if target-libgcc
41228maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 41229
a90ef4bf
JM
41230install-pdf-target-libgcc: \
41231 configure-target-libgcc \
41232 pdf-target-libgcc
a3ca38d2 41233 @: $(MAKE); $(unstage)
22121df0 41234 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
41235 r=`${PWD_COMMAND}`; export r; \
41236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41237 $(NORMAL_TARGET_EXPORTS) \
22121df0 41238 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
41239 for flag in $(EXTRA_TARGET_FLAGS); do \
41240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41241 done; \
a90ef4bf 41242 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
41243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41245 "RANLIB=$${RANLIB}" \
0c24b341 41246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41247 install-pdf) \
41248 || exit 1
41249
a90ef4bf 41250@endif target-libgcc
a3ca38d2 41251
a90ef4bf
JM
41252.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
41253maybe-install-html-target-libgcc:
41254@if target-libgcc
41255maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 41256
a90ef4bf
JM
41257install-html-target-libgcc: \
41258 configure-target-libgcc \
41259 html-target-libgcc
108a6f8e 41260 @: $(MAKE); $(unstage)
22121df0 41261 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
41262 r=`${PWD_COMMAND}`; export r; \
41263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41264 $(NORMAL_TARGET_EXPORTS) \
22121df0 41265 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
41266 for flag in $(EXTRA_TARGET_FLAGS); do \
41267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41268 done; \
a90ef4bf 41269 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
41270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41272 "RANLIB=$${RANLIB}" \
0c24b341 41273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41274 install-html) \
41275 || exit 1
41276
a90ef4bf 41277@endif target-libgcc
108a6f8e 41278
a90ef4bf
JM
41279.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
41280maybe-installcheck-target-libgcc:
41281@if target-libgcc
41282maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 41283
a90ef4bf
JM
41284installcheck-target-libgcc: \
41285 configure-target-libgcc
0aed8855 41286 @: $(MAKE); $(unstage)
22121df0 41287 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41288 r=`${PWD_COMMAND}`; export r; \
41289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41290 $(NORMAL_TARGET_EXPORTS) \
22121df0 41291 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41292 for flag in $(EXTRA_TARGET_FLAGS); do \
41293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41294 done; \
a90ef4bf 41295 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41298 "RANLIB=$${RANLIB}" \
0c24b341 41299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41300 installcheck) \
4b1cb4fe
DD
41301 || exit 1
41302
a90ef4bf 41303@endif target-libgcc
4b1cb4fe 41304
a90ef4bf
JM
41305.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
41306maybe-mostlyclean-target-libgcc:
41307@if target-libgcc
41308maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 41309
a90ef4bf 41310mostlyclean-target-libgcc:
0aed8855 41311 @: $(MAKE); $(unstage)
22121df0 41312 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41313 r=`${PWD_COMMAND}`; export r; \
41314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41315 $(NORMAL_TARGET_EXPORTS) \
22121df0 41316 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41317 for flag in $(EXTRA_TARGET_FLAGS); do \
41318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41319 done; \
a90ef4bf 41320 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41323 "RANLIB=$${RANLIB}" \
0c24b341 41324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41325 mostlyclean) \
4b1cb4fe
DD
41326 || exit 1
41327
a90ef4bf 41328@endif target-libgcc
4b1cb4fe 41329
a90ef4bf
JM
41330.PHONY: maybe-clean-target-libgcc clean-target-libgcc
41331maybe-clean-target-libgcc:
41332@if target-libgcc
41333maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 41334
a90ef4bf 41335clean-target-libgcc:
0aed8855 41336 @: $(MAKE); $(unstage)
22121df0 41337 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41338 r=`${PWD_COMMAND}`; export r; \
41339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41340 $(NORMAL_TARGET_EXPORTS) \
22121df0 41341 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41342 for flag in $(EXTRA_TARGET_FLAGS); do \
41343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41344 done; \
a90ef4bf 41345 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41348 "RANLIB=$${RANLIB}" \
0c24b341 41349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41350 clean) \
4b1cb4fe
DD
41351 || exit 1
41352
a90ef4bf 41353@endif target-libgcc
4b1cb4fe 41354
a90ef4bf
JM
41355.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
41356maybe-distclean-target-libgcc:
41357@if target-libgcc
41358maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 41359
a90ef4bf 41360distclean-target-libgcc:
0aed8855 41361 @: $(MAKE); $(unstage)
22121df0 41362 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41363 r=`${PWD_COMMAND}`; export r; \
41364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41365 $(NORMAL_TARGET_EXPORTS) \
22121df0 41366 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41367 for flag in $(EXTRA_TARGET_FLAGS); do \
41368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41369 done; \
a90ef4bf 41370 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41373 "RANLIB=$${RANLIB}" \
0c24b341 41374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41375 distclean) \
4b1cb4fe
DD
41376 || exit 1
41377
a90ef4bf 41378@endif target-libgcc
4b1cb4fe 41379
a90ef4bf
JM
41380.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
41381maybe-maintainer-clean-target-libgcc:
41382@if target-libgcc
41383maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 41384
a90ef4bf 41385maintainer-clean-target-libgcc:
0aed8855 41386 @: $(MAKE); $(unstage)
22121df0 41387 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41388 r=`${PWD_COMMAND}`; export r; \
41389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41390 $(NORMAL_TARGET_EXPORTS) \
22121df0 41391 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41392 for flag in $(EXTRA_TARGET_FLAGS); do \
41393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41394 done; \
a90ef4bf 41395 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41398 "RANLIB=$${RANLIB}" \
0c24b341 41399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41400 maintainer-clean) \
4b1cb4fe
DD
41401 || exit 1
41402
a90ef4bf 41403@endif target-libgcc
4b1cb4fe
DD
41404
41405
3866be5d 41406
a7254363 41407
e90269c8 41408
2bf680c4
ILT
41409.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
41410maybe-configure-target-libbacktrace:
41411@if gcc-bootstrap
41412configure-target-libbacktrace: stage_current
41413@endif gcc-bootstrap
41414@if target-libbacktrace
41415maybe-configure-target-libbacktrace: configure-target-libbacktrace
41416configure-target-libbacktrace:
41417 @: $(MAKE); $(unstage)
41418 @r=`${PWD_COMMAND}`; export r; \
41419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41420 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
41421 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
41422 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
41423 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
41424 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
41425 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
41426 else \
41427 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
41428 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
41429 fi; \
41430 else \
41431 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
41432 fi; \
41433 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 41434 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
41435 $(NORMAL_TARGET_EXPORTS) \
41436 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
41437 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
41438 case $(srcdir) in \
41439 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41440 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
41441 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41442 esac; \
1b6c0831 41443 module_srcdir=libbacktrace; \
2bf680c4 41444 rm -f no-such-file || : ; \
1b6c0831
L
41445 CONFIG_SITE=no-such-file $(SHELL) \
41446 $$s/$$module_srcdir/configure \
41447 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 41448 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41449 --target=${target_alias} \
2bf680c4
ILT
41450 || exit 1
41451@endif target-libbacktrace
41452
41453
41454
41455
41456
41457.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
41458maybe-all-target-libbacktrace:
41459@if gcc-bootstrap
41460all-target-libbacktrace: stage_current
41461@endif gcc-bootstrap
41462@if target-libbacktrace
41463TARGET-target-libbacktrace=all
41464maybe-all-target-libbacktrace: all-target-libbacktrace
41465all-target-libbacktrace: configure-target-libbacktrace
41466 @: $(MAKE); $(unstage)
41467 @r=`${PWD_COMMAND}`; export r; \
41468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41469 $(NORMAL_TARGET_EXPORTS) \
41470 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 41471 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
41472 $(TARGET-target-libbacktrace))
41473@endif target-libbacktrace
41474
41475
41476
41477
41478
41479.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
41480maybe-check-target-libbacktrace:
41481@if target-libbacktrace
41482maybe-check-target-libbacktrace: check-target-libbacktrace
41483
41484check-target-libbacktrace:
41485 @: $(MAKE); $(unstage)
41486 @r=`${PWD_COMMAND}`; export r; \
41487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41488 $(NORMAL_TARGET_EXPORTS) \
41489 (cd $(TARGET_SUBDIR)/libbacktrace && \
41490 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
41491
41492@endif target-libbacktrace
41493
41494.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
41495maybe-install-target-libbacktrace:
41496@if target-libbacktrace
41497maybe-install-target-libbacktrace: install-target-libbacktrace
41498
41499install-target-libbacktrace: installdirs
41500 @: $(MAKE); $(unstage)
41501 @r=`${PWD_COMMAND}`; export r; \
41502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41503 $(NORMAL_TARGET_EXPORTS) \
41504 (cd $(TARGET_SUBDIR)/libbacktrace && \
41505 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
41506
41507@endif target-libbacktrace
41508
41509.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
41510maybe-install-strip-target-libbacktrace:
41511@if target-libbacktrace
41512maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
41513
41514install-strip-target-libbacktrace: installdirs
41515 @: $(MAKE); $(unstage)
41516 @r=`${PWD_COMMAND}`; export r; \
41517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41518 $(NORMAL_TARGET_EXPORTS) \
41519 (cd $(TARGET_SUBDIR)/libbacktrace && \
41520 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41521
41522@endif target-libbacktrace
41523
41524# Other targets (info, dvi, pdf, etc.)
41525
41526.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
41527maybe-info-target-libbacktrace:
41528@if target-libbacktrace
41529maybe-info-target-libbacktrace: info-target-libbacktrace
41530
41531info-target-libbacktrace: \
41532 configure-target-libbacktrace
41533 @: $(MAKE); $(unstage)
22121df0 41534 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41535 r=`${PWD_COMMAND}`; export r; \
41536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41537 $(NORMAL_TARGET_EXPORTS) \
22121df0 41538 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41539 for flag in $(EXTRA_TARGET_FLAGS); do \
41540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41541 done; \
41542 (cd $(TARGET_SUBDIR)/libbacktrace && \
41543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41545 "RANLIB=$${RANLIB}" \
41546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41547 info) \
41548 || exit 1
41549
41550@endif target-libbacktrace
41551
41552.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
41553maybe-dvi-target-libbacktrace:
41554@if target-libbacktrace
41555maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
41556
41557dvi-target-libbacktrace: \
41558 configure-target-libbacktrace
41559 @: $(MAKE); $(unstage)
22121df0 41560 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41561 r=`${PWD_COMMAND}`; export r; \
41562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41563 $(NORMAL_TARGET_EXPORTS) \
22121df0 41564 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41565 for flag in $(EXTRA_TARGET_FLAGS); do \
41566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41567 done; \
41568 (cd $(TARGET_SUBDIR)/libbacktrace && \
41569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41571 "RANLIB=$${RANLIB}" \
41572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41573 dvi) \
41574 || exit 1
41575
41576@endif target-libbacktrace
41577
41578.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
41579maybe-pdf-target-libbacktrace:
41580@if target-libbacktrace
41581maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
41582
41583pdf-target-libbacktrace: \
41584 configure-target-libbacktrace
41585 @: $(MAKE); $(unstage)
22121df0 41586 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41587 r=`${PWD_COMMAND}`; export r; \
41588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41589 $(NORMAL_TARGET_EXPORTS) \
22121df0 41590 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41591 for flag in $(EXTRA_TARGET_FLAGS); do \
41592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41593 done; \
41594 (cd $(TARGET_SUBDIR)/libbacktrace && \
41595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41597 "RANLIB=$${RANLIB}" \
41598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41599 pdf) \
41600 || exit 1
41601
41602@endif target-libbacktrace
41603
41604.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
41605maybe-html-target-libbacktrace:
41606@if target-libbacktrace
41607maybe-html-target-libbacktrace: html-target-libbacktrace
41608
41609html-target-libbacktrace: \
41610 configure-target-libbacktrace
41611 @: $(MAKE); $(unstage)
22121df0 41612 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41613 r=`${PWD_COMMAND}`; export r; \
41614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41615 $(NORMAL_TARGET_EXPORTS) \
22121df0 41616 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41617 for flag in $(EXTRA_TARGET_FLAGS); do \
41618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41619 done; \
41620 (cd $(TARGET_SUBDIR)/libbacktrace && \
41621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41623 "RANLIB=$${RANLIB}" \
41624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41625 html) \
41626 || exit 1
41627
41628@endif target-libbacktrace
41629
41630.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
41631maybe-TAGS-target-libbacktrace:
41632@if target-libbacktrace
41633maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
41634
41635TAGS-target-libbacktrace: \
41636 configure-target-libbacktrace
41637 @: $(MAKE); $(unstage)
22121df0 41638 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41639 r=`${PWD_COMMAND}`; export r; \
41640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41641 $(NORMAL_TARGET_EXPORTS) \
22121df0 41642 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41643 for flag in $(EXTRA_TARGET_FLAGS); do \
41644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41645 done; \
41646 (cd $(TARGET_SUBDIR)/libbacktrace && \
41647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41649 "RANLIB=$${RANLIB}" \
41650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41651 TAGS) \
41652 || exit 1
41653
41654@endif target-libbacktrace
41655
41656.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
41657maybe-install-info-target-libbacktrace:
41658@if target-libbacktrace
41659maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
41660
41661install-info-target-libbacktrace: \
41662 configure-target-libbacktrace \
41663 info-target-libbacktrace
41664 @: $(MAKE); $(unstage)
22121df0 41665 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41666 r=`${PWD_COMMAND}`; export r; \
41667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41668 $(NORMAL_TARGET_EXPORTS) \
22121df0 41669 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41670 for flag in $(EXTRA_TARGET_FLAGS); do \
41671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41672 done; \
41673 (cd $(TARGET_SUBDIR)/libbacktrace && \
41674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41676 "RANLIB=$${RANLIB}" \
41677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41678 install-info) \
41679 || exit 1
41680
41681@endif target-libbacktrace
41682
41683.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
41684maybe-install-pdf-target-libbacktrace:
41685@if target-libbacktrace
41686maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
41687
41688install-pdf-target-libbacktrace: \
41689 configure-target-libbacktrace \
41690 pdf-target-libbacktrace
41691 @: $(MAKE); $(unstage)
22121df0 41692 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41693 r=`${PWD_COMMAND}`; export r; \
41694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41695 $(NORMAL_TARGET_EXPORTS) \
22121df0 41696 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41697 for flag in $(EXTRA_TARGET_FLAGS); do \
41698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41699 done; \
41700 (cd $(TARGET_SUBDIR)/libbacktrace && \
41701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41703 "RANLIB=$${RANLIB}" \
41704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41705 install-pdf) \
41706 || exit 1
41707
41708@endif target-libbacktrace
41709
41710.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
41711maybe-install-html-target-libbacktrace:
41712@if target-libbacktrace
41713maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
41714
41715install-html-target-libbacktrace: \
41716 configure-target-libbacktrace \
41717 html-target-libbacktrace
41718 @: $(MAKE); $(unstage)
22121df0 41719 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41720 r=`${PWD_COMMAND}`; export r; \
41721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41722 $(NORMAL_TARGET_EXPORTS) \
22121df0 41723 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41724 for flag in $(EXTRA_TARGET_FLAGS); do \
41725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41726 done; \
41727 (cd $(TARGET_SUBDIR)/libbacktrace && \
41728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41730 "RANLIB=$${RANLIB}" \
41731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41732 install-html) \
41733 || exit 1
41734
41735@endif target-libbacktrace
41736
41737.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
41738maybe-installcheck-target-libbacktrace:
41739@if target-libbacktrace
41740maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
41741
41742installcheck-target-libbacktrace: \
41743 configure-target-libbacktrace
41744 @: $(MAKE); $(unstage)
22121df0 41745 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41746 r=`${PWD_COMMAND}`; export r; \
41747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41748 $(NORMAL_TARGET_EXPORTS) \
22121df0 41749 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41750 for flag in $(EXTRA_TARGET_FLAGS); do \
41751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41752 done; \
41753 (cd $(TARGET_SUBDIR)/libbacktrace && \
41754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41756 "RANLIB=$${RANLIB}" \
41757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41758 installcheck) \
41759 || exit 1
41760
41761@endif target-libbacktrace
41762
41763.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
41764maybe-mostlyclean-target-libbacktrace:
41765@if target-libbacktrace
41766maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
41767
41768mostlyclean-target-libbacktrace:
41769 @: $(MAKE); $(unstage)
22121df0 41770 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41771 r=`${PWD_COMMAND}`; export r; \
41772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41773 $(NORMAL_TARGET_EXPORTS) \
22121df0 41774 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41775 for flag in $(EXTRA_TARGET_FLAGS); do \
41776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41777 done; \
41778 (cd $(TARGET_SUBDIR)/libbacktrace && \
41779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41781 "RANLIB=$${RANLIB}" \
41782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41783 mostlyclean) \
41784 || exit 1
41785
41786@endif target-libbacktrace
41787
41788.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
41789maybe-clean-target-libbacktrace:
41790@if target-libbacktrace
41791maybe-clean-target-libbacktrace: clean-target-libbacktrace
41792
41793clean-target-libbacktrace:
41794 @: $(MAKE); $(unstage)
22121df0 41795 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41796 r=`${PWD_COMMAND}`; export r; \
41797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41798 $(NORMAL_TARGET_EXPORTS) \
22121df0 41799 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41800 for flag in $(EXTRA_TARGET_FLAGS); do \
41801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41802 done; \
41803 (cd $(TARGET_SUBDIR)/libbacktrace && \
41804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41806 "RANLIB=$${RANLIB}" \
41807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41808 clean) \
41809 || exit 1
41810
41811@endif target-libbacktrace
41812
41813.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
41814maybe-distclean-target-libbacktrace:
41815@if target-libbacktrace
41816maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
41817
41818distclean-target-libbacktrace:
41819 @: $(MAKE); $(unstage)
22121df0 41820 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41821 r=`${PWD_COMMAND}`; export r; \
41822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41823 $(NORMAL_TARGET_EXPORTS) \
22121df0 41824 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41825 for flag in $(EXTRA_TARGET_FLAGS); do \
41826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41827 done; \
41828 (cd $(TARGET_SUBDIR)/libbacktrace && \
41829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41831 "RANLIB=$${RANLIB}" \
41832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41833 distclean) \
41834 || exit 1
41835
41836@endif target-libbacktrace
41837
41838.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
41839maybe-maintainer-clean-target-libbacktrace:
41840@if target-libbacktrace
41841maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
41842
41843maintainer-clean-target-libbacktrace:
41844 @: $(MAKE); $(unstage)
22121df0 41845 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41846 r=`${PWD_COMMAND}`; export r; \
41847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41848 $(NORMAL_TARGET_EXPORTS) \
22121df0 41849 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41850 for flag in $(EXTRA_TARGET_FLAGS); do \
41851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41852 done; \
41853 (cd $(TARGET_SUBDIR)/libbacktrace && \
41854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41856 "RANLIB=$${RANLIB}" \
41857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41858 maintainer-clean) \
41859 || exit 1
41860
41861@endif target-libbacktrace
41862
41863
41864
41865
41866
a90ef4bf
JM
41867.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
41868maybe-configure-target-libquadmath:
4f0ef2d8 41869@if gcc-bootstrap
a90ef4bf 41870configure-target-libquadmath: stage_current
4f0ef2d8 41871@endif gcc-bootstrap
a90ef4bf
JM
41872@if target-libquadmath
41873maybe-configure-target-libquadmath: configure-target-libquadmath
41874configure-target-libquadmath:
0aed8855
PB
41875 @: $(MAKE); $(unstage)
41876 @r=`${PWD_COMMAND}`; export r; \
41877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41878 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
41879 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
41880 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41881 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
41882 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
41883 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 41884 else \
a90ef4bf
JM
41885 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
41886 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
41887 fi; \
41888 else \
a90ef4bf 41889 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 41890 fi; \
a90ef4bf 41891 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 41892 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 41893 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41894 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
41895 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 41896 case $(srcdir) in \
b00612cc 41897 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41898 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 41899 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41900 esac; \
1b6c0831 41901 module_srcdir=libquadmath; \
4fa63067 41902 rm -f no-such-file || : ; \
1b6c0831
L
41903 CONFIG_SITE=no-such-file $(SHELL) \
41904 $$s/$$module_srcdir/configure \
41905 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41906 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41907 --target=${target_alias} \
e2b9e2dc 41908 || exit 1
a90ef4bf 41909@endif target-libquadmath
e2b9e2dc 41910
a7254363
PB
41911
41912
d545f33b
PB
41913
41914
a90ef4bf
JM
41915.PHONY: all-target-libquadmath maybe-all-target-libquadmath
41916maybe-all-target-libquadmath:
4f0ef2d8 41917@if gcc-bootstrap
a90ef4bf 41918all-target-libquadmath: stage_current
4f0ef2d8 41919@endif gcc-bootstrap
a90ef4bf
JM
41920@if target-libquadmath
41921TARGET-target-libquadmath=all
41922maybe-all-target-libquadmath: all-target-libquadmath
41923all-target-libquadmath: configure-target-libquadmath
0aed8855 41924 @: $(MAKE); $(unstage)
b40e3958
L
41925 @r=`${PWD_COMMAND}`; export r; \
41926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41927 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41928 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 41929 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41930 $(TARGET-target-libquadmath))
41931@endif target-libquadmath
3866be5d 41932
a7254363
PB
41933
41934
d545f33b
PB
41935
41936
a90ef4bf
JM
41937.PHONY: check-target-libquadmath maybe-check-target-libquadmath
41938maybe-check-target-libquadmath:
41939@if target-libquadmath
41940maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 41941
a90ef4bf 41942check-target-libquadmath:
0aed8855 41943 @: $(MAKE); $(unstage)
b40e3958
L
41944 @r=`${PWD_COMMAND}`; export r; \
41945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41946 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41947 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 41948 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 41949
a90ef4bf 41950@endif target-libquadmath
3866be5d 41951
a90ef4bf
JM
41952.PHONY: install-target-libquadmath maybe-install-target-libquadmath
41953maybe-install-target-libquadmath:
41954@if target-libquadmath
41955maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 41956
a90ef4bf 41957install-target-libquadmath: installdirs
0aed8855 41958 @: $(MAKE); $(unstage)
b40e3958
L
41959 @r=`${PWD_COMMAND}`; export r; \
41960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41961 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41962 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 41963 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41964
a90ef4bf 41965@endif target-libquadmath
3866be5d 41966
a90ef4bf
JM
41967.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
41968maybe-install-strip-target-libquadmath:
41969@if target-libquadmath
41970maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 41971
a90ef4bf 41972install-strip-target-libquadmath: installdirs
9b980aa1
RW
41973 @: $(MAKE); $(unstage)
41974 @r=`${PWD_COMMAND}`; export r; \
41975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41976 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41977 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
41978 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41979
a90ef4bf 41980@endif target-libquadmath
9b980aa1 41981
56a8fe78 41982# Other targets (info, dvi, pdf, etc.)
4fa63067 41983
a90ef4bf
JM
41984.PHONY: maybe-info-target-libquadmath info-target-libquadmath
41985maybe-info-target-libquadmath:
41986@if target-libquadmath
41987maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 41988
a90ef4bf
JM
41989info-target-libquadmath: \
41990 configure-target-libquadmath
0aed8855 41991 @: $(MAKE); $(unstage)
22121df0 41992 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41993 r=`${PWD_COMMAND}`; export r; \
b40e3958 41994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41995 $(NORMAL_TARGET_EXPORTS) \
22121df0 41996 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41997 for flag in $(EXTRA_TARGET_FLAGS); do \
41998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41999 done; \
a90ef4bf 42000 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42003 "RANLIB=$${RANLIB}" \
0c24b341 42004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42005 info) \
4fa63067 42006 || exit 1
3866be5d 42007
a90ef4bf 42008@endif target-libquadmath
3866be5d 42009
a90ef4bf
JM
42010.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
42011maybe-dvi-target-libquadmath:
42012@if target-libquadmath
42013maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 42014
a90ef4bf
JM
42015dvi-target-libquadmath: \
42016 configure-target-libquadmath
0aed8855 42017 @: $(MAKE); $(unstage)
22121df0 42018 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42019 r=`${PWD_COMMAND}`; export r; \
b40e3958 42020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42021 $(NORMAL_TARGET_EXPORTS) \
22121df0 42022 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42023 for flag in $(EXTRA_TARGET_FLAGS); do \
42024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42025 done; \
a90ef4bf 42026 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42029 "RANLIB=$${RANLIB}" \
0c24b341 42030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42031 dvi) \
4fa63067 42032 || exit 1
3866be5d 42033
a90ef4bf 42034@endif target-libquadmath
3866be5d 42035
a90ef4bf
JM
42036.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
42037maybe-pdf-target-libquadmath:
42038@if target-libquadmath
42039maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 42040
a90ef4bf
JM
42041pdf-target-libquadmath: \
42042 configure-target-libquadmath
56a8fe78 42043 @: $(MAKE); $(unstage)
22121df0 42044 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
42045 r=`${PWD_COMMAND}`; export r; \
42046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42047 $(NORMAL_TARGET_EXPORTS) \
22121df0 42048 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
42049 for flag in $(EXTRA_TARGET_FLAGS); do \
42050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42051 done; \
a90ef4bf 42052 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
42053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42055 "RANLIB=$${RANLIB}" \
0c24b341 42056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42057 pdf) \
42058 || exit 1
42059
a90ef4bf 42060@endif target-libquadmath
56a8fe78 42061
a90ef4bf
JM
42062.PHONY: maybe-html-target-libquadmath html-target-libquadmath
42063maybe-html-target-libquadmath:
42064@if target-libquadmath
42065maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 42066
a90ef4bf
JM
42067html-target-libquadmath: \
42068 configure-target-libquadmath
0aed8855 42069 @: $(MAKE); $(unstage)
22121df0 42070 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
42071 r=`${PWD_COMMAND}`; export r; \
42072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42073 $(NORMAL_TARGET_EXPORTS) \
22121df0 42074 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
42075 for flag in $(EXTRA_TARGET_FLAGS); do \
42076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42077 done; \
a90ef4bf 42078 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
42079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42081 "RANLIB=$${RANLIB}" \
0c24b341 42082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42083 html) \
42084 || exit 1
42085
a90ef4bf 42086@endif target-libquadmath
6d389afc 42087
a90ef4bf
JM
42088.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
42089maybe-TAGS-target-libquadmath:
42090@if target-libquadmath
42091maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 42092
a90ef4bf
JM
42093TAGS-target-libquadmath: \
42094 configure-target-libquadmath
0aed8855 42095 @: $(MAKE); $(unstage)
22121df0 42096 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
42097 r=`${PWD_COMMAND}`; export r; \
42098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42099 $(NORMAL_TARGET_EXPORTS) \
22121df0 42100 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42101 for flag in $(EXTRA_TARGET_FLAGS); do \
42102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42103 done; \
a90ef4bf 42104 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42107 "RANLIB=$${RANLIB}" \
0c24b341 42108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42109 TAGS) \
e2b9e2dc
NN
42110 || exit 1
42111
a90ef4bf 42112@endif target-libquadmath
4fa63067 42113
a90ef4bf
JM
42114.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
42115maybe-install-info-target-libquadmath:
42116@if target-libquadmath
42117maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 42118
a90ef4bf
JM
42119install-info-target-libquadmath: \
42120 configure-target-libquadmath \
42121 info-target-libquadmath
0aed8855 42122 @: $(MAKE); $(unstage)
22121df0 42123 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42124 r=`${PWD_COMMAND}`; export r; \
b40e3958 42125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42126 $(NORMAL_TARGET_EXPORTS) \
22121df0 42127 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42128 for flag in $(EXTRA_TARGET_FLAGS); do \
42129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42130 done; \
a90ef4bf 42131 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42134 "RANLIB=$${RANLIB}" \
0c24b341 42135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42136 install-info) \
4fa63067 42137 || exit 1
3866be5d 42138
a90ef4bf 42139@endif target-libquadmath
3866be5d 42140
a90ef4bf
JM
42141.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
42142maybe-install-pdf-target-libquadmath:
42143@if target-libquadmath
42144maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 42145
a90ef4bf
JM
42146install-pdf-target-libquadmath: \
42147 configure-target-libquadmath \
42148 pdf-target-libquadmath
a3ca38d2 42149 @: $(MAKE); $(unstage)
22121df0 42150 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
42151 r=`${PWD_COMMAND}`; export r; \
42152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42153 $(NORMAL_TARGET_EXPORTS) \
22121df0 42154 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
42155 for flag in $(EXTRA_TARGET_FLAGS); do \
42156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42157 done; \
a90ef4bf 42158 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
42159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42161 "RANLIB=$${RANLIB}" \
0c24b341 42162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42163 install-pdf) \
42164 || exit 1
42165
a90ef4bf 42166@endif target-libquadmath
a3ca38d2 42167
a90ef4bf
JM
42168.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
42169maybe-install-html-target-libquadmath:
42170@if target-libquadmath
42171maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 42172
a90ef4bf
JM
42173install-html-target-libquadmath: \
42174 configure-target-libquadmath \
42175 html-target-libquadmath
108a6f8e 42176 @: $(MAKE); $(unstage)
22121df0 42177 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
42178 r=`${PWD_COMMAND}`; export r; \
42179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42180 $(NORMAL_TARGET_EXPORTS) \
22121df0 42181 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
42182 for flag in $(EXTRA_TARGET_FLAGS); do \
42183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42184 done; \
a90ef4bf 42185 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
42186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42188 "RANLIB=$${RANLIB}" \
0c24b341 42189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42190 install-html) \
42191 || exit 1
42192
a90ef4bf 42193@endif target-libquadmath
108a6f8e 42194
a90ef4bf
JM
42195.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
42196maybe-installcheck-target-libquadmath:
42197@if target-libquadmath
42198maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 42199
a90ef4bf
JM
42200installcheck-target-libquadmath: \
42201 configure-target-libquadmath
0aed8855 42202 @: $(MAKE); $(unstage)
22121df0 42203 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42204 r=`${PWD_COMMAND}`; export r; \
b40e3958 42205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42206 $(NORMAL_TARGET_EXPORTS) \
22121df0 42207 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42208 for flag in $(EXTRA_TARGET_FLAGS); do \
42209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42210 done; \
a90ef4bf 42211 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42214 "RANLIB=$${RANLIB}" \
0c24b341 42215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42216 installcheck) \
4fa63067 42217 || exit 1
3866be5d 42218
a90ef4bf 42219@endif target-libquadmath
3866be5d 42220
a90ef4bf
JM
42221.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
42222maybe-mostlyclean-target-libquadmath:
42223@if target-libquadmath
42224maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 42225
a90ef4bf 42226mostlyclean-target-libquadmath:
0aed8855 42227 @: $(MAKE); $(unstage)
22121df0 42228 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42229 r=`${PWD_COMMAND}`; export r; \
b40e3958 42230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42231 $(NORMAL_TARGET_EXPORTS) \
22121df0 42232 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42233 for flag in $(EXTRA_TARGET_FLAGS); do \
42234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42235 done; \
a90ef4bf 42236 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42239 "RANLIB=$${RANLIB}" \
0c24b341 42240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42241 mostlyclean) \
4fa63067 42242 || exit 1
3866be5d 42243
a90ef4bf 42244@endif target-libquadmath
3866be5d 42245
a90ef4bf
JM
42246.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
42247maybe-clean-target-libquadmath:
42248@if target-libquadmath
42249maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 42250
a90ef4bf 42251clean-target-libquadmath:
0aed8855 42252 @: $(MAKE); $(unstage)
22121df0 42253 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
42254 r=`${PWD_COMMAND}`; export r; \
42255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42256 $(NORMAL_TARGET_EXPORTS) \
22121df0 42257 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42258 for flag in $(EXTRA_TARGET_FLAGS); do \
42259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42260 done; \
a90ef4bf 42261 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42264 "RANLIB=$${RANLIB}" \
0c24b341 42265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42266 clean) \
e2b9e2dc
NN
42267 || exit 1
42268
a90ef4bf 42269@endif target-libquadmath
3866be5d 42270
a90ef4bf
JM
42271.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
42272maybe-distclean-target-libquadmath:
42273@if target-libquadmath
42274maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 42275
a90ef4bf 42276distclean-target-libquadmath:
0aed8855 42277 @: $(MAKE); $(unstage)
22121df0 42278 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42279 r=`${PWD_COMMAND}`; export r; \
b40e3958 42280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42281 $(NORMAL_TARGET_EXPORTS) \
22121df0 42282 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42283 for flag in $(EXTRA_TARGET_FLAGS); do \
42284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42285 done; \
a90ef4bf 42286 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42289 "RANLIB=$${RANLIB}" \
0c24b341 42290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42291 distclean) \
4fa63067 42292 || exit 1
3866be5d 42293
a90ef4bf 42294@endif target-libquadmath
3866be5d 42295
a90ef4bf
JM
42296.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
42297maybe-maintainer-clean-target-libquadmath:
42298@if target-libquadmath
42299maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 42300
a90ef4bf 42301maintainer-clean-target-libquadmath:
0aed8855 42302 @: $(MAKE); $(unstage)
22121df0 42303 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42304 r=`${PWD_COMMAND}`; export r; \
b40e3958 42305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42306 $(NORMAL_TARGET_EXPORTS) \
22121df0 42307 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42308 for flag in $(EXTRA_TARGET_FLAGS); do \
42309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42310 done; \
a90ef4bf 42311 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42314 "RANLIB=$${RANLIB}" \
0c24b341 42315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42316 maintainer-clean) \
4fa63067 42317 || exit 1
3866be5d 42318
a90ef4bf 42319@endif target-libquadmath
3866be5d 42320
4fa63067 42321
4fa63067 42322
a7254363 42323
e90269c8 42324
a90ef4bf
JM
42325.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
42326maybe-configure-target-libgfortran:
e552509b 42327@if gcc-bootstrap
a90ef4bf 42328configure-target-libgfortran: stage_current
e552509b 42329@endif gcc-bootstrap
a90ef4bf
JM
42330@if target-libgfortran
42331maybe-configure-target-libgfortran: configure-target-libgfortran
42332configure-target-libgfortran:
e552509b
ILT
42333 @: $(MAKE); $(unstage)
42334 @r=`${PWD_COMMAND}`; export r; \
42335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42336 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
42337 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
42338 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42339 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
42340 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
42341 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 42342 else \
a90ef4bf
JM
42343 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
42344 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
42345 fi; \
42346 else \
a90ef4bf 42347 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 42348 fi; \
a90ef4bf 42349 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 42350 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 42351 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42352 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
42353 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
42354 case $(srcdir) in \
42355 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42356 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
42357 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42358 esac; \
1b6c0831 42359 module_srcdir=libgfortran; \
e552509b 42360 rm -f no-such-file || : ; \
1b6c0831
L
42361 CONFIG_SITE=no-such-file $(SHELL) \
42362 $$s/$$module_srcdir/configure \
42363 --srcdir=$${topdir}/$$module_srcdir \
e552509b 42364 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42365 --target=${target_alias} \
e552509b 42366 || exit 1
a90ef4bf 42367@endif target-libgfortran
e552509b
ILT
42368
42369
42370
42371
42372
a90ef4bf
JM
42373.PHONY: all-target-libgfortran maybe-all-target-libgfortran
42374maybe-all-target-libgfortran:
e552509b 42375@if gcc-bootstrap
a90ef4bf 42376all-target-libgfortran: stage_current
e552509b 42377@endif gcc-bootstrap
a90ef4bf
JM
42378@if target-libgfortran
42379TARGET-target-libgfortran=all
42380maybe-all-target-libgfortran: all-target-libgfortran
42381all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
42382 @: $(MAKE); $(unstage)
42383 @r=`${PWD_COMMAND}`; export r; \
42384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42385 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42386 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 42387 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42388 $(TARGET-target-libgfortran))
42389@endif target-libgfortran
e552509b
ILT
42390
42391
42392
42393
42394
a90ef4bf
JM
42395.PHONY: check-target-libgfortran maybe-check-target-libgfortran
42396maybe-check-target-libgfortran:
42397@if target-libgfortran
42398maybe-check-target-libgfortran: check-target-libgfortran
e552509b 42399
a90ef4bf 42400check-target-libgfortran:
e552509b
ILT
42401 @: $(MAKE); $(unstage)
42402 @r=`${PWD_COMMAND}`; export r; \
42403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42404 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42405 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42406 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
42407
a90ef4bf 42408@endif target-libgfortran
e552509b 42409
a90ef4bf
JM
42410.PHONY: install-target-libgfortran maybe-install-target-libgfortran
42411maybe-install-target-libgfortran:
42412@if target-libgfortran
42413maybe-install-target-libgfortran: install-target-libgfortran
e552509b 42414
a90ef4bf 42415install-target-libgfortran: installdirs
e552509b
ILT
42416 @: $(MAKE); $(unstage)
42417 @r=`${PWD_COMMAND}`; export r; \
42418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42419 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42420 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42421 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
42422
a90ef4bf 42423@endif target-libgfortran
e552509b 42424
a90ef4bf
JM
42425.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
42426maybe-install-strip-target-libgfortran:
42427@if target-libgfortran
42428maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 42429
a90ef4bf 42430install-strip-target-libgfortran: installdirs
9b980aa1
RW
42431 @: $(MAKE); $(unstage)
42432 @r=`${PWD_COMMAND}`; export r; \
42433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42434 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42435 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
42436 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42437
a90ef4bf 42438@endif target-libgfortran
9b980aa1 42439
e552509b
ILT
42440# Other targets (info, dvi, pdf, etc.)
42441
a90ef4bf
JM
42442.PHONY: maybe-info-target-libgfortran info-target-libgfortran
42443maybe-info-target-libgfortran:
42444@if target-libgfortran
42445maybe-info-target-libgfortran: info-target-libgfortran
e552509b 42446
a90ef4bf
JM
42447info-target-libgfortran: \
42448 configure-target-libgfortran
e552509b 42449 @: $(MAKE); $(unstage)
22121df0 42450 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42451 r=`${PWD_COMMAND}`; export r; \
42452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42453 $(NORMAL_TARGET_EXPORTS) \
22121df0 42454 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42455 for flag in $(EXTRA_TARGET_FLAGS); do \
42456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42457 done; \
a90ef4bf 42458 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42461 "RANLIB=$${RANLIB}" \
42462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42463 info) \
42464 || exit 1
42465
a90ef4bf 42466@endif target-libgfortran
e552509b 42467
a90ef4bf
JM
42468.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
42469maybe-dvi-target-libgfortran:
42470@if target-libgfortran
42471maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 42472
a90ef4bf
JM
42473dvi-target-libgfortran: \
42474 configure-target-libgfortran
e552509b 42475 @: $(MAKE); $(unstage)
22121df0 42476 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42477 r=`${PWD_COMMAND}`; export r; \
42478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42479 $(NORMAL_TARGET_EXPORTS) \
22121df0 42480 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42481 for flag in $(EXTRA_TARGET_FLAGS); do \
42482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42483 done; \
a90ef4bf 42484 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42487 "RANLIB=$${RANLIB}" \
42488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42489 dvi) \
42490 || exit 1
42491
a90ef4bf 42492@endif target-libgfortran
e552509b 42493
a90ef4bf
JM
42494.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
42495maybe-pdf-target-libgfortran:
42496@if target-libgfortran
42497maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 42498
a90ef4bf
JM
42499pdf-target-libgfortran: \
42500 configure-target-libgfortran
e552509b 42501 @: $(MAKE); $(unstage)
22121df0 42502 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42503 r=`${PWD_COMMAND}`; export r; \
42504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42505 $(NORMAL_TARGET_EXPORTS) \
22121df0 42506 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42507 for flag in $(EXTRA_TARGET_FLAGS); do \
42508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42509 done; \
a90ef4bf 42510 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42513 "RANLIB=$${RANLIB}" \
42514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42515 pdf) \
42516 || exit 1
42517
a90ef4bf 42518@endif target-libgfortran
e552509b 42519
a90ef4bf
JM
42520.PHONY: maybe-html-target-libgfortran html-target-libgfortran
42521maybe-html-target-libgfortran:
42522@if target-libgfortran
42523maybe-html-target-libgfortran: html-target-libgfortran
e552509b 42524
a90ef4bf
JM
42525html-target-libgfortran: \
42526 configure-target-libgfortran
e552509b 42527 @: $(MAKE); $(unstage)
22121df0 42528 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42529 r=`${PWD_COMMAND}`; export r; \
42530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42531 $(NORMAL_TARGET_EXPORTS) \
22121df0 42532 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42533 for flag in $(EXTRA_TARGET_FLAGS); do \
42534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42535 done; \
a90ef4bf 42536 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42539 "RANLIB=$${RANLIB}" \
42540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42541 html) \
42542 || exit 1
42543
a90ef4bf 42544@endif target-libgfortran
e552509b 42545
a90ef4bf
JM
42546.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
42547maybe-TAGS-target-libgfortran:
42548@if target-libgfortran
42549maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 42550
a90ef4bf
JM
42551TAGS-target-libgfortran: \
42552 configure-target-libgfortran
e552509b 42553 @: $(MAKE); $(unstage)
22121df0 42554 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42555 r=`${PWD_COMMAND}`; export r; \
42556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42557 $(NORMAL_TARGET_EXPORTS) \
22121df0 42558 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42559 for flag in $(EXTRA_TARGET_FLAGS); do \
42560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42561 done; \
a90ef4bf 42562 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42565 "RANLIB=$${RANLIB}" \
42566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42567 TAGS) \
42568 || exit 1
42569
a90ef4bf 42570@endif target-libgfortran
e552509b 42571
a90ef4bf
JM
42572.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
42573maybe-install-info-target-libgfortran:
42574@if target-libgfortran
42575maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 42576
a90ef4bf
JM
42577install-info-target-libgfortran: \
42578 configure-target-libgfortran \
42579 info-target-libgfortran
e552509b 42580 @: $(MAKE); $(unstage)
22121df0 42581 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42582 r=`${PWD_COMMAND}`; export r; \
42583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42584 $(NORMAL_TARGET_EXPORTS) \
22121df0 42585 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42586 for flag in $(EXTRA_TARGET_FLAGS); do \
42587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42588 done; \
a90ef4bf 42589 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42592 "RANLIB=$${RANLIB}" \
42593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42594 install-info) \
42595 || exit 1
42596
a90ef4bf 42597@endif target-libgfortran
e552509b 42598
a90ef4bf
JM
42599.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
42600maybe-install-pdf-target-libgfortran:
42601@if target-libgfortran
42602maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 42603
a90ef4bf
JM
42604install-pdf-target-libgfortran: \
42605 configure-target-libgfortran \
42606 pdf-target-libgfortran
e552509b 42607 @: $(MAKE); $(unstage)
22121df0 42608 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42609 r=`${PWD_COMMAND}`; export r; \
42610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42611 $(NORMAL_TARGET_EXPORTS) \
22121df0 42612 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42613 for flag in $(EXTRA_TARGET_FLAGS); do \
42614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42615 done; \
a90ef4bf 42616 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42619 "RANLIB=$${RANLIB}" \
42620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42621 install-pdf) \
42622 || exit 1
42623
a90ef4bf 42624@endif target-libgfortran
e552509b 42625
a90ef4bf
JM
42626.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
42627maybe-install-html-target-libgfortran:
42628@if target-libgfortran
42629maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 42630
a90ef4bf
JM
42631install-html-target-libgfortran: \
42632 configure-target-libgfortran \
42633 html-target-libgfortran
e552509b 42634 @: $(MAKE); $(unstage)
22121df0 42635 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42636 r=`${PWD_COMMAND}`; export r; \
42637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42638 $(NORMAL_TARGET_EXPORTS) \
22121df0 42639 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42640 for flag in $(EXTRA_TARGET_FLAGS); do \
42641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42642 done; \
a90ef4bf 42643 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42646 "RANLIB=$${RANLIB}" \
42647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42648 install-html) \
42649 || exit 1
42650
a90ef4bf 42651@endif target-libgfortran
e552509b 42652
a90ef4bf
JM
42653.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
42654maybe-installcheck-target-libgfortran:
42655@if target-libgfortran
42656maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 42657
a90ef4bf
JM
42658installcheck-target-libgfortran: \
42659 configure-target-libgfortran
e552509b 42660 @: $(MAKE); $(unstage)
22121df0 42661 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42662 r=`${PWD_COMMAND}`; export r; \
42663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42664 $(NORMAL_TARGET_EXPORTS) \
22121df0 42665 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42666 for flag in $(EXTRA_TARGET_FLAGS); do \
42667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42668 done; \
a90ef4bf 42669 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42672 "RANLIB=$${RANLIB}" \
42673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42674 installcheck) \
42675 || exit 1
42676
a90ef4bf 42677@endif target-libgfortran
e552509b 42678
a90ef4bf
JM
42679.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
42680maybe-mostlyclean-target-libgfortran:
42681@if target-libgfortran
42682maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 42683
a90ef4bf 42684mostlyclean-target-libgfortran:
e552509b 42685 @: $(MAKE); $(unstage)
22121df0 42686 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42687 r=`${PWD_COMMAND}`; export r; \
42688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42689 $(NORMAL_TARGET_EXPORTS) \
22121df0 42690 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42691 for flag in $(EXTRA_TARGET_FLAGS); do \
42692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42693 done; \
a90ef4bf 42694 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42697 "RANLIB=$${RANLIB}" \
42698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42699 mostlyclean) \
42700 || exit 1
42701
a90ef4bf 42702@endif target-libgfortran
e552509b 42703
a90ef4bf
JM
42704.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
42705maybe-clean-target-libgfortran:
42706@if target-libgfortran
42707maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 42708
a90ef4bf 42709clean-target-libgfortran:
e552509b 42710 @: $(MAKE); $(unstage)
22121df0 42711 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42712 r=`${PWD_COMMAND}`; export r; \
42713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42714 $(NORMAL_TARGET_EXPORTS) \
22121df0 42715 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42716 for flag in $(EXTRA_TARGET_FLAGS); do \
42717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42718 done; \
a90ef4bf 42719 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42722 "RANLIB=$${RANLIB}" \
42723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42724 clean) \
42725 || exit 1
42726
a90ef4bf 42727@endif target-libgfortran
e552509b 42728
a90ef4bf
JM
42729.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
42730maybe-distclean-target-libgfortran:
42731@if target-libgfortran
42732maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 42733
a90ef4bf 42734distclean-target-libgfortran:
e552509b 42735 @: $(MAKE); $(unstage)
22121df0 42736 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42737 r=`${PWD_COMMAND}`; export r; \
42738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42739 $(NORMAL_TARGET_EXPORTS) \
22121df0 42740 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42741 for flag in $(EXTRA_TARGET_FLAGS); do \
42742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42743 done; \
a90ef4bf 42744 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42747 "RANLIB=$${RANLIB}" \
42748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42749 distclean) \
42750 || exit 1
42751
a90ef4bf 42752@endif target-libgfortran
e552509b 42753
a90ef4bf
JM
42754.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
42755maybe-maintainer-clean-target-libgfortran:
42756@if target-libgfortran
42757maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 42758
a90ef4bf 42759maintainer-clean-target-libgfortran:
e552509b 42760 @: $(MAKE); $(unstage)
22121df0 42761 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42762 r=`${PWD_COMMAND}`; export r; \
42763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42764 $(NORMAL_TARGET_EXPORTS) \
22121df0 42765 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42766 for flag in $(EXTRA_TARGET_FLAGS); do \
42767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42768 done; \
a90ef4bf 42769 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42772 "RANLIB=$${RANLIB}" \
42773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42774 maintainer-clean) \
42775 || exit 1
42776
a90ef4bf 42777@endif target-libgfortran
e552509b
ILT
42778
42779
42780
42781
42782
a90ef4bf
JM
42783.PHONY: configure-target-libobjc maybe-configure-target-libobjc
42784maybe-configure-target-libobjc:
4f0ef2d8 42785@if gcc-bootstrap
a90ef4bf 42786configure-target-libobjc: stage_current
4f0ef2d8 42787@endif gcc-bootstrap
a90ef4bf
JM
42788@if target-libobjc
42789maybe-configure-target-libobjc: configure-target-libobjc
42790configure-target-libobjc:
0aed8855
PB
42791 @: $(MAKE); $(unstage)
42792 @r=`${PWD_COMMAND}`; export r; \
42793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42794 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
42795 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
42796 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42797 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
42798 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
42799 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 42800 else \
a90ef4bf
JM
42801 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
42802 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
42803 fi; \
42804 else \
a90ef4bf 42805 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 42806 fi; \
a90ef4bf 42807 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 42808 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 42809 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42810 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
42811 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 42812 case $(srcdir) in \
b00612cc 42813 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42814 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 42815 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 42816 esac; \
1b6c0831 42817 module_srcdir=libobjc; \
4fa63067 42818 rm -f no-such-file || : ; \
1b6c0831
L
42819 CONFIG_SITE=no-such-file $(SHELL) \
42820 $$s/$$module_srcdir/configure \
42821 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42822 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42823 --target=${target_alias} \
e2b9e2dc 42824 || exit 1
a90ef4bf 42825@endif target-libobjc
e2b9e2dc 42826
a7254363
PB
42827
42828
d545f33b
PB
42829
42830
a90ef4bf
JM
42831.PHONY: all-target-libobjc maybe-all-target-libobjc
42832maybe-all-target-libobjc:
4f0ef2d8 42833@if gcc-bootstrap
a90ef4bf 42834all-target-libobjc: stage_current
4f0ef2d8 42835@endif gcc-bootstrap
a90ef4bf
JM
42836@if target-libobjc
42837TARGET-target-libobjc=all
42838maybe-all-target-libobjc: all-target-libobjc
42839all-target-libobjc: configure-target-libobjc
0aed8855 42840 @: $(MAKE); $(unstage)
b40e3958
L
42841 @r=`${PWD_COMMAND}`; export r; \
42842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42843 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42844 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 42845 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42846 $(TARGET-target-libobjc))
42847@endif target-libobjc
3866be5d 42848
a7254363
PB
42849
42850
d545f33b
PB
42851
42852
a90ef4bf
JM
42853.PHONY: check-target-libobjc maybe-check-target-libobjc
42854maybe-check-target-libobjc:
42855@if target-libobjc
42856maybe-check-target-libobjc: check-target-libobjc
3866be5d 42857
a90ef4bf
JM
42858check-target-libobjc:
42859 @: $(MAKE); $(unstage)
42860 @r=`${PWD_COMMAND}`; export r; \
42861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42862 $(NORMAL_TARGET_EXPORTS) \
42863 (cd $(TARGET_SUBDIR)/libobjc && \
42864 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 42865
a90ef4bf 42866@endif target-libobjc
4fa63067 42867
a90ef4bf
JM
42868.PHONY: install-target-libobjc maybe-install-target-libobjc
42869maybe-install-target-libobjc:
42870@if target-libobjc
42871maybe-install-target-libobjc: install-target-libobjc
4fa63067 42872
a90ef4bf 42873install-target-libobjc: installdirs
0aed8855 42874 @: $(MAKE); $(unstage)
b40e3958
L
42875 @r=`${PWD_COMMAND}`; export r; \
42876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42877 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42878 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 42879 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 42880
a90ef4bf 42881@endif target-libobjc
3866be5d 42882
a90ef4bf
JM
42883.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
42884maybe-install-strip-target-libobjc:
42885@if target-libobjc
42886maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 42887
a90ef4bf 42888install-strip-target-libobjc: installdirs
9b980aa1
RW
42889 @: $(MAKE); $(unstage)
42890 @r=`${PWD_COMMAND}`; export r; \
42891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42892 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42893 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
42894 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42895
a90ef4bf 42896@endif target-libobjc
9b980aa1 42897
56a8fe78 42898# Other targets (info, dvi, pdf, etc.)
16ae0395 42899
a90ef4bf
JM
42900.PHONY: maybe-info-target-libobjc info-target-libobjc
42901maybe-info-target-libobjc:
42902@if target-libobjc
42903maybe-info-target-libobjc: info-target-libobjc
6d389afc 42904
a90ef4bf
JM
42905info-target-libobjc: \
42906 configure-target-libobjc
0aed8855 42907 @: $(MAKE); $(unstage)
22121df0 42908 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
42909 r=`${PWD_COMMAND}`; export r; \
42910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42911 $(NORMAL_TARGET_EXPORTS) \
22121df0 42912 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
42913 for flag in $(EXTRA_TARGET_FLAGS); do \
42914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42915 done; \
a90ef4bf 42916 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
42917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42919 "RANLIB=$${RANLIB}" \
0c24b341 42920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42921 info) \
42922 || exit 1
42923
a90ef4bf 42924@endif target-libobjc
6d389afc 42925
a90ef4bf
JM
42926.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
42927maybe-dvi-target-libobjc:
42928@if target-libobjc
42929maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 42930
a90ef4bf
JM
42931dvi-target-libobjc: \
42932 configure-target-libobjc
0aed8855 42933 @: $(MAKE); $(unstage)
22121df0 42934 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42935 r=`${PWD_COMMAND}`; export r; \
b40e3958 42936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42937 $(NORMAL_TARGET_EXPORTS) \
22121df0 42938 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42939 for flag in $(EXTRA_TARGET_FLAGS); do \
42940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42941 done; \
a90ef4bf 42942 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42945 "RANLIB=$${RANLIB}" \
0c24b341 42946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 42947 dvi) \
4fa63067 42948 || exit 1
3866be5d 42949
a90ef4bf 42950@endif target-libobjc
3866be5d 42951
a90ef4bf
JM
42952.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
42953maybe-pdf-target-libobjc:
42954@if target-libobjc
42955maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 42956
a90ef4bf
JM
42957pdf-target-libobjc: \
42958 configure-target-libobjc
56a8fe78 42959 @: $(MAKE); $(unstage)
22121df0 42960 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
42961 r=`${PWD_COMMAND}`; export r; \
42962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42963 $(NORMAL_TARGET_EXPORTS) \
22121df0 42964 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
42965 for flag in $(EXTRA_TARGET_FLAGS); do \
42966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42967 done; \
a90ef4bf 42968 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
42969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42971 "RANLIB=$${RANLIB}" \
0c24b341 42972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42973 pdf) \
42974 || exit 1
42975
a90ef4bf 42976@endif target-libobjc
56a8fe78 42977
a90ef4bf
JM
42978.PHONY: maybe-html-target-libobjc html-target-libobjc
42979maybe-html-target-libobjc:
42980@if target-libobjc
42981maybe-html-target-libobjc: html-target-libobjc
4fa63067 42982
a90ef4bf
JM
42983html-target-libobjc: \
42984 configure-target-libobjc
0aed8855 42985 @: $(MAKE); $(unstage)
22121df0 42986 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
42987 r=`${PWD_COMMAND}`; export r; \
42988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42989 $(NORMAL_TARGET_EXPORTS) \
22121df0 42990 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42991 for flag in $(EXTRA_TARGET_FLAGS); do \
42992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42993 done; \
a90ef4bf 42994 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42997 "RANLIB=$${RANLIB}" \
0c24b341 42998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 42999 html) \
e2b9e2dc
NN
43000 || exit 1
43001
a90ef4bf 43002@endif target-libobjc
4fa63067 43003
a90ef4bf
JM
43004.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
43005maybe-TAGS-target-libobjc:
43006@if target-libobjc
43007maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 43008
a90ef4bf
JM
43009TAGS-target-libobjc: \
43010 configure-target-libobjc
0aed8855 43011 @: $(MAKE); $(unstage)
22121df0 43012 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43013 r=`${PWD_COMMAND}`; export r; \
b40e3958 43014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43015 $(NORMAL_TARGET_EXPORTS) \
22121df0 43016 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43017 for flag in $(EXTRA_TARGET_FLAGS); do \
43018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43019 done; \
a90ef4bf 43020 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43023 "RANLIB=$${RANLIB}" \
0c24b341 43024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43025 TAGS) \
4fa63067 43026 || exit 1
3866be5d 43027
a90ef4bf 43028@endif target-libobjc
3866be5d 43029
a90ef4bf
JM
43030.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
43031maybe-install-info-target-libobjc:
43032@if target-libobjc
43033maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 43034
a90ef4bf
JM
43035install-info-target-libobjc: \
43036 configure-target-libobjc \
43037 info-target-libobjc
0aed8855 43038 @: $(MAKE); $(unstage)
22121df0 43039 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
43040 r=`${PWD_COMMAND}`; export r; \
43041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43042 $(NORMAL_TARGET_EXPORTS) \
22121df0 43043 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43044 for flag in $(EXTRA_TARGET_FLAGS); do \
43045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43046 done; \
a90ef4bf 43047 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43050 "RANLIB=$${RANLIB}" \
0c24b341 43051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43052 install-info) \
4fa63067 43053 || exit 1
3866be5d 43054
a90ef4bf 43055@endif target-libobjc
16ae0395 43056
a90ef4bf
JM
43057.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
43058maybe-install-pdf-target-libobjc:
43059@if target-libobjc
43060maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 43061
a90ef4bf
JM
43062install-pdf-target-libobjc: \
43063 configure-target-libobjc \
43064 pdf-target-libobjc
a3ca38d2 43065 @: $(MAKE); $(unstage)
22121df0 43066 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
43067 r=`${PWD_COMMAND}`; export r; \
43068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43069 $(NORMAL_TARGET_EXPORTS) \
22121df0 43070 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
43071 for flag in $(EXTRA_TARGET_FLAGS); do \
43072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43073 done; \
a90ef4bf 43074 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
43075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43077 "RANLIB=$${RANLIB}" \
0c24b341 43078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43079 install-pdf) \
43080 || exit 1
43081
a90ef4bf 43082@endif target-libobjc
a3ca38d2 43083
a90ef4bf
JM
43084.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
43085maybe-install-html-target-libobjc:
43086@if target-libobjc
43087maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 43088
a90ef4bf
JM
43089install-html-target-libobjc: \
43090 configure-target-libobjc \
43091 html-target-libobjc
108a6f8e 43092 @: $(MAKE); $(unstage)
22121df0 43093 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
43094 r=`${PWD_COMMAND}`; export r; \
43095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43096 $(NORMAL_TARGET_EXPORTS) \
22121df0 43097 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
43098 for flag in $(EXTRA_TARGET_FLAGS); do \
43099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43100 done; \
a90ef4bf 43101 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
43102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43104 "RANLIB=$${RANLIB}" \
0c24b341 43105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43106 install-html) \
43107 || exit 1
43108
a90ef4bf 43109@endif target-libobjc
108a6f8e 43110
a90ef4bf
JM
43111.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
43112maybe-installcheck-target-libobjc:
43113@if target-libobjc
43114maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 43115
a90ef4bf
JM
43116installcheck-target-libobjc: \
43117 configure-target-libobjc
0aed8855 43118 @: $(MAKE); $(unstage)
22121df0 43119 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43120 r=`${PWD_COMMAND}`; export r; \
b40e3958 43121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43122 $(NORMAL_TARGET_EXPORTS) \
22121df0 43123 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43124 for flag in $(EXTRA_TARGET_FLAGS); do \
43125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43126 done; \
a90ef4bf 43127 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43130 "RANLIB=$${RANLIB}" \
0c24b341 43131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43132 installcheck) \
4fa63067 43133 || exit 1
3866be5d 43134
a90ef4bf 43135@endif target-libobjc
3866be5d 43136
a90ef4bf
JM
43137.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
43138maybe-mostlyclean-target-libobjc:
43139@if target-libobjc
43140maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 43141
a90ef4bf
JM
43142mostlyclean-target-libobjc:
43143 @: $(MAKE); $(unstage)
22121df0 43144 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43145 r=`${PWD_COMMAND}`; export r; \
43146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43147 $(NORMAL_TARGET_EXPORTS) \
22121df0 43148 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43149 for flag in $(EXTRA_TARGET_FLAGS); do \
43150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43151 done; \
43152 (cd $(TARGET_SUBDIR)/libobjc && \
43153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43155 "RANLIB=$${RANLIB}" \
43156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43157 mostlyclean) \
43158 || exit 1
4fa63067 43159
a90ef4bf 43160@endif target-libobjc
4fa63067 43161
a90ef4bf
JM
43162.PHONY: maybe-clean-target-libobjc clean-target-libobjc
43163maybe-clean-target-libobjc:
43164@if target-libobjc
43165maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 43166
a90ef4bf
JM
43167clean-target-libobjc:
43168 @: $(MAKE); $(unstage)
22121df0 43169 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43170 r=`${PWD_COMMAND}`; export r; \
43171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43172 $(NORMAL_TARGET_EXPORTS) \
22121df0 43173 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43174 for flag in $(EXTRA_TARGET_FLAGS); do \
43175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43176 done; \
43177 (cd $(TARGET_SUBDIR)/libobjc && \
43178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43180 "RANLIB=$${RANLIB}" \
43181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43182 clean) \
43183 || exit 1
4fa63067 43184
a90ef4bf 43185@endif target-libobjc
4fa63067 43186
a90ef4bf
JM
43187.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
43188maybe-distclean-target-libobjc:
43189@if target-libobjc
43190maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 43191
a90ef4bf
JM
43192distclean-target-libobjc:
43193 @: $(MAKE); $(unstage)
22121df0 43194 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43195 r=`${PWD_COMMAND}`; export r; \
43196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43197 $(NORMAL_TARGET_EXPORTS) \
22121df0 43198 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43199 for flag in $(EXTRA_TARGET_FLAGS); do \
43200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43201 done; \
43202 (cd $(TARGET_SUBDIR)/libobjc && \
43203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43205 "RANLIB=$${RANLIB}" \
43206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43207 distclean) \
43208 || exit 1
4fa63067 43209
a90ef4bf 43210@endif target-libobjc
4fa63067 43211
a90ef4bf
JM
43212.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
43213maybe-maintainer-clean-target-libobjc:
43214@if target-libobjc
43215maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 43216
a90ef4bf
JM
43217maintainer-clean-target-libobjc:
43218 @: $(MAKE); $(unstage)
22121df0 43219 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43220 r=`${PWD_COMMAND}`; export r; \
43221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43222 $(NORMAL_TARGET_EXPORTS) \
22121df0 43223 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43224 for flag in $(EXTRA_TARGET_FLAGS); do \
43225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43226 done; \
43227 (cd $(TARGET_SUBDIR)/libobjc && \
43228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43230 "RANLIB=$${RANLIB}" \
43231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43232 maintainer-clean) \
43233 || exit 1
4fa63067 43234
a90ef4bf 43235@endif target-libobjc
4fa63067
NN
43236
43237
4fa63067 43238
4fa63067 43239
a7254363 43240
a90ef4bf
JM
43241.PHONY: configure-target-libgo maybe-configure-target-libgo
43242maybe-configure-target-libgo:
4f0ef2d8 43243@if gcc-bootstrap
a90ef4bf 43244configure-target-libgo: stage_current
4f0ef2d8 43245@endif gcc-bootstrap
a90ef4bf
JM
43246@if target-libgo
43247maybe-configure-target-libgo: configure-target-libgo
43248configure-target-libgo:
0aed8855
PB
43249 @: $(MAKE); $(unstage)
43250 @r=`${PWD_COMMAND}`; export r; \
43251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43252 echo "Checking multilib configuration for libgo..."; \
22121df0
L
43253 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
43254 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43255 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
43256 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
43257 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 43258 else \
a90ef4bf
JM
43259 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
43260 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
43261 fi; \
43262 else \
a90ef4bf 43263 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 43264 fi; \
a90ef4bf 43265 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 43266 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 43267 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43268 echo Configuring in $(TARGET_SUBDIR)/libgo; \
43269 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 43270 case $(srcdir) in \
b00612cc 43271 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43272 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 43273 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 43274 esac; \
1b6c0831 43275 module_srcdir=libgo; \
4fa63067 43276 rm -f no-such-file || : ; \
1b6c0831
L
43277 CONFIG_SITE=no-such-file $(SHELL) \
43278 $$s/$$module_srcdir/configure \
43279 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43280 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43281 --target=${target_alias} \
e2b9e2dc 43282 || exit 1
a90ef4bf 43283@endif target-libgo
e2b9e2dc 43284
a7254363
PB
43285
43286
d545f33b
PB
43287
43288
a90ef4bf
JM
43289.PHONY: all-target-libgo maybe-all-target-libgo
43290maybe-all-target-libgo:
4f0ef2d8 43291@if gcc-bootstrap
a90ef4bf 43292all-target-libgo: stage_current
4f0ef2d8 43293@endif gcc-bootstrap
a90ef4bf
JM
43294@if target-libgo
43295TARGET-target-libgo=all
43296maybe-all-target-libgo: all-target-libgo
43297all-target-libgo: configure-target-libgo
0aed8855 43298 @: $(MAKE); $(unstage)
b40e3958
L
43299 @r=`${PWD_COMMAND}`; export r; \
43300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43301 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43302 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 43303 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43304 $(TARGET-target-libgo))
43305@endif target-libgo
3866be5d 43306
a7254363
PB
43307
43308
d545f33b
PB
43309
43310
a90ef4bf
JM
43311.PHONY: check-target-libgo maybe-check-target-libgo
43312maybe-check-target-libgo:
43313@if target-libgo
43314maybe-check-target-libgo: check-target-libgo
3866be5d 43315
a90ef4bf 43316check-target-libgo:
0aed8855 43317 @: $(MAKE); $(unstage)
4fa63067
NN
43318 @r=`${PWD_COMMAND}`; export r; \
43319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43320 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43321 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 43322 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 43323
a90ef4bf 43324@endif target-libgo
3866be5d 43325
a90ef4bf
JM
43326.PHONY: install-target-libgo maybe-install-target-libgo
43327maybe-install-target-libgo:
43328@if target-libgo
43329maybe-install-target-libgo: install-target-libgo
16ae0395 43330
a90ef4bf 43331install-target-libgo: installdirs
0aed8855 43332 @: $(MAKE); $(unstage)
4fa63067
NN
43333 @r=`${PWD_COMMAND}`; export r; \
43334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43335 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43336 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 43337 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 43338
a90ef4bf 43339@endif target-libgo
3866be5d 43340
a90ef4bf
JM
43341.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
43342maybe-install-strip-target-libgo:
43343@if target-libgo
43344maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 43345
a90ef4bf 43346install-strip-target-libgo: installdirs
9b980aa1
RW
43347 @: $(MAKE); $(unstage)
43348 @r=`${PWD_COMMAND}`; export r; \
43349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43350 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43351 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
43352 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43353
a90ef4bf 43354@endif target-libgo
9b980aa1 43355
56a8fe78 43356# Other targets (info, dvi, pdf, etc.)
4fa63067 43357
a90ef4bf
JM
43358.PHONY: maybe-info-target-libgo info-target-libgo
43359maybe-info-target-libgo:
43360@if target-libgo
43361maybe-info-target-libgo: info-target-libgo
4fa63067 43362
a90ef4bf
JM
43363info-target-libgo: \
43364 configure-target-libgo
0aed8855 43365 @: $(MAKE); $(unstage)
22121df0 43366 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43367 r=`${PWD_COMMAND}`; export r; \
43368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43369 $(NORMAL_TARGET_EXPORTS) \
22121df0 43370 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43371 for flag in $(EXTRA_TARGET_FLAGS); do \
43372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43373 done; \
a90ef4bf 43374 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43377 "RANLIB=$${RANLIB}" \
0c24b341 43378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43379 info) \
e2b9e2dc
NN
43380 || exit 1
43381
a90ef4bf 43382@endif target-libgo
3866be5d 43383
a90ef4bf
JM
43384.PHONY: maybe-dvi-target-libgo dvi-target-libgo
43385maybe-dvi-target-libgo:
43386@if target-libgo
43387maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 43388
a90ef4bf
JM
43389dvi-target-libgo: \
43390 configure-target-libgo
0aed8855 43391 @: $(MAKE); $(unstage)
22121df0 43392 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43393 r=`${PWD_COMMAND}`; export r; \
b40e3958 43394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43395 $(NORMAL_TARGET_EXPORTS) \
22121df0 43396 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43397 for flag in $(EXTRA_TARGET_FLAGS); do \
43398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43399 done; \
a90ef4bf 43400 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43403 "RANLIB=$${RANLIB}" \
0c24b341 43404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43405 dvi) \
4fa63067 43406 || exit 1
3866be5d 43407
a90ef4bf 43408@endif target-libgo
3866be5d 43409
a90ef4bf
JM
43410.PHONY: maybe-pdf-target-libgo pdf-target-libgo
43411maybe-pdf-target-libgo:
43412@if target-libgo
43413maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 43414
a90ef4bf
JM
43415pdf-target-libgo: \
43416 configure-target-libgo
56a8fe78 43417 @: $(MAKE); $(unstage)
22121df0 43418 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
43419 r=`${PWD_COMMAND}`; export r; \
43420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43421 $(NORMAL_TARGET_EXPORTS) \
22121df0 43422 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
43423 for flag in $(EXTRA_TARGET_FLAGS); do \
43424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43425 done; \
a90ef4bf 43426 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
43427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43429 "RANLIB=$${RANLIB}" \
0c24b341 43430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43431 pdf) \
43432 || exit 1
43433
a90ef4bf 43434@endif target-libgo
56a8fe78 43435
a90ef4bf
JM
43436.PHONY: maybe-html-target-libgo html-target-libgo
43437maybe-html-target-libgo:
43438@if target-libgo
43439maybe-html-target-libgo: html-target-libgo
6d389afc 43440
a90ef4bf
JM
43441html-target-libgo: \
43442 configure-target-libgo
0aed8855 43443 @: $(MAKE); $(unstage)
22121df0 43444 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
43445 r=`${PWD_COMMAND}`; export r; \
43446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43447 $(NORMAL_TARGET_EXPORTS) \
22121df0 43448 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
43449 for flag in $(EXTRA_TARGET_FLAGS); do \
43450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43451 done; \
a90ef4bf 43452 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
43453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43455 "RANLIB=$${RANLIB}" \
0c24b341 43456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43457 html) \
43458 || exit 1
43459
a90ef4bf 43460@endif target-libgo
6d389afc 43461
a90ef4bf
JM
43462.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
43463maybe-TAGS-target-libgo:
43464@if target-libgo
43465maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 43466
a90ef4bf
JM
43467TAGS-target-libgo: \
43468 configure-target-libgo
0aed8855 43469 @: $(MAKE); $(unstage)
22121df0 43470 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43471 r=`${PWD_COMMAND}`; export r; \
b40e3958 43472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43473 $(NORMAL_TARGET_EXPORTS) \
22121df0 43474 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
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)/libgo && \
4fa63067
NN
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}" \
7ffa0b57 43483 TAGS) \
4fa63067 43484 || exit 1
3866be5d 43485
a90ef4bf 43486@endif target-libgo
3866be5d 43487
a90ef4bf
JM
43488.PHONY: maybe-install-info-target-libgo install-info-target-libgo
43489maybe-install-info-target-libgo:
43490@if target-libgo
43491maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 43492
a90ef4bf
JM
43493install-info-target-libgo: \
43494 configure-target-libgo \
43495 info-target-libgo
0aed8855 43496 @: $(MAKE); $(unstage)
22121df0 43497 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43498 r=`${PWD_COMMAND}`; export r; \
43499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43500 $(NORMAL_TARGET_EXPORTS) \
22121df0 43501 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43502 for flag in $(EXTRA_TARGET_FLAGS); do \
43503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43504 done; \
a90ef4bf 43505 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43508 "RANLIB=$${RANLIB}" \
0c24b341 43509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43510 install-info) \
e2b9e2dc
NN
43511 || exit 1
43512
a90ef4bf 43513@endif target-libgo
4fa63067 43514
a90ef4bf
JM
43515.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
43516maybe-install-pdf-target-libgo:
43517@if target-libgo
43518maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 43519
a90ef4bf
JM
43520install-pdf-target-libgo: \
43521 configure-target-libgo \
43522 pdf-target-libgo
a3ca38d2 43523 @: $(MAKE); $(unstage)
22121df0 43524 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
43525 r=`${PWD_COMMAND}`; export r; \
43526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43527 $(NORMAL_TARGET_EXPORTS) \
22121df0 43528 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
43529 for flag in $(EXTRA_TARGET_FLAGS); do \
43530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43531 done; \
a90ef4bf 43532 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
43533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43535 "RANLIB=$${RANLIB}" \
0c24b341 43536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43537 install-pdf) \
43538 || exit 1
43539
a90ef4bf 43540@endif target-libgo
a3ca38d2 43541
a90ef4bf
JM
43542.PHONY: maybe-install-html-target-libgo install-html-target-libgo
43543maybe-install-html-target-libgo:
43544@if target-libgo
43545maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 43546
a90ef4bf
JM
43547install-html-target-libgo: \
43548 configure-target-libgo \
43549 html-target-libgo
108a6f8e 43550 @: $(MAKE); $(unstage)
22121df0 43551 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
43552 r=`${PWD_COMMAND}`; export r; \
43553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43554 $(NORMAL_TARGET_EXPORTS) \
22121df0 43555 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
43556 for flag in $(EXTRA_TARGET_FLAGS); do \
43557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43558 done; \
a90ef4bf 43559 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
43560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43562 "RANLIB=$${RANLIB}" \
0c24b341 43563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43564 install-html) \
43565 || exit 1
43566
a90ef4bf 43567@endif target-libgo
108a6f8e 43568
a90ef4bf
JM
43569.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
43570maybe-installcheck-target-libgo:
43571@if target-libgo
43572maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 43573
a90ef4bf
JM
43574installcheck-target-libgo: \
43575 configure-target-libgo
0aed8855 43576 @: $(MAKE); $(unstage)
22121df0 43577 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43578 r=`${PWD_COMMAND}`; export r; \
b40e3958 43579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43580 $(NORMAL_TARGET_EXPORTS) \
22121df0 43581 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43582 for flag in $(EXTRA_TARGET_FLAGS); do \
43583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43584 done; \
a90ef4bf 43585 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43588 "RANLIB=$${RANLIB}" \
0c24b341 43589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43590 installcheck) \
4fa63067 43591 || exit 1
3866be5d 43592
a90ef4bf 43593@endif target-libgo
3866be5d 43594
a90ef4bf
JM
43595.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
43596maybe-mostlyclean-target-libgo:
43597@if target-libgo
43598maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 43599
a90ef4bf 43600mostlyclean-target-libgo:
0aed8855 43601 @: $(MAKE); $(unstage)
22121df0 43602 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43603 r=`${PWD_COMMAND}`; export r; \
b40e3958 43604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43605 $(NORMAL_TARGET_EXPORTS) \
22121df0 43606 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43607 for flag in $(EXTRA_TARGET_FLAGS); do \
43608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43609 done; \
a90ef4bf 43610 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43613 "RANLIB=$${RANLIB}" \
0c24b341 43614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43615 mostlyclean) \
4fa63067 43616 || exit 1
3866be5d 43617
a90ef4bf 43618@endif target-libgo
3866be5d 43619
a90ef4bf
JM
43620.PHONY: maybe-clean-target-libgo clean-target-libgo
43621maybe-clean-target-libgo:
43622@if target-libgo
43623maybe-clean-target-libgo: clean-target-libgo
16ae0395 43624
a90ef4bf 43625clean-target-libgo:
0aed8855 43626 @: $(MAKE); $(unstage)
22121df0 43627 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43628 r=`${PWD_COMMAND}`; export r; \
b40e3958 43629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43630 $(NORMAL_TARGET_EXPORTS) \
22121df0 43631 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43632 for flag in $(EXTRA_TARGET_FLAGS); do \
43633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43634 done; \
a90ef4bf 43635 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43638 "RANLIB=$${RANLIB}" \
0c24b341 43639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43640 clean) \
4fa63067 43641 || exit 1
3866be5d 43642
a90ef4bf 43643@endif target-libgo
3866be5d 43644
a90ef4bf
JM
43645.PHONY: maybe-distclean-target-libgo distclean-target-libgo
43646maybe-distclean-target-libgo:
43647@if target-libgo
43648maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 43649
a90ef4bf 43650distclean-target-libgo:
0aed8855 43651 @: $(MAKE); $(unstage)
22121df0 43652 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43653 r=`${PWD_COMMAND}`; export r; \
43654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43655 $(NORMAL_TARGET_EXPORTS) \
22121df0 43656 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43657 for flag in $(EXTRA_TARGET_FLAGS); do \
43658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43659 done; \
a90ef4bf 43660 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43663 "RANLIB=$${RANLIB}" \
0c24b341 43664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43665 distclean) \
e2b9e2dc
NN
43666 || exit 1
43667
a90ef4bf 43668@endif target-libgo
3866be5d 43669
a90ef4bf
JM
43670.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
43671maybe-maintainer-clean-target-libgo:
43672@if target-libgo
43673maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 43674
a90ef4bf 43675maintainer-clean-target-libgo:
0aed8855 43676 @: $(MAKE); $(unstage)
22121df0 43677 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43678 r=`${PWD_COMMAND}`; export r; \
b40e3958 43679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43680 $(NORMAL_TARGET_EXPORTS) \
22121df0 43681 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43682 for flag in $(EXTRA_TARGET_FLAGS); do \
43683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43684 done; \
a90ef4bf 43685 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43688 "RANLIB=$${RANLIB}" \
0c24b341 43689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43690 maintainer-clean) \
4fa63067 43691 || exit 1
3866be5d 43692
a90ef4bf 43693@endif target-libgo
3866be5d 43694
16ae0395 43695
3866be5d 43696
e90269c8 43697
a7254363 43698
a90ef4bf
JM
43699.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
43700maybe-configure-target-libtermcap:
4f0ef2d8 43701@if gcc-bootstrap
a90ef4bf 43702configure-target-libtermcap: stage_current
4f0ef2d8 43703@endif gcc-bootstrap
a90ef4bf
JM
43704@if target-libtermcap
43705maybe-configure-target-libtermcap: configure-target-libtermcap
43706configure-target-libtermcap:
0aed8855
PB
43707 @: $(MAKE); $(unstage)
43708 @r=`${PWD_COMMAND}`; export r; \
43709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43710 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
43711 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
43712 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43713 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
43714 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
43715 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 43716 else \
a90ef4bf
JM
43717 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
43718 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
43719 fi; \
43720 else \
a90ef4bf 43721 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 43722 fi; \
a90ef4bf 43723 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 43724 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 43725 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43726 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
43727 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 43728 case $(srcdir) in \
b00612cc 43729 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43730 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 43731 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 43732 esac; \
1b6c0831 43733 module_srcdir=libtermcap; \
4fa63067 43734 rm -f no-such-file || : ; \
1b6c0831
L
43735 CONFIG_SITE=no-such-file $(SHELL) \
43736 $$s/$$module_srcdir/configure \
43737 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43738 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43739 --target=${target_alias} \
e2b9e2dc 43740 || exit 1
a90ef4bf 43741@endif target-libtermcap
e2b9e2dc 43742
a7254363
PB
43743
43744
d545f33b
PB
43745
43746
a90ef4bf
JM
43747.PHONY: all-target-libtermcap maybe-all-target-libtermcap
43748maybe-all-target-libtermcap:
4f0ef2d8 43749@if gcc-bootstrap
a90ef4bf 43750all-target-libtermcap: stage_current
4f0ef2d8 43751@endif gcc-bootstrap
a90ef4bf
JM
43752@if target-libtermcap
43753TARGET-target-libtermcap=all
43754maybe-all-target-libtermcap: all-target-libtermcap
43755all-target-libtermcap: configure-target-libtermcap
0aed8855 43756 @: $(MAKE); $(unstage)
b40e3958
L
43757 @r=`${PWD_COMMAND}`; export r; \
43758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43759 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43760 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 43761 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43762 $(TARGET-target-libtermcap))
43763@endif target-libtermcap
e393202e 43764
a7254363
PB
43765
43766
d545f33b
PB
43767
43768
a90ef4bf
JM
43769.PHONY: check-target-libtermcap maybe-check-target-libtermcap
43770maybe-check-target-libtermcap:
43771@if target-libtermcap
43772maybe-check-target-libtermcap: check-target-libtermcap
e393202e 43773
4fa63067 43774# Dummy target for uncheckable module.
a90ef4bf 43775check-target-libtermcap:
e393202e 43776
a90ef4bf 43777@endif target-libtermcap
e393202e 43778
a90ef4bf
JM
43779.PHONY: install-target-libtermcap maybe-install-target-libtermcap
43780maybe-install-target-libtermcap:
43781@if target-libtermcap
43782maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 43783
a90ef4bf 43784install-target-libtermcap: installdirs
0aed8855 43785 @: $(MAKE); $(unstage)
b40e3958
L
43786 @r=`${PWD_COMMAND}`; export r; \
43787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43788 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43789 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 43790 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43791
a90ef4bf 43792@endif target-libtermcap
56a8fe78 43793
a90ef4bf
JM
43794.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
43795maybe-install-strip-target-libtermcap:
43796@if target-libtermcap
43797maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 43798
a90ef4bf 43799install-strip-target-libtermcap: installdirs
0aed8855 43800 @: $(MAKE); $(unstage)
a90ef4bf 43801 @r=`${PWD_COMMAND}`; export r; \
6d389afc 43802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43803 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43804 (cd $(TARGET_SUBDIR)/libtermcap && \
43805 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 43806
a90ef4bf 43807@endif target-libtermcap
6d389afc 43808
a90ef4bf 43809# Other targets (info, dvi, pdf, etc.)
16ae0395 43810
a90ef4bf
JM
43811.PHONY: maybe-info-target-libtermcap info-target-libtermcap
43812maybe-info-target-libtermcap:
43813@if target-libtermcap
43814maybe-info-target-libtermcap: info-target-libtermcap
43815
43816info-target-libtermcap: \
43817 configure-target-libtermcap
0aed8855 43818 @: $(MAKE); $(unstage)
22121df0 43819 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43820 r=`${PWD_COMMAND}`; export r; \
b40e3958 43821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43822 $(NORMAL_TARGET_EXPORTS) \
22121df0 43823 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43824 for flag in $(EXTRA_TARGET_FLAGS); do \
43825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43826 done; \
a90ef4bf 43827 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43830 "RANLIB=$${RANLIB}" \
0c24b341 43831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43832 info) \
4fa63067 43833 || exit 1
ce5b542e 43834
a90ef4bf 43835@endif target-libtermcap
ce5b542e 43836
a90ef4bf
JM
43837.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
43838maybe-dvi-target-libtermcap:
43839@if target-libtermcap
43840maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 43841
a90ef4bf
JM
43842dvi-target-libtermcap: \
43843 configure-target-libtermcap
0aed8855 43844 @: $(MAKE); $(unstage)
22121df0 43845 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
43846 r=`${PWD_COMMAND}`; export r; \
43847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43848 $(NORMAL_TARGET_EXPORTS) \
22121df0 43849 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43850 for flag in $(EXTRA_TARGET_FLAGS); do \
43851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43852 done; \
a90ef4bf 43853 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43856 "RANLIB=$${RANLIB}" \
0c24b341 43857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43858 dvi) \
e2b9e2dc
NN
43859 || exit 1
43860
a90ef4bf 43861@endif target-libtermcap
e393202e 43862
a90ef4bf
JM
43863.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
43864maybe-pdf-target-libtermcap:
43865@if target-libtermcap
43866maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 43867
a90ef4bf
JM
43868pdf-target-libtermcap: \
43869 configure-target-libtermcap
a3ca38d2 43870 @: $(MAKE); $(unstage)
22121df0 43871 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
43872 r=`${PWD_COMMAND}`; export r; \
43873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43874 $(NORMAL_TARGET_EXPORTS) \
22121df0 43875 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
43876 for flag in $(EXTRA_TARGET_FLAGS); do \
43877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43878 done; \
a90ef4bf 43879 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
43880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43882 "RANLIB=$${RANLIB}" \
0c24b341 43883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43884 pdf) \
a3ca38d2
DD
43885 || exit 1
43886
a90ef4bf 43887@endif target-libtermcap
a3ca38d2 43888
a90ef4bf
JM
43889.PHONY: maybe-html-target-libtermcap html-target-libtermcap
43890maybe-html-target-libtermcap:
43891@if target-libtermcap
43892maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 43893
a90ef4bf
JM
43894html-target-libtermcap: \
43895 configure-target-libtermcap
108a6f8e 43896 @: $(MAKE); $(unstage)
22121df0 43897 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
43898 r=`${PWD_COMMAND}`; export r; \
43899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43900 $(NORMAL_TARGET_EXPORTS) \
22121df0 43901 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
43902 for flag in $(EXTRA_TARGET_FLAGS); do \
43903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43904 done; \
a90ef4bf 43905 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
43906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43908 "RANLIB=$${RANLIB}" \
0c24b341 43909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43910 html) \
108a6f8e
CD
43911 || exit 1
43912
a90ef4bf 43913@endif target-libtermcap
108a6f8e 43914
a90ef4bf
JM
43915.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
43916maybe-TAGS-target-libtermcap:
43917@if target-libtermcap
43918maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 43919
a90ef4bf
JM
43920TAGS-target-libtermcap: \
43921 configure-target-libtermcap
0aed8855 43922 @: $(MAKE); $(unstage)
22121df0 43923 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
43924 r=`${PWD_COMMAND}`; export r; \
43925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43926 $(NORMAL_TARGET_EXPORTS) \
22121df0 43927 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
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)/libtermcap && \
4fa63067
NN
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}" \
a90ef4bf 43936 TAGS) \
4fa63067 43937 || exit 1
3866be5d 43938
a90ef4bf 43939@endif target-libtermcap
3866be5d 43940
a90ef4bf
JM
43941.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
43942maybe-install-info-target-libtermcap:
43943@if target-libtermcap
43944maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 43945
a90ef4bf
JM
43946install-info-target-libtermcap: \
43947 configure-target-libtermcap \
43948 info-target-libtermcap
0aed8855 43949 @: $(MAKE); $(unstage)
22121df0 43950 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43951 r=`${PWD_COMMAND}`; export r; \
b40e3958 43952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43953 $(NORMAL_TARGET_EXPORTS) \
22121df0 43954 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43955 for flag in $(EXTRA_TARGET_FLAGS); do \
43956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43957 done; \
a90ef4bf 43958 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43961 "RANLIB=$${RANLIB}" \
0c24b341 43962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43963 install-info) \
4fa63067 43964 || exit 1
e393202e 43965
a90ef4bf 43966@endif target-libtermcap
3866be5d 43967
a90ef4bf
JM
43968.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
43969maybe-install-pdf-target-libtermcap:
43970@if target-libtermcap
43971maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 43972
a90ef4bf
JM
43973install-pdf-target-libtermcap: \
43974 configure-target-libtermcap \
43975 pdf-target-libtermcap
0aed8855 43976 @: $(MAKE); $(unstage)
22121df0 43977 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
43978 r=`${PWD_COMMAND}`; export r; \
43979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43980 $(NORMAL_TARGET_EXPORTS) \
22121df0 43981 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43982 for flag in $(EXTRA_TARGET_FLAGS); do \
43983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43984 done; \
a90ef4bf 43985 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43988 "RANLIB=$${RANLIB}" \
0c24b341 43989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43990 install-pdf) \
e2b9e2dc
NN
43991 || exit 1
43992
a90ef4bf 43993@endif target-libtermcap
e393202e 43994
a90ef4bf
JM
43995.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
43996maybe-install-html-target-libtermcap:
43997@if target-libtermcap
43998maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 43999
a90ef4bf
JM
44000install-html-target-libtermcap: \
44001 configure-target-libtermcap \
44002 html-target-libtermcap
0aed8855 44003 @: $(MAKE); $(unstage)
22121df0 44004 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
44005 r=`${PWD_COMMAND}`; export r; \
44006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44007 $(NORMAL_TARGET_EXPORTS) \
22121df0 44008 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44009 for flag in $(EXTRA_TARGET_FLAGS); do \
44010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44011 done; \
a90ef4bf 44012 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44015 "RANLIB=$${RANLIB}" \
0c24b341 44016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44017 install-html) \
4fa63067 44018 || exit 1
3866be5d 44019
a90ef4bf 44020@endif target-libtermcap
3866be5d 44021
a90ef4bf
JM
44022.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
44023maybe-installcheck-target-libtermcap:
44024@if target-libtermcap
44025maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 44026
a90ef4bf
JM
44027installcheck-target-libtermcap: \
44028 configure-target-libtermcap
0aed8855 44029 @: $(MAKE); $(unstage)
22121df0 44030 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44031 r=`${PWD_COMMAND}`; export r; \
b40e3958 44032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44033 $(NORMAL_TARGET_EXPORTS) \
22121df0 44034 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44035 for flag in $(EXTRA_TARGET_FLAGS); do \
44036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44037 done; \
a90ef4bf 44038 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44041 "RANLIB=$${RANLIB}" \
0c24b341 44042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44043 installcheck) \
4fa63067 44044 || exit 1
3866be5d 44045
a90ef4bf
JM
44046@endif target-libtermcap
44047
44048.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
44049maybe-mostlyclean-target-libtermcap:
44050@if target-libtermcap
44051maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
44052
44053# libtermcap doesn't support mostlyclean.
44054mostlyclean-target-libtermcap:
44055
44056@endif target-libtermcap
3866be5d 44057
a90ef4bf
JM
44058.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
44059maybe-clean-target-libtermcap:
44060@if target-libtermcap
44061maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 44062
a90ef4bf
JM
44063# libtermcap doesn't support clean.
44064clean-target-libtermcap:
15723a45 44065
a90ef4bf 44066@endif target-libtermcap
e90269c8 44067
a90ef4bf
JM
44068.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
44069maybe-distclean-target-libtermcap:
44070@if target-libtermcap
44071maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 44072
a90ef4bf
JM
44073# libtermcap doesn't support distclean.
44074distclean-target-libtermcap:
44075
44076@endif target-libtermcap
44077
44078.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
44079maybe-maintainer-clean-target-libtermcap:
44080@if target-libtermcap
44081maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
44082
44083# libtermcap doesn't support maintainer-clean.
44084maintainer-clean-target-libtermcap:
44085
44086@endif target-libtermcap
44087
44088
44089
44090
44091
44092.PHONY: configure-target-winsup maybe-configure-target-winsup
44093maybe-configure-target-winsup:
4f0ef2d8 44094@if gcc-bootstrap
a90ef4bf 44095configure-target-winsup: stage_current
4f0ef2d8 44096@endif gcc-bootstrap
a90ef4bf
JM
44097@if target-winsup
44098maybe-configure-target-winsup: configure-target-winsup
44099configure-target-winsup:
0aed8855
PB
44100 @: $(MAKE); $(unstage)
44101 @r=`${PWD_COMMAND}`; export r; \
44102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44103 echo "Checking multilib configuration for winsup..."; \
22121df0
L
44104 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
44105 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44106 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
44107 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
44108 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 44109 else \
a90ef4bf
JM
44110 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
44111 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
44112 fi; \
44113 else \
a90ef4bf 44114 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 44115 fi; \
a90ef4bf 44116 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 44117 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 44118 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44119 echo Configuring in $(TARGET_SUBDIR)/winsup; \
44120 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 44121 case $(srcdir) in \
b00612cc 44122 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44123 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 44124 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44125 esac; \
1b6c0831 44126 module_srcdir=winsup; \
bba45b8b 44127 rm -f no-such-file || : ; \
1b6c0831
L
44128 CONFIG_SITE=no-such-file $(SHELL) \
44129 $$s/$$module_srcdir/configure \
44130 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44131 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44132 --target=${target_alias} \
bba45b8b 44133 || exit 1
a90ef4bf 44134@endif target-winsup
e393202e 44135
a7254363
PB
44136
44137
d545f33b
PB
44138
44139
a90ef4bf
JM
44140.PHONY: all-target-winsup maybe-all-target-winsup
44141maybe-all-target-winsup:
4f0ef2d8 44142@if gcc-bootstrap
a90ef4bf 44143all-target-winsup: stage_current
4f0ef2d8 44144@endif gcc-bootstrap
a90ef4bf
JM
44145@if target-winsup
44146TARGET-target-winsup=all
44147maybe-all-target-winsup: all-target-winsup
44148all-target-winsup: configure-target-winsup
0aed8855 44149 @: $(MAKE); $(unstage)
b40e3958
L
44150 @r=`${PWD_COMMAND}`; export r; \
44151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44152 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44153 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 44154 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44155 $(TARGET-target-winsup))
44156@endif target-winsup
e393202e 44157
a7254363
PB
44158
44159
d545f33b
PB
44160
44161
a90ef4bf
JM
44162.PHONY: check-target-winsup maybe-check-target-winsup
44163maybe-check-target-winsup:
44164@if target-winsup
44165maybe-check-target-winsup: check-target-winsup
16ae0395 44166
a90ef4bf 44167check-target-winsup:
0aed8855 44168 @: $(MAKE); $(unstage)
b40e3958
L
44169 @r=`${PWD_COMMAND}`; export r; \
44170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44171 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44172 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 44173 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 44174
a90ef4bf 44175@endif target-winsup
e393202e 44176
a90ef4bf
JM
44177.PHONY: install-target-winsup maybe-install-target-winsup
44178maybe-install-target-winsup:
44179@if target-winsup
44180maybe-install-target-winsup: install-target-winsup
4fa63067 44181
a90ef4bf 44182install-target-winsup: installdirs
0aed8855 44183 @: $(MAKE); $(unstage)
4fa63067
NN
44184 @r=`${PWD_COMMAND}`; export r; \
44185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44186 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44187 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 44188 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 44189
a90ef4bf 44190@endif target-winsup
4fa63067 44191
a90ef4bf
JM
44192.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
44193maybe-install-strip-target-winsup:
44194@if target-winsup
44195maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 44196
a90ef4bf 44197install-strip-target-winsup: installdirs
9b980aa1
RW
44198 @: $(MAKE); $(unstage)
44199 @r=`${PWD_COMMAND}`; export r; \
44200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44201 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44202 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
44203 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44204
a90ef4bf 44205@endif target-winsup
9b980aa1 44206
56a8fe78 44207# Other targets (info, dvi, pdf, etc.)
4fa63067 44208
a90ef4bf
JM
44209.PHONY: maybe-info-target-winsup info-target-winsup
44210maybe-info-target-winsup:
44211@if target-winsup
44212maybe-info-target-winsup: info-target-winsup
4fa63067 44213
a90ef4bf
JM
44214info-target-winsup: \
44215 configure-target-winsup
0aed8855 44216 @: $(MAKE); $(unstage)
22121df0 44217 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44218 r=`${PWD_COMMAND}`; export r; \
44219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44220 $(NORMAL_TARGET_EXPORTS) \
22121df0 44221 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44222 for flag in $(EXTRA_TARGET_FLAGS); do \
44223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44224 done; \
a90ef4bf 44225 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44228 "RANLIB=$${RANLIB}" \
0c24b341 44229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44230 info) \
4fa63067
NN
44231 || exit 1
44232
a90ef4bf 44233@endif target-winsup
4fa63067 44234
a90ef4bf
JM
44235.PHONY: maybe-dvi-target-winsup dvi-target-winsup
44236maybe-dvi-target-winsup:
44237@if target-winsup
44238maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 44239
a90ef4bf
JM
44240dvi-target-winsup: \
44241 configure-target-winsup
0aed8855 44242 @: $(MAKE); $(unstage)
22121df0 44243 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44244 r=`${PWD_COMMAND}`; export r; \
44245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44246 $(NORMAL_TARGET_EXPORTS) \
22121df0 44247 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44248 for flag in $(EXTRA_TARGET_FLAGS); do \
44249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44250 done; \
a90ef4bf 44251 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44254 "RANLIB=$${RANLIB}" \
0c24b341 44255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44256 dvi) \
4fa63067
NN
44257 || exit 1
44258
a90ef4bf 44259@endif target-winsup
4fa63067 44260
a90ef4bf
JM
44261.PHONY: maybe-pdf-target-winsup pdf-target-winsup
44262maybe-pdf-target-winsup:
44263@if target-winsup
44264maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 44265
a90ef4bf
JM
44266pdf-target-winsup: \
44267 configure-target-winsup
56a8fe78 44268 @: $(MAKE); $(unstage)
22121df0 44269 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
44270 r=`${PWD_COMMAND}`; export r; \
44271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44272 $(NORMAL_TARGET_EXPORTS) \
22121df0 44273 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
44274 for flag in $(EXTRA_TARGET_FLAGS); do \
44275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44276 done; \
a90ef4bf 44277 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
44278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44280 "RANLIB=$${RANLIB}" \
0c24b341 44281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44282 pdf) \
44283 || exit 1
44284
a90ef4bf 44285@endif target-winsup
56a8fe78 44286
a90ef4bf
JM
44287.PHONY: maybe-html-target-winsup html-target-winsup
44288maybe-html-target-winsup:
44289@if target-winsup
44290maybe-html-target-winsup: html-target-winsup
6d389afc 44291
a90ef4bf
JM
44292html-target-winsup: \
44293 configure-target-winsup
0aed8855 44294 @: $(MAKE); $(unstage)
22121df0 44295 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
44296 r=`${PWD_COMMAND}`; export r; \
44297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44298 $(NORMAL_TARGET_EXPORTS) \
22121df0 44299 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
44300 for flag in $(EXTRA_TARGET_FLAGS); do \
44301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44302 done; \
a90ef4bf 44303 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
44304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44306 "RANLIB=$${RANLIB}" \
0c24b341 44307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44308 html) \
44309 || exit 1
44310
a90ef4bf 44311@endif target-winsup
6d389afc 44312
a90ef4bf
JM
44313.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
44314maybe-TAGS-target-winsup:
44315@if target-winsup
44316maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 44317
a90ef4bf
JM
44318TAGS-target-winsup: \
44319 configure-target-winsup
0aed8855 44320 @: $(MAKE); $(unstage)
22121df0 44321 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44322 r=`${PWD_COMMAND}`; export r; \
44323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44324 $(NORMAL_TARGET_EXPORTS) \
22121df0 44325 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44326 for flag in $(EXTRA_TARGET_FLAGS); do \
44327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44328 done; \
a90ef4bf 44329 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44332 "RANLIB=$${RANLIB}" \
0c24b341 44333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44334 TAGS) \
4fa63067
NN
44335 || exit 1
44336
a90ef4bf 44337@endif target-winsup
4fa63067 44338
a90ef4bf
JM
44339.PHONY: maybe-install-info-target-winsup install-info-target-winsup
44340maybe-install-info-target-winsup:
44341@if target-winsup
44342maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 44343
a90ef4bf
JM
44344install-info-target-winsup: \
44345 configure-target-winsup \
44346 info-target-winsup
0aed8855 44347 @: $(MAKE); $(unstage)
22121df0 44348 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44349 r=`${PWD_COMMAND}`; export r; \
44350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44351 $(NORMAL_TARGET_EXPORTS) \
22121df0 44352 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44353 for flag in $(EXTRA_TARGET_FLAGS); do \
44354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44355 done; \
a90ef4bf 44356 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44359 "RANLIB=$${RANLIB}" \
0c24b341 44360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44361 install-info) \
4fa63067
NN
44362 || exit 1
44363
a90ef4bf 44364@endif target-winsup
4fa63067 44365
a90ef4bf
JM
44366.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
44367maybe-install-pdf-target-winsup:
44368@if target-winsup
44369maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 44370
a90ef4bf
JM
44371install-pdf-target-winsup: \
44372 configure-target-winsup \
44373 pdf-target-winsup
a3ca38d2 44374 @: $(MAKE); $(unstage)
22121df0 44375 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
44376 r=`${PWD_COMMAND}`; export r; \
44377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44378 $(NORMAL_TARGET_EXPORTS) \
22121df0 44379 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
44380 for flag in $(EXTRA_TARGET_FLAGS); do \
44381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44382 done; \
a90ef4bf 44383 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
44384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44386 "RANLIB=$${RANLIB}" \
0c24b341 44387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44388 install-pdf) \
44389 || exit 1
44390
a90ef4bf 44391@endif target-winsup
a3ca38d2 44392
a90ef4bf
JM
44393.PHONY: maybe-install-html-target-winsup install-html-target-winsup
44394maybe-install-html-target-winsup:
44395@if target-winsup
44396maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 44397
a90ef4bf
JM
44398install-html-target-winsup: \
44399 configure-target-winsup \
44400 html-target-winsup
108a6f8e 44401 @: $(MAKE); $(unstage)
22121df0 44402 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
44403 r=`${PWD_COMMAND}`; export r; \
44404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44405 $(NORMAL_TARGET_EXPORTS) \
22121df0 44406 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
44407 for flag in $(EXTRA_TARGET_FLAGS); do \
44408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44409 done; \
a90ef4bf 44410 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
44411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44413 "RANLIB=$${RANLIB}" \
0c24b341 44414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44415 install-html) \
44416 || exit 1
44417
a90ef4bf 44418@endif target-winsup
108a6f8e 44419
a90ef4bf
JM
44420.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
44421maybe-installcheck-target-winsup:
44422@if target-winsup
44423maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 44424
a90ef4bf
JM
44425installcheck-target-winsup: \
44426 configure-target-winsup
0aed8855 44427 @: $(MAKE); $(unstage)
22121df0 44428 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44429 r=`${PWD_COMMAND}`; export r; \
44430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44431 $(NORMAL_TARGET_EXPORTS) \
22121df0 44432 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44433 for flag in $(EXTRA_TARGET_FLAGS); do \
44434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44435 done; \
a90ef4bf 44436 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44439 "RANLIB=$${RANLIB}" \
0c24b341 44440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44441 installcheck) \
4fa63067
NN
44442 || exit 1
44443
a90ef4bf 44444@endif target-winsup
4fa63067 44445
a90ef4bf
JM
44446.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
44447maybe-mostlyclean-target-winsup:
44448@if target-winsup
44449maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 44450
a90ef4bf 44451mostlyclean-target-winsup:
0aed8855 44452 @: $(MAKE); $(unstage)
22121df0 44453 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44454 r=`${PWD_COMMAND}`; export r; \
44455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44456 $(NORMAL_TARGET_EXPORTS) \
22121df0 44457 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44458 for flag in $(EXTRA_TARGET_FLAGS); do \
44459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44460 done; \
a90ef4bf 44461 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44464 "RANLIB=$${RANLIB}" \
0c24b341 44465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44466 mostlyclean) \
4fa63067
NN
44467 || exit 1
44468
a90ef4bf 44469@endif target-winsup
4fa63067 44470
a90ef4bf
JM
44471.PHONY: maybe-clean-target-winsup clean-target-winsup
44472maybe-clean-target-winsup:
44473@if target-winsup
44474maybe-clean-target-winsup: clean-target-winsup
4fa63067 44475
a90ef4bf 44476clean-target-winsup:
0aed8855 44477 @: $(MAKE); $(unstage)
22121df0 44478 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44479 r=`${PWD_COMMAND}`; export r; \
44480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44481 $(NORMAL_TARGET_EXPORTS) \
22121df0 44482 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44483 for flag in $(EXTRA_TARGET_FLAGS); do \
44484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44485 done; \
a90ef4bf 44486 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44489 "RANLIB=$${RANLIB}" \
0c24b341 44490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44491 clean) \
4fa63067
NN
44492 || exit 1
44493
a90ef4bf 44494@endif target-winsup
4fa63067 44495
a90ef4bf
JM
44496.PHONY: maybe-distclean-target-winsup distclean-target-winsup
44497maybe-distclean-target-winsup:
44498@if target-winsup
44499maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 44500
a90ef4bf 44501distclean-target-winsup:
0aed8855 44502 @: $(MAKE); $(unstage)
22121df0 44503 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44504 r=`${PWD_COMMAND}`; export r; \
44505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44506 $(NORMAL_TARGET_EXPORTS) \
22121df0 44507 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44508 for flag in $(EXTRA_TARGET_FLAGS); do \
44509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44510 done; \
a90ef4bf 44511 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44514 "RANLIB=$${RANLIB}" \
0c24b341 44515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44516 distclean) \
4fa63067
NN
44517 || exit 1
44518
a90ef4bf 44519@endif target-winsup
4fa63067 44520
a90ef4bf
JM
44521.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
44522maybe-maintainer-clean-target-winsup:
44523@if target-winsup
44524maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 44525
a90ef4bf 44526maintainer-clean-target-winsup:
0aed8855 44527 @: $(MAKE); $(unstage)
22121df0 44528 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44529 r=`${PWD_COMMAND}`; export r; \
44530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44531 $(NORMAL_TARGET_EXPORTS) \
22121df0 44532 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44533 for flag in $(EXTRA_TARGET_FLAGS); do \
44534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44535 done; \
a90ef4bf 44536 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44539 "RANLIB=$${RANLIB}" \
0c24b341 44540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44541 maintainer-clean) \
4fa63067 44542 || exit 1
16ae0395 44543
a90ef4bf 44544@endif target-winsup
e393202e
NN
44545
44546
15723a45 44547
e90269c8 44548
a7254363 44549
a90ef4bf
JM
44550.PHONY: configure-target-libgloss maybe-configure-target-libgloss
44551maybe-configure-target-libgloss:
4f0ef2d8 44552@if gcc-bootstrap
a90ef4bf 44553configure-target-libgloss: stage_current
4f0ef2d8 44554@endif gcc-bootstrap
a90ef4bf
JM
44555@if target-libgloss
44556maybe-configure-target-libgloss: configure-target-libgloss
44557configure-target-libgloss:
0aed8855
PB
44558 @: $(MAKE); $(unstage)
44559 @r=`${PWD_COMMAND}`; export r; \
44560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44561 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
44562 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
44563 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44564 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
44565 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
44566 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 44567 else \
a90ef4bf
JM
44568 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
44569 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
44570 fi; \
44571 else \
a90ef4bf 44572 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 44573 fi; \
a90ef4bf 44574 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 44575 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 44576 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44577 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
44578 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 44579 case $(srcdir) in \
b00612cc 44580 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44581 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 44582 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44583 esac; \
1b6c0831 44584 module_srcdir=libgloss; \
bba45b8b 44585 rm -f no-such-file || : ; \
1b6c0831
L
44586 CONFIG_SITE=no-such-file $(SHELL) \
44587 $$s/$$module_srcdir/configure \
44588 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44589 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44590 --target=${target_alias} \
bba45b8b 44591 || exit 1
a90ef4bf 44592@endif target-libgloss
e393202e 44593
a7254363
PB
44594
44595
d545f33b
PB
44596
44597
a90ef4bf
JM
44598.PHONY: all-target-libgloss maybe-all-target-libgloss
44599maybe-all-target-libgloss:
4f0ef2d8 44600@if gcc-bootstrap
a90ef4bf 44601all-target-libgloss: stage_current
4f0ef2d8 44602@endif gcc-bootstrap
a90ef4bf
JM
44603@if target-libgloss
44604TARGET-target-libgloss=all
44605maybe-all-target-libgloss: all-target-libgloss
44606all-target-libgloss: configure-target-libgloss
0aed8855 44607 @: $(MAKE); $(unstage)
b40e3958
L
44608 @r=`${PWD_COMMAND}`; export r; \
44609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44610 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44611 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 44612 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44613 $(TARGET-target-libgloss))
44614@endif target-libgloss
e393202e 44615
a7254363
PB
44616
44617
d545f33b
PB
44618
44619
a90ef4bf
JM
44620.PHONY: check-target-libgloss maybe-check-target-libgloss
44621maybe-check-target-libgloss:
44622@if target-libgloss
44623maybe-check-target-libgloss: check-target-libgloss
16ae0395 44624
a90ef4bf
JM
44625# Dummy target for uncheckable module.
44626check-target-libgloss:
930314a4 44627
a90ef4bf 44628@endif target-libgloss
e393202e 44629
a90ef4bf
JM
44630.PHONY: install-target-libgloss maybe-install-target-libgloss
44631maybe-install-target-libgloss:
44632@if target-libgloss
44633maybe-install-target-libgloss: install-target-libgloss
4fa63067 44634
a90ef4bf 44635install-target-libgloss: installdirs
0aed8855 44636 @: $(MAKE); $(unstage)
4fa63067
NN
44637 @r=`${PWD_COMMAND}`; export r; \
44638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44639 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44640 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 44641 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 44642
a90ef4bf 44643@endif target-libgloss
4fa63067 44644
a90ef4bf
JM
44645.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
44646maybe-install-strip-target-libgloss:
44647@if target-libgloss
44648maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 44649
a90ef4bf 44650install-strip-target-libgloss: installdirs
9b980aa1
RW
44651 @: $(MAKE); $(unstage)
44652 @r=`${PWD_COMMAND}`; export r; \
44653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44654 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44655 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
44656 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44657
a90ef4bf 44658@endif target-libgloss
9b980aa1 44659
56a8fe78 44660# Other targets (info, dvi, pdf, etc.)
4fa63067 44661
a90ef4bf
JM
44662.PHONY: maybe-info-target-libgloss info-target-libgloss
44663maybe-info-target-libgloss:
44664@if target-libgloss
44665maybe-info-target-libgloss: info-target-libgloss
4fa63067 44666
a90ef4bf
JM
44667info-target-libgloss: \
44668 configure-target-libgloss
0aed8855 44669 @: $(MAKE); $(unstage)
22121df0 44670 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44671 r=`${PWD_COMMAND}`; export r; \
44672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44673 $(NORMAL_TARGET_EXPORTS) \
22121df0 44674 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44675 for flag in $(EXTRA_TARGET_FLAGS); do \
44676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44677 done; \
a90ef4bf 44678 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
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 info) \
4fa63067
NN
44684 || exit 1
44685
a90ef4bf 44686@endif target-libgloss
4fa63067 44687
a90ef4bf
JM
44688.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
44689maybe-dvi-target-libgloss:
44690@if target-libgloss
44691maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 44692
a90ef4bf
JM
44693dvi-target-libgloss: \
44694 configure-target-libgloss
0aed8855 44695 @: $(MAKE); $(unstage)
22121df0 44696 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44697 r=`${PWD_COMMAND}`; export r; \
44698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44699 $(NORMAL_TARGET_EXPORTS) \
22121df0 44700 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44701 for flag in $(EXTRA_TARGET_FLAGS); do \
44702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44703 done; \
a90ef4bf 44704 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
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}" \
7ffa0b57 44709 dvi) \
4fa63067
NN
44710 || exit 1
44711
a90ef4bf 44712@endif target-libgloss
4fa63067 44713
a90ef4bf
JM
44714.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
44715maybe-pdf-target-libgloss:
44716@if target-libgloss
44717maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 44718
a90ef4bf
JM
44719pdf-target-libgloss: \
44720 configure-target-libgloss
56a8fe78 44721 @: $(MAKE); $(unstage)
22121df0 44722 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
44723 r=`${PWD_COMMAND}`; export r; \
44724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44725 $(NORMAL_TARGET_EXPORTS) \
22121df0 44726 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
44727 for flag in $(EXTRA_TARGET_FLAGS); do \
44728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44729 done; \
a90ef4bf 44730 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
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}" \
56a8fe78
DD
44735 pdf) \
44736 || exit 1
44737
a90ef4bf 44738@endif target-libgloss
56a8fe78 44739
a90ef4bf
JM
44740.PHONY: maybe-html-target-libgloss html-target-libgloss
44741maybe-html-target-libgloss:
44742@if target-libgloss
44743maybe-html-target-libgloss: html-target-libgloss
6d389afc 44744
a90ef4bf
JM
44745html-target-libgloss: \
44746 configure-target-libgloss
0aed8855 44747 @: $(MAKE); $(unstage)
22121df0 44748 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
44749 r=`${PWD_COMMAND}`; export r; \
44750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44751 $(NORMAL_TARGET_EXPORTS) \
22121df0 44752 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
44753 for flag in $(EXTRA_TARGET_FLAGS); do \
44754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44755 done; \
a90ef4bf 44756 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
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}" \
6d389afc
MS
44761 html) \
44762 || exit 1
44763
a90ef4bf 44764@endif target-libgloss
6d389afc 44765
a90ef4bf
JM
44766.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
44767maybe-TAGS-target-libgloss:
44768@if target-libgloss
44769maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 44770
a90ef4bf
JM
44771TAGS-target-libgloss: \
44772 configure-target-libgloss
0aed8855 44773 @: $(MAKE); $(unstage)
22121df0 44774 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44775 r=`${PWD_COMMAND}`; export r; \
44776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44777 $(NORMAL_TARGET_EXPORTS) \
22121df0 44778 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44779 for flag in $(EXTRA_TARGET_FLAGS); do \
44780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44781 done; \
a90ef4bf 44782 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44785 "RANLIB=$${RANLIB}" \
0c24b341 44786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44787 TAGS) \
4fa63067
NN
44788 || exit 1
44789
a90ef4bf 44790@endif target-libgloss
4fa63067 44791
a90ef4bf
JM
44792.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
44793maybe-install-info-target-libgloss:
44794@if target-libgloss
44795maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 44796
a90ef4bf
JM
44797install-info-target-libgloss: \
44798 configure-target-libgloss \
44799 info-target-libgloss
0aed8855 44800 @: $(MAKE); $(unstage)
22121df0 44801 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44802 r=`${PWD_COMMAND}`; export r; \
44803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44804 $(NORMAL_TARGET_EXPORTS) \
22121df0 44805 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44806 for flag in $(EXTRA_TARGET_FLAGS); do \
44807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44808 done; \
a90ef4bf 44809 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44812 "RANLIB=$${RANLIB}" \
0c24b341 44813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44814 install-info) \
4fa63067
NN
44815 || exit 1
44816
a90ef4bf 44817@endif target-libgloss
4fa63067 44818
a90ef4bf
JM
44819.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
44820maybe-install-pdf-target-libgloss:
44821@if target-libgloss
44822maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 44823
a90ef4bf
JM
44824install-pdf-target-libgloss: \
44825 configure-target-libgloss \
44826 pdf-target-libgloss
a3ca38d2 44827 @: $(MAKE); $(unstage)
22121df0 44828 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
44829 r=`${PWD_COMMAND}`; export r; \
44830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44831 $(NORMAL_TARGET_EXPORTS) \
22121df0 44832 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
44833 for flag in $(EXTRA_TARGET_FLAGS); do \
44834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44835 done; \
a90ef4bf 44836 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
44837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44839 "RANLIB=$${RANLIB}" \
0c24b341 44840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44841 install-pdf) \
44842 || exit 1
44843
a90ef4bf 44844@endif target-libgloss
a3ca38d2 44845
a90ef4bf
JM
44846.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
44847maybe-install-html-target-libgloss:
44848@if target-libgloss
44849maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 44850
a90ef4bf
JM
44851install-html-target-libgloss: \
44852 configure-target-libgloss \
44853 html-target-libgloss
108a6f8e 44854 @: $(MAKE); $(unstage)
22121df0 44855 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
44856 r=`${PWD_COMMAND}`; export r; \
44857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44858 $(NORMAL_TARGET_EXPORTS) \
22121df0 44859 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
44860 for flag in $(EXTRA_TARGET_FLAGS); do \
44861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44862 done; \
a90ef4bf 44863 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
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}" \
108a6f8e
CD
44868 install-html) \
44869 || exit 1
44870
a90ef4bf 44871@endif target-libgloss
108a6f8e 44872
a90ef4bf
JM
44873.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
44874maybe-installcheck-target-libgloss:
44875@if target-libgloss
44876maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 44877
a90ef4bf
JM
44878installcheck-target-libgloss: \
44879 configure-target-libgloss
0aed8855 44880 @: $(MAKE); $(unstage)
22121df0 44881 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44882 r=`${PWD_COMMAND}`; export r; \
44883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44884 $(NORMAL_TARGET_EXPORTS) \
22121df0 44885 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44886 for flag in $(EXTRA_TARGET_FLAGS); do \
44887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44888 done; \
a90ef4bf 44889 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44892 "RANLIB=$${RANLIB}" \
0c24b341 44893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44894 installcheck) \
4fa63067
NN
44895 || exit 1
44896
a90ef4bf 44897@endif target-libgloss
4fa63067 44898
a90ef4bf
JM
44899.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
44900maybe-mostlyclean-target-libgloss:
44901@if target-libgloss
44902maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 44903
a90ef4bf 44904mostlyclean-target-libgloss:
0aed8855 44905 @: $(MAKE); $(unstage)
22121df0 44906 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44907 r=`${PWD_COMMAND}`; export r; \
44908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44909 $(NORMAL_TARGET_EXPORTS) \
22121df0 44910 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44911 for flag in $(EXTRA_TARGET_FLAGS); do \
44912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44913 done; \
a90ef4bf 44914 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44917 "RANLIB=$${RANLIB}" \
0c24b341 44918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44919 mostlyclean) \
4fa63067
NN
44920 || exit 1
44921
a90ef4bf 44922@endif target-libgloss
4fa63067 44923
a90ef4bf
JM
44924.PHONY: maybe-clean-target-libgloss clean-target-libgloss
44925maybe-clean-target-libgloss:
44926@if target-libgloss
44927maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 44928
a90ef4bf 44929clean-target-libgloss:
0aed8855 44930 @: $(MAKE); $(unstage)
22121df0 44931 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44932 r=`${PWD_COMMAND}`; export r; \
44933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44934 $(NORMAL_TARGET_EXPORTS) \
22121df0 44935 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44936 for flag in $(EXTRA_TARGET_FLAGS); do \
44937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44938 done; \
a90ef4bf 44939 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44942 "RANLIB=$${RANLIB}" \
0c24b341 44943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44944 clean) \
4fa63067
NN
44945 || exit 1
44946
a90ef4bf 44947@endif target-libgloss
4fa63067 44948
a90ef4bf
JM
44949.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
44950maybe-distclean-target-libgloss:
44951@if target-libgloss
44952maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 44953
a90ef4bf 44954distclean-target-libgloss:
0aed8855 44955 @: $(MAKE); $(unstage)
22121df0 44956 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44957 r=`${PWD_COMMAND}`; export r; \
44958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44959 $(NORMAL_TARGET_EXPORTS) \
22121df0 44960 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44961 for flag in $(EXTRA_TARGET_FLAGS); do \
44962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44963 done; \
a90ef4bf 44964 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44967 "RANLIB=$${RANLIB}" \
0c24b341 44968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44969 distclean) \
4fa63067
NN
44970 || exit 1
44971
a90ef4bf 44972@endif target-libgloss
4fa63067 44973
a90ef4bf
JM
44974.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
44975maybe-maintainer-clean-target-libgloss:
44976@if target-libgloss
44977maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 44978
a90ef4bf 44979maintainer-clean-target-libgloss:
0aed8855 44980 @: $(MAKE); $(unstage)
22121df0 44981 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44982 r=`${PWD_COMMAND}`; export r; \
44983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44984 $(NORMAL_TARGET_EXPORTS) \
22121df0 44985 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44986 for flag in $(EXTRA_TARGET_FLAGS); do \
44987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44988 done; \
a90ef4bf 44989 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44992 "RANLIB=$${RANLIB}" \
0c24b341 44993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44994 maintainer-clean) \
4fa63067 44995 || exit 1
16ae0395 44996
a90ef4bf 44997@endif target-libgloss
e393202e
NN
44998
44999
15723a45 45000
a7254363
PB
45001
45002
a7254363
PB
45003.PHONY: configure-target-libffi maybe-configure-target-libffi
45004maybe-configure-target-libffi:
4f0ef2d8
CD
45005@if gcc-bootstrap
45006configure-target-libffi: stage_current
45007@endif gcc-bootstrap
a7254363
PB
45008@if target-libffi
45009maybe-configure-target-libffi: configure-target-libffi
c52c6897 45010configure-target-libffi:
0aed8855
PB
45011 @: $(MAKE); $(unstage)
45012 @r=`${PWD_COMMAND}`; export r; \
45013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45014 echo "Checking multilib configuration for libffi..."; \
22121df0
L
45015 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
45016 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
45017 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
45018 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
45019 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
45020 else \
45021 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
45022 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
45023 fi; \
45024 else \
45025 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
45026 fi; \
45027 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 45028 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 45029 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45030 echo Configuring in $(TARGET_SUBDIR)/libffi; \
45031 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 45032 case $(srcdir) in \
b00612cc
PB
45033 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45034 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
45035 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45036 esac; \
1b6c0831 45037 module_srcdir=libffi; \
bba45b8b 45038 rm -f no-such-file || : ; \
1b6c0831
L
45039 CONFIG_SITE=no-such-file $(SHELL) \
45040 $$s/$$module_srcdir/configure \
45041 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45042 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45043 --target=${target_alias} \
bba45b8b 45044 || exit 1
6bd3dfaa 45045@endif target-libffi
e393202e 45046
a7254363
PB
45047
45048
d545f33b
PB
45049
45050
4fa63067
NN
45051.PHONY: all-target-libffi maybe-all-target-libffi
45052maybe-all-target-libffi:
4f0ef2d8
CD
45053@if gcc-bootstrap
45054all-target-libffi: stage_current
45055@endif gcc-bootstrap
6bd3dfaa 45056@if target-libffi
72b2455a 45057TARGET-target-libffi=all
6bd3dfaa 45058maybe-all-target-libffi: all-target-libffi
4fa63067 45059all-target-libffi: configure-target-libffi
0aed8855 45060 @: $(MAKE); $(unstage)
b40e3958
L
45061 @r=`${PWD_COMMAND}`; export r; \
45062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45063 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45064 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 45065 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45066 $(TARGET-target-libffi))
6bd3dfaa 45067@endif target-libffi
e393202e 45068
a7254363
PB
45069
45070
d545f33b
PB
45071
45072
4fa63067
NN
45073.PHONY: check-target-libffi maybe-check-target-libffi
45074maybe-check-target-libffi:
6bd3dfaa
PB
45075@if target-libffi
45076maybe-check-target-libffi: check-target-libffi
16ae0395 45077
4fa63067 45078check-target-libffi:
0aed8855 45079 @: $(MAKE); $(unstage)
b40e3958
L
45080 @r=`${PWD_COMMAND}`; export r; \
45081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45082 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45083 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 45084 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 45085
6bd3dfaa 45086@endif target-libffi
e393202e 45087
4fa63067
NN
45088.PHONY: install-target-libffi maybe-install-target-libffi
45089maybe-install-target-libffi:
6bd3dfaa
PB
45090@if target-libffi
45091maybe-install-target-libffi: install-target-libffi
16ae0395 45092
b836cb18
JBG
45093# Dummy target for uninstallable.
45094install-target-libffi:
e393202e 45095
6bd3dfaa 45096@endif target-libffi
e393202e 45097
9b980aa1
RW
45098.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
45099maybe-install-strip-target-libffi:
45100@if target-libffi
45101maybe-install-strip-target-libffi: install-strip-target-libffi
45102
b836cb18
JBG
45103# Dummy target for uninstallable.
45104install-strip-target-libffi:
9b980aa1
RW
45105
45106@endif target-libffi
45107
56a8fe78 45108# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45109
45110.PHONY: maybe-info-target-libffi info-target-libffi
45111maybe-info-target-libffi:
6bd3dfaa
PB
45112@if target-libffi
45113maybe-info-target-libffi: info-target-libffi
4fa63067
NN
45114
45115info-target-libffi: \
45116 configure-target-libffi
0aed8855 45117 @: $(MAKE); $(unstage)
22121df0 45118 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45119 r=`${PWD_COMMAND}`; export r; \
45120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45121 $(NORMAL_TARGET_EXPORTS) \
22121df0 45122 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45123 for flag in $(EXTRA_TARGET_FLAGS); do \
45124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45125 done; \
45126 (cd $(TARGET_SUBDIR)/libffi && \
45127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45129 "RANLIB=$${RANLIB}" \
0c24b341 45130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45131 info) \
4fa63067
NN
45132 || exit 1
45133
6bd3dfaa 45134@endif target-libffi
4fa63067
NN
45135
45136.PHONY: maybe-dvi-target-libffi dvi-target-libffi
45137maybe-dvi-target-libffi:
6bd3dfaa
PB
45138@if target-libffi
45139maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
45140
45141dvi-target-libffi: \
45142 configure-target-libffi
0aed8855 45143 @: $(MAKE); $(unstage)
22121df0 45144 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45145 r=`${PWD_COMMAND}`; export r; \
45146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45147 $(NORMAL_TARGET_EXPORTS) \
22121df0 45148 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45149 for flag in $(EXTRA_TARGET_FLAGS); do \
45150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45151 done; \
45152 (cd $(TARGET_SUBDIR)/libffi && \
45153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45155 "RANLIB=$${RANLIB}" \
0c24b341 45156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45157 dvi) \
4fa63067
NN
45158 || exit 1
45159
6bd3dfaa 45160@endif target-libffi
4fa63067 45161
56a8fe78
DD
45162.PHONY: maybe-pdf-target-libffi pdf-target-libffi
45163maybe-pdf-target-libffi:
45164@if target-libffi
45165maybe-pdf-target-libffi: pdf-target-libffi
45166
45167pdf-target-libffi: \
45168 configure-target-libffi
45169 @: $(MAKE); $(unstage)
22121df0 45170 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
45171 r=`${PWD_COMMAND}`; export r; \
45172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45173 $(NORMAL_TARGET_EXPORTS) \
22121df0 45174 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
45175 for flag in $(EXTRA_TARGET_FLAGS); do \
45176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45177 done; \
45178 (cd $(TARGET_SUBDIR)/libffi && \
45179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45181 "RANLIB=$${RANLIB}" \
0c24b341 45182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45183 pdf) \
45184 || exit 1
45185
45186@endif target-libffi
45187
6d389afc
MS
45188.PHONY: maybe-html-target-libffi html-target-libffi
45189maybe-html-target-libffi:
45190@if target-libffi
45191maybe-html-target-libffi: html-target-libffi
45192
45193html-target-libffi: \
45194 configure-target-libffi
0aed8855 45195 @: $(MAKE); $(unstage)
22121df0 45196 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
45197 r=`${PWD_COMMAND}`; export r; \
45198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45199 $(NORMAL_TARGET_EXPORTS) \
22121df0 45200 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
45201 for flag in $(EXTRA_TARGET_FLAGS); do \
45202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45203 done; \
45204 (cd $(TARGET_SUBDIR)/libffi && \
45205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45207 "RANLIB=$${RANLIB}" \
0c24b341 45208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45209 html) \
45210 || exit 1
45211
45212@endif target-libffi
45213
4fa63067
NN
45214.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
45215maybe-TAGS-target-libffi:
6bd3dfaa
PB
45216@if target-libffi
45217maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
45218
45219TAGS-target-libffi: \
45220 configure-target-libffi
0aed8855 45221 @: $(MAKE); $(unstage)
22121df0 45222 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45223 r=`${PWD_COMMAND}`; export r; \
45224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45225 $(NORMAL_TARGET_EXPORTS) \
22121df0 45226 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45227 for flag in $(EXTRA_TARGET_FLAGS); do \
45228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45229 done; \
45230 (cd $(TARGET_SUBDIR)/libffi && \
45231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45233 "RANLIB=$${RANLIB}" \
0c24b341 45234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45235 TAGS) \
4fa63067
NN
45236 || exit 1
45237
6bd3dfaa 45238@endif target-libffi
4fa63067
NN
45239
45240.PHONY: maybe-install-info-target-libffi install-info-target-libffi
45241maybe-install-info-target-libffi:
6bd3dfaa
PB
45242@if target-libffi
45243maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
45244
45245install-info-target-libffi: \
45246 configure-target-libffi \
45247 info-target-libffi
0aed8855 45248 @: $(MAKE); $(unstage)
22121df0 45249 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45250 r=`${PWD_COMMAND}`; export r; \
45251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45252 $(NORMAL_TARGET_EXPORTS) \
22121df0 45253 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45254 for flag in $(EXTRA_TARGET_FLAGS); do \
45255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45256 done; \
45257 (cd $(TARGET_SUBDIR)/libffi && \
45258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45260 "RANLIB=$${RANLIB}" \
0c24b341 45261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45262 install-info) \
4fa63067
NN
45263 || exit 1
45264
6bd3dfaa 45265@endif target-libffi
4fa63067 45266
a3ca38d2
DD
45267.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
45268maybe-install-pdf-target-libffi:
45269@if target-libffi
45270maybe-install-pdf-target-libffi: install-pdf-target-libffi
45271
45272install-pdf-target-libffi: \
45273 configure-target-libffi \
45274 pdf-target-libffi
45275 @: $(MAKE); $(unstage)
22121df0 45276 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
45277 r=`${PWD_COMMAND}`; export r; \
45278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45279 $(NORMAL_TARGET_EXPORTS) \
22121df0 45280 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
45281 for flag in $(EXTRA_TARGET_FLAGS); do \
45282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45283 done; \
45284 (cd $(TARGET_SUBDIR)/libffi && \
45285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45287 "RANLIB=$${RANLIB}" \
0c24b341 45288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45289 install-pdf) \
45290 || exit 1
45291
45292@endif target-libffi
45293
108a6f8e
CD
45294.PHONY: maybe-install-html-target-libffi install-html-target-libffi
45295maybe-install-html-target-libffi:
45296@if target-libffi
45297maybe-install-html-target-libffi: install-html-target-libffi
45298
45299install-html-target-libffi: \
45300 configure-target-libffi \
45301 html-target-libffi
45302 @: $(MAKE); $(unstage)
22121df0 45303 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
45304 r=`${PWD_COMMAND}`; export r; \
45305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45306 $(NORMAL_TARGET_EXPORTS) \
22121df0 45307 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
45308 for flag in $(EXTRA_TARGET_FLAGS); do \
45309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45310 done; \
45311 (cd $(TARGET_SUBDIR)/libffi && \
45312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45314 "RANLIB=$${RANLIB}" \
0c24b341 45315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45316 install-html) \
45317 || exit 1
45318
45319@endif target-libffi
45320
4fa63067
NN
45321.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
45322maybe-installcheck-target-libffi:
6bd3dfaa
PB
45323@if target-libffi
45324maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
45325
45326installcheck-target-libffi: \
45327 configure-target-libffi
0aed8855 45328 @: $(MAKE); $(unstage)
22121df0 45329 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45330 r=`${PWD_COMMAND}`; export r; \
45331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45332 $(NORMAL_TARGET_EXPORTS) \
22121df0 45333 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45334 for flag in $(EXTRA_TARGET_FLAGS); do \
45335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45336 done; \
45337 (cd $(TARGET_SUBDIR)/libffi && \
45338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45340 "RANLIB=$${RANLIB}" \
0c24b341 45341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45342 installcheck) \
4fa63067
NN
45343 || exit 1
45344
6bd3dfaa 45345@endif target-libffi
4fa63067
NN
45346
45347.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
45348maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
45349@if target-libffi
45350maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
45351
45352mostlyclean-target-libffi:
0aed8855 45353 @: $(MAKE); $(unstage)
22121df0 45354 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45355 r=`${PWD_COMMAND}`; export r; \
45356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45357 $(NORMAL_TARGET_EXPORTS) \
22121df0 45358 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45359 for flag in $(EXTRA_TARGET_FLAGS); do \
45360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45361 done; \
45362 (cd $(TARGET_SUBDIR)/libffi && \
45363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45365 "RANLIB=$${RANLIB}" \
0c24b341 45366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45367 mostlyclean) \
4fa63067
NN
45368 || exit 1
45369
6bd3dfaa 45370@endif target-libffi
4fa63067
NN
45371
45372.PHONY: maybe-clean-target-libffi clean-target-libffi
45373maybe-clean-target-libffi:
6bd3dfaa
PB
45374@if target-libffi
45375maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
45376
45377clean-target-libffi:
0aed8855 45378 @: $(MAKE); $(unstage)
22121df0 45379 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45380 r=`${PWD_COMMAND}`; export r; \
45381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45382 $(NORMAL_TARGET_EXPORTS) \
22121df0 45383 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45384 for flag in $(EXTRA_TARGET_FLAGS); do \
45385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45386 done; \
45387 (cd $(TARGET_SUBDIR)/libffi && \
45388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45390 "RANLIB=$${RANLIB}" \
0c24b341 45391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45392 clean) \
4fa63067
NN
45393 || exit 1
45394
6bd3dfaa 45395@endif target-libffi
4fa63067
NN
45396
45397.PHONY: maybe-distclean-target-libffi distclean-target-libffi
45398maybe-distclean-target-libffi:
6bd3dfaa
PB
45399@if target-libffi
45400maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
45401
45402distclean-target-libffi:
0aed8855 45403 @: $(MAKE); $(unstage)
22121df0 45404 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45405 r=`${PWD_COMMAND}`; export r; \
45406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45407 $(NORMAL_TARGET_EXPORTS) \
22121df0 45408 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45409 for flag in $(EXTRA_TARGET_FLAGS); do \
45410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45411 done; \
45412 (cd $(TARGET_SUBDIR)/libffi && \
45413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45415 "RANLIB=$${RANLIB}" \
0c24b341 45416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45417 distclean) \
4fa63067
NN
45418 || exit 1
45419
6bd3dfaa 45420@endif target-libffi
4fa63067
NN
45421
45422.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
45423maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
45424@if target-libffi
45425maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
45426
45427maintainer-clean-target-libffi:
0aed8855 45428 @: $(MAKE); $(unstage)
22121df0 45429 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45430 r=`${PWD_COMMAND}`; export r; \
45431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45432 $(NORMAL_TARGET_EXPORTS) \
22121df0 45433 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45434 for flag in $(EXTRA_TARGET_FLAGS); do \
45435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45436 done; \
45437 (cd $(TARGET_SUBDIR)/libffi && \
45438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45440 "RANLIB=$${RANLIB}" \
0c24b341 45441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45442 maintainer-clean) \
4fa63067
NN
45443 || exit 1
45444
6bd3dfaa 45445@endif target-libffi
4fa63067
NN
45446
45447
15723a45 45448
a7254363 45449
15723a45 45450
a7254363
PB
45451.PHONY: configure-target-zlib maybe-configure-target-zlib
45452maybe-configure-target-zlib:
4f0ef2d8
CD
45453@if gcc-bootstrap
45454configure-target-zlib: stage_current
45455@endif gcc-bootstrap
a7254363
PB
45456@if target-zlib
45457maybe-configure-target-zlib: configure-target-zlib
c52c6897 45458configure-target-zlib:
0aed8855
PB
45459 @: $(MAKE); $(unstage)
45460 @r=`${PWD_COMMAND}`; export r; \
45461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45462 echo "Checking multilib configuration for zlib..."; \
22121df0
L
45463 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
45464 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
45465 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
45466 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
45467 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
45468 else \
45469 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
45470 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
45471 fi; \
45472 else \
45473 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
45474 fi; \
45475 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 45476 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 45477 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45478 echo Configuring in $(TARGET_SUBDIR)/zlib; \
45479 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 45480 case $(srcdir) in \
b00612cc
PB
45481 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45482 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
45483 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45484 esac; \
1b6c0831 45485 module_srcdir=zlib; \
bba45b8b 45486 rm -f no-such-file || : ; \
1b6c0831
L
45487 CONFIG_SITE=no-such-file $(SHELL) \
45488 $$s/$$module_srcdir/configure \
45489 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45490 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45491 --target=${target_alias} \
bba45b8b 45492 || exit 1
6bd3dfaa 45493@endif target-zlib
e393202e 45494
a7254363
PB
45495
45496
d545f33b
PB
45497
45498
4fa63067
NN
45499.PHONY: all-target-zlib maybe-all-target-zlib
45500maybe-all-target-zlib:
4f0ef2d8
CD
45501@if gcc-bootstrap
45502all-target-zlib: stage_current
45503@endif gcc-bootstrap
6bd3dfaa 45504@if target-zlib
72b2455a 45505TARGET-target-zlib=all
6bd3dfaa 45506maybe-all-target-zlib: all-target-zlib
4fa63067 45507all-target-zlib: configure-target-zlib
0aed8855 45508 @: $(MAKE); $(unstage)
b40e3958
L
45509 @r=`${PWD_COMMAND}`; export r; \
45510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45511 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45512 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 45513 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45514 $(TARGET-target-zlib))
6bd3dfaa 45515@endif target-zlib
e393202e 45516
a7254363
PB
45517
45518
d545f33b
PB
45519
45520
4fa63067
NN
45521.PHONY: check-target-zlib maybe-check-target-zlib
45522maybe-check-target-zlib:
6bd3dfaa
PB
45523@if target-zlib
45524maybe-check-target-zlib: check-target-zlib
16ae0395 45525
4fa63067 45526check-target-zlib:
0aed8855 45527 @: $(MAKE); $(unstage)
b40e3958
L
45528 @r=`${PWD_COMMAND}`; export r; \
45529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45530 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45531 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 45532 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 45533
6bd3dfaa 45534@endif target-zlib
930314a4 45535
4fa63067
NN
45536.PHONY: install-target-zlib maybe-install-target-zlib
45537maybe-install-target-zlib:
6bd3dfaa
PB
45538@if target-zlib
45539maybe-install-target-zlib: install-target-zlib
16ae0395 45540
4fa63067 45541install-target-zlib: installdirs
0aed8855 45542 @: $(MAKE); $(unstage)
b40e3958
L
45543 @r=`${PWD_COMMAND}`; export r; \
45544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45545 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45546 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 45547 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 45548
6bd3dfaa 45549@endif target-zlib
e393202e 45550
9b980aa1
RW
45551.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
45552maybe-install-strip-target-zlib:
45553@if target-zlib
45554maybe-install-strip-target-zlib: install-strip-target-zlib
45555
45556install-strip-target-zlib: installdirs
45557 @: $(MAKE); $(unstage)
45558 @r=`${PWD_COMMAND}`; export r; \
45559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45560 $(NORMAL_TARGET_EXPORTS) \
45561 (cd $(TARGET_SUBDIR)/zlib && \
45562 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45563
45564@endif target-zlib
45565
56a8fe78 45566# Other targets (info, dvi, pdf, etc.)
15723a45 45567
4fa63067
NN
45568.PHONY: maybe-info-target-zlib info-target-zlib
45569maybe-info-target-zlib:
6bd3dfaa
PB
45570@if target-zlib
45571maybe-info-target-zlib: info-target-zlib
15723a45 45572
4fa63067
NN
45573info-target-zlib: \
45574 configure-target-zlib
0aed8855 45575 @: $(MAKE); $(unstage)
22121df0 45576 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
45577 r=`${PWD_COMMAND}`; export r; \
45578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45579 $(NORMAL_TARGET_EXPORTS) \
22121df0 45580 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45581 for flag in $(EXTRA_TARGET_FLAGS); do \
45582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45583 done; \
45584 (cd $(TARGET_SUBDIR)/zlib && \
45585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45587 "RANLIB=$${RANLIB}" \
0c24b341 45588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45589 info) \
bba45b8b 45590 || exit 1
e393202e 45591
6bd3dfaa 45592@endif target-zlib
e393202e 45593
4fa63067
NN
45594.PHONY: maybe-dvi-target-zlib dvi-target-zlib
45595maybe-dvi-target-zlib:
6bd3dfaa
PB
45596@if target-zlib
45597maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 45598
4fa63067
NN
45599dvi-target-zlib: \
45600 configure-target-zlib
0aed8855 45601 @: $(MAKE); $(unstage)
22121df0 45602 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45603 r=`${PWD_COMMAND}`; export r; \
b40e3958 45604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45605 $(NORMAL_TARGET_EXPORTS) \
22121df0 45606 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45607 for flag in $(EXTRA_TARGET_FLAGS); do \
45608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45609 done; \
45610 (cd $(TARGET_SUBDIR)/zlib && \
45611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45613 "RANLIB=$${RANLIB}" \
0c24b341 45614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45615 dvi) \
4fa63067 45616 || exit 1
e393202e 45617
6bd3dfaa 45618@endif target-zlib
930314a4 45619
56a8fe78
DD
45620.PHONY: maybe-pdf-target-zlib pdf-target-zlib
45621maybe-pdf-target-zlib:
45622@if target-zlib
45623maybe-pdf-target-zlib: pdf-target-zlib
45624
45625pdf-target-zlib: \
45626 configure-target-zlib
45627 @: $(MAKE); $(unstage)
22121df0 45628 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
45629 r=`${PWD_COMMAND}`; export r; \
45630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45631 $(NORMAL_TARGET_EXPORTS) \
22121df0 45632 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
45633 for flag in $(EXTRA_TARGET_FLAGS); do \
45634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45635 done; \
45636 (cd $(TARGET_SUBDIR)/zlib && \
45637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45639 "RANLIB=$${RANLIB}" \
0c24b341 45640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45641 pdf) \
45642 || exit 1
45643
45644@endif target-zlib
45645
6d389afc
MS
45646.PHONY: maybe-html-target-zlib html-target-zlib
45647maybe-html-target-zlib:
45648@if target-zlib
45649maybe-html-target-zlib: html-target-zlib
45650
45651html-target-zlib: \
45652 configure-target-zlib
0aed8855 45653 @: $(MAKE); $(unstage)
22121df0 45654 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
45655 r=`${PWD_COMMAND}`; export r; \
45656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45657 $(NORMAL_TARGET_EXPORTS) \
22121df0 45658 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
45659 for flag in $(EXTRA_TARGET_FLAGS); do \
45660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45661 done; \
45662 (cd $(TARGET_SUBDIR)/zlib && \
45663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45665 "RANLIB=$${RANLIB}" \
0c24b341 45666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45667 html) \
45668 || exit 1
45669
45670@endif target-zlib
45671
4fa63067
NN
45672.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
45673maybe-TAGS-target-zlib:
6bd3dfaa
PB
45674@if target-zlib
45675maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 45676
4fa63067
NN
45677TAGS-target-zlib: \
45678 configure-target-zlib
0aed8855 45679 @: $(MAKE); $(unstage)
22121df0 45680 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45681 r=`${PWD_COMMAND}`; export r; \
b40e3958 45682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45683 $(NORMAL_TARGET_EXPORTS) \
22121df0 45684 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45685 for flag in $(EXTRA_TARGET_FLAGS); do \
45686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45687 done; \
45688 (cd $(TARGET_SUBDIR)/zlib && \
45689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45691 "RANLIB=$${RANLIB}" \
0c24b341 45692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45693 TAGS) \
4fa63067 45694 || exit 1
e393202e 45695
6bd3dfaa 45696@endif target-zlib
15723a45 45697
4fa63067
NN
45698.PHONY: maybe-install-info-target-zlib install-info-target-zlib
45699maybe-install-info-target-zlib:
6bd3dfaa
PB
45700@if target-zlib
45701maybe-install-info-target-zlib: install-info-target-zlib
15723a45 45702
4fa63067
NN
45703install-info-target-zlib: \
45704 configure-target-zlib \
45705 info-target-zlib
0aed8855 45706 @: $(MAKE); $(unstage)
22121df0 45707 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
45708 r=`${PWD_COMMAND}`; export r; \
45709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45710 $(NORMAL_TARGET_EXPORTS) \
22121df0 45711 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45712 for flag in $(EXTRA_TARGET_FLAGS); do \
45713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45714 done; \
45715 (cd $(TARGET_SUBDIR)/zlib && \
45716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45718 "RANLIB=$${RANLIB}" \
0c24b341 45719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45720 install-info) \
bba45b8b 45721 || exit 1
e393202e 45722
6bd3dfaa 45723@endif target-zlib
16ae0395 45724
a3ca38d2
DD
45725.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
45726maybe-install-pdf-target-zlib:
45727@if target-zlib
45728maybe-install-pdf-target-zlib: install-pdf-target-zlib
45729
45730install-pdf-target-zlib: \
45731 configure-target-zlib \
45732 pdf-target-zlib
45733 @: $(MAKE); $(unstage)
22121df0 45734 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
45735 r=`${PWD_COMMAND}`; export r; \
45736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45737 $(NORMAL_TARGET_EXPORTS) \
22121df0 45738 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
45739 for flag in $(EXTRA_TARGET_FLAGS); do \
45740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45741 done; \
45742 (cd $(TARGET_SUBDIR)/zlib && \
45743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45745 "RANLIB=$${RANLIB}" \
0c24b341 45746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45747 install-pdf) \
45748 || exit 1
45749
45750@endif target-zlib
45751
108a6f8e
CD
45752.PHONY: maybe-install-html-target-zlib install-html-target-zlib
45753maybe-install-html-target-zlib:
45754@if target-zlib
45755maybe-install-html-target-zlib: install-html-target-zlib
45756
45757install-html-target-zlib: \
45758 configure-target-zlib \
45759 html-target-zlib
45760 @: $(MAKE); $(unstage)
22121df0 45761 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
45762 r=`${PWD_COMMAND}`; export r; \
45763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45764 $(NORMAL_TARGET_EXPORTS) \
22121df0 45765 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
45766 for flag in $(EXTRA_TARGET_FLAGS); do \
45767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45768 done; \
45769 (cd $(TARGET_SUBDIR)/zlib && \
45770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45772 "RANLIB=$${RANLIB}" \
0c24b341 45773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45774 install-html) \
45775 || exit 1
45776
45777@endif target-zlib
45778
4fa63067
NN
45779.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
45780maybe-installcheck-target-zlib:
6bd3dfaa
PB
45781@if target-zlib
45782maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 45783
4fa63067
NN
45784installcheck-target-zlib: \
45785 configure-target-zlib
0aed8855 45786 @: $(MAKE); $(unstage)
22121df0 45787 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
45788 r=`${PWD_COMMAND}`; export r; \
45789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45790 $(NORMAL_TARGET_EXPORTS) \
22121df0 45791 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45792 for flag in $(EXTRA_TARGET_FLAGS); do \
45793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45794 done; \
45795 (cd $(TARGET_SUBDIR)/zlib && \
45796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45798 "RANLIB=$${RANLIB}" \
0c24b341 45799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45800 installcheck) \
4fa63067 45801 || exit 1
e393202e 45802
6bd3dfaa 45803@endif target-zlib
16ae0395 45804
4fa63067
NN
45805.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
45806maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
45807@if target-zlib
45808maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 45809
4fa63067 45810mostlyclean-target-zlib:
0aed8855 45811 @: $(MAKE); $(unstage)
22121df0 45812 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
45813 r=`${PWD_COMMAND}`; export r; \
45814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45815 $(NORMAL_TARGET_EXPORTS) \
22121df0 45816 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45817 for flag in $(EXTRA_TARGET_FLAGS); do \
45818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45819 done; \
45820 (cd $(TARGET_SUBDIR)/zlib && \
45821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45823 "RANLIB=$${RANLIB}" \
0c24b341 45824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45825 mostlyclean) \
4fa63067 45826 || exit 1
e393202e 45827
6bd3dfaa 45828@endif target-zlib
15723a45 45829
4fa63067
NN
45830.PHONY: maybe-clean-target-zlib clean-target-zlib
45831maybe-clean-target-zlib:
6bd3dfaa
PB
45832@if target-zlib
45833maybe-clean-target-zlib: clean-target-zlib
15723a45 45834
4fa63067 45835clean-target-zlib:
0aed8855 45836 @: $(MAKE); $(unstage)
22121df0 45837 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
45838 r=`${PWD_COMMAND}`; export r; \
45839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45840 $(NORMAL_TARGET_EXPORTS) \
22121df0 45841 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45842 for flag in $(EXTRA_TARGET_FLAGS); do \
45843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45844 done; \
45845 (cd $(TARGET_SUBDIR)/zlib && \
45846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45848 "RANLIB=$${RANLIB}" \
0c24b341 45849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45850 clean) \
bba45b8b 45851 || exit 1
e393202e 45852
6bd3dfaa 45853@endif target-zlib
e393202e 45854
4fa63067
NN
45855.PHONY: maybe-distclean-target-zlib distclean-target-zlib
45856maybe-distclean-target-zlib:
6bd3dfaa
PB
45857@if target-zlib
45858maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 45859
4fa63067 45860distclean-target-zlib:
0aed8855 45861 @: $(MAKE); $(unstage)
22121df0 45862 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45863 r=`${PWD_COMMAND}`; export r; \
b40e3958 45864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45865 $(NORMAL_TARGET_EXPORTS) \
22121df0 45866 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45867 for flag in $(EXTRA_TARGET_FLAGS); do \
45868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45869 done; \
45870 (cd $(TARGET_SUBDIR)/zlib && \
45871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45873 "RANLIB=$${RANLIB}" \
0c24b341 45874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45875 distclean) \
4fa63067 45876 || exit 1
e393202e 45877
6bd3dfaa 45878@endif target-zlib
e393202e 45879
4fa63067
NN
45880.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
45881maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
45882@if target-zlib
45883maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 45884
4fa63067 45885maintainer-clean-target-zlib:
0aed8855 45886 @: $(MAKE); $(unstage)
22121df0 45887 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45888 r=`${PWD_COMMAND}`; export r; \
b40e3958 45889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45890 $(NORMAL_TARGET_EXPORTS) \
22121df0 45891 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45892 for flag in $(EXTRA_TARGET_FLAGS); do \
45893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45894 done; \
45895 (cd $(TARGET_SUBDIR)/zlib && \
45896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45898 "RANLIB=$${RANLIB}" \
0c24b341 45899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45900 maintainer-clean) \
4fa63067 45901 || exit 1
e393202e 45902
6bd3dfaa 45903@endif target-zlib
930314a4 45904
4fa63067 45905
15723a45 45906
a7254363 45907
e90269c8 45908
a7254363
PB
45909.PHONY: configure-target-rda maybe-configure-target-rda
45910maybe-configure-target-rda:
4f0ef2d8
CD
45911@if gcc-bootstrap
45912configure-target-rda: stage_current
45913@endif gcc-bootstrap
a7254363
PB
45914@if target-rda
45915maybe-configure-target-rda: configure-target-rda
c52c6897 45916configure-target-rda:
0aed8855
PB
45917 @: $(MAKE); $(unstage)
45918 @r=`${PWD_COMMAND}`; export r; \
45919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45920 echo "Checking multilib configuration for rda..."; \
22121df0
L
45921 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
45922 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
45923 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
45924 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
45925 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
45926 else \
45927 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
45928 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
45929 fi; \
45930 else \
45931 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
45932 fi; \
45933 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 45934 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 45935 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45936 echo Configuring in $(TARGET_SUBDIR)/rda; \
45937 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 45938 case $(srcdir) in \
b00612cc
PB
45939 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45940 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
45941 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45942 esac; \
1b6c0831 45943 module_srcdir=rda; \
bba45b8b 45944 rm -f no-such-file || : ; \
1b6c0831
L
45945 CONFIG_SITE=no-such-file $(SHELL) \
45946 $$s/$$module_srcdir/configure \
45947 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45948 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45949 --target=${target_alias} \
bba45b8b 45950 || exit 1
6bd3dfaa 45951@endif target-rda
49b7683b 45952
a7254363
PB
45953
45954
d545f33b
PB
45955
45956
4fa63067
NN
45957.PHONY: all-target-rda maybe-all-target-rda
45958maybe-all-target-rda:
4f0ef2d8
CD
45959@if gcc-bootstrap
45960all-target-rda: stage_current
45961@endif gcc-bootstrap
6bd3dfaa 45962@if target-rda
72b2455a 45963TARGET-target-rda=all
6bd3dfaa 45964maybe-all-target-rda: all-target-rda
4fa63067 45965all-target-rda: configure-target-rda
0aed8855 45966 @: $(MAKE); $(unstage)
b40e3958
L
45967 @r=`${PWD_COMMAND}`; export r; \
45968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45969 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45970 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 45971 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45972 $(TARGET-target-rda))
6bd3dfaa 45973@endif target-rda
252b5132 45974
a7254363
PB
45975
45976
d545f33b
PB
45977
45978
4fa63067
NN
45979.PHONY: check-target-rda maybe-check-target-rda
45980maybe-check-target-rda:
6bd3dfaa
PB
45981@if target-rda
45982maybe-check-target-rda: check-target-rda
16ae0395 45983
4fa63067 45984check-target-rda:
0aed8855 45985 @: $(MAKE); $(unstage)
b40e3958
L
45986 @r=`${PWD_COMMAND}`; export r; \
45987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45988 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45989 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 45990 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 45991
6bd3dfaa 45992@endif target-rda
930314a4 45993
4fa63067
NN
45994.PHONY: install-target-rda maybe-install-target-rda
45995maybe-install-target-rda:
6bd3dfaa
PB
45996@if target-rda
45997maybe-install-target-rda: install-target-rda
16ae0395 45998
4fa63067 45999install-target-rda: installdirs
0aed8855 46000 @: $(MAKE); $(unstage)
b40e3958
L
46001 @r=`${PWD_COMMAND}`; export r; \
46002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46003 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46004 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 46005 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 46006
6bd3dfaa 46007@endif target-rda
e393202e 46008
9b980aa1
RW
46009.PHONY: install-strip-target-rda maybe-install-strip-target-rda
46010maybe-install-strip-target-rda:
46011@if target-rda
46012maybe-install-strip-target-rda: install-strip-target-rda
46013
46014install-strip-target-rda: installdirs
46015 @: $(MAKE); $(unstage)
46016 @r=`${PWD_COMMAND}`; export r; \
46017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46018 $(NORMAL_TARGET_EXPORTS) \
46019 (cd $(TARGET_SUBDIR)/rda && \
46020 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46021
46022@endif target-rda
46023
56a8fe78 46024# Other targets (info, dvi, pdf, etc.)
15723a45 46025
4fa63067
NN
46026.PHONY: maybe-info-target-rda info-target-rda
46027maybe-info-target-rda:
6bd3dfaa
PB
46028@if target-rda
46029maybe-info-target-rda: info-target-rda
15723a45 46030
4fa63067
NN
46031info-target-rda: \
46032 configure-target-rda
0aed8855 46033 @: $(MAKE); $(unstage)
22121df0 46034 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
46035 r=`${PWD_COMMAND}`; export r; \
46036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46037 $(NORMAL_TARGET_EXPORTS) \
22121df0 46038 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46039 for flag in $(EXTRA_TARGET_FLAGS); do \
46040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46041 done; \
46042 (cd $(TARGET_SUBDIR)/rda && \
46043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46045 "RANLIB=$${RANLIB}" \
0c24b341 46046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46047 info) \
bba45b8b 46048 || exit 1
252b5132 46049
6bd3dfaa 46050@endif target-rda
4fa63067
NN
46051
46052.PHONY: maybe-dvi-target-rda dvi-target-rda
46053maybe-dvi-target-rda:
6bd3dfaa
PB
46054@if target-rda
46055maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
46056
46057dvi-target-rda: \
46058 configure-target-rda
0aed8855 46059 @: $(MAKE); $(unstage)
22121df0 46060 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46061 r=`${PWD_COMMAND}`; export r; \
b40e3958 46062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46063 $(NORMAL_TARGET_EXPORTS) \
22121df0 46064 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46065 for flag in $(EXTRA_TARGET_FLAGS); do \
46066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46067 done; \
46068 (cd $(TARGET_SUBDIR)/rda && \
46069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46071 "RANLIB=$${RANLIB}" \
0c24b341 46072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46073 dvi) \
4fa63067 46074 || exit 1
252b5132 46075
6bd3dfaa 46076@endif target-rda
16ae0395 46077
56a8fe78
DD
46078.PHONY: maybe-pdf-target-rda pdf-target-rda
46079maybe-pdf-target-rda:
46080@if target-rda
46081maybe-pdf-target-rda: pdf-target-rda
46082
46083pdf-target-rda: \
46084 configure-target-rda
46085 @: $(MAKE); $(unstage)
22121df0 46086 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
46087 r=`${PWD_COMMAND}`; export r; \
46088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46089 $(NORMAL_TARGET_EXPORTS) \
22121df0 46090 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
46091 for flag in $(EXTRA_TARGET_FLAGS); do \
46092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46093 done; \
46094 (cd $(TARGET_SUBDIR)/rda && \
46095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46097 "RANLIB=$${RANLIB}" \
0c24b341 46098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46099 pdf) \
46100 || exit 1
46101
46102@endif target-rda
46103
6d389afc
MS
46104.PHONY: maybe-html-target-rda html-target-rda
46105maybe-html-target-rda:
46106@if target-rda
46107maybe-html-target-rda: html-target-rda
46108
46109html-target-rda: \
46110 configure-target-rda
0aed8855 46111 @: $(MAKE); $(unstage)
22121df0 46112 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
46113 r=`${PWD_COMMAND}`; export r; \
46114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46115 $(NORMAL_TARGET_EXPORTS) \
22121df0 46116 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
46117 for flag in $(EXTRA_TARGET_FLAGS); do \
46118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46119 done; \
46120 (cd $(TARGET_SUBDIR)/rda && \
46121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46123 "RANLIB=$${RANLIB}" \
0c24b341 46124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46125 html) \
46126 || exit 1
46127
46128@endif target-rda
46129
4fa63067
NN
46130.PHONY: maybe-TAGS-target-rda TAGS-target-rda
46131maybe-TAGS-target-rda:
6bd3dfaa
PB
46132@if target-rda
46133maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
46134
46135TAGS-target-rda: \
46136 configure-target-rda
0aed8855 46137 @: $(MAKE); $(unstage)
22121df0 46138 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46139 r=`${PWD_COMMAND}`; export r; \
b40e3958 46140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46141 $(NORMAL_TARGET_EXPORTS) \
22121df0 46142 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46143 for flag in $(EXTRA_TARGET_FLAGS); do \
46144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46145 done; \
46146 (cd $(TARGET_SUBDIR)/rda && \
46147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46149 "RANLIB=$${RANLIB}" \
0c24b341 46150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46151 TAGS) \
4fa63067 46152 || exit 1
e393202e 46153
6bd3dfaa 46154@endif target-rda
930314a4 46155
4fa63067
NN
46156.PHONY: maybe-install-info-target-rda install-info-target-rda
46157maybe-install-info-target-rda:
6bd3dfaa
PB
46158@if target-rda
46159maybe-install-info-target-rda: install-info-target-rda
16ae0395 46160
4fa63067
NN
46161install-info-target-rda: \
46162 configure-target-rda \
46163 info-target-rda
0aed8855 46164 @: $(MAKE); $(unstage)
22121df0 46165 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46166 r=`${PWD_COMMAND}`; export r; \
b40e3958 46167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46168 $(NORMAL_TARGET_EXPORTS) \
22121df0 46169 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46170 for flag in $(EXTRA_TARGET_FLAGS); do \
46171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46172 done; \
46173 (cd $(TARGET_SUBDIR)/rda && \
46174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46176 "RANLIB=$${RANLIB}" \
0c24b341 46177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46178 install-info) \
4fa63067 46179 || exit 1
252b5132 46180
6bd3dfaa 46181@endif target-rda
e393202e 46182
a3ca38d2
DD
46183.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
46184maybe-install-pdf-target-rda:
46185@if target-rda
46186maybe-install-pdf-target-rda: install-pdf-target-rda
46187
46188install-pdf-target-rda: \
46189 configure-target-rda \
46190 pdf-target-rda
46191 @: $(MAKE); $(unstage)
22121df0 46192 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
46193 r=`${PWD_COMMAND}`; export r; \
46194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46195 $(NORMAL_TARGET_EXPORTS) \
22121df0 46196 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
46197 for flag in $(EXTRA_TARGET_FLAGS); do \
46198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46199 done; \
46200 (cd $(TARGET_SUBDIR)/rda && \
46201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46203 "RANLIB=$${RANLIB}" \
0c24b341 46204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46205 install-pdf) \
46206 || exit 1
46207
46208@endif target-rda
46209
108a6f8e
CD
46210.PHONY: maybe-install-html-target-rda install-html-target-rda
46211maybe-install-html-target-rda:
46212@if target-rda
46213maybe-install-html-target-rda: install-html-target-rda
46214
46215install-html-target-rda: \
46216 configure-target-rda \
46217 html-target-rda
46218 @: $(MAKE); $(unstage)
22121df0 46219 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
46220 r=`${PWD_COMMAND}`; export r; \
46221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46222 $(NORMAL_TARGET_EXPORTS) \
22121df0 46223 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
46224 for flag in $(EXTRA_TARGET_FLAGS); do \
46225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46226 done; \
46227 (cd $(TARGET_SUBDIR)/rda && \
46228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46230 "RANLIB=$${RANLIB}" \
0c24b341 46231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46232 install-html) \
46233 || exit 1
46234
46235@endif target-rda
46236
4fa63067
NN
46237.PHONY: maybe-installcheck-target-rda installcheck-target-rda
46238maybe-installcheck-target-rda:
6bd3dfaa
PB
46239@if target-rda
46240maybe-installcheck-target-rda: installcheck-target-rda
15723a45 46241
4fa63067
NN
46242installcheck-target-rda: \
46243 configure-target-rda
0aed8855 46244 @: $(MAKE); $(unstage)
22121df0 46245 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
46246 r=`${PWD_COMMAND}`; export r; \
46247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46248 $(NORMAL_TARGET_EXPORTS) \
22121df0 46249 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46250 for flag in $(EXTRA_TARGET_FLAGS); do \
46251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46252 done; \
46253 (cd $(TARGET_SUBDIR)/rda && \
46254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46256 "RANLIB=$${RANLIB}" \
0c24b341 46257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46258 installcheck) \
4fa63067 46259 || exit 1
15723a45 46260
6bd3dfaa 46261@endif target-rda
4fa63067
NN
46262
46263.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
46264maybe-mostlyclean-target-rda:
6bd3dfaa
PB
46265@if target-rda
46266maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
46267
46268mostlyclean-target-rda:
0aed8855 46269 @: $(MAKE); $(unstage)
22121df0 46270 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
46271 r=`${PWD_COMMAND}`; export r; \
46272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46273 $(NORMAL_TARGET_EXPORTS) \
22121df0 46274 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46275 for flag in $(EXTRA_TARGET_FLAGS); do \
46276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46277 done; \
46278 (cd $(TARGET_SUBDIR)/rda && \
46279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46281 "RANLIB=$${RANLIB}" \
0c24b341 46282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46283 mostlyclean) \
bba45b8b 46284 || exit 1
252b5132 46285
6bd3dfaa 46286@endif target-rda
4fa63067
NN
46287
46288.PHONY: maybe-clean-target-rda clean-target-rda
46289maybe-clean-target-rda:
6bd3dfaa
PB
46290@if target-rda
46291maybe-clean-target-rda: clean-target-rda
4fa63067
NN
46292
46293clean-target-rda:
0aed8855 46294 @: $(MAKE); $(unstage)
22121df0 46295 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46296 r=`${PWD_COMMAND}`; export r; \
b40e3958 46297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46298 $(NORMAL_TARGET_EXPORTS) \
22121df0 46299 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46300 for flag in $(EXTRA_TARGET_FLAGS); do \
46301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46302 done; \
bba45b8b 46303 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46306 "RANLIB=$${RANLIB}" \
0c24b341 46307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46308 clean) \
4fa63067 46309 || exit 1
252b5132 46310
6bd3dfaa 46311@endif target-rda
16ae0395 46312
4fa63067
NN
46313.PHONY: maybe-distclean-target-rda distclean-target-rda
46314maybe-distclean-target-rda:
6bd3dfaa
PB
46315@if target-rda
46316maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
46317
46318distclean-target-rda:
0aed8855 46319 @: $(MAKE); $(unstage)
22121df0 46320 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46321 r=`${PWD_COMMAND}`; export r; \
b40e3958 46322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46323 $(NORMAL_TARGET_EXPORTS) \
22121df0 46324 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46325 for flag in $(EXTRA_TARGET_FLAGS); do \
46326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46327 done; \
bba45b8b 46328 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46331 "RANLIB=$${RANLIB}" \
0c24b341 46332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46333 distclean) \
4fa63067 46334 || exit 1
252b5132 46335
6bd3dfaa 46336@endif target-rda
930314a4 46337
4fa63067
NN
46338.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
46339maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
46340@if target-rda
46341maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 46342
4fa63067 46343maintainer-clean-target-rda:
0aed8855 46344 @: $(MAKE); $(unstage)
22121df0 46345 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46346 r=`${PWD_COMMAND}`; export r; \
b40e3958 46347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46348 $(NORMAL_TARGET_EXPORTS) \
22121df0 46349 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46350 for flag in $(EXTRA_TARGET_FLAGS); do \
46351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46352 done; \
bba45b8b 46353 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46356 "RANLIB=$${RANLIB}" \
0c24b341 46357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46358 maintainer-clean) \
4fa63067
NN
46359 || exit 1
46360
6bd3dfaa 46361@endif target-rda
252b5132 46362
e393202e 46363
a2592b1b 46364
a7254363
PB
46365
46366
46367.PHONY: configure-target-libada maybe-configure-target-libada
46368maybe-configure-target-libada:
4f0ef2d8
CD
46369@if gcc-bootstrap
46370configure-target-libada: stage_current
46371@endif gcc-bootstrap
a7254363
PB
46372@if target-libada
46373maybe-configure-target-libada: configure-target-libada
c52c6897 46374configure-target-libada:
0aed8855
PB
46375 @: $(MAKE); $(unstage)
46376 @r=`${PWD_COMMAND}`; export r; \
46377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46378 echo "Checking multilib configuration for libada..."; \
22121df0
L
46379 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
46380 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
46381 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
46382 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
46383 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
46384 else \
46385 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
46386 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
46387 fi; \
46388 else \
46389 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
46390 fi; \
46391 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 46392 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 46393 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
46394 echo Configuring in $(TARGET_SUBDIR)/libada; \
46395 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
46396 case $(srcdir) in \
b00612cc
PB
46397 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46398 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
46399 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 46400 esac; \
1b6c0831 46401 module_srcdir=libada; \
a2592b1b 46402 rm -f no-such-file || : ; \
1b6c0831
L
46403 CONFIG_SITE=no-such-file $(SHELL) \
46404 $$s/$$module_srcdir/configure \
46405 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46406 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46407 --target=${target_alias} \
a2592b1b 46408 || exit 1
6bd3dfaa 46409@endif target-libada
a2592b1b 46410
a7254363
PB
46411
46412
d545f33b
PB
46413
46414
4fa63067
NN
46415.PHONY: all-target-libada maybe-all-target-libada
46416maybe-all-target-libada:
4f0ef2d8
CD
46417@if gcc-bootstrap
46418all-target-libada: stage_current
46419@endif gcc-bootstrap
6bd3dfaa 46420@if target-libada
72b2455a 46421TARGET-target-libada=all
6bd3dfaa 46422maybe-all-target-libada: all-target-libada
4fa63067 46423all-target-libada: configure-target-libada
0aed8855 46424 @: $(MAKE); $(unstage)
4fa63067
NN
46425 @r=`${PWD_COMMAND}`; export r; \
46426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46427 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46428 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 46429 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46430 $(TARGET-target-libada))
6bd3dfaa 46431@endif target-libada
4fa63067 46432
a7254363
PB
46433
46434
d545f33b
PB
46435
46436
4fa63067
NN
46437.PHONY: check-target-libada maybe-check-target-libada
46438maybe-check-target-libada:
6bd3dfaa
PB
46439@if target-libada
46440maybe-check-target-libada: check-target-libada
4fa63067
NN
46441
46442check-target-libada:
0aed8855 46443 @: $(MAKE); $(unstage)
4fa63067
NN
46444 @r=`${PWD_COMMAND}`; export r; \
46445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46446 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46447 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 46448 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 46449
6bd3dfaa 46450@endif target-libada
4fa63067
NN
46451
46452.PHONY: install-target-libada maybe-install-target-libada
46453maybe-install-target-libada:
6bd3dfaa
PB
46454@if target-libada
46455maybe-install-target-libada: install-target-libada
4fa63067
NN
46456
46457install-target-libada: installdirs
0aed8855 46458 @: $(MAKE); $(unstage)
4fa63067
NN
46459 @r=`${PWD_COMMAND}`; export r; \
46460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46461 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46462 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 46463 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 46464
6bd3dfaa 46465@endif target-libada
4fa63067 46466
9b980aa1
RW
46467.PHONY: install-strip-target-libada maybe-install-strip-target-libada
46468maybe-install-strip-target-libada:
46469@if target-libada
46470maybe-install-strip-target-libada: install-strip-target-libada
46471
46472install-strip-target-libada: installdirs
46473 @: $(MAKE); $(unstage)
46474 @r=`${PWD_COMMAND}`; export r; \
46475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46476 $(NORMAL_TARGET_EXPORTS) \
46477 (cd $(TARGET_SUBDIR)/libada && \
46478 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46479
46480@endif target-libada
46481
56a8fe78 46482# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
46483
46484.PHONY: maybe-info-target-libada info-target-libada
46485maybe-info-target-libada:
6bd3dfaa
PB
46486@if target-libada
46487maybe-info-target-libada: info-target-libada
4fa63067
NN
46488
46489info-target-libada: \
46490 configure-target-libada
0aed8855 46491 @: $(MAKE); $(unstage)
22121df0 46492 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46493 r=`${PWD_COMMAND}`; export r; \
46494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46495 $(NORMAL_TARGET_EXPORTS) \
22121df0 46496 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46497 for flag in $(EXTRA_TARGET_FLAGS); do \
46498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46499 done; \
46500 (cd $(TARGET_SUBDIR)/libada && \
46501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46503 "RANLIB=$${RANLIB}" \
0c24b341 46504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46505 info) \
4fa63067
NN
46506 || exit 1
46507
6bd3dfaa 46508@endif target-libada
4fa63067
NN
46509
46510.PHONY: maybe-dvi-target-libada dvi-target-libada
46511maybe-dvi-target-libada:
6bd3dfaa
PB
46512@if target-libada
46513maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
46514
46515dvi-target-libada: \
46516 configure-target-libada
0aed8855 46517 @: $(MAKE); $(unstage)
22121df0 46518 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46519 r=`${PWD_COMMAND}`; export r; \
46520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46521 $(NORMAL_TARGET_EXPORTS) \
22121df0 46522 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46523 for flag in $(EXTRA_TARGET_FLAGS); do \
46524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46525 done; \
46526 (cd $(TARGET_SUBDIR)/libada && \
46527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46529 "RANLIB=$${RANLIB}" \
0c24b341 46530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46531 dvi) \
4fa63067
NN
46532 || exit 1
46533
6bd3dfaa 46534@endif target-libada
4fa63067 46535
56a8fe78
DD
46536.PHONY: maybe-pdf-target-libada pdf-target-libada
46537maybe-pdf-target-libada:
46538@if target-libada
46539maybe-pdf-target-libada: pdf-target-libada
46540
46541pdf-target-libada: \
46542 configure-target-libada
46543 @: $(MAKE); $(unstage)
22121df0 46544 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
46545 r=`${PWD_COMMAND}`; export r; \
46546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46547 $(NORMAL_TARGET_EXPORTS) \
22121df0 46548 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
46549 for flag in $(EXTRA_TARGET_FLAGS); do \
46550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46551 done; \
46552 (cd $(TARGET_SUBDIR)/libada && \
46553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46555 "RANLIB=$${RANLIB}" \
0c24b341 46556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46557 pdf) \
46558 || exit 1
46559
46560@endif target-libada
46561
6d389afc
MS
46562.PHONY: maybe-html-target-libada html-target-libada
46563maybe-html-target-libada:
46564@if target-libada
46565maybe-html-target-libada: html-target-libada
46566
46567html-target-libada: \
46568 configure-target-libada
0aed8855 46569 @: $(MAKE); $(unstage)
22121df0 46570 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
46571 r=`${PWD_COMMAND}`; export r; \
46572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46573 $(NORMAL_TARGET_EXPORTS) \
22121df0 46574 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
46575 for flag in $(EXTRA_TARGET_FLAGS); do \
46576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46577 done; \
46578 (cd $(TARGET_SUBDIR)/libada && \
46579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46581 "RANLIB=$${RANLIB}" \
0c24b341 46582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46583 html) \
46584 || exit 1
46585
46586@endif target-libada
46587
4fa63067
NN
46588.PHONY: maybe-TAGS-target-libada TAGS-target-libada
46589maybe-TAGS-target-libada:
6bd3dfaa
PB
46590@if target-libada
46591maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
46592
46593TAGS-target-libada: \
46594 configure-target-libada
0aed8855 46595 @: $(MAKE); $(unstage)
22121df0 46596 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46597 r=`${PWD_COMMAND}`; export r; \
46598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46599 $(NORMAL_TARGET_EXPORTS) \
22121df0 46600 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46601 for flag in $(EXTRA_TARGET_FLAGS); do \
46602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46603 done; \
46604 (cd $(TARGET_SUBDIR)/libada && \
46605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46607 "RANLIB=$${RANLIB}" \
0c24b341 46608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46609 TAGS) \
4fa63067
NN
46610 || exit 1
46611
6bd3dfaa 46612@endif target-libada
4fa63067
NN
46613
46614.PHONY: maybe-install-info-target-libada install-info-target-libada
46615maybe-install-info-target-libada:
6bd3dfaa
PB
46616@if target-libada
46617maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
46618
46619install-info-target-libada: \
46620 configure-target-libada \
46621 info-target-libada
0aed8855 46622 @: $(MAKE); $(unstage)
22121df0 46623 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46624 r=`${PWD_COMMAND}`; export r; \
46625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46626 $(NORMAL_TARGET_EXPORTS) \
22121df0 46627 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46628 for flag in $(EXTRA_TARGET_FLAGS); do \
46629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46630 done; \
46631 (cd $(TARGET_SUBDIR)/libada && \
46632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46634 "RANLIB=$${RANLIB}" \
0c24b341 46635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46636 install-info) \
4fa63067
NN
46637 || exit 1
46638
6bd3dfaa 46639@endif target-libada
4fa63067 46640
a3ca38d2
DD
46641.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
46642maybe-install-pdf-target-libada:
46643@if target-libada
46644maybe-install-pdf-target-libada: install-pdf-target-libada
46645
46646install-pdf-target-libada: \
46647 configure-target-libada \
46648 pdf-target-libada
46649 @: $(MAKE); $(unstage)
22121df0 46650 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
46651 r=`${PWD_COMMAND}`; export r; \
46652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46653 $(NORMAL_TARGET_EXPORTS) \
22121df0 46654 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
46655 for flag in $(EXTRA_TARGET_FLAGS); do \
46656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46657 done; \
46658 (cd $(TARGET_SUBDIR)/libada && \
46659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46661 "RANLIB=$${RANLIB}" \
0c24b341 46662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46663 install-pdf) \
46664 || exit 1
46665
46666@endif target-libada
46667
108a6f8e
CD
46668.PHONY: maybe-install-html-target-libada install-html-target-libada
46669maybe-install-html-target-libada:
46670@if target-libada
46671maybe-install-html-target-libada: install-html-target-libada
46672
46673install-html-target-libada: \
46674 configure-target-libada \
46675 html-target-libada
46676 @: $(MAKE); $(unstage)
22121df0 46677 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
46678 r=`${PWD_COMMAND}`; export r; \
46679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46680 $(NORMAL_TARGET_EXPORTS) \
22121df0 46681 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
46682 for flag in $(EXTRA_TARGET_FLAGS); do \
46683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46684 done; \
46685 (cd $(TARGET_SUBDIR)/libada && \
46686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46688 "RANLIB=$${RANLIB}" \
0c24b341 46689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46690 install-html) \
46691 || exit 1
46692
46693@endif target-libada
46694
4fa63067
NN
46695.PHONY: maybe-installcheck-target-libada installcheck-target-libada
46696maybe-installcheck-target-libada:
6bd3dfaa
PB
46697@if target-libada
46698maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
46699
46700installcheck-target-libada: \
46701 configure-target-libada
0aed8855 46702 @: $(MAKE); $(unstage)
22121df0 46703 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46704 r=`${PWD_COMMAND}`; export r; \
46705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46706 $(NORMAL_TARGET_EXPORTS) \
22121df0 46707 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46708 for flag in $(EXTRA_TARGET_FLAGS); do \
46709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46710 done; \
46711 (cd $(TARGET_SUBDIR)/libada && \
46712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46714 "RANLIB=$${RANLIB}" \
0c24b341 46715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46716 installcheck) \
4fa63067
NN
46717 || exit 1
46718
6bd3dfaa 46719@endif target-libada
4fa63067
NN
46720
46721.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
46722maybe-mostlyclean-target-libada:
6bd3dfaa
PB
46723@if target-libada
46724maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
46725
46726mostlyclean-target-libada:
0aed8855 46727 @: $(MAKE); $(unstage)
22121df0 46728 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46729 r=`${PWD_COMMAND}`; export r; \
46730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46731 $(NORMAL_TARGET_EXPORTS) \
22121df0 46732 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46733 for flag in $(EXTRA_TARGET_FLAGS); do \
46734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46735 done; \
46736 (cd $(TARGET_SUBDIR)/libada && \
46737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46739 "RANLIB=$${RANLIB}" \
0c24b341 46740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46741 mostlyclean) \
4fa63067
NN
46742 || exit 1
46743
6bd3dfaa 46744@endif target-libada
4fa63067
NN
46745
46746.PHONY: maybe-clean-target-libada clean-target-libada
46747maybe-clean-target-libada:
6bd3dfaa
PB
46748@if target-libada
46749maybe-clean-target-libada: clean-target-libada
4fa63067
NN
46750
46751clean-target-libada:
0aed8855 46752 @: $(MAKE); $(unstage)
22121df0 46753 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46754 r=`${PWD_COMMAND}`; export r; \
46755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46756 $(NORMAL_TARGET_EXPORTS) \
22121df0 46757 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
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)/libada && \
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}" \
7ffa0b57 46766 clean) \
4fa63067
NN
46767 || exit 1
46768
6bd3dfaa 46769@endif target-libada
a2592b1b 46770
4fa63067
NN
46771.PHONY: maybe-distclean-target-libada distclean-target-libada
46772maybe-distclean-target-libada:
6bd3dfaa
PB
46773@if target-libada
46774maybe-distclean-target-libada: distclean-target-libada
a2592b1b 46775
4fa63067 46776distclean-target-libada:
0aed8855 46777 @: $(MAKE); $(unstage)
22121df0 46778 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 46779 r=`${PWD_COMMAND}`; export r; \
a2592b1b 46780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46781 $(NORMAL_TARGET_EXPORTS) \
22121df0 46782 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46783 for flag in $(EXTRA_TARGET_FLAGS); do \
46784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46785 done; \
a2592b1b 46786 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
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}" \
7ffa0b57 46791 distclean) \
4fa63067 46792 || exit 1
a2592b1b 46793
6bd3dfaa 46794@endif target-libada
a2592b1b 46795
4fa63067
NN
46796.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
46797maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
46798@if target-libada
46799maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 46800
4fa63067 46801maintainer-clean-target-libada:
0aed8855 46802 @: $(MAKE); $(unstage)
22121df0 46803 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 46804 r=`${PWD_COMMAND}`; export r; \
a2592b1b 46805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46806 $(NORMAL_TARGET_EXPORTS) \
22121df0 46807 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46808 for flag in $(EXTRA_TARGET_FLAGS); do \
46809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46810 done; \
a2592b1b 46811 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
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}" \
7ffa0b57 46816 maintainer-clean) \
4fa63067
NN
46817 || exit 1
46818
6bd3dfaa 46819@endif target-libada
a2592b1b
DD
46820
46821
e393202e 46822
b3ded179
PB
46823
46824
46825.PHONY: configure-target-libgomp maybe-configure-target-libgomp
46826maybe-configure-target-libgomp:
4f0ef2d8
CD
46827@if gcc-bootstrap
46828configure-target-libgomp: stage_current
46829@endif gcc-bootstrap
b3ded179
PB
46830@if target-libgomp
46831maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 46832configure-target-libgomp:
b3ded179
PB
46833 @r=`${PWD_COMMAND}`; export r; \
46834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46835 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
46836 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
46837 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
46838 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46839 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46840 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46841 else \
46842 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46843 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46844 fi; \
46845 else \
46846 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
46847 fi; \
46848 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 46849 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 46850 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
46851 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
46852 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
46853 case $(srcdir) in \
46854 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46855 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46856 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46857 esac; \
1b6c0831 46858 module_srcdir=libgomp; \
b3ded179 46859 rm -f no-such-file || : ; \
1b6c0831
L
46860 CONFIG_SITE=no-such-file $(SHELL) \
46861 $$s/$$module_srcdir/configure \
46862 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46863 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46864 --target=${target_alias} \
b3ded179
PB
46865 || exit 1
46866@endif target-libgomp
46867
46868
46869
911e63d0
JR
46870.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
46871maybe-configure-stage1-target-libgomp:
46872@if target-libgomp-bootstrap
46873maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
46874configure-stage1-target-libgomp:
46875 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46876 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46877 @r=`${PWD_COMMAND}`; export r; \
46878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46879 TFLAGS="$(STAGE1_TFLAGS)"; \
46880 echo "Checking multilib configuration for libgomp..."; \
22121df0 46881 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46882 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46883 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46884 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46885 else \
46886 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46887 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46888 fi; \
46889 else \
46890 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46891 fi; \
46892 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46893 $(NORMAL_TARGET_EXPORTS) \
46894 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46895 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46896 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46897 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
46898 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46899 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46900 case $(srcdir) in \
46901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46902 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46904 esac; \
1b6c0831
L
46905 module_srcdir=libgomp; \
46906 $(SHELL) $$s/$$module_srcdir/configure \
46907 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46908 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
46909 --target=${target_alias} \
46910 \
911e63d0
JR
46911 $(STAGE1_CONFIGURE_FLAGS)
46912@endif target-libgomp-bootstrap
46913
46914.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
46915maybe-configure-stage2-target-libgomp:
46916@if target-libgomp-bootstrap
46917maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
46918configure-stage2-target-libgomp:
46919 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46920 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46921 @r=`${PWD_COMMAND}`; export r; \
46922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46923 TFLAGS="$(STAGE2_TFLAGS)"; \
46924 echo "Checking multilib configuration for libgomp..."; \
22121df0 46925 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46926 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46927 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46928 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46929 else \
46930 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46931 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46932 fi; \
46933 else \
46934 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46935 fi; \
46936 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46937 $(NORMAL_TARGET_EXPORTS) \
46938 \
46939 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46940 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46941 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46942 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
46943 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46944 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46945 case $(srcdir) in \
46946 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46947 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46948 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46949 esac; \
1b6c0831
L
46950 module_srcdir=libgomp; \
46951 $(SHELL) $$s/$$module_srcdir/configure \
46952 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46953 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46954 --target=${target_alias} \
22121df0 46955 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46956 $(STAGE2_CONFIGURE_FLAGS)
46957@endif target-libgomp-bootstrap
46958
46959.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
46960maybe-configure-stage3-target-libgomp:
46961@if target-libgomp-bootstrap
46962maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
46963configure-stage3-target-libgomp:
46964 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46965 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46966 @r=`${PWD_COMMAND}`; export r; \
46967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46968 TFLAGS="$(STAGE3_TFLAGS)"; \
46969 echo "Checking multilib configuration for libgomp..."; \
22121df0 46970 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46971 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46972 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46973 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46974 else \
46975 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46976 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46977 fi; \
46978 else \
46979 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46980 fi; \
46981 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46982 $(NORMAL_TARGET_EXPORTS) \
46983 \
46984 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46985 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46986 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46987 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
46988 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46989 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46990 case $(srcdir) in \
46991 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46992 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46993 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46994 esac; \
1b6c0831
L
46995 module_srcdir=libgomp; \
46996 $(SHELL) $$s/$$module_srcdir/configure \
46997 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46998 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46999 --target=${target_alias} \
22121df0 47000 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47001 $(STAGE3_CONFIGURE_FLAGS)
47002@endif target-libgomp-bootstrap
47003
47004.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
47005maybe-configure-stage4-target-libgomp:
47006@if target-libgomp-bootstrap
47007maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
47008configure-stage4-target-libgomp:
47009 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47010 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47011 @r=`${PWD_COMMAND}`; export r; \
47012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47013 TFLAGS="$(STAGE4_TFLAGS)"; \
47014 echo "Checking multilib configuration for libgomp..."; \
22121df0 47015 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47016 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47017 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47018 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47019 else \
47020 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47021 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47022 fi; \
47023 else \
47024 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47025 fi; \
47026 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47027 $(NORMAL_TARGET_EXPORTS) \
47028 \
47029 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47030 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47031 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47032 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
47033 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47034 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47035 case $(srcdir) in \
47036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47037 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47039 esac; \
1b6c0831
L
47040 module_srcdir=libgomp; \
47041 $(SHELL) $$s/$$module_srcdir/configure \
47042 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47043 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47044 --target=${target_alias} \
22121df0 47045 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47046 $(STAGE4_CONFIGURE_FLAGS)
47047@endif target-libgomp-bootstrap
47048
47049.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
47050maybe-configure-stageprofile-target-libgomp:
47051@if target-libgomp-bootstrap
47052maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
47053configure-stageprofile-target-libgomp:
47054 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47055 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47056 @r=`${PWD_COMMAND}`; export r; \
47057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47058 TFLAGS="$(STAGEprofile_TFLAGS)"; \
47059 echo "Checking multilib configuration for libgomp..."; \
22121df0 47060 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47061 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47062 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47063 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47064 else \
47065 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47066 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47067 fi; \
47068 else \
47069 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47070 fi; \
47071 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47072 $(NORMAL_TARGET_EXPORTS) \
47073 \
47074 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47075 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47076 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47077 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
47078 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47079 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47080 case $(srcdir) in \
47081 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47082 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47083 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47084 esac; \
1b6c0831
L
47085 module_srcdir=libgomp; \
47086 $(SHELL) $$s/$$module_srcdir/configure \
47087 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47088 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47089 --target=${target_alias} \
22121df0 47090 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47091 $(STAGEprofile_CONFIGURE_FLAGS)
47092@endif target-libgomp-bootstrap
47093
47094.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
47095maybe-configure-stagefeedback-target-libgomp:
47096@if target-libgomp-bootstrap
47097maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
47098configure-stagefeedback-target-libgomp:
47099 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47100 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47101 @r=`${PWD_COMMAND}`; export r; \
47102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47103 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
47104 echo "Checking multilib configuration for libgomp..."; \
22121df0 47105 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47106 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47107 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47108 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47109 else \
47110 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47111 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47112 fi; \
47113 else \
47114 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47115 fi; \
47116 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47117 $(NORMAL_TARGET_EXPORTS) \
47118 \
47119 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47120 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47121 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47122 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
47123 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47124 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47125 case $(srcdir) in \
47126 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47127 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47128 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47129 esac; \
1b6c0831
L
47130 module_srcdir=libgomp; \
47131 $(SHELL) $$s/$$module_srcdir/configure \
47132 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47133 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47134 --target=${target_alias} \
22121df0 47135 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47136 $(STAGEfeedback_CONFIGURE_FLAGS)
47137@endif target-libgomp-bootstrap
47138
47139
47140
b3ded179
PB
47141
47142
47143.PHONY: all-target-libgomp maybe-all-target-libgomp
47144maybe-all-target-libgomp:
4f0ef2d8
CD
47145@if gcc-bootstrap
47146all-target-libgomp: stage_current
47147@endif gcc-bootstrap
b3ded179
PB
47148@if target-libgomp
47149TARGET-target-libgomp=all
47150maybe-all-target-libgomp: all-target-libgomp
47151all-target-libgomp: configure-target-libgomp
b3ded179
PB
47152 @r=`${PWD_COMMAND}`; export r; \
47153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 47154 $(NORMAL_TARGET_EXPORTS) \
b3ded179 47155 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47156 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 47157 $(TARGET-target-libgomp))
b3ded179
PB
47158@endif target-libgomp
47159
47160
47161
911e63d0
JR
47162.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
47163.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
47164maybe-all-stage1-target-libgomp:
47165maybe-clean-stage1-target-libgomp:
47166@if target-libgomp-bootstrap
47167maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
47168all-stage1: all-stage1-target-libgomp
47169TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
47170all-stage1-target-libgomp: configure-stage1-target-libgomp
47171 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
47172 @r=`${PWD_COMMAND}`; export r; \
47173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47174 TFLAGS="$(STAGE1_TFLAGS)"; \
47175 $(NORMAL_TARGET_EXPORTS) \
47176 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47177 \
911e63d0
JR
47178 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47179 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47180 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47181 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47182 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47183 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47184 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
47185 $(EXTRA_TARGET_FLAGS) \
47186 \
05a13254 47187 TFLAGS="$(STAGE1_TFLAGS)" \
911e63d0
JR
47188 $(TARGET-stage1-target-libgomp)
47189
47190maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
47191clean-stage1: clean-stage1-target-libgomp
47192clean-stage1-target-libgomp:
47193 @if [ $(current_stage) = stage1 ]; then \
47194 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47195 else \
47196 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
47197 $(MAKE) stage1-start; \
47198 fi; \
47199 cd $(TARGET_SUBDIR)/libgomp && \
47200 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 47201 clean
911e63d0
JR
47202@endif target-libgomp-bootstrap
47203
47204
47205.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
47206.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
47207maybe-all-stage2-target-libgomp:
47208maybe-clean-stage2-target-libgomp:
47209@if target-libgomp-bootstrap
47210maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
47211all-stage2: all-stage2-target-libgomp
47212TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
47213all-stage2-target-libgomp: configure-stage2-target-libgomp
47214 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
47215 @r=`${PWD_COMMAND}`; export r; \
47216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47217 TFLAGS="$(STAGE2_TFLAGS)"; \
47218 $(NORMAL_TARGET_EXPORTS) \
47219 \
47220 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47221 \
911e63d0
JR
47222 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47223 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47224 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47225 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47226 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47227 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47228 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47229 $(EXTRA_TARGET_FLAGS) \
05a13254 47230 TFLAGS="$(STAGE2_TFLAGS)" \
911e63d0
JR
47231 $(TARGET-stage2-target-libgomp)
47232
47233maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
47234clean-stage2: clean-stage2-target-libgomp
47235clean-stage2-target-libgomp:
47236 @if [ $(current_stage) = stage2 ]; then \
47237 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47238 else \
47239 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
47240 $(MAKE) stage2-start; \
47241 fi; \
47242 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47243 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47244@endif target-libgomp-bootstrap
47245
47246
47247.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
47248.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
47249maybe-all-stage3-target-libgomp:
47250maybe-clean-stage3-target-libgomp:
47251@if target-libgomp-bootstrap
47252maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
47253all-stage3: all-stage3-target-libgomp
47254TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
47255all-stage3-target-libgomp: configure-stage3-target-libgomp
47256 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
47257 @r=`${PWD_COMMAND}`; export r; \
47258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47259 TFLAGS="$(STAGE3_TFLAGS)"; \
47260 $(NORMAL_TARGET_EXPORTS) \
47261 \
47262 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47263 \
911e63d0
JR
47264 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47265 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47266 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47267 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47268 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47269 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47270 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47271 $(EXTRA_TARGET_FLAGS) \
05a13254 47272 TFLAGS="$(STAGE3_TFLAGS)" \
911e63d0
JR
47273 $(TARGET-stage3-target-libgomp)
47274
47275maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
47276clean-stage3: clean-stage3-target-libgomp
47277clean-stage3-target-libgomp:
47278 @if [ $(current_stage) = stage3 ]; then \
47279 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47280 else \
47281 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
47282 $(MAKE) stage3-start; \
47283 fi; \
47284 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47285 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47286@endif target-libgomp-bootstrap
47287
47288
47289.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
47290.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
47291maybe-all-stage4-target-libgomp:
47292maybe-clean-stage4-target-libgomp:
47293@if target-libgomp-bootstrap
47294maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
47295all-stage4: all-stage4-target-libgomp
47296TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
47297all-stage4-target-libgomp: configure-stage4-target-libgomp
47298 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47299 @r=`${PWD_COMMAND}`; export r; \
47300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47301 TFLAGS="$(STAGE4_TFLAGS)"; \
47302 $(NORMAL_TARGET_EXPORTS) \
47303 \
47304 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47305 \
911e63d0
JR
47306 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47307 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47308 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47309 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47310 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47311 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47312 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47313 $(EXTRA_TARGET_FLAGS) \
05a13254 47314 TFLAGS="$(STAGE4_TFLAGS)" \
911e63d0
JR
47315 $(TARGET-stage4-target-libgomp)
47316
47317maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
47318clean-stage4: clean-stage4-target-libgomp
47319clean-stage4-target-libgomp:
47320 @if [ $(current_stage) = stage4 ]; then \
47321 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47322 else \
47323 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
47324 $(MAKE) stage4-start; \
47325 fi; \
47326 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47327 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47328@endif target-libgomp-bootstrap
47329
47330
47331.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
47332.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
47333maybe-all-stageprofile-target-libgomp:
47334maybe-clean-stageprofile-target-libgomp:
47335@if target-libgomp-bootstrap
47336maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
47337all-stageprofile: all-stageprofile-target-libgomp
47338TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
47339all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
47340 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47341 @r=`${PWD_COMMAND}`; export r; \
47342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47343 TFLAGS="$(STAGEprofile_TFLAGS)"; \
47344 $(NORMAL_TARGET_EXPORTS) \
47345 \
47346 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47347 \
911e63d0
JR
47348 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47349 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47350 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47351 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47352 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47353 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47354 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47355 $(EXTRA_TARGET_FLAGS) \
05a13254 47356 TFLAGS="$(STAGEprofile_TFLAGS)" \
911e63d0
JR
47357 $(TARGET-stageprofile-target-libgomp)
47358
47359maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
47360clean-stageprofile: clean-stageprofile-target-libgomp
47361clean-stageprofile-target-libgomp:
47362 @if [ $(current_stage) = stageprofile ]; then \
47363 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47364 else \
47365 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
47366 $(MAKE) stageprofile-start; \
47367 fi; \
47368 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47369 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47370@endif target-libgomp-bootstrap
47371
47372
47373.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
47374.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
47375maybe-all-stagefeedback-target-libgomp:
47376maybe-clean-stagefeedback-target-libgomp:
47377@if target-libgomp-bootstrap
47378maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
47379all-stagefeedback: all-stagefeedback-target-libgomp
47380TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
47381all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
47382 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47383 @r=`${PWD_COMMAND}`; export r; \
47384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47385 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
47386 $(NORMAL_TARGET_EXPORTS) \
47387 \
47388 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47389 \
911e63d0
JR
47390 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47391 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47392 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47393 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47394 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47395 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47396 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47397 $(EXTRA_TARGET_FLAGS) \
05a13254 47398 TFLAGS="$(STAGEfeedback_TFLAGS)" \
911e63d0
JR
47399 $(TARGET-stagefeedback-target-libgomp)
47400
47401maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
47402clean-stagefeedback: clean-stagefeedback-target-libgomp
47403clean-stagefeedback-target-libgomp:
47404 @if [ $(current_stage) = stagefeedback ]; then \
47405 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47406 else \
47407 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
47408 $(MAKE) stagefeedback-start; \
47409 fi; \
47410 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47411 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47412@endif target-libgomp-bootstrap
47413
47414
47415
47416
b3ded179
PB
47417
47418
47419.PHONY: check-target-libgomp maybe-check-target-libgomp
47420maybe-check-target-libgomp:
47421@if target-libgomp
47422maybe-check-target-libgomp: check-target-libgomp
47423
47424check-target-libgomp:
47425 @: $(MAKE); $(unstage)
47426 @r=`${PWD_COMMAND}`; export r; \
47427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47428 $(NORMAL_TARGET_EXPORTS) \
47429 (cd $(TARGET_SUBDIR)/libgomp && \
47430 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47431
47432@endif target-libgomp
47433
47434.PHONY: install-target-libgomp maybe-install-target-libgomp
47435maybe-install-target-libgomp:
47436@if target-libgomp
47437maybe-install-target-libgomp: install-target-libgomp
47438
47439install-target-libgomp: installdirs
47440 @: $(MAKE); $(unstage)
47441 @r=`${PWD_COMMAND}`; export r; \
47442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47443 $(NORMAL_TARGET_EXPORTS) \
47444 (cd $(TARGET_SUBDIR)/libgomp && \
47445 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47446
47447@endif target-libgomp
47448
9b980aa1
RW
47449.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
47450maybe-install-strip-target-libgomp:
47451@if target-libgomp
47452maybe-install-strip-target-libgomp: install-strip-target-libgomp
47453
47454install-strip-target-libgomp: installdirs
47455 @: $(MAKE); $(unstage)
47456 @r=`${PWD_COMMAND}`; export r; \
47457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47458 $(NORMAL_TARGET_EXPORTS) \
47459 (cd $(TARGET_SUBDIR)/libgomp && \
47460 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47461
47462@endif target-libgomp
47463
56a8fe78 47464# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
47465
47466.PHONY: maybe-info-target-libgomp info-target-libgomp
47467maybe-info-target-libgomp:
47468@if target-libgomp
47469maybe-info-target-libgomp: info-target-libgomp
47470
47471info-target-libgomp: \
47472 configure-target-libgomp
47473 @: $(MAKE); $(unstage)
22121df0 47474 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47475 r=`${PWD_COMMAND}`; export r; \
47476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47477 $(NORMAL_TARGET_EXPORTS) \
22121df0 47478 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47479 for flag in $(EXTRA_TARGET_FLAGS); do \
47480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47481 done; \
47482 (cd $(TARGET_SUBDIR)/libgomp && \
47483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47485 "RANLIB=$${RANLIB}" \
0c24b341 47486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47487 info) \
47488 || exit 1
47489
47490@endif target-libgomp
47491
47492.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
47493maybe-dvi-target-libgomp:
47494@if target-libgomp
47495maybe-dvi-target-libgomp: dvi-target-libgomp
47496
47497dvi-target-libgomp: \
47498 configure-target-libgomp
47499 @: $(MAKE); $(unstage)
22121df0 47500 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47501 r=`${PWD_COMMAND}`; export r; \
47502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47503 $(NORMAL_TARGET_EXPORTS) \
22121df0 47504 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47505 for flag in $(EXTRA_TARGET_FLAGS); do \
47506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47507 done; \
47508 (cd $(TARGET_SUBDIR)/libgomp && \
47509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47511 "RANLIB=$${RANLIB}" \
0c24b341 47512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47513 dvi) \
47514 || exit 1
47515
47516@endif target-libgomp
47517
56a8fe78
DD
47518.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
47519maybe-pdf-target-libgomp:
47520@if target-libgomp
47521maybe-pdf-target-libgomp: pdf-target-libgomp
47522
47523pdf-target-libgomp: \
47524 configure-target-libgomp
47525 @: $(MAKE); $(unstage)
22121df0 47526 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
47527 r=`${PWD_COMMAND}`; export r; \
47528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47529 $(NORMAL_TARGET_EXPORTS) \
22121df0 47530 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
47531 for flag in $(EXTRA_TARGET_FLAGS); do \
47532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47533 done; \
47534 (cd $(TARGET_SUBDIR)/libgomp && \
47535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47537 "RANLIB=$${RANLIB}" \
0c24b341 47538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
47539 pdf) \
47540 || exit 1
47541
47542@endif target-libgomp
47543
b3ded179
PB
47544.PHONY: maybe-html-target-libgomp html-target-libgomp
47545maybe-html-target-libgomp:
47546@if target-libgomp
47547maybe-html-target-libgomp: html-target-libgomp
47548
47549html-target-libgomp: \
47550 configure-target-libgomp
47551 @: $(MAKE); $(unstage)
22121df0 47552 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47553 r=`${PWD_COMMAND}`; export r; \
47554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47555 $(NORMAL_TARGET_EXPORTS) \
22121df0 47556 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47557 for flag in $(EXTRA_TARGET_FLAGS); do \
47558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47559 done; \
47560 (cd $(TARGET_SUBDIR)/libgomp && \
47561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47563 "RANLIB=$${RANLIB}" \
0c24b341 47564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47565 html) \
47566 || exit 1
47567
47568@endif target-libgomp
47569
47570.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
47571maybe-TAGS-target-libgomp:
47572@if target-libgomp
47573maybe-TAGS-target-libgomp: TAGS-target-libgomp
47574
47575TAGS-target-libgomp: \
47576 configure-target-libgomp
47577 @: $(MAKE); $(unstage)
22121df0 47578 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47579 r=`${PWD_COMMAND}`; export r; \
47580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47581 $(NORMAL_TARGET_EXPORTS) \
22121df0 47582 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47583 for flag in $(EXTRA_TARGET_FLAGS); do \
47584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47585 done; \
47586 (cd $(TARGET_SUBDIR)/libgomp && \
47587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47589 "RANLIB=$${RANLIB}" \
0c24b341 47590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47591 TAGS) \
47592 || exit 1
47593
47594@endif target-libgomp
47595
47596.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
47597maybe-install-info-target-libgomp:
47598@if target-libgomp
47599maybe-install-info-target-libgomp: install-info-target-libgomp
47600
47601install-info-target-libgomp: \
47602 configure-target-libgomp \
47603 info-target-libgomp
47604 @: $(MAKE); $(unstage)
22121df0 47605 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47606 r=`${PWD_COMMAND}`; export r; \
47607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47608 $(NORMAL_TARGET_EXPORTS) \
22121df0 47609 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47610 for flag in $(EXTRA_TARGET_FLAGS); do \
47611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47612 done; \
47613 (cd $(TARGET_SUBDIR)/libgomp && \
47614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47616 "RANLIB=$${RANLIB}" \
0c24b341 47617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47618 install-info) \
47619 || exit 1
47620
47621@endif target-libgomp
47622
a3ca38d2
DD
47623.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
47624maybe-install-pdf-target-libgomp:
47625@if target-libgomp
47626maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
47627
47628install-pdf-target-libgomp: \
47629 configure-target-libgomp \
47630 pdf-target-libgomp
47631 @: $(MAKE); $(unstage)
22121df0 47632 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
47633 r=`${PWD_COMMAND}`; export r; \
47634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47635 $(NORMAL_TARGET_EXPORTS) \
22121df0 47636 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
47637 for flag in $(EXTRA_TARGET_FLAGS); do \
47638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47639 done; \
47640 (cd $(TARGET_SUBDIR)/libgomp && \
47641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47643 "RANLIB=$${RANLIB}" \
0c24b341 47644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
47645 install-pdf) \
47646 || exit 1
47647
47648@endif target-libgomp
47649
108a6f8e
CD
47650.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
47651maybe-install-html-target-libgomp:
47652@if target-libgomp
47653maybe-install-html-target-libgomp: install-html-target-libgomp
47654
47655install-html-target-libgomp: \
47656 configure-target-libgomp \
47657 html-target-libgomp
47658 @: $(MAKE); $(unstage)
22121df0 47659 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
47660 r=`${PWD_COMMAND}`; export r; \
47661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47662 $(NORMAL_TARGET_EXPORTS) \
22121df0 47663 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
47664 for flag in $(EXTRA_TARGET_FLAGS); do \
47665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47666 done; \
47667 (cd $(TARGET_SUBDIR)/libgomp && \
47668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47670 "RANLIB=$${RANLIB}" \
0c24b341 47671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
47672 install-html) \
47673 || exit 1
47674
47675@endif target-libgomp
47676
b3ded179
PB
47677.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
47678maybe-installcheck-target-libgomp:
47679@if target-libgomp
47680maybe-installcheck-target-libgomp: installcheck-target-libgomp
47681
47682installcheck-target-libgomp: \
47683 configure-target-libgomp
47684 @: $(MAKE); $(unstage)
22121df0 47685 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47686 r=`${PWD_COMMAND}`; export r; \
47687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47688 $(NORMAL_TARGET_EXPORTS) \
22121df0 47689 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47690 for flag in $(EXTRA_TARGET_FLAGS); do \
47691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47692 done; \
47693 (cd $(TARGET_SUBDIR)/libgomp && \
47694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47696 "RANLIB=$${RANLIB}" \
0c24b341 47697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47698 installcheck) \
47699 || exit 1
47700
47701@endif target-libgomp
47702
47703.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
47704maybe-mostlyclean-target-libgomp:
47705@if target-libgomp
47706maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
47707
47708mostlyclean-target-libgomp:
47709 @: $(MAKE); $(unstage)
22121df0 47710 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47711 r=`${PWD_COMMAND}`; export r; \
47712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47713 $(NORMAL_TARGET_EXPORTS) \
22121df0 47714 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47715 for flag in $(EXTRA_TARGET_FLAGS); do \
47716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47717 done; \
47718 (cd $(TARGET_SUBDIR)/libgomp && \
47719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47721 "RANLIB=$${RANLIB}" \
0c24b341 47722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47723 mostlyclean) \
47724 || exit 1
47725
47726@endif target-libgomp
47727
47728.PHONY: maybe-clean-target-libgomp clean-target-libgomp
47729maybe-clean-target-libgomp:
47730@if target-libgomp
47731maybe-clean-target-libgomp: clean-target-libgomp
47732
47733clean-target-libgomp:
47734 @: $(MAKE); $(unstage)
22121df0 47735 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47736 r=`${PWD_COMMAND}`; export r; \
47737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47738 $(NORMAL_TARGET_EXPORTS) \
22121df0 47739 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47740 for flag in $(EXTRA_TARGET_FLAGS); do \
47741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47742 done; \
47743 (cd $(TARGET_SUBDIR)/libgomp && \
47744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47746 "RANLIB=$${RANLIB}" \
0c24b341 47747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47748 clean) \
47749 || exit 1
47750
47751@endif target-libgomp
47752
47753.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
47754maybe-distclean-target-libgomp:
47755@if target-libgomp
47756maybe-distclean-target-libgomp: distclean-target-libgomp
47757
47758distclean-target-libgomp:
47759 @: $(MAKE); $(unstage)
22121df0 47760 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47761 r=`${PWD_COMMAND}`; export r; \
47762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47763 $(NORMAL_TARGET_EXPORTS) \
22121df0 47764 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47765 for flag in $(EXTRA_TARGET_FLAGS); do \
47766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47767 done; \
47768 (cd $(TARGET_SUBDIR)/libgomp && \
47769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47771 "RANLIB=$${RANLIB}" \
0c24b341 47772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47773 distclean) \
47774 || exit 1
47775
47776@endif target-libgomp
47777
47778.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
47779maybe-maintainer-clean-target-libgomp:
47780@if target-libgomp
47781maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
47782
47783maintainer-clean-target-libgomp:
47784 @: $(MAKE); $(unstage)
22121df0 47785 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47786 r=`${PWD_COMMAND}`; export r; \
47787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47788 $(NORMAL_TARGET_EXPORTS) \
22121df0 47789 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47790 for flag in $(EXTRA_TARGET_FLAGS); do \
47791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47792 done; \
47793 (cd $(TARGET_SUBDIR)/libgomp && \
47794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47796 "RANLIB=$${RANLIB}" \
0c24b341 47797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47798 maintainer-clean) \
47799 || exit 1
47800
47801@endif target-libgomp
47802
47803
47804
7ec59b9e
L
47805
47806
47807.PHONY: configure-target-libitm maybe-configure-target-libitm
47808maybe-configure-target-libitm:
47809@if gcc-bootstrap
47810configure-target-libitm: stage_current
47811@endif gcc-bootstrap
47812@if target-libitm
47813maybe-configure-target-libitm: configure-target-libitm
47814configure-target-libitm:
47815 @: $(MAKE); $(unstage)
47816 @r=`${PWD_COMMAND}`; export r; \
47817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47818 echo "Checking multilib configuration for libitm..."; \
22121df0
L
47819 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
47820 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47821 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
47822 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
47823 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
47824 else \
47825 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
47826 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
47827 fi; \
47828 else \
47829 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
47830 fi; \
47831 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 47832 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
47833 $(NORMAL_TARGET_EXPORTS) \
47834 echo Configuring in $(TARGET_SUBDIR)/libitm; \
47835 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
47836 case $(srcdir) in \
47837 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47838 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
47839 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47840 esac; \
1b6c0831 47841 module_srcdir=libitm; \
7ec59b9e 47842 rm -f no-such-file || : ; \
1b6c0831
L
47843 CONFIG_SITE=no-such-file $(SHELL) \
47844 $$s/$$module_srcdir/configure \
47845 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47846 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47847 --target=${target_alias} \
7ec59b9e
L
47848 || exit 1
47849@endif target-libitm
47850
47851
47852
47853
47854
47855.PHONY: all-target-libitm maybe-all-target-libitm
47856maybe-all-target-libitm:
47857@if gcc-bootstrap
47858all-target-libitm: stage_current
47859@endif gcc-bootstrap
47860@if target-libitm
47861TARGET-target-libitm=all
47862maybe-all-target-libitm: all-target-libitm
47863all-target-libitm: configure-target-libitm
47864 @: $(MAKE); $(unstage)
47865 @r=`${PWD_COMMAND}`; export r; \
47866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47867 $(NORMAL_TARGET_EXPORTS) \
47868 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 47869 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47870 $(TARGET-target-libitm))
47871@endif target-libitm
47872
47873
47874
47875
47876
47877.PHONY: check-target-libitm maybe-check-target-libitm
47878maybe-check-target-libitm:
47879@if target-libitm
47880maybe-check-target-libitm: check-target-libitm
47881
47882check-target-libitm:
47883 @: $(MAKE); $(unstage)
47884 @r=`${PWD_COMMAND}`; export r; \
47885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47886 $(NORMAL_TARGET_EXPORTS) \
47887 (cd $(TARGET_SUBDIR)/libitm && \
47888 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47889
47890@endif target-libitm
47891
47892.PHONY: install-target-libitm maybe-install-target-libitm
47893maybe-install-target-libitm:
47894@if target-libitm
47895maybe-install-target-libitm: install-target-libitm
47896
47897install-target-libitm: installdirs
47898 @: $(MAKE); $(unstage)
47899 @r=`${PWD_COMMAND}`; export r; \
47900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47901 $(NORMAL_TARGET_EXPORTS) \
47902 (cd $(TARGET_SUBDIR)/libitm && \
47903 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47904
47905@endif target-libitm
47906
47907.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
47908maybe-install-strip-target-libitm:
47909@if target-libitm
47910maybe-install-strip-target-libitm: install-strip-target-libitm
47911
47912install-strip-target-libitm: installdirs
47913 @: $(MAKE); $(unstage)
47914 @r=`${PWD_COMMAND}`; export r; \
47915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47916 $(NORMAL_TARGET_EXPORTS) \
47917 (cd $(TARGET_SUBDIR)/libitm && \
47918 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47919
47920@endif target-libitm
47921
47922# Other targets (info, dvi, pdf, etc.)
47923
47924.PHONY: maybe-info-target-libitm info-target-libitm
47925maybe-info-target-libitm:
47926@if target-libitm
47927maybe-info-target-libitm: info-target-libitm
47928
47929info-target-libitm: \
47930 configure-target-libitm
47931 @: $(MAKE); $(unstage)
22121df0 47932 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47933 r=`${PWD_COMMAND}`; export r; \
47934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47935 $(NORMAL_TARGET_EXPORTS) \
22121df0 47936 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47937 for flag in $(EXTRA_TARGET_FLAGS); do \
47938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47939 done; \
47940 (cd $(TARGET_SUBDIR)/libitm && \
47941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47943 "RANLIB=$${RANLIB}" \
47944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47945 info) \
47946 || exit 1
47947
47948@endif target-libitm
47949
47950.PHONY: maybe-dvi-target-libitm dvi-target-libitm
47951maybe-dvi-target-libitm:
47952@if target-libitm
47953maybe-dvi-target-libitm: dvi-target-libitm
47954
47955dvi-target-libitm: \
47956 configure-target-libitm
47957 @: $(MAKE); $(unstage)
22121df0 47958 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47959 r=`${PWD_COMMAND}`; export r; \
47960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47961 $(NORMAL_TARGET_EXPORTS) \
22121df0 47962 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47963 for flag in $(EXTRA_TARGET_FLAGS); do \
47964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47965 done; \
47966 (cd $(TARGET_SUBDIR)/libitm && \
47967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47969 "RANLIB=$${RANLIB}" \
47970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47971 dvi) \
47972 || exit 1
47973
47974@endif target-libitm
47975
47976.PHONY: maybe-pdf-target-libitm pdf-target-libitm
47977maybe-pdf-target-libitm:
47978@if target-libitm
47979maybe-pdf-target-libitm: pdf-target-libitm
47980
47981pdf-target-libitm: \
47982 configure-target-libitm
47983 @: $(MAKE); $(unstage)
22121df0 47984 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47985 r=`${PWD_COMMAND}`; export r; \
47986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47987 $(NORMAL_TARGET_EXPORTS) \
22121df0 47988 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47989 for flag in $(EXTRA_TARGET_FLAGS); do \
47990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47991 done; \
47992 (cd $(TARGET_SUBDIR)/libitm && \
47993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47995 "RANLIB=$${RANLIB}" \
47996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47997 pdf) \
47998 || exit 1
47999
48000@endif target-libitm
48001
48002.PHONY: maybe-html-target-libitm html-target-libitm
48003maybe-html-target-libitm:
48004@if target-libitm
48005maybe-html-target-libitm: html-target-libitm
48006
48007html-target-libitm: \
48008 configure-target-libitm
48009 @: $(MAKE); $(unstage)
22121df0 48010 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48011 r=`${PWD_COMMAND}`; export r; \
48012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48013 $(NORMAL_TARGET_EXPORTS) \
22121df0 48014 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48015 for flag in $(EXTRA_TARGET_FLAGS); do \
48016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48017 done; \
48018 (cd $(TARGET_SUBDIR)/libitm && \
48019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48021 "RANLIB=$${RANLIB}" \
48022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48023 html) \
48024 || exit 1
48025
48026@endif target-libitm
48027
48028.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
48029maybe-TAGS-target-libitm:
48030@if target-libitm
48031maybe-TAGS-target-libitm: TAGS-target-libitm
48032
48033TAGS-target-libitm: \
48034 configure-target-libitm
48035 @: $(MAKE); $(unstage)
22121df0 48036 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48037 r=`${PWD_COMMAND}`; export r; \
48038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48039 $(NORMAL_TARGET_EXPORTS) \
22121df0 48040 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48041 for flag in $(EXTRA_TARGET_FLAGS); do \
48042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48043 done; \
48044 (cd $(TARGET_SUBDIR)/libitm && \
48045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48047 "RANLIB=$${RANLIB}" \
48048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48049 TAGS) \
48050 || exit 1
48051
48052@endif target-libitm
48053
48054.PHONY: maybe-install-info-target-libitm install-info-target-libitm
48055maybe-install-info-target-libitm:
48056@if target-libitm
48057maybe-install-info-target-libitm: install-info-target-libitm
48058
48059install-info-target-libitm: \
48060 configure-target-libitm \
48061 info-target-libitm
48062 @: $(MAKE); $(unstage)
22121df0 48063 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48064 r=`${PWD_COMMAND}`; export r; \
48065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48066 $(NORMAL_TARGET_EXPORTS) \
22121df0 48067 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48068 for flag in $(EXTRA_TARGET_FLAGS); do \
48069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48070 done; \
48071 (cd $(TARGET_SUBDIR)/libitm && \
48072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48074 "RANLIB=$${RANLIB}" \
48075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48076 install-info) \
48077 || exit 1
48078
48079@endif target-libitm
48080
48081.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
48082maybe-install-pdf-target-libitm:
48083@if target-libitm
48084maybe-install-pdf-target-libitm: install-pdf-target-libitm
48085
48086install-pdf-target-libitm: \
48087 configure-target-libitm \
48088 pdf-target-libitm
48089 @: $(MAKE); $(unstage)
22121df0 48090 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48091 r=`${PWD_COMMAND}`; export r; \
48092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48093 $(NORMAL_TARGET_EXPORTS) \
22121df0 48094 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48095 for flag in $(EXTRA_TARGET_FLAGS); do \
48096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48097 done; \
48098 (cd $(TARGET_SUBDIR)/libitm && \
48099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48101 "RANLIB=$${RANLIB}" \
48102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48103 install-pdf) \
48104 || exit 1
48105
48106@endif target-libitm
48107
48108.PHONY: maybe-install-html-target-libitm install-html-target-libitm
48109maybe-install-html-target-libitm:
48110@if target-libitm
48111maybe-install-html-target-libitm: install-html-target-libitm
48112
48113install-html-target-libitm: \
48114 configure-target-libitm \
48115 html-target-libitm
48116 @: $(MAKE); $(unstage)
22121df0 48117 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48118 r=`${PWD_COMMAND}`; export r; \
48119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48120 $(NORMAL_TARGET_EXPORTS) \
22121df0 48121 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48122 for flag in $(EXTRA_TARGET_FLAGS); do \
48123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48124 done; \
48125 (cd $(TARGET_SUBDIR)/libitm && \
48126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48128 "RANLIB=$${RANLIB}" \
48129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48130 install-html) \
48131 || exit 1
48132
48133@endif target-libitm
48134
48135.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
48136maybe-installcheck-target-libitm:
48137@if target-libitm
48138maybe-installcheck-target-libitm: installcheck-target-libitm
48139
48140installcheck-target-libitm: \
48141 configure-target-libitm
48142 @: $(MAKE); $(unstage)
22121df0 48143 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48144 r=`${PWD_COMMAND}`; export r; \
48145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48146 $(NORMAL_TARGET_EXPORTS) \
22121df0 48147 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48148 for flag in $(EXTRA_TARGET_FLAGS); do \
48149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48150 done; \
48151 (cd $(TARGET_SUBDIR)/libitm && \
48152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48154 "RANLIB=$${RANLIB}" \
48155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48156 installcheck) \
48157 || exit 1
48158
48159@endif target-libitm
48160
48161.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
48162maybe-mostlyclean-target-libitm:
48163@if target-libitm
48164maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
48165
48166mostlyclean-target-libitm:
48167 @: $(MAKE); $(unstage)
22121df0 48168 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48169 r=`${PWD_COMMAND}`; export r; \
48170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48171 $(NORMAL_TARGET_EXPORTS) \
22121df0 48172 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48173 for flag in $(EXTRA_TARGET_FLAGS); do \
48174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48175 done; \
48176 (cd $(TARGET_SUBDIR)/libitm && \
48177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48179 "RANLIB=$${RANLIB}" \
48180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48181 mostlyclean) \
48182 || exit 1
48183
48184@endif target-libitm
48185
48186.PHONY: maybe-clean-target-libitm clean-target-libitm
48187maybe-clean-target-libitm:
48188@if target-libitm
48189maybe-clean-target-libitm: clean-target-libitm
48190
48191clean-target-libitm:
48192 @: $(MAKE); $(unstage)
22121df0 48193 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48194 r=`${PWD_COMMAND}`; export r; \
48195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48196 $(NORMAL_TARGET_EXPORTS) \
22121df0 48197 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48198 for flag in $(EXTRA_TARGET_FLAGS); do \
48199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48200 done; \
48201 (cd $(TARGET_SUBDIR)/libitm && \
48202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48204 "RANLIB=$${RANLIB}" \
48205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48206 clean) \
48207 || exit 1
48208
48209@endif target-libitm
48210
48211.PHONY: maybe-distclean-target-libitm distclean-target-libitm
48212maybe-distclean-target-libitm:
48213@if target-libitm
48214maybe-distclean-target-libitm: distclean-target-libitm
48215
48216distclean-target-libitm:
48217 @: $(MAKE); $(unstage)
22121df0 48218 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48219 r=`${PWD_COMMAND}`; export r; \
48220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48221 $(NORMAL_TARGET_EXPORTS) \
22121df0 48222 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48223 for flag in $(EXTRA_TARGET_FLAGS); do \
48224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48225 done; \
48226 (cd $(TARGET_SUBDIR)/libitm && \
48227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48229 "RANLIB=$${RANLIB}" \
48230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48231 distclean) \
48232 || exit 1
48233
48234@endif target-libitm
48235
48236.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
48237maybe-maintainer-clean-target-libitm:
48238@if target-libitm
48239maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
48240
48241maintainer-clean-target-libitm:
48242 @: $(MAKE); $(unstage)
22121df0 48243 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48244 r=`${PWD_COMMAND}`; export r; \
48245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48246 $(NORMAL_TARGET_EXPORTS) \
22121df0 48247 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48248 for flag in $(EXTRA_TARGET_FLAGS); do \
48249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48250 done; \
48251 (cd $(TARGET_SUBDIR)/libitm && \
48252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48254 "RANLIB=$${RANLIB}" \
48255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48256 maintainer-clean) \
48257 || exit 1
48258
48259@endif target-libitm
48260
48261
48262
48263
48264
48265.PHONY: configure-target-libatomic maybe-configure-target-libatomic
48266maybe-configure-target-libatomic:
48267@if gcc-bootstrap
48268configure-target-libatomic: stage_current
48269@endif gcc-bootstrap
48270@if target-libatomic
48271maybe-configure-target-libatomic: configure-target-libatomic
48272configure-target-libatomic:
48273 @: $(MAKE); $(unstage)
48274 @r=`${PWD_COMMAND}`; export r; \
48275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48276 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
48277 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
48278 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
48279 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
48280 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
48281 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
48282 else \
48283 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
48284 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
48285 fi; \
48286 else \
48287 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
48288 fi; \
48289 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 48290 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
48291 $(NORMAL_TARGET_EXPORTS) \
48292 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
48293 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
48294 case $(srcdir) in \
48295 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48296 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
48297 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
48298 esac; \
1b6c0831 48299 module_srcdir=libatomic; \
7ec59b9e 48300 rm -f no-such-file || : ; \
1b6c0831
L
48301 CONFIG_SITE=no-such-file $(SHELL) \
48302 $$s/$$module_srcdir/configure \
48303 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 48304 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 48305 --target=${target_alias} \
7ec59b9e
L
48306 || exit 1
48307@endif target-libatomic
48308
48309
48310
48311
48312
48313.PHONY: all-target-libatomic maybe-all-target-libatomic
48314maybe-all-target-libatomic:
48315@if gcc-bootstrap
48316all-target-libatomic: stage_current
48317@endif gcc-bootstrap
48318@if target-libatomic
48319TARGET-target-libatomic=all
48320maybe-all-target-libatomic: all-target-libatomic
48321all-target-libatomic: configure-target-libatomic
48322 @: $(MAKE); $(unstage)
48323 @r=`${PWD_COMMAND}`; export r; \
48324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48325 $(NORMAL_TARGET_EXPORTS) \
48326 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 48327 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
48328 $(TARGET-target-libatomic))
48329@endif target-libatomic
48330
48331
48332
48333
48334
48335.PHONY: check-target-libatomic maybe-check-target-libatomic
48336maybe-check-target-libatomic:
48337@if target-libatomic
48338maybe-check-target-libatomic: check-target-libatomic
48339
48340check-target-libatomic:
48341 @: $(MAKE); $(unstage)
48342 @r=`${PWD_COMMAND}`; export r; \
48343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48344 $(NORMAL_TARGET_EXPORTS) \
48345 (cd $(TARGET_SUBDIR)/libatomic && \
48346 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
48347
48348@endif target-libatomic
48349
48350.PHONY: install-target-libatomic maybe-install-target-libatomic
48351maybe-install-target-libatomic:
48352@if target-libatomic
48353maybe-install-target-libatomic: install-target-libatomic
48354
48355install-target-libatomic: installdirs
48356 @: $(MAKE); $(unstage)
48357 @r=`${PWD_COMMAND}`; export r; \
48358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48359 $(NORMAL_TARGET_EXPORTS) \
48360 (cd $(TARGET_SUBDIR)/libatomic && \
48361 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
48362
48363@endif target-libatomic
48364
48365.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
48366maybe-install-strip-target-libatomic:
48367@if target-libatomic
48368maybe-install-strip-target-libatomic: install-strip-target-libatomic
48369
48370install-strip-target-libatomic: installdirs
48371 @: $(MAKE); $(unstage)
48372 @r=`${PWD_COMMAND}`; export r; \
48373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48374 $(NORMAL_TARGET_EXPORTS) \
48375 (cd $(TARGET_SUBDIR)/libatomic && \
48376 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
48377
48378@endif target-libatomic
48379
48380# Other targets (info, dvi, pdf, etc.)
48381
48382.PHONY: maybe-info-target-libatomic info-target-libatomic
48383maybe-info-target-libatomic:
48384@if target-libatomic
48385maybe-info-target-libatomic: info-target-libatomic
48386
48387info-target-libatomic: \
48388 configure-target-libatomic
48389 @: $(MAKE); $(unstage)
22121df0 48390 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48391 r=`${PWD_COMMAND}`; export r; \
48392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48393 $(NORMAL_TARGET_EXPORTS) \
22121df0 48394 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48395 for flag in $(EXTRA_TARGET_FLAGS); do \
48396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48397 done; \
48398 (cd $(TARGET_SUBDIR)/libatomic && \
48399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48401 "RANLIB=$${RANLIB}" \
48402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48403 info) \
48404 || exit 1
48405
48406@endif target-libatomic
48407
48408.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
48409maybe-dvi-target-libatomic:
48410@if target-libatomic
48411maybe-dvi-target-libatomic: dvi-target-libatomic
48412
48413dvi-target-libatomic: \
48414 configure-target-libatomic
48415 @: $(MAKE); $(unstage)
22121df0 48416 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48417 r=`${PWD_COMMAND}`; export r; \
48418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48419 $(NORMAL_TARGET_EXPORTS) \
22121df0 48420 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48421 for flag in $(EXTRA_TARGET_FLAGS); do \
48422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48423 done; \
48424 (cd $(TARGET_SUBDIR)/libatomic && \
48425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48427 "RANLIB=$${RANLIB}" \
48428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48429 dvi) \
48430 || exit 1
48431
48432@endif target-libatomic
48433
48434.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
48435maybe-pdf-target-libatomic:
48436@if target-libatomic
48437maybe-pdf-target-libatomic: pdf-target-libatomic
48438
48439pdf-target-libatomic: \
48440 configure-target-libatomic
48441 @: $(MAKE); $(unstage)
22121df0 48442 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48443 r=`${PWD_COMMAND}`; export r; \
48444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48445 $(NORMAL_TARGET_EXPORTS) \
22121df0 48446 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48447 for flag in $(EXTRA_TARGET_FLAGS); do \
48448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48449 done; \
48450 (cd $(TARGET_SUBDIR)/libatomic && \
48451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48453 "RANLIB=$${RANLIB}" \
48454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48455 pdf) \
48456 || exit 1
48457
48458@endif target-libatomic
48459
48460.PHONY: maybe-html-target-libatomic html-target-libatomic
48461maybe-html-target-libatomic:
48462@if target-libatomic
48463maybe-html-target-libatomic: html-target-libatomic
48464
48465html-target-libatomic: \
48466 configure-target-libatomic
48467 @: $(MAKE); $(unstage)
22121df0 48468 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48469 r=`${PWD_COMMAND}`; export r; \
48470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48471 $(NORMAL_TARGET_EXPORTS) \
22121df0 48472 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48473 for flag in $(EXTRA_TARGET_FLAGS); do \
48474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48475 done; \
48476 (cd $(TARGET_SUBDIR)/libatomic && \
48477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48479 "RANLIB=$${RANLIB}" \
48480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48481 html) \
48482 || exit 1
48483
48484@endif target-libatomic
48485
48486.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
48487maybe-TAGS-target-libatomic:
48488@if target-libatomic
48489maybe-TAGS-target-libatomic: TAGS-target-libatomic
48490
48491TAGS-target-libatomic: \
48492 configure-target-libatomic
48493 @: $(MAKE); $(unstage)
22121df0 48494 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48495 r=`${PWD_COMMAND}`; export r; \
48496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48497 $(NORMAL_TARGET_EXPORTS) \
22121df0 48498 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48499 for flag in $(EXTRA_TARGET_FLAGS); do \
48500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48501 done; \
48502 (cd $(TARGET_SUBDIR)/libatomic && \
48503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48505 "RANLIB=$${RANLIB}" \
48506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48507 TAGS) \
48508 || exit 1
48509
48510@endif target-libatomic
48511
48512.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
48513maybe-install-info-target-libatomic:
48514@if target-libatomic
48515maybe-install-info-target-libatomic: install-info-target-libatomic
48516
48517install-info-target-libatomic: \
48518 configure-target-libatomic \
48519 info-target-libatomic
48520 @: $(MAKE); $(unstage)
22121df0 48521 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48522 r=`${PWD_COMMAND}`; export r; \
48523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48524 $(NORMAL_TARGET_EXPORTS) \
22121df0 48525 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48526 for flag in $(EXTRA_TARGET_FLAGS); do \
48527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48528 done; \
48529 (cd $(TARGET_SUBDIR)/libatomic && \
48530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48532 "RANLIB=$${RANLIB}" \
48533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48534 install-info) \
48535 || exit 1
48536
48537@endif target-libatomic
48538
48539.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
48540maybe-install-pdf-target-libatomic:
48541@if target-libatomic
48542maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
48543
48544install-pdf-target-libatomic: \
48545 configure-target-libatomic \
48546 pdf-target-libatomic
48547 @: $(MAKE); $(unstage)
22121df0 48548 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48549 r=`${PWD_COMMAND}`; export r; \
48550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48551 $(NORMAL_TARGET_EXPORTS) \
22121df0 48552 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48553 for flag in $(EXTRA_TARGET_FLAGS); do \
48554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48555 done; \
48556 (cd $(TARGET_SUBDIR)/libatomic && \
48557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48559 "RANLIB=$${RANLIB}" \
48560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48561 install-pdf) \
48562 || exit 1
48563
48564@endif target-libatomic
48565
48566.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
48567maybe-install-html-target-libatomic:
48568@if target-libatomic
48569maybe-install-html-target-libatomic: install-html-target-libatomic
48570
48571install-html-target-libatomic: \
48572 configure-target-libatomic \
48573 html-target-libatomic
48574 @: $(MAKE); $(unstage)
22121df0 48575 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48576 r=`${PWD_COMMAND}`; export r; \
48577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48578 $(NORMAL_TARGET_EXPORTS) \
22121df0 48579 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48580 for flag in $(EXTRA_TARGET_FLAGS); do \
48581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48582 done; \
48583 (cd $(TARGET_SUBDIR)/libatomic && \
48584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48586 "RANLIB=$${RANLIB}" \
48587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48588 install-html) \
48589 || exit 1
48590
48591@endif target-libatomic
48592
48593.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
48594maybe-installcheck-target-libatomic:
48595@if target-libatomic
48596maybe-installcheck-target-libatomic: installcheck-target-libatomic
48597
48598installcheck-target-libatomic: \
48599 configure-target-libatomic
48600 @: $(MAKE); $(unstage)
22121df0 48601 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48602 r=`${PWD_COMMAND}`; export r; \
48603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48604 $(NORMAL_TARGET_EXPORTS) \
22121df0 48605 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48606 for flag in $(EXTRA_TARGET_FLAGS); do \
48607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48608 done; \
48609 (cd $(TARGET_SUBDIR)/libatomic && \
48610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48612 "RANLIB=$${RANLIB}" \
48613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48614 installcheck) \
48615 || exit 1
48616
48617@endif target-libatomic
48618
48619.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
48620maybe-mostlyclean-target-libatomic:
48621@if target-libatomic
48622maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
48623
48624mostlyclean-target-libatomic:
48625 @: $(MAKE); $(unstage)
22121df0 48626 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48627 r=`${PWD_COMMAND}`; export r; \
48628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48629 $(NORMAL_TARGET_EXPORTS) \
22121df0 48630 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48631 for flag in $(EXTRA_TARGET_FLAGS); do \
48632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48633 done; \
48634 (cd $(TARGET_SUBDIR)/libatomic && \
48635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48637 "RANLIB=$${RANLIB}" \
48638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48639 mostlyclean) \
48640 || exit 1
48641
48642@endif target-libatomic
48643
48644.PHONY: maybe-clean-target-libatomic clean-target-libatomic
48645maybe-clean-target-libatomic:
48646@if target-libatomic
48647maybe-clean-target-libatomic: clean-target-libatomic
48648
48649clean-target-libatomic:
48650 @: $(MAKE); $(unstage)
22121df0 48651 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48652 r=`${PWD_COMMAND}`; export r; \
48653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48654 $(NORMAL_TARGET_EXPORTS) \
22121df0 48655 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48656 for flag in $(EXTRA_TARGET_FLAGS); do \
48657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48658 done; \
48659 (cd $(TARGET_SUBDIR)/libatomic && \
48660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48662 "RANLIB=$${RANLIB}" \
48663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48664 clean) \
48665 || exit 1
48666
48667@endif target-libatomic
48668
48669.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
48670maybe-distclean-target-libatomic:
48671@if target-libatomic
48672maybe-distclean-target-libatomic: distclean-target-libatomic
48673
48674distclean-target-libatomic:
48675 @: $(MAKE); $(unstage)
22121df0 48676 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48677 r=`${PWD_COMMAND}`; export r; \
48678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48679 $(NORMAL_TARGET_EXPORTS) \
22121df0 48680 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48681 for flag in $(EXTRA_TARGET_FLAGS); do \
48682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48683 done; \
48684 (cd $(TARGET_SUBDIR)/libatomic && \
48685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48687 "RANLIB=$${RANLIB}" \
48688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48689 distclean) \
48690 || exit 1
48691
48692@endif target-libatomic
48693
48694.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
48695maybe-maintainer-clean-target-libatomic:
48696@if target-libatomic
48697maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
48698
48699maintainer-clean-target-libatomic:
48700 @: $(MAKE); $(unstage)
22121df0 48701 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48702 r=`${PWD_COMMAND}`; export r; \
48703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48704 $(NORMAL_TARGET_EXPORTS) \
22121df0 48705 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48706 for flag in $(EXTRA_TARGET_FLAGS); do \
48707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48708 done; \
48709 (cd $(TARGET_SUBDIR)/libatomic && \
48710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48712 "RANLIB=$${RANLIB}" \
48713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48714 maintainer-clean) \
48715 || exit 1
48716
48717@endif target-libatomic
48718
48719
48720
7ec59b9e
L
48721@if target-libgomp
48722.PHONY: check-target-libgomp-c++
48723check-target-libgomp-c++:
48724 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
48725
e0541124
EB
48726.PHONY: check-target-libgomp-fortran
48727check-target-libgomp-fortran:
48728 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
48729
7ec59b9e
L
48730@endif target-libgomp
48731
48732@if target-libitm
48733.PHONY: check-target-libitm-c++
48734check-target-libitm-c++:
48735 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
48736
48737@endif target-libitm
48738
15723a45
NN
48739# ----------
48740# GCC module
48741# ----------
48742
319cab08 48743@if gcc-no-bootstrap
252b5132 48744.PHONY: cross
72b2455a 48745cross: all-build all-gas all-ld
b40e3958
L
48746 @r=`${PWD_COMMAND}`; export r; \
48747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 48748 $(HOST_EXPORTS) \
252b5132 48749 echo "Building the C and C++ compiler"; \
5cec67bf 48750 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 48751 @r=`${PWD_COMMAND}`; export r; \
22121df0 48752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 48753 echo "Building runtime libraries"; \
656fdd47 48754 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 48755@endif gcc-no-bootstrap
252b5132 48756
6bd3dfaa 48757@if gcc
c50523ce
L
48758
48759.PHONY: check-gcc-c check-c
48760check-gcc-c:
48761 r=`${PWD_COMMAND}`; export r; \
48762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48763 $(HOST_EXPORTS) \
48764 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
48765check-c: check-gcc-c
48766
48767.PHONY: check-gcc-c++ check-c++
7d695d07 48768check-gcc-c++:
c50523ce
L
48769 r=`${PWD_COMMAND}`; export r; \
48770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48771 $(HOST_EXPORTS) \
7ec59b9e 48772 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 48773check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
48774
48775.PHONY: check-gcc-fortran check-fortran
48776check-gcc-fortran:
48777 r=`${PWD_COMMAND}`; export r; \
48778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48779 $(HOST_EXPORTS) \
48780 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e0541124 48781check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran
c50523ce 48782
c50523ce
L
48783.PHONY: check-gcc-ada check-ada
48784check-gcc-ada:
48785 r=`${PWD_COMMAND}`; export r; \
48786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48787 $(HOST_EXPORTS) \
48788 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
48789check-ada: check-gcc-ada check-target-libada
48790
48791.PHONY: check-gcc-objc check-objc
48792check-gcc-objc:
48793 r=`${PWD_COMMAND}`; export r; \
48794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48795 $(HOST_EXPORTS) \
48796 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
48797check-objc: check-gcc-objc check-target-libobjc
48798
48799.PHONY: check-gcc-obj-c++ check-obj-c++
48800check-gcc-obj-c++:
48801 r=`${PWD_COMMAND}`; export r; \
48802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48803 $(HOST_EXPORTS) \
48804 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
48805check-obj-c++: check-gcc-obj-c++
7d695d07 48806
e552509b
ILT
48807.PHONY: check-gcc-go check-go
48808check-gcc-go:
48809 r=`${PWD_COMMAND}`; export r; \
48810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48811 $(HOST_EXPORTS) \
48812 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
e3f56a99 48813check-go: check-gcc-go check-target-libgo
e552509b 48814
252b5132 48815
7ec59b9e
L
48816# The gcc part of install-no-fixedincludes, which relies on an intimate
48817# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
48818.PHONY: gcc-install-no-fixedincludes
48819gcc-install-no-fixedincludes:
15723a45 48820 @if [ -f ./gcc/Makefile ]; then \
b40e3958 48821 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 48822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 48823 $(HOST_EXPORTS) \
7ec59b9e
L
48824 (cd ./gcc \
48825 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 48826 else true; fi
6bd3dfaa 48827@endif gcc
4fa63067 48828
b813574b
PB
48829# ---------------------
48830# GCC bootstrap support
48831# ---------------------
4fa63067 48832
b813574b
PB
48833# We track the current stage (the one in 'gcc') in the stage_current file.
48834# stage_last instead tracks the stage that was built last. These targets
48835# are dummy when toplevel bootstrap is not active.
4fa63067 48836
f70224b5 48837# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
48838# there, so $(unstage) should be run at various points. To avoid excessive
48839# recursive invocations of make, we "inline" them using a variable. These
48840# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
48841# to avoid warnings from the GNU Make job server.
f70224b5
PB
48842
48843unstage = :
48844stage = :
c52c6897 48845current_stage = ""
f70224b5 48846
b813574b 48847@if gcc-bootstrap
9daf3993 48848unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 48849stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 48850current_stage = "`cat stage_current 2> /dev/null`"
b813574b 48851@endif gcc-bootstrap
4fa63067 48852
f70224b5
PB
48853.PHONY: unstage stage
48854unstage:
0aed8855 48855 @: $(MAKE); $(unstage)
b813574b 48856stage:
0aed8855 48857 @: $(MAKE); $(stage)
1d39f329 48858
80911fe1
PB
48859# Disable commands for lean bootstrap.
48860LEAN = false
48861
dfdffa2c
PB
48862# We name the build directories for the various stages "stage1-gcc",
48863# "stage2-gcc","stage3-gcc", etc.
48864
48865# Since the 'compare' process will fail (on debugging information) if any
48866# directory names are different, we need to link the gcc directory for
0aed8855 48867# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
48868# the build directories constant as well. For the latter, we use naked names
48869# like 'gcc', because the scripts in that directory assume it. We use
48870# mv on platforms where symlinks to directories do not work or are not
48871# reliable.
48872
1d39f329
NN
48873# 'touch' doesn't work right on some platforms.
48874STAMP = echo timestamp >
48875
dfdffa2c
PB
48876# We only want to compare .o files, so set this!
48877objext = .o
48878
dfdffa2c 48879
319cab08 48880.PHONY: stage1-start stage1-end
dfdffa2c 48881
656fdd47 48882stage1-start::
0aed8855 48883 @: $(MAKE); $(stage); \
22121df0 48884 echo stage1 > stage_current; \
b00612cc 48885 echo stage1 > stage_last; \
0aed8855 48886 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48887@if bfd
b00612cc
PB
48888 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
48889 mkdir stage1-bfd; \
22121df0 48890 mv stage1-bfd bfd
72b2455a
PB
48891@endif bfd
48892@if opcodes
b00612cc
PB
48893 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
48894 mkdir stage1-opcodes; \
22121df0 48895 mv stage1-opcodes opcodes
72b2455a
PB
48896@endif opcodes
48897@if binutils
b00612cc
PB
48898 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
48899 mkdir stage1-binutils; \
22121df0 48900 mv stage1-binutils binutils
72b2455a 48901@endif binutils
201f096f 48902@if fixincludes
48903 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
48904 mkdir stage1-fixincludes; \
22121df0 48905 mv stage1-fixincludes fixincludes
201f096f 48906@endif fixincludes
72b2455a 48907@if gas
b00612cc
PB
48908 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
48909 mkdir stage1-gas; \
22121df0 48910 mv stage1-gas gas
72b2455a
PB
48911@endif gas
48912@if gcc
b00612cc
PB
48913 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
48914 mkdir stage1-gcc; \
22121df0 48915 mv stage1-gcc gcc
72b2455a 48916@endif gcc
4b900473
PB
48917@if gmp
48918 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
48919 mkdir stage1-gmp; \
22121df0 48920 mv stage1-gmp gmp
4b900473
PB
48921@endif gmp
48922@if mpfr
48923 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
48924 mkdir stage1-mpfr; \
22121df0 48925 mv stage1-mpfr mpfr
4b900473 48926@endif mpfr
e8a5fa9c
RW
48927@if mpc
48928 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
48929 mkdir stage1-mpc; \
22121df0 48930 mv stage1-mpc mpc
e8a5fa9c 48931@endif mpc
7ec59b9e
L
48932@if isl
48933 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
48934 mkdir stage1-isl; \
22121df0 48935 mv stage1-isl isl
7ec59b9e 48936@endif isl
1f53ca9a
AO
48937@if libelf
48938 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
48939 mkdir stage1-libelf; \
22121df0 48940 mv stage1-libelf libelf
1f53ca9a 48941@endif libelf
93f9b408
ILT
48942@if gold
48943 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
48944 mkdir stage1-gold; \
22121df0 48945 mv stage1-gold gold
93f9b408 48946@endif gold
72b2455a 48947@if intl
b00612cc
PB
48948 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
48949 mkdir stage1-intl; \
22121df0 48950 mv stage1-intl intl
72b2455a
PB
48951@endif intl
48952@if ld
b00612cc
PB
48953 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
48954 mkdir stage1-ld; \
22121df0 48955 mv stage1-ld ld
72b2455a 48956@endif ld
2bf680c4
ILT
48957@if libbacktrace
48958 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
48959 mkdir stage1-libbacktrace; \
22121df0 48960 mv stage1-libbacktrace libbacktrace
2bf680c4 48961@endif libbacktrace
72b2455a 48962@if libcpp
b00612cc
PB
48963 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
48964 mkdir stage1-libcpp; \
22121df0 48965 mv stage1-libcpp libcpp
72b2455a 48966@endif libcpp
be01d343
PB
48967@if libdecnumber
48968 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
48969 mkdir stage1-libdecnumber; \
22121df0 48970 mv stage1-libdecnumber libdecnumber
be01d343 48971@endif libdecnumber
72b2455a 48972@if libiberty
b00612cc
PB
48973 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
48974 mkdir stage1-libiberty; \
22121df0 48975 mv stage1-libiberty libiberty
72b2455a 48976@endif libiberty
1b6c0831
L
48977@if libiberty-linker-plugin
48978 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
48979 mkdir stage1-libiberty-linker-plugin; \
22121df0 48980 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 48981@endif libiberty-linker-plugin
016a3251
DD
48982@if libiconv
48983 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
48984 mkdir stage1-libiconv; \
48985 mv stage1-libiconv libiconv
48986@endif libiconv
72b2455a 48987@if zlib
b00612cc
PB
48988 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
48989 mkdir stage1-zlib; \
22121df0 48990 mv stage1-zlib zlib
72b2455a 48991@endif zlib
700d40ca
ILT
48992@if lto-plugin
48993 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
48994 mkdir stage1-lto-plugin; \
22121df0 48995 mv stage1-lto-plugin lto-plugin
700d40ca 48996@endif lto-plugin
0e65dfba
NA
48997@if libctf
48998 @cd $(HOST_SUBDIR); [ -d stage1-libctf ] || \
48999 mkdir stage1-libctf; \
49000 mv stage1-libctf libctf
49001@endif libctf
0aed8855
PB
49002 @[ -d stage1-$(TARGET_SUBDIR) ] || \
49003 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 49004 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 49005
80911fe1 49006stage1-end::
72b2455a 49007@if bfd
22121df0
L
49008 @if test -d $(HOST_SUBDIR)/bfd; then \
49009 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 49010 fi
72b2455a
PB
49011@endif bfd
49012@if opcodes
22121df0
L
49013 @if test -d $(HOST_SUBDIR)/opcodes; then \
49014 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 49015 fi
72b2455a
PB
49016@endif opcodes
49017@if binutils
22121df0
L
49018 @if test -d $(HOST_SUBDIR)/binutils; then \
49019 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 49020 fi
72b2455a 49021@endif binutils
201f096f 49022@if fixincludes
22121df0
L
49023 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49024 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 49025 fi
49026@endif fixincludes
72b2455a 49027@if gas
22121df0
L
49028 @if test -d $(HOST_SUBDIR)/gas; then \
49029 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 49030 fi
72b2455a
PB
49031@endif gas
49032@if gcc
22121df0
L
49033 @if test -d $(HOST_SUBDIR)/gcc; then \
49034 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 49035 fi
72b2455a 49036@endif gcc
4b900473 49037@if gmp
22121df0
L
49038 @if test -d $(HOST_SUBDIR)/gmp; then \
49039 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
49040 fi
49041@endif gmp
49042@if mpfr
22121df0
L
49043 @if test -d $(HOST_SUBDIR)/mpfr; then \
49044 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
49045 fi
49046@endif mpfr
e8a5fa9c 49047@if mpc
22121df0
L
49048 @if test -d $(HOST_SUBDIR)/mpc; then \
49049 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
49050 fi
49051@endif mpc
7ec59b9e 49052@if isl
22121df0
L
49053 @if test -d $(HOST_SUBDIR)/isl; then \
49054 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 49055 fi
7ec59b9e 49056@endif isl
1f53ca9a 49057@if libelf
22121df0
L
49058 @if test -d $(HOST_SUBDIR)/libelf; then \
49059 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
49060 fi
49061@endif libelf
93f9b408 49062@if gold
22121df0
L
49063 @if test -d $(HOST_SUBDIR)/gold; then \
49064 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
49065 fi
49066@endif gold
72b2455a 49067@if intl
22121df0
L
49068 @if test -d $(HOST_SUBDIR)/intl; then \
49069 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 49070 fi
72b2455a
PB
49071@endif intl
49072@if ld
22121df0
L
49073 @if test -d $(HOST_SUBDIR)/ld; then \
49074 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 49075 fi
72b2455a 49076@endif ld
2bf680c4 49077@if libbacktrace
22121df0
L
49078 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49079 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
49080 fi
49081@endif libbacktrace
72b2455a 49082@if libcpp
22121df0
L
49083 @if test -d $(HOST_SUBDIR)/libcpp; then \
49084 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 49085 fi
72b2455a 49086@endif libcpp
be01d343 49087@if libdecnumber
22121df0
L
49088 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49089 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 49090 fi
be01d343 49091@endif libdecnumber
72b2455a 49092@if libiberty
22121df0
L
49093 @if test -d $(HOST_SUBDIR)/libiberty; then \
49094 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 49095 fi
72b2455a 49096@endif libiberty
1b6c0831 49097@if libiberty-linker-plugin
22121df0
L
49098 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49099 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
49100 fi
49101@endif libiberty-linker-plugin
016a3251
DD
49102@if libiconv
49103 @if test -d $(HOST_SUBDIR)/libiconv; then \
49104 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
49105 fi
49106@endif libiconv
72b2455a 49107@if zlib
22121df0
L
49108 @if test -d $(HOST_SUBDIR)/zlib; then \
49109 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 49110 fi
72b2455a 49111@endif zlib
700d40ca 49112@if lto-plugin
22121df0
L
49113 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49114 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
49115 fi
49116@endif lto-plugin
0e65dfba
NA
49117@if libctf
49118 @if test -d $(HOST_SUBDIR)/libctf; then \
49119 cd $(HOST_SUBDIR); mv libctf stage1-libctf; \
49120 fi
49121@endif libctf
22121df0
L
49122 @if test -d $(TARGET_SUBDIR); then \
49123 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 49124 fi
80911fe1 49125 rm -f stage_current
dfdffa2c 49126
973601e1 49127# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 49128# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49129# reconfigured either.
319cab08 49130.PHONY: stage1-bubble
656fdd47 49131stage1-bubble::
e360f423
PB
49132 @r=`${PWD_COMMAND}`; export r; \
49133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49134 if test -f stage1-lean ; then \
49135 echo Skipping rebuild of stage1; \
9cb3fa6f 49136 else \
f70224b5
PB
49137 $(MAKE) stage1-start; \
49138 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 49139 fi
72b2455a 49140
0df3d27f 49141.PHONY: all-stage1 clean-stage1
0df3d27f 49142do-clean: clean-stage1
0df3d27f 49143
72b2455a
PB
49144# FIXME: Will not need to be conditional when toplevel bootstrap is the
49145# only possibility, but now it conflicts with no-bootstrap rules
49146@if gcc-bootstrap
49147
49148
49149
49150
0df3d27f 49151# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49152
0df3d27f 49153.PHONY: distclean-stage1
72b2455a 49154distclean-stage1::
0aed8855 49155 @: $(MAKE); $(stage)
e00a73e3 49156 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 49157 rm -rf stage1-*
72b2455a
PB
49158
49159
49160@endif gcc-bootstrap
49161
49162
49163.PHONY: stage2-start stage2-end
49164
49165stage2-start::
0aed8855 49166 @: $(MAKE); $(stage); \
22121df0 49167 echo stage2 > stage_current; \
b00612cc 49168 echo stage2 > stage_last; \
0aed8855 49169 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49170@if bfd
b00612cc
PB
49171 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
49172 mkdir stage2-bfd; \
22121df0 49173 mv stage2-bfd bfd; \
80911fe1 49174 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49175@endif bfd
49176@if opcodes
b00612cc
PB
49177 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
49178 mkdir stage2-opcodes; \
22121df0 49179 mv stage2-opcodes opcodes; \
80911fe1 49180 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49181@endif opcodes
49182@if binutils
b00612cc
PB
49183 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
49184 mkdir stage2-binutils; \
22121df0 49185 mv stage2-binutils binutils; \
80911fe1 49186 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49187@endif binutils
201f096f 49188@if fixincludes
49189 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
49190 mkdir stage2-fixincludes; \
22121df0 49191 mv stage2-fixincludes fixincludes; \
201f096f 49192 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49193@endif fixincludes
72b2455a 49194@if gas
b00612cc
PB
49195 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
49196 mkdir stage2-gas; \
22121df0 49197 mv stage2-gas gas; \
80911fe1 49198 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49199@endif gas
49200@if gcc
b00612cc
PB
49201 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
49202 mkdir stage2-gcc; \
22121df0 49203 mv stage2-gcc gcc; \
80911fe1 49204 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49205@endif gcc
4b900473
PB
49206@if gmp
49207 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
49208 mkdir stage2-gmp; \
22121df0 49209 mv stage2-gmp gmp; \
4b900473
PB
49210 mv stage1-gmp prev-gmp || test -f stage1-lean
49211@endif gmp
49212@if mpfr
49213 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
49214 mkdir stage2-mpfr; \
22121df0 49215 mv stage2-mpfr mpfr; \
4b900473
PB
49216 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49217@endif mpfr
e8a5fa9c
RW
49218@if mpc
49219 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
49220 mkdir stage2-mpc; \
22121df0 49221 mv stage2-mpc mpc; \
e8a5fa9c
RW
49222 mv stage1-mpc prev-mpc || test -f stage1-lean
49223@endif mpc
7ec59b9e
L
49224@if isl
49225 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
49226 mkdir stage2-isl; \
22121df0 49227 mv stage2-isl isl; \
7ec59b9e
L
49228 mv stage1-isl prev-isl || test -f stage1-lean
49229@endif isl
1f53ca9a
AO
49230@if libelf
49231 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
49232 mkdir stage2-libelf; \
22121df0 49233 mv stage2-libelf libelf; \
1f53ca9a
AO
49234 mv stage1-libelf prev-libelf || test -f stage1-lean
49235@endif libelf
93f9b408
ILT
49236@if gold
49237 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
49238 mkdir stage2-gold; \
22121df0 49239 mv stage2-gold gold; \
93f9b408
ILT
49240 mv stage1-gold prev-gold || test -f stage1-lean
49241@endif gold
72b2455a 49242@if intl
b00612cc
PB
49243 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
49244 mkdir stage2-intl; \
22121df0 49245 mv stage2-intl intl; \
80911fe1 49246 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49247@endif intl
49248@if ld
b00612cc
PB
49249 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
49250 mkdir stage2-ld; \
22121df0 49251 mv stage2-ld ld; \
80911fe1 49252 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49253@endif ld
2bf680c4
ILT
49254@if libbacktrace
49255 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
49256 mkdir stage2-libbacktrace; \
22121df0 49257 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
49258 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49259@endif libbacktrace
72b2455a 49260@if libcpp
b00612cc
PB
49261 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
49262 mkdir stage2-libcpp; \
22121df0 49263 mv stage2-libcpp libcpp; \
80911fe1 49264 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49265@endif libcpp
be01d343
PB
49266@if libdecnumber
49267 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
49268 mkdir stage2-libdecnumber; \
22121df0 49269 mv stage2-libdecnumber libdecnumber; \
80911fe1 49270 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49271@endif libdecnumber
72b2455a 49272@if libiberty
b00612cc
PB
49273 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
49274 mkdir stage2-libiberty; \
22121df0 49275 mv stage2-libiberty libiberty; \
80911fe1 49276 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49277@endif libiberty
1b6c0831
L
49278@if libiberty-linker-plugin
49279 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
49280 mkdir stage2-libiberty-linker-plugin; \
22121df0 49281 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49282 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49283@endif libiberty-linker-plugin
016a3251
DD
49284@if libiconv
49285 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
49286 mkdir stage2-libiconv; \
49287 mv stage2-libiconv libiconv; \
49288 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49289@endif libiconv
72b2455a 49290@if zlib
b00612cc
PB
49291 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
49292 mkdir stage2-zlib; \
22121df0 49293 mv stage2-zlib zlib; \
80911fe1 49294 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 49295@endif zlib
700d40ca
ILT
49296@if lto-plugin
49297 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
49298 mkdir stage2-lto-plugin; \
22121df0 49299 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
49300 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49301@endif lto-plugin
0e65dfba
NA
49302@if libctf
49303 @cd $(HOST_SUBDIR); [ -d stage2-libctf ] || \
49304 mkdir stage2-libctf; \
49305 mv stage2-libctf libctf; \
49306 mv stage1-libctf prev-libctf || test -f stage1-lean
49307@endif libctf
0aed8855
PB
49308 @[ -d stage2-$(TARGET_SUBDIR) ] || \
49309 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 49310 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49311 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 49312
80911fe1 49313stage2-end::
72b2455a 49314@if bfd
22121df0
L
49315 @if test -d $(HOST_SUBDIR)/bfd; then \
49316 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
49317 mv prev-bfd stage1-bfd; : ; \
0aed8855 49318 fi
72b2455a
PB
49319@endif bfd
49320@if opcodes
22121df0
L
49321 @if test -d $(HOST_SUBDIR)/opcodes; then \
49322 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
49323 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 49324 fi
72b2455a
PB
49325@endif opcodes
49326@if binutils
22121df0
L
49327 @if test -d $(HOST_SUBDIR)/binutils; then \
49328 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
49329 mv prev-binutils stage1-binutils; : ; \
0aed8855 49330 fi
72b2455a 49331@endif binutils
201f096f 49332@if fixincludes
22121df0
L
49333 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49334 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
49335 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 49336 fi
49337@endif fixincludes
72b2455a 49338@if gas
22121df0
L
49339 @if test -d $(HOST_SUBDIR)/gas; then \
49340 cd $(HOST_SUBDIR); mv gas stage2-gas; \
49341 mv prev-gas stage1-gas; : ; \
0aed8855 49342 fi
72b2455a
PB
49343@endif gas
49344@if gcc
22121df0
L
49345 @if test -d $(HOST_SUBDIR)/gcc; then \
49346 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
49347 mv prev-gcc stage1-gcc; : ; \
0aed8855 49348 fi
72b2455a 49349@endif gcc
4b900473 49350@if gmp
22121df0
L
49351 @if test -d $(HOST_SUBDIR)/gmp; then \
49352 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
49353 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
49354 fi
49355@endif gmp
49356@if mpfr
22121df0
L
49357 @if test -d $(HOST_SUBDIR)/mpfr; then \
49358 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
49359 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
49360 fi
49361@endif mpfr
e8a5fa9c 49362@if mpc
22121df0
L
49363 @if test -d $(HOST_SUBDIR)/mpc; then \
49364 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
49365 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
49366 fi
49367@endif mpc
7ec59b9e 49368@if isl
22121df0
L
49369 @if test -d $(HOST_SUBDIR)/isl; then \
49370 cd $(HOST_SUBDIR); mv isl stage2-isl; \
49371 mv prev-isl stage1-isl; : ; \
e28c595f 49372 fi
7ec59b9e 49373@endif isl
1f53ca9a 49374@if libelf
22121df0
L
49375 @if test -d $(HOST_SUBDIR)/libelf; then \
49376 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
49377 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
49378 fi
49379@endif libelf
93f9b408 49380@if gold
22121df0
L
49381 @if test -d $(HOST_SUBDIR)/gold; then \
49382 cd $(HOST_SUBDIR); mv gold stage2-gold; \
49383 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
49384 fi
49385@endif gold
72b2455a 49386@if intl
22121df0
L
49387 @if test -d $(HOST_SUBDIR)/intl; then \
49388 cd $(HOST_SUBDIR); mv intl stage2-intl; \
49389 mv prev-intl stage1-intl; : ; \
0aed8855 49390 fi
72b2455a
PB
49391@endif intl
49392@if ld
22121df0
L
49393 @if test -d $(HOST_SUBDIR)/ld; then \
49394 cd $(HOST_SUBDIR); mv ld stage2-ld; \
49395 mv prev-ld stage1-ld; : ; \
0aed8855 49396 fi
72b2455a 49397@endif ld
2bf680c4 49398@if libbacktrace
22121df0
L
49399 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49400 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
49401 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
49402 fi
49403@endif libbacktrace
72b2455a 49404@if libcpp
22121df0
L
49405 @if test -d $(HOST_SUBDIR)/libcpp; then \
49406 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
49407 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 49408 fi
72b2455a 49409@endif libcpp
be01d343 49410@if libdecnumber
22121df0
L
49411 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49412 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
49413 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 49414 fi
be01d343 49415@endif libdecnumber
72b2455a 49416@if libiberty
22121df0
L
49417 @if test -d $(HOST_SUBDIR)/libiberty; then \
49418 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
49419 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 49420 fi
72b2455a 49421@endif libiberty
1b6c0831 49422@if libiberty-linker-plugin
22121df0
L
49423 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49424 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
49425 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
49426 fi
49427@endif libiberty-linker-plugin
016a3251
DD
49428@if libiconv
49429 @if test -d $(HOST_SUBDIR)/libiconv; then \
49430 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
49431 mv prev-libiconv stage1-libiconv; : ; \
49432 fi
49433@endif libiconv
72b2455a 49434@if zlib
22121df0
L
49435 @if test -d $(HOST_SUBDIR)/zlib; then \
49436 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
49437 mv prev-zlib stage1-zlib; : ; \
0aed8855 49438 fi
72b2455a 49439@endif zlib
700d40ca 49440@if lto-plugin
22121df0
L
49441 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49442 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
49443 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
49444 fi
49445@endif lto-plugin
0e65dfba
NA
49446@if libctf
49447 @if test -d $(HOST_SUBDIR)/libctf; then \
49448 cd $(HOST_SUBDIR); mv libctf stage2-libctf; \
49449 mv prev-libctf stage1-libctf; : ; \
49450 fi
49451@endif libctf
22121df0
L
49452 @if test -d $(TARGET_SUBDIR); then \
49453 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
49454 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 49455 fi
80911fe1 49456 rm -f stage_current
72b2455a 49457
973601e1 49458# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 49459# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49460# reconfigured either.
72b2455a
PB
49461.PHONY: stage2-bubble
49462stage2-bubble:: stage1-bubble
e360f423
PB
49463 @r=`${PWD_COMMAND}`; export r; \
49464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49465 if test -f stage2-lean || test -f stage1-lean ; then \
49466 echo Skipping rebuild of stage2; \
9cb3fa6f 49467 else \
f70224b5
PB
49468 $(MAKE) stage2-start; \
49469 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 49470 fi
72b2455a 49471
0df3d27f 49472.PHONY: all-stage2 clean-stage2
0df3d27f 49473do-clean: clean-stage2
0df3d27f 49474
72b2455a
PB
49475# FIXME: Will not need to be conditional when toplevel bootstrap is the
49476# only possibility, but now it conflicts with no-bootstrap rules
49477@if gcc-bootstrap
49478
49479
49480
80911fe1 49481.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
49482bootstrap2:
49483 echo stage2 > stage_final
49484 @r=`${PWD_COMMAND}`; export r; \
49485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49486 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 49487 @: $(MAKE); $(unstage)
be01d343
PB
49488 @r=`${PWD_COMMAND}`; export r; \
49489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49490 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 49491 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 49492
80911fe1
PB
49493bootstrap2-lean:
49494 echo stage2 > stage_final
49495 @r=`${PWD_COMMAND}`; export r; \
49496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49497 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
49498 @: $(MAKE); $(unstage)
49499 @r=`${PWD_COMMAND}`; export r; \
49500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49501 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
49502 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49503
72b2455a 49504
0df3d27f 49505# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49506distclean-stage1:: distclean-stage2
0df3d27f 49507.PHONY: distclean-stage2
72b2455a 49508distclean-stage2::
0aed8855 49509 @: $(MAKE); $(stage)
e00a73e3 49510 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 49511 rm -rf stage2-*
72b2455a
PB
49512
49513
49514@endif gcc-bootstrap
49515
49516
49517.PHONY: stage3-start stage3-end
49518
49519stage3-start::
0aed8855 49520 @: $(MAKE); $(stage); \
22121df0 49521 echo stage3 > stage_current; \
b00612cc 49522 echo stage3 > stage_last; \
0aed8855 49523 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49524@if bfd
b00612cc
PB
49525 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
49526 mkdir stage3-bfd; \
22121df0 49527 mv stage3-bfd bfd; \
80911fe1 49528 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
49529@endif bfd
49530@if opcodes
b00612cc
PB
49531 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
49532 mkdir stage3-opcodes; \
22121df0 49533 mv stage3-opcodes opcodes; \
80911fe1 49534 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
49535@endif opcodes
49536@if binutils
b00612cc
PB
49537 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
49538 mkdir stage3-binutils; \
22121df0 49539 mv stage3-binutils binutils; \
80911fe1 49540 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 49541@endif binutils
201f096f 49542@if fixincludes
49543 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
49544 mkdir stage3-fixincludes; \
22121df0 49545 mv stage3-fixincludes fixincludes; \
201f096f 49546 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
49547@endif fixincludes
72b2455a 49548@if gas
b00612cc
PB
49549 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
49550 mkdir stage3-gas; \
22121df0 49551 mv stage3-gas gas; \
80911fe1 49552 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
49553@endif gas
49554@if gcc
b00612cc
PB
49555 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
49556 mkdir stage3-gcc; \
22121df0 49557 mv stage3-gcc gcc; \
80911fe1 49558 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 49559@endif gcc
4b900473
PB
49560@if gmp
49561 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
49562 mkdir stage3-gmp; \
22121df0 49563 mv stage3-gmp gmp; \
4b900473
PB
49564 mv stage2-gmp prev-gmp || test -f stage2-lean
49565@endif gmp
49566@if mpfr
49567 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
49568 mkdir stage3-mpfr; \
22121df0 49569 mv stage3-mpfr mpfr; \
4b900473
PB
49570 mv stage2-mpfr prev-mpfr || test -f stage2-lean
49571@endif mpfr
e8a5fa9c
RW
49572@if mpc
49573 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
49574 mkdir stage3-mpc; \
22121df0 49575 mv stage3-mpc mpc; \
e8a5fa9c
RW
49576 mv stage2-mpc prev-mpc || test -f stage2-lean
49577@endif mpc
7ec59b9e
L
49578@if isl
49579 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
49580 mkdir stage3-isl; \
22121df0 49581 mv stage3-isl isl; \
7ec59b9e
L
49582 mv stage2-isl prev-isl || test -f stage2-lean
49583@endif isl
1f53ca9a
AO
49584@if libelf
49585 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
49586 mkdir stage3-libelf; \
22121df0 49587 mv stage3-libelf libelf; \
1f53ca9a
AO
49588 mv stage2-libelf prev-libelf || test -f stage2-lean
49589@endif libelf
93f9b408
ILT
49590@if gold
49591 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
49592 mkdir stage3-gold; \
22121df0 49593 mv stage3-gold gold; \
93f9b408
ILT
49594 mv stage2-gold prev-gold || test -f stage2-lean
49595@endif gold
72b2455a 49596@if intl
b00612cc
PB
49597 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
49598 mkdir stage3-intl; \
22121df0 49599 mv stage3-intl intl; \
80911fe1 49600 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
49601@endif intl
49602@if ld
b00612cc
PB
49603 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
49604 mkdir stage3-ld; \
22121df0 49605 mv stage3-ld ld; \
80911fe1 49606 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 49607@endif ld
2bf680c4
ILT
49608@if libbacktrace
49609 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
49610 mkdir stage3-libbacktrace; \
22121df0 49611 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
49612 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
49613@endif libbacktrace
72b2455a 49614@if libcpp
b00612cc
PB
49615 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
49616 mkdir stage3-libcpp; \
22121df0 49617 mv stage3-libcpp libcpp; \
80911fe1 49618 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 49619@endif libcpp
be01d343
PB
49620@if libdecnumber
49621 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
49622 mkdir stage3-libdecnumber; \
22121df0 49623 mv stage3-libdecnumber libdecnumber; \
80911fe1 49624 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 49625@endif libdecnumber
72b2455a 49626@if libiberty
b00612cc
PB
49627 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
49628 mkdir stage3-libiberty; \
22121df0 49629 mv stage3-libiberty libiberty; \
80911fe1 49630 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 49631@endif libiberty
1b6c0831
L
49632@if libiberty-linker-plugin
49633 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
49634 mkdir stage3-libiberty-linker-plugin; \
22121df0 49635 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49636 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
49637@endif libiberty-linker-plugin
016a3251
DD
49638@if libiconv
49639 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
49640 mkdir stage3-libiconv; \
49641 mv stage3-libiconv libiconv; \
49642 mv stage2-libiconv prev-libiconv || test -f stage2-lean
49643@endif libiconv
72b2455a 49644@if zlib
b00612cc
PB
49645 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
49646 mkdir stage3-zlib; \
22121df0 49647 mv stage3-zlib zlib; \
80911fe1 49648 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 49649@endif zlib
700d40ca
ILT
49650@if lto-plugin
49651 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
49652 mkdir stage3-lto-plugin; \
22121df0 49653 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
49654 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
49655@endif lto-plugin
0e65dfba
NA
49656@if libctf
49657 @cd $(HOST_SUBDIR); [ -d stage3-libctf ] || \
49658 mkdir stage3-libctf; \
49659 mv stage3-libctf libctf; \
49660 mv stage2-libctf prev-libctf || test -f stage2-lean
49661@endif libctf
0aed8855
PB
49662 @[ -d stage3-$(TARGET_SUBDIR) ] || \
49663 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 49664 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49665 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 49666
80911fe1 49667stage3-end::
72b2455a 49668@if bfd
22121df0
L
49669 @if test -d $(HOST_SUBDIR)/bfd; then \
49670 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
49671 mv prev-bfd stage2-bfd; : ; \
0aed8855 49672 fi
72b2455a
PB
49673@endif bfd
49674@if opcodes
22121df0
L
49675 @if test -d $(HOST_SUBDIR)/opcodes; then \
49676 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
49677 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 49678 fi
72b2455a
PB
49679@endif opcodes
49680@if binutils
22121df0
L
49681 @if test -d $(HOST_SUBDIR)/binutils; then \
49682 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
49683 mv prev-binutils stage2-binutils; : ; \
0aed8855 49684 fi
72b2455a 49685@endif binutils
201f096f 49686@if fixincludes
22121df0
L
49687 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49688 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
49689 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 49690 fi
49691@endif fixincludes
72b2455a 49692@if gas
22121df0
L
49693 @if test -d $(HOST_SUBDIR)/gas; then \
49694 cd $(HOST_SUBDIR); mv gas stage3-gas; \
49695 mv prev-gas stage2-gas; : ; \
0aed8855 49696 fi
72b2455a
PB
49697@endif gas
49698@if gcc
22121df0
L
49699 @if test -d $(HOST_SUBDIR)/gcc; then \
49700 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
49701 mv prev-gcc stage2-gcc; : ; \
0aed8855 49702 fi
72b2455a 49703@endif gcc
4b900473 49704@if gmp
22121df0
L
49705 @if test -d $(HOST_SUBDIR)/gmp; then \
49706 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
49707 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
49708 fi
49709@endif gmp
49710@if mpfr
22121df0
L
49711 @if test -d $(HOST_SUBDIR)/mpfr; then \
49712 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
49713 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
49714 fi
49715@endif mpfr
e8a5fa9c 49716@if mpc
22121df0
L
49717 @if test -d $(HOST_SUBDIR)/mpc; then \
49718 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
49719 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
49720 fi
49721@endif mpc
7ec59b9e 49722@if isl
22121df0
L
49723 @if test -d $(HOST_SUBDIR)/isl; then \
49724 cd $(HOST_SUBDIR); mv isl stage3-isl; \
49725 mv prev-isl stage2-isl; : ; \
e28c595f 49726 fi
7ec59b9e 49727@endif isl
1f53ca9a 49728@if libelf
22121df0
L
49729 @if test -d $(HOST_SUBDIR)/libelf; then \
49730 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
49731 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
49732 fi
49733@endif libelf
93f9b408 49734@if gold
22121df0
L
49735 @if test -d $(HOST_SUBDIR)/gold; then \
49736 cd $(HOST_SUBDIR); mv gold stage3-gold; \
49737 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
49738 fi
49739@endif gold
72b2455a 49740@if intl
22121df0
L
49741 @if test -d $(HOST_SUBDIR)/intl; then \
49742 cd $(HOST_SUBDIR); mv intl stage3-intl; \
49743 mv prev-intl stage2-intl; : ; \
0aed8855 49744 fi
72b2455a
PB
49745@endif intl
49746@if ld
22121df0
L
49747 @if test -d $(HOST_SUBDIR)/ld; then \
49748 cd $(HOST_SUBDIR); mv ld stage3-ld; \
49749 mv prev-ld stage2-ld; : ; \
0aed8855 49750 fi
72b2455a 49751@endif ld
2bf680c4 49752@if libbacktrace
22121df0
L
49753 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49754 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
49755 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
49756 fi
49757@endif libbacktrace
72b2455a 49758@if libcpp
22121df0
L
49759 @if test -d $(HOST_SUBDIR)/libcpp; then \
49760 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
49761 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 49762 fi
72b2455a 49763@endif libcpp
be01d343 49764@if libdecnumber
22121df0
L
49765 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49766 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
49767 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 49768 fi
be01d343 49769@endif libdecnumber
72b2455a 49770@if libiberty
22121df0
L
49771 @if test -d $(HOST_SUBDIR)/libiberty; then \
49772 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
49773 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 49774 fi
72b2455a 49775@endif libiberty
1b6c0831 49776@if libiberty-linker-plugin
22121df0
L
49777 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49778 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
49779 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
49780 fi
49781@endif libiberty-linker-plugin
016a3251
DD
49782@if libiconv
49783 @if test -d $(HOST_SUBDIR)/libiconv; then \
49784 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
49785 mv prev-libiconv stage2-libiconv; : ; \
49786 fi
49787@endif libiconv
72b2455a 49788@if zlib
22121df0
L
49789 @if test -d $(HOST_SUBDIR)/zlib; then \
49790 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
49791 mv prev-zlib stage2-zlib; : ; \
0aed8855 49792 fi
72b2455a 49793@endif zlib
700d40ca 49794@if lto-plugin
22121df0
L
49795 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49796 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
49797 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
49798 fi
49799@endif lto-plugin
0e65dfba
NA
49800@if libctf
49801 @if test -d $(HOST_SUBDIR)/libctf; then \
49802 cd $(HOST_SUBDIR); mv libctf stage3-libctf; \
49803 mv prev-libctf stage2-libctf; : ; \
49804 fi
49805@endif libctf
22121df0
L
49806 @if test -d $(TARGET_SUBDIR); then \
49807 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
49808 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 49809 fi
80911fe1 49810 rm -f stage_current
72b2455a 49811
973601e1 49812# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 49813# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49814# reconfigured either.
72b2455a
PB
49815.PHONY: stage3-bubble
49816stage3-bubble:: stage2-bubble
e360f423
PB
49817 @r=`${PWD_COMMAND}`; export r; \
49818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49819 if test -f stage3-lean || test -f stage2-lean ; then \
49820 echo Skipping rebuild of stage3; \
9cb3fa6f 49821 else \
f70224b5 49822 $(MAKE) stage3-start; \
80911fe1 49823 if $(LEAN); then \
22121df0
L
49824 rm -rf stage1-*; \
49825 $(STAMP) stage1-lean; \
80911fe1 49826 fi; \
f70224b5 49827 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 49828 fi
f6d183c0 49829 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 49830
0df3d27f 49831.PHONY: all-stage3 clean-stage3
0df3d27f 49832do-clean: clean-stage3
0df3d27f 49833
d545f33b
PB
49834# FIXME: Will not need to be conditional when toplevel bootstrap is the
49835# only possibility, but now it conflicts with no-bootstrap rules
49836@if gcc-bootstrap
72b2455a 49837
d545f33b 49838compare:
e360f423
PB
49839 @r=`${PWD_COMMAND}`; export r; \
49840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49841 if test -f stage2-lean; then \
22121df0
L
49842 echo Cannot compare object files as stage 2 was deleted.; \
49843 exit 0; \
d545f33b 49844 fi; \
0aed8855 49845 : $(MAKE); $(stage); \
22121df0
L
49846 rm -f .bad_compare; \
49847 echo Comparing stages 2 and 3; \
fda13ee8
AO
49848 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
49849 files=`find stage3-* -name "*$(objext)" -print | \
22121df0 49850 sed -n s,^stage$$sed-,,p`; \
e3f56a99 49851 for file in $${files}; do \
fda13ee8
AO
49852 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
49853 if test ! -f $$f1; then continue; fi; \
8520c408 49854 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
49855 if test $$? -eq 1; then \
49856 case $$file in \
e8a5fa9c 49857 @compare_exclusions@) \
f70224b5
PB
49858 echo warning: $$file differs ;; \
49859 *) \
49860 echo $$file differs >> .bad_compare ;; \
22121df0
L
49861 esac; \
49862 fi; \
49863 done; \
d545f33b
PB
49864 if [ -f .bad_compare ]; then \
49865 echo "Bootstrap comparison failure!"; \
49866 cat .bad_compare; \
49867 exit 1; \
49868 else \
c52c6897 49869 echo Comparison successful.; \
22121df0 49870 fi; \
d545f33b 49871 $(STAMP) compare
80911fe1
PB
49872 if $(LEAN); then \
49873 rm -rf stage2-*; \
49874 $(STAMP) stage2-lean; \
49875 fi
9cb3fa6f 49876
72b2455a 49877
72b2455a 49878
80911fe1 49879.PHONY: bootstrap bootstrap-lean
be01d343
PB
49880bootstrap:
49881 echo stage3 > stage_final
49882 @r=`${PWD_COMMAND}`; export r; \
49883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49884 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 49885 @: $(MAKE); $(unstage)
be01d343
PB
49886 @r=`${PWD_COMMAND}`; export r; \
49887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49888 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 49889 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49890
80911fe1
PB
49891bootstrap-lean:
49892 echo stage3 > stage_final
49893 @r=`${PWD_COMMAND}`; export r; \
49894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49895 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
49896 @: $(MAKE); $(unstage)
49897 @r=`${PWD_COMMAND}`; export r; \
49898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49899 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
49900 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49901
72b2455a 49902
d545f33b
PB
49903# Rules to wipe a stage and all the following ones, also used for cleanstrap
49904distclean-stage2:: distclean-stage3
49905.PHONY: distclean-stage3
49906distclean-stage3::
0aed8855 49907 @: $(MAKE); $(stage)
e00a73e3 49908 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 49909 rm -rf stage3-* compare
0df3d27f 49910
9cb3fa6f 49911
d545f33b 49912.PHONY: cleanstrap
e00a73e3
PB
49913cleanstrap: do-distclean local-clean
49914 echo stage3 > stage_final
49915 @r=`${PWD_COMMAND}`; export r; \
49916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49917 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
49918 @: $(MAKE); $(unstage)
49919 @r=`${PWD_COMMAND}`; export r; \
49920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49921 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
49922 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49923
49924@endif gcc-bootstrap
49925
49926
72b2455a
PB
49927.PHONY: stage4-start stage4-end
49928
49929stage4-start::
0aed8855 49930 @: $(MAKE); $(stage); \
22121df0 49931 echo stage4 > stage_current; \
b00612cc 49932 echo stage4 > stage_last; \
0aed8855 49933 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49934@if bfd
b00612cc
PB
49935 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
49936 mkdir stage4-bfd; \
22121df0 49937 mv stage4-bfd bfd; \
80911fe1 49938 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
49939@endif bfd
49940@if opcodes
b00612cc
PB
49941 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
49942 mkdir stage4-opcodes; \
22121df0 49943 mv stage4-opcodes opcodes; \
80911fe1 49944 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
49945@endif opcodes
49946@if binutils
b00612cc
PB
49947 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
49948 mkdir stage4-binutils; \
22121df0 49949 mv stage4-binutils binutils; \
80911fe1 49950 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 49951@endif binutils
201f096f 49952@if fixincludes
49953 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
49954 mkdir stage4-fixincludes; \
22121df0 49955 mv stage4-fixincludes fixincludes; \
201f096f 49956 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
49957@endif fixincludes
72b2455a 49958@if gas
b00612cc
PB
49959 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
49960 mkdir stage4-gas; \
22121df0 49961 mv stage4-gas gas; \
80911fe1 49962 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
49963@endif gas
49964@if gcc
b00612cc
PB
49965 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
49966 mkdir stage4-gcc; \
22121df0 49967 mv stage4-gcc gcc; \
80911fe1 49968 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 49969@endif gcc
4b900473
PB
49970@if gmp
49971 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
49972 mkdir stage4-gmp; \
22121df0 49973 mv stage4-gmp gmp; \
4b900473
PB
49974 mv stage3-gmp prev-gmp || test -f stage3-lean
49975@endif gmp
49976@if mpfr
49977 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
49978 mkdir stage4-mpfr; \
22121df0 49979 mv stage4-mpfr mpfr; \
4b900473
PB
49980 mv stage3-mpfr prev-mpfr || test -f stage3-lean
49981@endif mpfr
e8a5fa9c
RW
49982@if mpc
49983 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
49984 mkdir stage4-mpc; \
22121df0 49985 mv stage4-mpc mpc; \
e8a5fa9c
RW
49986 mv stage3-mpc prev-mpc || test -f stage3-lean
49987@endif mpc
7ec59b9e
L
49988@if isl
49989 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
49990 mkdir stage4-isl; \
22121df0 49991 mv stage4-isl isl; \
7ec59b9e
L
49992 mv stage3-isl prev-isl || test -f stage3-lean
49993@endif isl
1f53ca9a
AO
49994@if libelf
49995 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
49996 mkdir stage4-libelf; \
22121df0 49997 mv stage4-libelf libelf; \
1f53ca9a
AO
49998 mv stage3-libelf prev-libelf || test -f stage3-lean
49999@endif libelf
93f9b408
ILT
50000@if gold
50001 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
50002 mkdir stage4-gold; \
22121df0 50003 mv stage4-gold gold; \
93f9b408
ILT
50004 mv stage3-gold prev-gold || test -f stage3-lean
50005@endif gold
72b2455a 50006@if intl
b00612cc
PB
50007 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
50008 mkdir stage4-intl; \
22121df0 50009 mv stage4-intl intl; \
80911fe1 50010 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
50011@endif intl
50012@if ld
b00612cc
PB
50013 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
50014 mkdir stage4-ld; \
22121df0 50015 mv stage4-ld ld; \
80911fe1 50016 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 50017@endif ld
2bf680c4
ILT
50018@if libbacktrace
50019 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
50020 mkdir stage4-libbacktrace; \
22121df0 50021 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
50022 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
50023@endif libbacktrace
72b2455a 50024@if libcpp
b00612cc
PB
50025 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
50026 mkdir stage4-libcpp; \
22121df0 50027 mv stage4-libcpp libcpp; \
80911fe1 50028 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 50029@endif libcpp
be01d343
PB
50030@if libdecnumber
50031 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
50032 mkdir stage4-libdecnumber; \
22121df0 50033 mv stage4-libdecnumber libdecnumber; \
80911fe1 50034 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 50035@endif libdecnumber
72b2455a 50036@if libiberty
b00612cc
PB
50037 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
50038 mkdir stage4-libiberty; \
22121df0 50039 mv stage4-libiberty libiberty; \
80911fe1 50040 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 50041@endif libiberty
1b6c0831
L
50042@if libiberty-linker-plugin
50043 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
50044 mkdir stage4-libiberty-linker-plugin; \
22121df0 50045 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50046 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
50047@endif libiberty-linker-plugin
016a3251
DD
50048@if libiconv
50049 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
50050 mkdir stage4-libiconv; \
50051 mv stage4-libiconv libiconv; \
50052 mv stage3-libiconv prev-libiconv || test -f stage3-lean
50053@endif libiconv
72b2455a 50054@if zlib
b00612cc
PB
50055 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
50056 mkdir stage4-zlib; \
22121df0 50057 mv stage4-zlib zlib; \
80911fe1 50058 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 50059@endif zlib
700d40ca
ILT
50060@if lto-plugin
50061 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
50062 mkdir stage4-lto-plugin; \
22121df0 50063 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
50064 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
50065@endif lto-plugin
0e65dfba
NA
50066@if libctf
50067 @cd $(HOST_SUBDIR); [ -d stage4-libctf ] || \
50068 mkdir stage4-libctf; \
50069 mv stage4-libctf libctf; \
50070 mv stage3-libctf prev-libctf || test -f stage3-lean
50071@endif libctf
0aed8855
PB
50072 @[ -d stage4-$(TARGET_SUBDIR) ] || \
50073 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 50074 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50075 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 50076
80911fe1 50077stage4-end::
72b2455a 50078@if bfd
22121df0
L
50079 @if test -d $(HOST_SUBDIR)/bfd; then \
50080 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
50081 mv prev-bfd stage3-bfd; : ; \
0aed8855 50082 fi
72b2455a
PB
50083@endif bfd
50084@if opcodes
22121df0
L
50085 @if test -d $(HOST_SUBDIR)/opcodes; then \
50086 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
50087 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 50088 fi
72b2455a
PB
50089@endif opcodes
50090@if binutils
22121df0
L
50091 @if test -d $(HOST_SUBDIR)/binutils; then \
50092 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
50093 mv prev-binutils stage3-binutils; : ; \
0aed8855 50094 fi
72b2455a 50095@endif binutils
201f096f 50096@if fixincludes
22121df0
L
50097 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50098 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
50099 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 50100 fi
50101@endif fixincludes
72b2455a 50102@if gas
22121df0
L
50103 @if test -d $(HOST_SUBDIR)/gas; then \
50104 cd $(HOST_SUBDIR); mv gas stage4-gas; \
50105 mv prev-gas stage3-gas; : ; \
0aed8855 50106 fi
72b2455a
PB
50107@endif gas
50108@if gcc
22121df0
L
50109 @if test -d $(HOST_SUBDIR)/gcc; then \
50110 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
50111 mv prev-gcc stage3-gcc; : ; \
0aed8855 50112 fi
72b2455a 50113@endif gcc
4b900473 50114@if gmp
22121df0
L
50115 @if test -d $(HOST_SUBDIR)/gmp; then \
50116 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
50117 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
50118 fi
50119@endif gmp
50120@if mpfr
22121df0
L
50121 @if test -d $(HOST_SUBDIR)/mpfr; then \
50122 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
50123 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
50124 fi
50125@endif mpfr
e8a5fa9c 50126@if mpc
22121df0
L
50127 @if test -d $(HOST_SUBDIR)/mpc; then \
50128 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
50129 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
50130 fi
50131@endif mpc
7ec59b9e 50132@if isl
22121df0
L
50133 @if test -d $(HOST_SUBDIR)/isl; then \
50134 cd $(HOST_SUBDIR); mv isl stage4-isl; \
50135 mv prev-isl stage3-isl; : ; \
e28c595f 50136 fi
7ec59b9e 50137@endif isl
1f53ca9a 50138@if libelf
22121df0
L
50139 @if test -d $(HOST_SUBDIR)/libelf; then \
50140 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
50141 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
50142 fi
50143@endif libelf
93f9b408 50144@if gold
22121df0
L
50145 @if test -d $(HOST_SUBDIR)/gold; then \
50146 cd $(HOST_SUBDIR); mv gold stage4-gold; \
50147 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
50148 fi
50149@endif gold
72b2455a 50150@if intl
22121df0
L
50151 @if test -d $(HOST_SUBDIR)/intl; then \
50152 cd $(HOST_SUBDIR); mv intl stage4-intl; \
50153 mv prev-intl stage3-intl; : ; \
0aed8855 50154 fi
72b2455a
PB
50155@endif intl
50156@if ld
22121df0
L
50157 @if test -d $(HOST_SUBDIR)/ld; then \
50158 cd $(HOST_SUBDIR); mv ld stage4-ld; \
50159 mv prev-ld stage3-ld; : ; \
0aed8855 50160 fi
72b2455a 50161@endif ld
2bf680c4 50162@if libbacktrace
22121df0
L
50163 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50164 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
50165 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
50166 fi
50167@endif libbacktrace
72b2455a 50168@if libcpp
22121df0
L
50169 @if test -d $(HOST_SUBDIR)/libcpp; then \
50170 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
50171 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 50172 fi
72b2455a 50173@endif libcpp
be01d343 50174@if libdecnumber
22121df0
L
50175 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50176 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
50177 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 50178 fi
be01d343 50179@endif libdecnumber
72b2455a 50180@if libiberty
22121df0
L
50181 @if test -d $(HOST_SUBDIR)/libiberty; then \
50182 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
50183 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 50184 fi
72b2455a 50185@endif libiberty
1b6c0831 50186@if libiberty-linker-plugin
22121df0
L
50187 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50188 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
50189 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
50190 fi
50191@endif libiberty-linker-plugin
016a3251
DD
50192@if libiconv
50193 @if test -d $(HOST_SUBDIR)/libiconv; then \
50194 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
50195 mv prev-libiconv stage3-libiconv; : ; \
50196 fi
50197@endif libiconv
72b2455a 50198@if zlib
22121df0
L
50199 @if test -d $(HOST_SUBDIR)/zlib; then \
50200 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
50201 mv prev-zlib stage3-zlib; : ; \
0aed8855 50202 fi
72b2455a 50203@endif zlib
700d40ca 50204@if lto-plugin
22121df0
L
50205 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50206 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
50207 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
50208 fi
50209@endif lto-plugin
0e65dfba
NA
50210@if libctf
50211 @if test -d $(HOST_SUBDIR)/libctf; then \
50212 cd $(HOST_SUBDIR); mv libctf stage4-libctf; \
50213 mv prev-libctf stage3-libctf; : ; \
50214 fi
50215@endif libctf
22121df0
L
50216 @if test -d $(TARGET_SUBDIR); then \
50217 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
50218 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 50219 fi
80911fe1 50220 rm -f stage_current
72b2455a 50221
973601e1 50222# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 50223# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50224# reconfigured either.
72b2455a
PB
50225.PHONY: stage4-bubble
50226stage4-bubble:: stage3-bubble
e360f423
PB
50227 @r=`${PWD_COMMAND}`; export r; \
50228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50229 if test -f stage4-lean || test -f stage3-lean ; then \
50230 echo Skipping rebuild of stage4; \
9cb3fa6f 50231 else \
f70224b5 50232 $(MAKE) stage4-start; \
80911fe1 50233 if $(LEAN); then \
22121df0
L
50234 rm -rf stage2-*; \
50235 $(STAMP) stage2-lean; \
80911fe1 50236 fi; \
f70224b5 50237 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 50238 fi
f6d183c0 50239 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 50240
0df3d27f 50241.PHONY: all-stage4 clean-stage4
0df3d27f 50242do-clean: clean-stage4
0df3d27f 50243
d545f33b
PB
50244# FIXME: Will not need to be conditional when toplevel bootstrap is the
50245# only possibility, but now it conflicts with no-bootstrap rules
50246@if gcc-bootstrap
72b2455a 50247
d545f33b 50248compare3:
e360f423
PB
50249 @r=`${PWD_COMMAND}`; export r; \
50250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50251 if test -f stage3-lean; then \
22121df0
L
50252 echo Cannot compare object files as stage 3 was deleted.; \
50253 exit 0; \
d545f33b 50254 fi; \
0aed8855 50255 : $(MAKE); $(stage); \
22121df0
L
50256 rm -f .bad_compare; \
50257 echo Comparing stages 3 and 4; \
fda13ee8
AO
50258 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
50259 files=`find stage4-* -name "*$(objext)" -print | \
22121df0 50260 sed -n s,^stage$$sed-,,p`; \
e3f56a99 50261 for file in $${files}; do \
fda13ee8
AO
50262 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
50263 if test ! -f $$f1; then continue; fi; \
8520c408 50264 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
50265 if test $$? -eq 1; then \
50266 case $$file in \
e8a5fa9c 50267 @compare_exclusions@) \
f70224b5
PB
50268 echo warning: $$file differs ;; \
50269 *) \
50270 echo $$file differs >> .bad_compare ;; \
22121df0
L
50271 esac; \
50272 fi; \
50273 done; \
d545f33b
PB
50274 if [ -f .bad_compare ]; then \
50275 echo "Bootstrap comparison failure!"; \
50276 cat .bad_compare; \
50277 exit 1; \
50278 else \
c52c6897 50279 echo Comparison successful.; \
22121df0 50280 fi; \
d545f33b 50281 $(STAMP) compare3
80911fe1
PB
50282 if $(LEAN); then \
50283 rm -rf stage3-*; \
50284 $(STAMP) stage3-lean; \
50285 fi
9cb3fa6f 50286
72b2455a 50287
72b2455a 50288
80911fe1 50289.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
50290bootstrap4:
50291 echo stage4 > stage_final
50292 @r=`${PWD_COMMAND}`; export r; \
50293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50294 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 50295 @: $(MAKE); $(unstage)
be01d343
PB
50296 @r=`${PWD_COMMAND}`; export r; \
50297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50298 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 50299 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 50300
80911fe1
PB
50301bootstrap4-lean:
50302 echo stage4 > stage_final
50303 @r=`${PWD_COMMAND}`; export r; \
50304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50305 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
50306 @: $(MAKE); $(unstage)
50307 @r=`${PWD_COMMAND}`; export r; \
50308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50309 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
50310 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50311
72b2455a 50312
d545f33b
PB
50313# Rules to wipe a stage and all the following ones, also used for cleanstrap
50314distclean-stage3:: distclean-stage4
50315.PHONY: distclean-stage4
50316distclean-stage4::
0aed8855 50317 @: $(MAKE); $(stage)
e00a73e3 50318 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 50319 rm -rf stage4-* compare3
0df3d27f 50320
9cb3fa6f 50321
d545f33b 50322@endif gcc-bootstrap
72b2455a
PB
50323
50324
50325.PHONY: stageprofile-start stageprofile-end
50326
50327stageprofile-start::
0aed8855 50328 @: $(MAKE); $(stage); \
22121df0 50329 echo stageprofile > stage_current; \
b00612cc 50330 echo stageprofile > stage_last; \
0aed8855 50331 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50332@if bfd
b00612cc
PB
50333 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
50334 mkdir stageprofile-bfd; \
22121df0 50335 mv stageprofile-bfd bfd; \
80911fe1 50336 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
50337@endif bfd
50338@if opcodes
b00612cc
PB
50339 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
50340 mkdir stageprofile-opcodes; \
22121df0 50341 mv stageprofile-opcodes opcodes; \
80911fe1 50342 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
50343@endif opcodes
50344@if binutils
b00612cc
PB
50345 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
50346 mkdir stageprofile-binutils; \
22121df0 50347 mv stageprofile-binutils binutils; \
80911fe1 50348 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 50349@endif binutils
201f096f 50350@if fixincludes
50351 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
50352 mkdir stageprofile-fixincludes; \
22121df0 50353 mv stageprofile-fixincludes fixincludes; \
201f096f 50354 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
50355@endif fixincludes
72b2455a 50356@if gas
b00612cc
PB
50357 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
50358 mkdir stageprofile-gas; \
22121df0 50359 mv stageprofile-gas gas; \
80911fe1 50360 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
50361@endif gas
50362@if gcc
b00612cc
PB
50363 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
50364 mkdir stageprofile-gcc; \
22121df0 50365 mv stageprofile-gcc gcc; \
80911fe1 50366 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 50367@endif gcc
4b900473
PB
50368@if gmp
50369 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
50370 mkdir stageprofile-gmp; \
22121df0 50371 mv stageprofile-gmp gmp; \
4b900473
PB
50372 mv stage1-gmp prev-gmp || test -f stage1-lean
50373@endif gmp
50374@if mpfr
50375 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
50376 mkdir stageprofile-mpfr; \
22121df0 50377 mv stageprofile-mpfr mpfr; \
4b900473
PB
50378 mv stage1-mpfr prev-mpfr || test -f stage1-lean
50379@endif mpfr
e8a5fa9c
RW
50380@if mpc
50381 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
50382 mkdir stageprofile-mpc; \
22121df0 50383 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
50384 mv stage1-mpc prev-mpc || test -f stage1-lean
50385@endif mpc
7ec59b9e
L
50386@if isl
50387 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
50388 mkdir stageprofile-isl; \
22121df0 50389 mv stageprofile-isl isl; \
7ec59b9e
L
50390 mv stage1-isl prev-isl || test -f stage1-lean
50391@endif isl
1f53ca9a
AO
50392@if libelf
50393 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
50394 mkdir stageprofile-libelf; \
22121df0 50395 mv stageprofile-libelf libelf; \
1f53ca9a
AO
50396 mv stage1-libelf prev-libelf || test -f stage1-lean
50397@endif libelf
93f9b408
ILT
50398@if gold
50399 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
50400 mkdir stageprofile-gold; \
22121df0 50401 mv stageprofile-gold gold; \
93f9b408
ILT
50402 mv stage1-gold prev-gold || test -f stage1-lean
50403@endif gold
72b2455a 50404@if intl
b00612cc
PB
50405 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
50406 mkdir stageprofile-intl; \
22121df0 50407 mv stageprofile-intl intl; \
80911fe1 50408 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
50409@endif intl
50410@if ld
b00612cc
PB
50411 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
50412 mkdir stageprofile-ld; \
22121df0 50413 mv stageprofile-ld ld; \
80911fe1 50414 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 50415@endif ld
2bf680c4
ILT
50416@if libbacktrace
50417 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
50418 mkdir stageprofile-libbacktrace; \
22121df0 50419 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
50420 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
50421@endif libbacktrace
72b2455a 50422@if libcpp
b00612cc
PB
50423 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
50424 mkdir stageprofile-libcpp; \
22121df0 50425 mv stageprofile-libcpp libcpp; \
80911fe1 50426 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 50427@endif libcpp
be01d343
PB
50428@if libdecnumber
50429 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
50430 mkdir stageprofile-libdecnumber; \
22121df0 50431 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 50432 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 50433@endif libdecnumber
72b2455a 50434@if libiberty
b00612cc
PB
50435 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
50436 mkdir stageprofile-libiberty; \
22121df0 50437 mv stageprofile-libiberty libiberty; \
80911fe1 50438 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 50439@endif libiberty
1b6c0831
L
50440@if libiberty-linker-plugin
50441 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
50442 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 50443 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50444 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
50445@endif libiberty-linker-plugin
016a3251
DD
50446@if libiconv
50447 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
50448 mkdir stageprofile-libiconv; \
50449 mv stageprofile-libiconv libiconv; \
50450 mv stage1-libiconv prev-libiconv || test -f stage1-lean
50451@endif libiconv
72b2455a 50452@if zlib
d545f33b
PB
50453 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
50454 mkdir stageprofile-zlib; \
22121df0 50455 mv stageprofile-zlib zlib; \
80911fe1 50456 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 50457@endif zlib
700d40ca
ILT
50458@if lto-plugin
50459 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
50460 mkdir stageprofile-lto-plugin; \
22121df0 50461 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
50462 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
50463@endif lto-plugin
0e65dfba
NA
50464@if libctf
50465 @cd $(HOST_SUBDIR); [ -d stageprofile-libctf ] || \
50466 mkdir stageprofile-libctf; \
50467 mv stageprofile-libctf libctf; \
50468 mv stage1-libctf prev-libctf || test -f stage1-lean
50469@endif libctf
0aed8855
PB
50470 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
50471 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 50472 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50473 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 50474
80911fe1 50475stageprofile-end::
d545f33b 50476@if bfd
22121df0
L
50477 @if test -d $(HOST_SUBDIR)/bfd; then \
50478 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
50479 mv prev-bfd stage1-bfd; : ; \
0aed8855 50480 fi
d545f33b
PB
50481@endif bfd
50482@if opcodes
22121df0
L
50483 @if test -d $(HOST_SUBDIR)/opcodes; then \
50484 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
50485 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 50486 fi
d545f33b
PB
50487@endif opcodes
50488@if binutils
22121df0
L
50489 @if test -d $(HOST_SUBDIR)/binutils; then \
50490 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
50491 mv prev-binutils stage1-binutils; : ; \
0aed8855 50492 fi
d545f33b 50493@endif binutils
201f096f 50494@if fixincludes
22121df0
L
50495 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50496 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
50497 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 50498 fi
50499@endif fixincludes
d545f33b 50500@if gas
22121df0
L
50501 @if test -d $(HOST_SUBDIR)/gas; then \
50502 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
50503 mv prev-gas stage1-gas; : ; \
0aed8855 50504 fi
d545f33b
PB
50505@endif gas
50506@if gcc
22121df0
L
50507 @if test -d $(HOST_SUBDIR)/gcc; then \
50508 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
50509 mv prev-gcc stage1-gcc; : ; \
0aed8855 50510 fi
d545f33b 50511@endif gcc
4b900473 50512@if gmp
22121df0
L
50513 @if test -d $(HOST_SUBDIR)/gmp; then \
50514 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
50515 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
50516 fi
50517@endif gmp
50518@if mpfr
22121df0
L
50519 @if test -d $(HOST_SUBDIR)/mpfr; then \
50520 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
50521 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
50522 fi
50523@endif mpfr
e8a5fa9c 50524@if mpc
22121df0
L
50525 @if test -d $(HOST_SUBDIR)/mpc; then \
50526 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
50527 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
50528 fi
50529@endif mpc
7ec59b9e 50530@if isl
22121df0
L
50531 @if test -d $(HOST_SUBDIR)/isl; then \
50532 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
50533 mv prev-isl stage1-isl; : ; \
e28c595f 50534 fi
7ec59b9e 50535@endif isl
1f53ca9a 50536@if libelf
22121df0
L
50537 @if test -d $(HOST_SUBDIR)/libelf; then \
50538 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
50539 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
50540 fi
50541@endif libelf
93f9b408 50542@if gold
22121df0
L
50543 @if test -d $(HOST_SUBDIR)/gold; then \
50544 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
50545 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
50546 fi
50547@endif gold
d545f33b 50548@if intl
22121df0
L
50549 @if test -d $(HOST_SUBDIR)/intl; then \
50550 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
50551 mv prev-intl stage1-intl; : ; \
0aed8855 50552 fi
d545f33b
PB
50553@endif intl
50554@if ld
22121df0
L
50555 @if test -d $(HOST_SUBDIR)/ld; then \
50556 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
50557 mv prev-ld stage1-ld; : ; \
0aed8855 50558 fi
d545f33b 50559@endif ld
2bf680c4 50560@if libbacktrace
22121df0
L
50561 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50562 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
50563 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
50564 fi
50565@endif libbacktrace
d545f33b 50566@if libcpp
22121df0
L
50567 @if test -d $(HOST_SUBDIR)/libcpp; then \
50568 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
50569 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 50570 fi
d545f33b 50571@endif libcpp
be01d343 50572@if libdecnumber
22121df0
L
50573 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50574 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
50575 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 50576 fi
be01d343 50577@endif libdecnumber
d545f33b 50578@if libiberty
22121df0
L
50579 @if test -d $(HOST_SUBDIR)/libiberty; then \
50580 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
50581 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 50582 fi
d545f33b 50583@endif libiberty
1b6c0831 50584@if libiberty-linker-plugin
22121df0
L
50585 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50586 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
50587 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
50588 fi
50589@endif libiberty-linker-plugin
016a3251
DD
50590@if libiconv
50591 @if test -d $(HOST_SUBDIR)/libiconv; then \
50592 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
50593 mv prev-libiconv stage1-libiconv; : ; \
50594 fi
50595@endif libiconv
d545f33b 50596@if zlib
22121df0
L
50597 @if test -d $(HOST_SUBDIR)/zlib; then \
50598 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
50599 mv prev-zlib stage1-zlib; : ; \
0aed8855 50600 fi
d545f33b 50601@endif zlib
700d40ca 50602@if lto-plugin
22121df0
L
50603 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50604 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
50605 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
50606 fi
50607@endif lto-plugin
0e65dfba
NA
50608@if libctf
50609 @if test -d $(HOST_SUBDIR)/libctf; then \
50610 cd $(HOST_SUBDIR); mv libctf stageprofile-libctf; \
50611 mv prev-libctf stage1-libctf; : ; \
50612 fi
50613@endif libctf
22121df0
L
50614 @if test -d $(TARGET_SUBDIR); then \
50615 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
50616 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 50617 fi
80911fe1 50618 rm -f stage_current
72b2455a 50619
973601e1 50620# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 50621# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50622# reconfigured either.
d545f33b
PB
50623.PHONY: stageprofile-bubble
50624stageprofile-bubble:: stage1-bubble
e360f423
PB
50625 @r=`${PWD_COMMAND}`; export r; \
50626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50627 if test -f stageprofile-lean || test -f stage1-lean ; then \
50628 echo Skipping rebuild of stageprofile; \
d545f33b 50629 else \
f70224b5
PB
50630 $(MAKE) stageprofile-start; \
50631 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 50632 fi
72b2455a 50633
d545f33b
PB
50634.PHONY: all-stageprofile clean-stageprofile
50635do-clean: clean-stageprofile
0df3d27f 50636
72b2455a
PB
50637# FIXME: Will not need to be conditional when toplevel bootstrap is the
50638# only possibility, but now it conflicts with no-bootstrap rules
50639@if gcc-bootstrap
50640
50641
50642
50643
0df3d27f 50644# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 50645distclean-stage1:: distclean-stageprofile
0df3d27f 50646.PHONY: distclean-stageprofile
72b2455a 50647distclean-stageprofile::
0aed8855 50648 @: $(MAKE); $(stage)
e00a73e3 50649 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 50650 rm -rf stageprofile-*
dfdffa2c
PB
50651
50652
72b2455a 50653@endif gcc-bootstrap
dfdffa2c
PB
50654
50655
72b2455a 50656.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 50657
72b2455a 50658stagefeedback-start::
0aed8855 50659 @: $(MAKE); $(stage); \
22121df0 50660 echo stagefeedback > stage_current; \
b00612cc 50661 echo stagefeedback > stage_last; \
0aed8855 50662 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50663@if bfd
b00612cc
PB
50664 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
50665 mkdir stagefeedback-bfd; \
22121df0 50666 mv stagefeedback-bfd bfd; \
e3f56a99 50667 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
50668@endif bfd
50669@if opcodes
b00612cc
PB
50670 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
50671 mkdir stagefeedback-opcodes; \
22121df0 50672 mv stagefeedback-opcodes opcodes; \
e3f56a99 50673 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
50674@endif opcodes
50675@if binutils
b00612cc
PB
50676 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
50677 mkdir stagefeedback-binutils; \
22121df0 50678 mv stagefeedback-binutils binutils; \
e3f56a99 50679 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 50680@endif binutils
201f096f 50681@if fixincludes
50682 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
50683 mkdir stagefeedback-fixincludes; \
22121df0 50684 mv stagefeedback-fixincludes fixincludes; \
e3f56a99 50685 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
201f096f 50686@endif fixincludes
72b2455a 50687@if gas
b00612cc
PB
50688 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
50689 mkdir stagefeedback-gas; \
22121df0 50690 mv stagefeedback-gas gas; \
e3f56a99 50691 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
50692@endif gas
50693@if gcc
b00612cc
PB
50694 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
50695 mkdir stagefeedback-gcc; \
22121df0 50696 mv stagefeedback-gcc gcc; \
e3f56a99 50697 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 50698@endif gcc
4b900473
PB
50699@if gmp
50700 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
50701 mkdir stagefeedback-gmp; \
22121df0 50702 mv stagefeedback-gmp gmp; \
e3f56a99 50703 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
4b900473
PB
50704@endif gmp
50705@if mpfr
50706 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
50707 mkdir stagefeedback-mpfr; \
22121df0 50708 mv stagefeedback-mpfr mpfr; \
e3f56a99 50709 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
4b900473 50710@endif mpfr
e8a5fa9c
RW
50711@if mpc
50712 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
50713 mkdir stagefeedback-mpc; \
22121df0 50714 mv stagefeedback-mpc mpc; \
e3f56a99 50715 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
e8a5fa9c 50716@endif mpc
7ec59b9e
L
50717@if isl
50718 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
50719 mkdir stagefeedback-isl; \
22121df0 50720 mv stagefeedback-isl isl; \
e3f56a99 50721 mv stageprofile-isl prev-isl || test -f stageprofile-lean
7ec59b9e 50722@endif isl
1f53ca9a
AO
50723@if libelf
50724 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
50725 mkdir stagefeedback-libelf; \
22121df0 50726 mv stagefeedback-libelf libelf; \
e3f56a99 50727 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
1f53ca9a 50728@endif libelf
93f9b408
ILT
50729@if gold
50730 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
50731 mkdir stagefeedback-gold; \
22121df0 50732 mv stagefeedback-gold gold; \
e3f56a99 50733 mv stageprofile-gold prev-gold || test -f stageprofile-lean
93f9b408 50734@endif gold
72b2455a 50735@if intl
b00612cc
PB
50736 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
50737 mkdir stagefeedback-intl; \
22121df0 50738 mv stagefeedback-intl intl; \
e3f56a99 50739 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
50740@endif intl
50741@if ld
b00612cc
PB
50742 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
50743 mkdir stagefeedback-ld; \
22121df0 50744 mv stagefeedback-ld ld; \
e3f56a99 50745 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 50746@endif ld
2bf680c4
ILT
50747@if libbacktrace
50748 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
50749 mkdir stagefeedback-libbacktrace; \
22121df0 50750 mv stagefeedback-libbacktrace libbacktrace; \
e3f56a99 50751 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
2bf680c4 50752@endif libbacktrace
72b2455a 50753@if libcpp
b00612cc
PB
50754 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
50755 mkdir stagefeedback-libcpp; \
22121df0 50756 mv stagefeedback-libcpp libcpp; \
e3f56a99 50757 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 50758@endif libcpp
be01d343
PB
50759@if libdecnumber
50760 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
50761 mkdir stagefeedback-libdecnumber; \
22121df0 50762 mv stagefeedback-libdecnumber libdecnumber; \
e3f56a99 50763 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 50764@endif libdecnumber
72b2455a 50765@if libiberty
b00612cc
PB
50766 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
50767 mkdir stagefeedback-libiberty; \
22121df0 50768 mv stagefeedback-libiberty libiberty; \
e3f56a99 50769 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 50770@endif libiberty
1b6c0831
L
50771@if libiberty-linker-plugin
50772 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
50773 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 50774 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
e3f56a99 50775 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
1b6c0831 50776@endif libiberty-linker-plugin
016a3251
DD
50777@if libiconv
50778 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
50779 mkdir stagefeedback-libiconv; \
50780 mv stagefeedback-libiconv libiconv; \
e3f56a99 50781 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
016a3251 50782@endif libiconv
72b2455a 50783@if zlib
b00612cc
PB
50784 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
50785 mkdir stagefeedback-zlib; \
22121df0 50786 mv stagefeedback-zlib zlib; \
e3f56a99 50787 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 50788@endif zlib
700d40ca
ILT
50789@if lto-plugin
50790 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
50791 mkdir stagefeedback-lto-plugin; \
22121df0 50792 mv stagefeedback-lto-plugin lto-plugin; \
e3f56a99 50793 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
700d40ca 50794@endif lto-plugin
0e65dfba
NA
50795@if libctf
50796 @cd $(HOST_SUBDIR); [ -d stagefeedback-libctf ] || \
50797 mkdir stagefeedback-libctf; \
50798 mv stagefeedback-libctf libctf; \
e3f56a99 50799 mv stageprofile-libctf prev-libctf || test -f stageprofile-lean
0e65dfba 50800@endif libctf
0aed8855
PB
50801 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
50802 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 50803 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
e3f56a99 50804 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 50805
80911fe1 50806stagefeedback-end::
72b2455a 50807@if bfd
22121df0
L
50808 @if test -d $(HOST_SUBDIR)/bfd; then \
50809 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
e3f56a99 50810 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 50811 fi
72b2455a
PB
50812@endif bfd
50813@if opcodes
22121df0
L
50814 @if test -d $(HOST_SUBDIR)/opcodes; then \
50815 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
e3f56a99 50816 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 50817 fi
72b2455a
PB
50818@endif opcodes
50819@if binutils
22121df0
L
50820 @if test -d $(HOST_SUBDIR)/binutils; then \
50821 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
e3f56a99 50822 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 50823 fi
72b2455a 50824@endif binutils
201f096f 50825@if fixincludes
22121df0
L
50826 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50827 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
e3f56a99 50828 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 50829 fi
50830@endif fixincludes
72b2455a 50831@if gas
22121df0
L
50832 @if test -d $(HOST_SUBDIR)/gas; then \
50833 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
e3f56a99 50834 mv prev-gas stageprofile-gas; : ; \
0aed8855 50835 fi
72b2455a
PB
50836@endif gas
50837@if gcc
22121df0
L
50838 @if test -d $(HOST_SUBDIR)/gcc; then \
50839 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
e3f56a99 50840 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 50841 fi
72b2455a 50842@endif gcc
4b900473 50843@if gmp
22121df0
L
50844 @if test -d $(HOST_SUBDIR)/gmp; then \
50845 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
e3f56a99 50846 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
50847 fi
50848@endif gmp
50849@if mpfr
22121df0
L
50850 @if test -d $(HOST_SUBDIR)/mpfr; then \
50851 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
e3f56a99 50852 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
50853 fi
50854@endif mpfr
e8a5fa9c 50855@if mpc
22121df0
L
50856 @if test -d $(HOST_SUBDIR)/mpc; then \
50857 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
e3f56a99 50858 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
50859 fi
50860@endif mpc
7ec59b9e 50861@if isl
22121df0
L
50862 @if test -d $(HOST_SUBDIR)/isl; then \
50863 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
e3f56a99 50864 mv prev-isl stageprofile-isl; : ; \
e28c595f 50865 fi
7ec59b9e 50866@endif isl
1f53ca9a 50867@if libelf
22121df0
L
50868 @if test -d $(HOST_SUBDIR)/libelf; then \
50869 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
e3f56a99 50870 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
50871 fi
50872@endif libelf
93f9b408 50873@if gold
22121df0
L
50874 @if test -d $(HOST_SUBDIR)/gold; then \
50875 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
e3f56a99 50876 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
50877 fi
50878@endif gold
72b2455a 50879@if intl
22121df0
L
50880 @if test -d $(HOST_SUBDIR)/intl; then \
50881 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
e3f56a99 50882 mv prev-intl stageprofile-intl; : ; \
0aed8855 50883 fi
72b2455a
PB
50884@endif intl
50885@if ld
22121df0
L
50886 @if test -d $(HOST_SUBDIR)/ld; then \
50887 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
e3f56a99 50888 mv prev-ld stageprofile-ld; : ; \
0aed8855 50889 fi
72b2455a 50890@endif ld
2bf680c4 50891@if libbacktrace
22121df0
L
50892 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50893 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
e3f56a99 50894 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
50895 fi
50896@endif libbacktrace
72b2455a 50897@if libcpp
22121df0
L
50898 @if test -d $(HOST_SUBDIR)/libcpp; then \
50899 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
e3f56a99 50900 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 50901 fi
72b2455a 50902@endif libcpp
be01d343 50903@if libdecnumber
22121df0
L
50904 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50905 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
e3f56a99 50906 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 50907 fi
be01d343 50908@endif libdecnumber
72b2455a 50909@if libiberty
22121df0
L
50910 @if test -d $(HOST_SUBDIR)/libiberty; then \
50911 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
e3f56a99 50912 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 50913 fi
72b2455a 50914@endif libiberty
1b6c0831 50915@if libiberty-linker-plugin
22121df0
L
50916 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50917 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
e3f56a99 50918 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
50919 fi
50920@endif libiberty-linker-plugin
016a3251
DD
50921@if libiconv
50922 @if test -d $(HOST_SUBDIR)/libiconv; then \
50923 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
e3f56a99 50924 mv prev-libiconv stageprofile-libiconv; : ; \
016a3251
DD
50925 fi
50926@endif libiconv
72b2455a 50927@if zlib
22121df0
L
50928 @if test -d $(HOST_SUBDIR)/zlib; then \
50929 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
e3f56a99 50930 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 50931 fi
72b2455a 50932@endif zlib
700d40ca 50933@if lto-plugin
22121df0
L
50934 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50935 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
e3f56a99 50936 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
50937 fi
50938@endif lto-plugin
0e65dfba
NA
50939@if libctf
50940 @if test -d $(HOST_SUBDIR)/libctf; then \
50941 cd $(HOST_SUBDIR); mv libctf stagefeedback-libctf; \
e3f56a99 50942 mv prev-libctf stageprofile-libctf; : ; \
0e65dfba
NA
50943 fi
50944@endif libctf
22121df0
L
50945 @if test -d $(TARGET_SUBDIR); then \
50946 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
e3f56a99 50947 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 50948 fi
80911fe1 50949 rm -f stage_current
dfdffa2c 50950
973601e1 50951# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 50952# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50953# reconfigured either.
72b2455a 50954.PHONY: stagefeedback-bubble
e3f56a99 50955stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
50956 @r=`${PWD_COMMAND}`; export r; \
50957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e3f56a99 50958 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
22121df0 50959 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 50960 else \
f70224b5
PB
50961 $(MAKE) stagefeedback-start; \
50962 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 50963 fi
72b2455a 50964
0df3d27f 50965.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 50966do-clean: clean-stagefeedback
0df3d27f 50967
72b2455a
PB
50968# FIXME: Will not need to be conditional when toplevel bootstrap is the
50969# only possibility, but now it conflicts with no-bootstrap rules
50970@if gcc-bootstrap
656fdd47
PB
50971
50972
50973
80911fe1 50974.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
50975profiledbootstrap:
50976 echo stagefeedback > stage_final
50977 @r=`${PWD_COMMAND}`; export r; \
50978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50979 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 50980 @: $(MAKE); $(unstage)
be01d343
PB
50981 @r=`${PWD_COMMAND}`; export r; \
50982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50983 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 50984 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 50985
80911fe1
PB
50986profiledbootstrap-lean:
50987 echo stagefeedback > stage_final
50988 @r=`${PWD_COMMAND}`; export r; \
50989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50990 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
50991 @: $(MAKE); $(unstage)
50992 @r=`${PWD_COMMAND}`; export r; \
50993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50994 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
50995 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50996
656fdd47 50997
0df3d27f 50998# Rules to wipe a stage and all the following ones, also used for cleanstrap
e3f56a99 50999distclean-stageprofile:: distclean-stagefeedback
0df3d27f 51000.PHONY: distclean-stagefeedback
656fdd47 51001distclean-stagefeedback::
0aed8855 51002 @: $(MAKE); $(stage)
e00a73e3 51003 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 51004 rm -rf stagefeedback-*
656fdd47
PB
51005
51006
72b2455a 51007@endif gcc-bootstrap
656fdd47
PB
51008
51009
51010
7d329e61
PB
51011stageprofile-end::
51012 $(MAKE) distclean-stagefeedback
656fdd47 51013
7d329e61 51014stagefeedback-start::
656fdd47
PB
51015 @r=`${PWD_COMMAND}`; export r; \
51016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 51017 for i in prev-*; do \
22121df0 51018 j=`echo $$i | sed s/^prev-//`; \
7d329e61 51019 cd $$r/$$i && \
22121df0
L
51020 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
51021 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 51022 done
b8908782 51023
0df3d27f 51024@if gcc-bootstrap
0df3d27f 51025do-distclean: distclean-stage1
c52c6897
PB
51026
51027# Provide a GCC build when we're building target libraries. This does
51028# not work as a dependency, just as the minimum necessary to avoid errors.
51029stage_last:
314b2e66
AS
51030 @r=`${PWD_COMMAND}`; export r; \
51031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 51032 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 51033
4f0ef2d8
CD
51034# Same as unstage, but not phony and defaulting to stage1-start. We place
51035# it in the dependency so that for example `make -j3 all-gcc' works.
51036stage_current:
51037 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
51038
c52c6897 51039.PHONY: restrap
266df637 51040restrap::
c52c6897 51041 @: $(MAKE); $(stage)
e3f56a99 51042 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 51043restrap:: all
c380fdd8 51044@endif gcc-bootstrap
c52c6897 51045
ae831be5
NN
51046# --------------------------------------
51047# Dependencies between different modules
51048# --------------------------------------
252b5132 51049
9e6ce191 51050# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 51051@if gcc-bootstrap
e8a5fa9c
RW
51052configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
51053configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
51054configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
51055configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
51056configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
51057configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
51058configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
51059configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
51060configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
51061configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
51062configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
51063configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
51064configure-stage1-target-libmpx: maybe-all-stage1-gcc
51065configure-stage2-target-libmpx: maybe-all-stage2-gcc
51066configure-stage3-target-libmpx: maybe-all-stage3-gcc
51067configure-stage4-target-libmpx: maybe-all-stage4-gcc
51068configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
51069configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
51070configure-stage1-target-libvtv: maybe-all-stage1-gcc
51071configure-stage2-target-libvtv: maybe-all-stage2-gcc
51072configure-stage3-target-libvtv: maybe-all-stage3-gcc
51073configure-stage4-target-libvtv: maybe-all-stage4-gcc
51074configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
51075configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
e3f56a99 51076configure-target-libcilkrts: stage_last
1b6c0831 51077configure-target-liboffloadmic: stage_last
c52c6897 51078configure-target-libssp: stage_last
c52c6897 51079configure-target-newlib: stage_last
6aa8ef82
DJ
51080configure-stage1-target-libgcc: maybe-all-stage1-gcc
51081configure-stage2-target-libgcc: maybe-all-stage2-gcc
51082configure-stage3-target-libgcc: maybe-all-stage3-gcc
51083configure-stage4-target-libgcc: maybe-all-stage4-gcc
51084configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
51085configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 51086configure-target-libbacktrace: stage_last
e552509b 51087configure-target-libquadmath: stage_last
c52c6897
PB
51088configure-target-libgfortran: stage_last
51089configure-target-libobjc: stage_last
e552509b 51090configure-target-libgo: stage_last
c52c6897
PB
51091configure-target-libtermcap: stage_last
51092configure-target-winsup: stage_last
51093configure-target-libgloss: stage_last
c52c6897 51094configure-target-libffi: stage_last
c52c6897 51095configure-target-zlib: stage_last
c52c6897
PB
51096configure-target-rda: stage_last
51097configure-target-libada: stage_last
911e63d0
JR
51098configure-stage1-target-libgomp: maybe-all-stage1-gcc
51099configure-stage2-target-libgomp: maybe-all-stage2-gcc
51100configure-stage3-target-libgomp: maybe-all-stage3-gcc
51101configure-stage4-target-libgomp: maybe-all-stage4-gcc
51102configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
51103configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
51104configure-target-libitm: stage_last
51105configure-target-libatomic: stage_last
c52c6897 51106@endif gcc-bootstrap
9e6ce191 51107
c52c6897 51108@if gcc-no-bootstrap
9e6ce191 51109configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 51110configure-target-libsanitizer: maybe-all-gcc
1b6c0831 51111configure-target-libmpx: maybe-all-gcc
95e43135 51112configure-target-libvtv: maybe-all-gcc
e3f56a99 51113configure-target-libcilkrts: maybe-all-gcc
1b6c0831 51114configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 51115configure-target-libssp: maybe-all-gcc
9e6ce191 51116configure-target-newlib: maybe-all-gcc
6aa8ef82 51117configure-target-libgcc: maybe-all-gcc
2bf680c4 51118configure-target-libbacktrace: maybe-all-gcc
e552509b 51119configure-target-libquadmath: maybe-all-gcc
9e6ce191 51120configure-target-libgfortran: maybe-all-gcc
9e6ce191 51121configure-target-libobjc: maybe-all-gcc
e552509b 51122configure-target-libgo: maybe-all-gcc
9e6ce191 51123configure-target-libtermcap: maybe-all-gcc
9e6ce191 51124configure-target-winsup: maybe-all-gcc
9e6ce191 51125configure-target-libgloss: maybe-all-gcc
9e6ce191 51126configure-target-libffi: maybe-all-gcc
9e6ce191 51127configure-target-zlib: maybe-all-gcc
9e6ce191 51128configure-target-rda: maybe-all-gcc
9e6ce191 51129configure-target-libada: maybe-all-gcc
b3ded179 51130configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
51131configure-target-libitm: maybe-all-gcc
51132configure-target-libatomic: maybe-all-gcc
c52c6897 51133@endif gcc-no-bootstrap
b3ded179 51134
9e6ce191 51135
ae831be5
NN
51136# There are two types of dependencies here: 'hard' dependencies, where one
51137# module simply won't build without the other; and 'soft' dependencies, where
51138# if the depended-on module is missing, the depending module will do without
51139# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 51140# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
51141# it's safer to use a soft dependency.
51142
9e6ce191
PB
51143
51144
51145
51146
c60fe18b 51147
9e6ce191
PB
51148# With all the machinery above in place, it is pretty easy to generate
51149# dependencies. Host dependencies are a bit more complex because we have
51150# to check for bootstrap/prebootstrap dependencies. To resolve
51151# prebootstrap dependencies, prebootstrap modules are gathered in
51152# a hash table.
6a9cf61e
PB
51153all-build-bison: maybe-all-build-texinfo
51154all-build-flex: maybe-all-build-texinfo
9e6ce191 51155all-build-flex: maybe-all-build-bison
9e6ce191 51156all-build-flex: maybe-all-build-m4
6a9cf61e 51157all-build-libiberty: maybe-all-build-texinfo
9e6ce191 51158all-build-m4: maybe-all-build-texinfo
ee025550 51159all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 51160all-build-libcpp: maybe-all-build-libiberty
9e6ce191 51161configure-gcc: maybe-configure-intl
9e6ce191
PB
51162configure-stage1-gcc: maybe-configure-stage1-intl
51163configure-stage2-gcc: maybe-configure-stage2-intl
51164configure-stage3-gcc: maybe-configure-stage3-intl
51165configure-stage4-gcc: maybe-configure-stage4-intl
51166configure-stageprofile-gcc: maybe-configure-stageprofile-intl
51167configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8 51168configure-gcc: maybe-all-gmp
861ea9c8
L
51169configure-stage1-gcc: maybe-all-stage1-gmp
51170configure-stage2-gcc: maybe-all-stage2-gmp
51171configure-stage3-gcc: maybe-all-stage3-gmp
51172configure-stage4-gcc: maybe-all-stage4-gmp
51173configure-stageprofile-gcc: maybe-all-stageprofile-gmp
51174configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831 51175configure-gcc: maybe-all-mpfr
1b6c0831
L
51176configure-stage1-gcc: maybe-all-stage1-mpfr
51177configure-stage2-gcc: maybe-all-stage2-mpfr
51178configure-stage3-gcc: maybe-all-stage3-mpfr
51179configure-stage4-gcc: maybe-all-stage4-mpfr
51180configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
51181configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
51182configure-gcc: maybe-all-mpc
1b6c0831
L
51183configure-stage1-gcc: maybe-all-stage1-mpc
51184configure-stage2-gcc: maybe-all-stage2-mpc
51185configure-stage3-gcc: maybe-all-stage3-mpc
51186configure-stage4-gcc: maybe-all-stage4-mpc
51187configure-stageprofile-gcc: maybe-all-stageprofile-mpc
51188configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
51189configure-gcc: maybe-all-isl
1b6c0831
L
51190configure-stage1-gcc: maybe-all-stage1-isl
51191configure-stage2-gcc: maybe-all-stage2-isl
51192configure-stage3-gcc: maybe-all-stage3-isl
51193configure-stage4-gcc: maybe-all-stage4-isl
51194configure-stageprofile-gcc: maybe-all-stageprofile-isl
51195configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a 51196configure-gcc: maybe-all-lto-plugin
8d8eef9a
RW
51197configure-stage1-gcc: maybe-all-stage1-lto-plugin
51198configure-stage2-gcc: maybe-all-stage2-lto-plugin
51199configure-stage3-gcc: maybe-all-stage3-lto-plugin
51200configure-stage4-gcc: maybe-all-stage4-lto-plugin
51201configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
51202configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b 51203configure-gcc: maybe-all-binutils
c60fe18b
PB
51204configure-stage1-gcc: maybe-all-stage1-binutils
51205configure-stage2-gcc: maybe-all-stage2-binutils
51206configure-stage3-gcc: maybe-all-stage3-binutils
51207configure-stage4-gcc: maybe-all-stage4-binutils
51208configure-stageprofile-gcc: maybe-all-stageprofile-binutils
51209configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
51210configure-gcc: maybe-all-gas
c60fe18b
PB
51211configure-stage1-gcc: maybe-all-stage1-gas
51212configure-stage2-gcc: maybe-all-stage2-gas
51213configure-stage3-gcc: maybe-all-stage3-gas
51214configure-stage4-gcc: maybe-all-stage4-gas
51215configure-stageprofile-gcc: maybe-all-stageprofile-gas
51216configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
51217configure-gcc: maybe-all-ld
c60fe18b
PB
51218configure-stage1-gcc: maybe-all-stage1-ld
51219configure-stage2-gcc: maybe-all-stage2-ld
51220configure-stage3-gcc: maybe-all-stage3-ld
51221configure-stage4-gcc: maybe-all-stage4-ld
51222configure-stageprofile-gcc: maybe-all-stageprofile-ld
51223configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408 51224configure-gcc: maybe-all-gold
93f9b408
ILT
51225configure-stage1-gcc: maybe-all-stage1-gold
51226configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 51227configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
51228configure-stage4-gcc: maybe-all-stage4-gold
51229configure-stageprofile-gcc: maybe-all-stageprofile-gold
51230configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480 51231configure-gcc: maybe-all-libelf
7530c480
AO
51232configure-stage1-gcc: maybe-all-stage1-libelf
51233configure-stage2-gcc: maybe-all-stage2-libelf
51234configure-stage3-gcc: maybe-all-stage3-libelf
51235configure-stage4-gcc: maybe-all-stage4-libelf
51236configure-stageprofile-gcc: maybe-all-stageprofile-libelf
51237configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251 51238configure-gcc: maybe-all-libiconv
016a3251
DD
51239configure-stage1-gcc: maybe-all-stage1-libiconv
51240configure-stage2-gcc: maybe-all-stage2-libiconv
51241configure-stage3-gcc: maybe-all-stage3-libiconv
51242configure-stage4-gcc: maybe-all-stage4-libiconv
51243configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
51244configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191 51245all-gcc: all-libiberty
9e6ce191
PB
51246all-stage1-gcc: all-stage1-libiberty
51247all-stage2-gcc: all-stage2-libiberty
51248all-stage3-gcc: all-stage3-libiberty
51249all-stage4-gcc: all-stage4-libiberty
51250all-stageprofile-gcc: all-stageprofile-libiberty
51251all-stagefeedback-gcc: all-stagefeedback-libiberty
51252all-gcc: maybe-all-intl
9e6ce191
PB
51253all-stage1-gcc: maybe-all-stage1-intl
51254all-stage2-gcc: maybe-all-stage2-intl
51255all-stage3-gcc: maybe-all-stage3-intl
51256all-stage4-gcc: maybe-all-stage4-intl
51257all-stageprofile-gcc: maybe-all-stageprofile-intl
51258all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473 51259all-gcc: maybe-all-mpfr
4b900473
PB
51260all-stage1-gcc: maybe-all-stage1-mpfr
51261all-stage2-gcc: maybe-all-stage2-mpfr
51262all-stage3-gcc: maybe-all-stage3-mpfr
51263all-stage4-gcc: maybe-all-stage4-mpfr
51264all-stageprofile-gcc: maybe-all-stageprofile-mpfr
51265all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c 51266all-gcc: maybe-all-mpc
e8a5fa9c
RW
51267all-stage1-gcc: maybe-all-stage1-mpc
51268all-stage2-gcc: maybe-all-stage2-mpc
51269all-stage3-gcc: maybe-all-stage3-mpc
51270all-stage4-gcc: maybe-all-stage4-mpc
51271all-stageprofile-gcc: maybe-all-stageprofile-mpc
51272all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831 51273all-gcc: maybe-all-isl
1b6c0831
L
51274all-stage1-gcc: maybe-all-stage1-isl
51275all-stage2-gcc: maybe-all-stage2-isl
51276all-stage3-gcc: maybe-all-stage3-isl
51277all-stage4-gcc: maybe-all-stage4-isl
51278all-stageprofile-gcc: maybe-all-stageprofile-isl
51279all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a 51280all-gcc: maybe-all-build-texinfo
72b2455a
PB
51281all-stage1-gcc: maybe-all-build-texinfo
51282all-stage2-gcc: maybe-all-build-texinfo
51283all-stage3-gcc: maybe-all-build-texinfo
51284all-stage4-gcc: maybe-all-build-texinfo
51285all-stageprofile-gcc: maybe-all-build-texinfo
51286all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a 51287all-gcc: maybe-all-build-bison
72b2455a
PB
51288all-stage1-gcc: maybe-all-build-bison
51289all-stage2-gcc: maybe-all-build-bison
51290all-stage3-gcc: maybe-all-build-bison
51291all-stage4-gcc: maybe-all-build-bison
51292all-stageprofile-gcc: maybe-all-build-bison
51293all-stagefeedback-gcc: maybe-all-build-bison
72b2455a 51294all-gcc: maybe-all-build-flex
72b2455a
PB
51295all-stage1-gcc: maybe-all-build-flex
51296all-stage2-gcc: maybe-all-build-flex
51297all-stage3-gcc: maybe-all-build-flex
51298all-stage4-gcc: maybe-all-build-flex
51299all-stageprofile-gcc: maybe-all-build-flex
51300all-stagefeedback-gcc: maybe-all-build-flex
ee025550 51301all-gcc: maybe-all-build-libiberty
ee025550
PB
51302all-stage1-gcc: maybe-all-build-libiberty
51303all-stage2-gcc: maybe-all-build-libiberty
51304all-stage3-gcc: maybe-all-build-libiberty
51305all-stage4-gcc: maybe-all-build-libiberty
51306all-stageprofile-gcc: maybe-all-build-libiberty
51307all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550 51308all-gcc: maybe-all-build-fixincludes
ee025550
PB
51309all-stage1-gcc: maybe-all-build-fixincludes
51310all-stage2-gcc: maybe-all-build-fixincludes
51311all-stage3-gcc: maybe-all-build-fixincludes
51312all-stage4-gcc: maybe-all-build-fixincludes
51313all-stageprofile-gcc: maybe-all-build-fixincludes
51314all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831 51315all-gcc: maybe-all-build-libcpp
1b6c0831
L
51316all-stage1-gcc: maybe-all-build-libcpp
51317all-stage2-gcc: maybe-all-build-libcpp
51318all-stage3-gcc: maybe-all-build-libcpp
51319all-stage4-gcc: maybe-all-build-libcpp
51320all-stageprofile-gcc: maybe-all-build-libcpp
51321all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191 51322all-gcc: maybe-all-zlib
9e6ce191
PB
51323all-stage1-gcc: maybe-all-stage1-zlib
51324all-stage2-gcc: maybe-all-stage2-zlib
51325all-stage3-gcc: maybe-all-stage3-zlib
51326all-stage4-gcc: maybe-all-stage4-zlib
51327all-stageprofile-gcc: maybe-all-stageprofile-zlib
51328all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b 51329all-gcc: all-libbacktrace
8e71395b
L
51330all-stage1-gcc: all-stage1-libbacktrace
51331all-stage2-gcc: all-stage2-libbacktrace
51332all-stage3-gcc: all-stage3-libbacktrace
51333all-stage4-gcc: all-stage4-libbacktrace
51334all-stageprofile-gcc: all-stageprofile-libbacktrace
51335all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191 51336all-gcc: all-libcpp
9e6ce191
PB
51337all-stage1-gcc: all-stage1-libcpp
51338all-stage2-gcc: all-stage2-libcpp
51339all-stage3-gcc: all-stage3-libcpp
51340all-stage4-gcc: all-stage4-libcpp
51341all-stageprofile-gcc: all-stageprofile-libcpp
51342all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343 51343all-gcc: all-libdecnumber
be01d343
PB
51344all-stage1-gcc: all-stage1-libdecnumber
51345all-stage2-gcc: all-stage2-libdecnumber
51346all-stage3-gcc: all-stage3-libdecnumber
51347all-stage4-gcc: all-stage4-libdecnumber
51348all-stageprofile-gcc: all-stageprofile-libdecnumber
51349all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c 51350all-gcc: maybe-all-libiberty
d3ed111c
GK
51351all-stage1-gcc: maybe-all-stage1-libiberty
51352all-stage2-gcc: maybe-all-stage2-libiberty
51353all-stage3-gcc: maybe-all-stage3-libiberty
51354all-stage4-gcc: maybe-all-stage4-libiberty
51355all-stageprofile-gcc: maybe-all-stageprofile-libiberty
51356all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
51357all-gcc: maybe-all-fixincludes
201f096f 51358all-stage1-gcc: maybe-all-stage1-fixincludes
51359all-stage2-gcc: maybe-all-stage2-fixincludes
51360all-stage3-gcc: maybe-all-stage3-fixincludes
51361all-stage4-gcc: maybe-all-stage4-fixincludes
51362all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
51363all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a 51364all-gcc: maybe-all-lto-plugin
8d8eef9a
RW
51365all-stage1-gcc: maybe-all-stage1-lto-plugin
51366all-stage2-gcc: maybe-all-stage2-lto-plugin
51367all-stage3-gcc: maybe-all-stage3-lto-plugin
51368all-stage4-gcc: maybe-all-stage4-lto-plugin
51369all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
51370all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251 51371all-gcc: maybe-all-libiconv
016a3251
DD
51372all-stage1-gcc: maybe-all-stage1-libiconv
51373all-stage2-gcc: maybe-all-stage2-libiconv
51374all-stage3-gcc: maybe-all-stage3-libiconv
51375all-stage4-gcc: maybe-all-stage4-libiconv
51376all-stageprofile-gcc: maybe-all-stageprofile-libiconv
51377all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d 51378info-gcc: maybe-all-build-libiberty
57eefe4d
RW
51379info-stage1-gcc: maybe-all-build-libiberty
51380info-stage2-gcc: maybe-all-build-libiberty
51381info-stage3-gcc: maybe-all-build-libiberty
51382info-stage4-gcc: maybe-all-build-libiberty
51383info-stageprofile-gcc: maybe-all-build-libiberty
51384info-stagefeedback-gcc: maybe-all-build-libiberty
51385dvi-gcc: maybe-all-build-libiberty
57eefe4d
RW
51386dvi-stage1-gcc: maybe-all-build-libiberty
51387dvi-stage2-gcc: maybe-all-build-libiberty
51388dvi-stage3-gcc: maybe-all-build-libiberty
51389dvi-stage4-gcc: maybe-all-build-libiberty
51390dvi-stageprofile-gcc: maybe-all-build-libiberty
51391dvi-stagefeedback-gcc: maybe-all-build-libiberty
51392pdf-gcc: maybe-all-build-libiberty
57eefe4d
RW
51393pdf-stage1-gcc: maybe-all-build-libiberty
51394pdf-stage2-gcc: maybe-all-build-libiberty
51395pdf-stage3-gcc: maybe-all-build-libiberty
51396pdf-stage4-gcc: maybe-all-build-libiberty
51397pdf-stageprofile-gcc: maybe-all-build-libiberty
51398pdf-stagefeedback-gcc: maybe-all-build-libiberty
51399html-gcc: maybe-all-build-libiberty
57eefe4d
RW
51400html-stage1-gcc: maybe-all-build-libiberty
51401html-stage2-gcc: maybe-all-build-libiberty
51402html-stage3-gcc: maybe-all-build-libiberty
51403html-stage4-gcc: maybe-all-build-libiberty
51404html-stageprofile-gcc: maybe-all-build-libiberty
51405html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 51406install-gcc: maybe-install-fixincludes
8d8eef9a 51407install-gcc: maybe-install-lto-plugin
9b980aa1 51408install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 51409install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191 51410configure-libcpp: configure-libiberty
9e6ce191
PB
51411configure-stage1-libcpp: configure-stage1-libiberty
51412configure-stage2-libcpp: configure-stage2-libiberty
51413configure-stage3-libcpp: configure-stage3-libiberty
51414configure-stage4-libcpp: configure-stage4-libiberty
51415configure-stageprofile-libcpp: configure-stageprofile-libiberty
51416configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
51417configure-libcpp: maybe-configure-intl
9e6ce191
PB
51418configure-stage1-libcpp: maybe-configure-stage1-intl
51419configure-stage2-libcpp: maybe-configure-stage2-intl
51420configure-stage3-libcpp: maybe-configure-stage3-intl
51421configure-stage4-libcpp: maybe-configure-stage4-intl
51422configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
51423configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251 51424configure-libcpp: maybe-all-libiconv
016a3251
DD
51425configure-stage1-libcpp: maybe-all-stage1-libiconv
51426configure-stage2-libcpp: maybe-all-stage2-libiconv
51427configure-stage3-libcpp: maybe-all-stage3-libiconv
51428configure-stage4-libcpp: maybe-all-stage4-libiconv
51429configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
51430configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191 51431all-libcpp: all-libiberty
9e6ce191
PB
51432all-stage1-libcpp: all-stage1-libiberty
51433all-stage2-libcpp: all-stage2-libiberty
51434all-stage3-libcpp: all-stage3-libiberty
51435all-stage4-libcpp: all-stage4-libiberty
51436all-stageprofile-libcpp: all-stageprofile-libiberty
51437all-stagefeedback-libcpp: all-stagefeedback-libiberty
51438all-libcpp: maybe-all-intl
9e6ce191
PB
51439all-stage1-libcpp: maybe-all-stage1-intl
51440all-stage2-libcpp: maybe-all-stage2-intl
51441all-stage3-libcpp: maybe-all-stage3-intl
51442all-stage4-libcpp: maybe-all-stage4-intl
51443all-stageprofile-libcpp: maybe-all-stageprofile-intl
51444all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251 51445all-libcpp: maybe-all-libiconv
016a3251
DD
51446all-stage1-libcpp: maybe-all-stage1-libiconv
51447all-stage2-libcpp: maybe-all-stage2-libiconv
51448all-stage3-libcpp: maybe-all-stage3-libiconv
51449all-stage4-libcpp: maybe-all-stage4-libiconv
51450all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
51451all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 51452all-fixincludes: maybe-all-libiberty
201f096f 51453all-stage1-fixincludes: maybe-all-stage1-libiberty
51454all-stage2-fixincludes: maybe-all-stage2-libiberty
51455all-stage3-fixincludes: maybe-all-stage3-libiberty
51456all-stage4-fixincludes: maybe-all-stage4-libiberty
51457all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
51458all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 51459all-gnattools: maybe-all-target-libada
8d8eef9a 51460all-lto-plugin: maybe-all-libiberty
8d8eef9a
RW
51461all-stage1-lto-plugin: maybe-all-stage1-libiberty
51462all-stage2-lto-plugin: maybe-all-stage2-libiberty
51463all-stage3-lto-plugin: maybe-all-stage3-libiberty
51464all-stage4-lto-plugin: maybe-all-stage4-libiberty
51465all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
51466all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831 51467all-lto-plugin: maybe-all-libiberty-linker-plugin
1b6c0831
L
51468all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
51469all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
51470all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
51471all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
51472all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
51473all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
1b6c0831 51474all-gotools: maybe-all-target-libgo
016a3251 51475configure-intl: maybe-all-libiconv
016a3251
DD
51476configure-stage1-intl: maybe-all-stage1-libiconv
51477configure-stage2-intl: maybe-all-stage2-libiconv
51478configure-stage3-intl: maybe-all-stage3-libiconv
51479configure-stage4-intl: maybe-all-stage4-libiconv
51480configure-stageprofile-intl: maybe-all-stageprofile-libiconv
51481configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473 51482configure-mpfr: maybe-all-gmp
4b900473
PB
51483configure-stage1-mpfr: maybe-all-stage1-gmp
51484configure-stage2-mpfr: maybe-all-stage2-gmp
51485configure-stage3-mpfr: maybe-all-stage3-gmp
51486configure-stage4-mpfr: maybe-all-stage4-gmp
51487configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
51488configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c 51489configure-mpc: maybe-all-mpfr
e8a5fa9c
RW
51490configure-stage1-mpc: maybe-all-stage1-mpfr
51491configure-stage2-mpc: maybe-all-stage2-mpfr
51492configure-stage3-mpc: maybe-all-stage3-mpfr
51493configure-stage4-mpc: maybe-all-stage4-mpfr
51494configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
51495configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e 51496configure-isl: maybe-all-gmp
7ec59b9e
L
51497configure-stage1-isl: maybe-all-stage1-gmp
51498configure-stage2-isl: maybe-all-stage2-gmp
51499configure-stage3-isl: maybe-all-stage3-gmp
51500configure-stage4-isl: maybe-all-stage4-gmp
51501configure-stageprofile-isl: maybe-all-stageprofile-gmp
51502configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251 51503all-intl: maybe-all-libiconv
016a3251
DD
51504all-stage1-intl: maybe-all-stage1-libiconv
51505all-stage2-intl: maybe-all-stage2-libiconv
51506all-stage3-intl: maybe-all-stage3-libiconv
51507all-stage4-intl: maybe-all-stage4-libiconv
51508all-stageprofile-intl: maybe-all-stageprofile-libiconv
51509all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
9e6ce191 51510configure-gdb: maybe-configure-sim
73cc7272 51511configure-gdb: maybe-all-gnulib
01027315 51512configure-gdb: maybe-all-gdbsupport
73cc7272 51513all-gdb: maybe-all-gnulib
01027315 51514all-gdb: maybe-all-gdbsupport
9e6ce191 51515all-gdb: maybe-all-readline
72b2455a 51516all-gdb: maybe-all-build-bison
9e6ce191 51517all-gdb: maybe-all-sim
dbbe5f95 51518all-gdb: maybe-all-libtermcap
9e6ce191
PB
51519configure-libgui: maybe-configure-tcl
51520configure-libgui: maybe-configure-tk
51521all-libgui: maybe-all-tcl
51522all-libgui: maybe-all-tk
51523all-libgui: maybe-all-itcl
01027315
TT
51524configure-gdbsupport: maybe-configure-gnulib
51525all-gdbsupport: maybe-all-gnulib
b4a77b47 51526configure-bfd: configure-libiberty
9e6ce191
PB
51527configure-stage1-bfd: configure-stage1-libiberty
51528configure-stage2-bfd: configure-stage2-libiberty
51529configure-stage3-bfd: configure-stage3-libiberty
51530configure-stage4-bfd: configure-stage4-libiberty
51531configure-stageprofile-bfd: configure-stageprofile-libiberty
51532configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23 51533configure-bfd: maybe-configure-intl
20e95c23
DJ
51534configure-stage1-bfd: maybe-configure-stage1-intl
51535configure-stage2-bfd: maybe-configure-stage2-intl
51536configure-stage3-bfd: maybe-configure-stage3-intl
51537configure-stage4-bfd: maybe-configure-stage4-intl
51538configure-stageprofile-bfd: maybe-configure-stageprofile-intl
51539configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191 51540all-bfd: maybe-all-libiberty
9e6ce191
PB
51541all-stage1-bfd: maybe-all-stage1-libiberty
51542all-stage2-bfd: maybe-all-stage2-libiberty
51543all-stage3-bfd: maybe-all-stage3-libiberty
51544all-stage4-bfd: maybe-all-stage4-libiberty
51545all-stageprofile-bfd: maybe-all-stageprofile-libiberty
51546all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
51547all-bfd: maybe-all-intl
9e6ce191
PB
51548all-stage1-bfd: maybe-all-stage1-intl
51549all-stage2-bfd: maybe-all-stage2-intl
51550all-stage3-bfd: maybe-all-stage3-intl
51551all-stage4-bfd: maybe-all-stage4-intl
51552all-stageprofile-bfd: maybe-all-stageprofile-intl
51553all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea 51554all-bfd: maybe-all-zlib
d2d67aea
L
51555all-stage1-bfd: maybe-all-stage1-zlib
51556all-stage2-bfd: maybe-all-stage2-zlib
51557all-stage3-bfd: maybe-all-stage3-zlib
51558all-stage4-bfd: maybe-all-stage4-zlib
51559all-stageprofile-bfd: maybe-all-stageprofile-zlib
51560all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67 51561configure-opcodes: configure-libiberty
66775d67
AM
51562configure-stage1-opcodes: configure-stage1-libiberty
51563configure-stage2-opcodes: configure-stage2-libiberty
66775d67 51564configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
51565configure-stage4-opcodes: configure-stage4-libiberty
51566configure-stageprofile-opcodes: configure-stageprofile-libiberty
51567configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
51568all-opcodes: maybe-all-libiberty
66775d67
AM
51569all-stage1-opcodes: maybe-all-stage1-libiberty
51570all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 51571all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
51572all-stage4-opcodes: maybe-all-stage4-libiberty
51573all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
51574all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23 51575configure-binutils: maybe-configure-intl
20e95c23
DJ
51576configure-stage1-binutils: maybe-configure-stage1-intl
51577configure-stage2-binutils: maybe-configure-stage2-intl
51578configure-stage3-binutils: maybe-configure-stage3-intl
51579configure-stage4-binutils: maybe-configure-stage4-intl
51580configure-stageprofile-binutils: maybe-configure-stageprofile-intl
51581configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191 51582all-binutils: maybe-all-libiberty
9e6ce191
PB
51583all-stage1-binutils: maybe-all-stage1-libiberty
51584all-stage2-binutils: maybe-all-stage2-libiberty
51585all-stage3-binutils: maybe-all-stage3-libiberty
51586all-stage4-binutils: maybe-all-stage4-libiberty
51587all-stageprofile-binutils: maybe-all-stageprofile-libiberty
51588all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
51589all-binutils: maybe-all-opcodes
9e6ce191
PB
51590all-stage1-binutils: maybe-all-stage1-opcodes
51591all-stage2-binutils: maybe-all-stage2-opcodes
51592all-stage3-binutils: maybe-all-stage3-opcodes
51593all-stage4-binutils: maybe-all-stage4-opcodes
51594all-stageprofile-binutils: maybe-all-stageprofile-opcodes
51595all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
51596all-binutils: maybe-all-bfd
9e6ce191
PB
51597all-stage1-binutils: maybe-all-stage1-bfd
51598all-stage2-binutils: maybe-all-stage2-bfd
51599all-stage3-binutils: maybe-all-stage3-bfd
51600all-stage4-binutils: maybe-all-stage4-bfd
51601all-stageprofile-binutils: maybe-all-stageprofile-bfd
51602all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a 51603all-binutils: maybe-all-build-flex
72b2455a
PB
51604all-stage1-binutils: maybe-all-build-flex
51605all-stage2-binutils: maybe-all-build-flex
51606all-stage3-binutils: maybe-all-build-flex
51607all-stage4-binutils: maybe-all-build-flex
51608all-stageprofile-binutils: maybe-all-build-flex
51609all-stagefeedback-binutils: maybe-all-build-flex
72b2455a 51610all-binutils: maybe-all-build-bison
72b2455a
PB
51611all-stage1-binutils: maybe-all-build-bison
51612all-stage2-binutils: maybe-all-build-bison
51613all-stage3-binutils: maybe-all-build-bison
51614all-stage4-binutils: maybe-all-build-bison
51615all-stageprofile-binutils: maybe-all-build-bison
51616all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191 51617all-binutils: maybe-all-intl
9e6ce191
PB
51618all-stage1-binutils: maybe-all-stage1-intl
51619all-stage2-binutils: maybe-all-stage2-intl
51620all-stage3-binutils: maybe-all-stage3-intl
51621all-stage4-binutils: maybe-all-stage4-intl
51622all-stageprofile-binutils: maybe-all-stageprofile-intl
51623all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685 51624all-binutils: maybe-all-gas
0140d685
L
51625all-stage1-binutils: maybe-all-stage1-gas
51626all-stage2-binutils: maybe-all-stage2-gas
51627all-stage3-binutils: maybe-all-stage3-gas
51628all-stage4-binutils: maybe-all-stage4-gas
51629all-stageprofile-binutils: maybe-all-stageprofile-gas
51630all-stagefeedback-binutils: maybe-all-stagefeedback-gas
0e65dfba
NA
51631all-binutils: maybe-all-libctf
51632all-stage1-binutils: maybe-all-stage1-libctf
51633all-stage2-binutils: maybe-all-stage2-libctf
51634all-stage3-binutils: maybe-all-stage3-libctf
51635all-stage4-binutils: maybe-all-stage4-libctf
51636all-stageprofile-binutils: maybe-all-stageprofile-libctf
51637all-stagefeedback-binutils: maybe-all-stagefeedback-libctf
1ff6de03
NA
51638all-ld: maybe-all-libctf
51639all-stage1-ld: maybe-all-stage1-libctf
51640all-stage2-ld: maybe-all-stage2-libctf
51641all-stage3-ld: maybe-all-stage3-libctf
51642all-stage4-ld: maybe-all-stage4-libctf
51643all-stageprofile-ld: maybe-all-stageprofile-libctf
51644all-stagefeedback-ld: maybe-all-stagefeedback-libctf
ae831be5 51645install-binutils: maybe-install-opcodes
9b980aa1 51646install-strip-binutils: maybe-install-strip-opcodes
cf662e21 51647install-opcodes: maybe-install-bfd
9b980aa1 51648install-strip-opcodes: maybe-install-strip-bfd
20e95c23 51649configure-gas: maybe-configure-intl
20e95c23
DJ
51650configure-stage1-gas: maybe-configure-stage1-intl
51651configure-stage2-gas: maybe-configure-stage2-intl
51652configure-stage3-gas: maybe-configure-stage3-intl
51653configure-stage4-gas: maybe-configure-stage4-intl
51654configure-stageprofile-gas: maybe-configure-stageprofile-intl
51655configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191 51656all-gas: maybe-all-libiberty
9e6ce191
PB
51657all-stage1-gas: maybe-all-stage1-libiberty
51658all-stage2-gas: maybe-all-stage2-libiberty
51659all-stage3-gas: maybe-all-stage3-libiberty
51660all-stage4-gas: maybe-all-stage4-libiberty
51661all-stageprofile-gas: maybe-all-stageprofile-libiberty
51662all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
51663all-gas: maybe-all-opcodes
9e6ce191
PB
51664all-stage1-gas: maybe-all-stage1-opcodes
51665all-stage2-gas: maybe-all-stage2-opcodes
51666all-stage3-gas: maybe-all-stage3-opcodes
51667all-stage4-gas: maybe-all-stage4-opcodes
51668all-stageprofile-gas: maybe-all-stageprofile-opcodes
51669all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
51670all-gas: maybe-all-bfd
9e6ce191
PB
51671all-stage1-gas: maybe-all-stage1-bfd
51672all-stage2-gas: maybe-all-stage2-bfd
51673all-stage3-gas: maybe-all-stage3-bfd
51674all-stage4-gas: maybe-all-stage4-bfd
51675all-stageprofile-gas: maybe-all-stageprofile-bfd
51676all-stagefeedback-gas: maybe-all-stagefeedback-bfd
51677all-gas: maybe-all-intl
9e6ce191
PB
51678all-stage1-gas: maybe-all-stage1-intl
51679all-stage2-gas: maybe-all-stage2-intl
51680all-stage3-gas: maybe-all-stage3-intl
51681all-stage4-gas: maybe-all-stage4-intl
51682all-stageprofile-gas: maybe-all-stageprofile-intl
51683all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 51684configure-ld: maybe-configure-intl
20e95c23
DJ
51685configure-stage1-ld: maybe-configure-stage1-intl
51686configure-stage2-ld: maybe-configure-stage2-intl
51687configure-stage3-ld: maybe-configure-stage3-intl
51688configure-stage4-ld: maybe-configure-stage4-intl
51689configure-stageprofile-ld: maybe-configure-stageprofile-intl
51690configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191 51691all-ld: maybe-all-libiberty
9e6ce191
PB
51692all-stage1-ld: maybe-all-stage1-libiberty
51693all-stage2-ld: maybe-all-stage2-libiberty
51694all-stage3-ld: maybe-all-stage3-libiberty
51695all-stage4-ld: maybe-all-stage4-libiberty
51696all-stageprofile-ld: maybe-all-stageprofile-libiberty
51697all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
51698all-ld: maybe-all-bfd
9e6ce191
PB
51699all-stage1-ld: maybe-all-stage1-bfd
51700all-stage2-ld: maybe-all-stage2-bfd
51701all-stage3-ld: maybe-all-stage3-bfd
51702all-stage4-ld: maybe-all-stage4-bfd
51703all-stageprofile-ld: maybe-all-stageprofile-bfd
51704all-stagefeedback-ld: maybe-all-stagefeedback-bfd
51705all-ld: maybe-all-opcodes
9e6ce191
PB
51706all-stage1-ld: maybe-all-stage1-opcodes
51707all-stage2-ld: maybe-all-stage2-opcodes
51708all-stage3-ld: maybe-all-stage3-opcodes
51709all-stage4-ld: maybe-all-stage4-opcodes
51710all-stageprofile-ld: maybe-all-stageprofile-opcodes
51711all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a 51712all-ld: maybe-all-build-bison
72b2455a
PB
51713all-stage1-ld: maybe-all-build-bison
51714all-stage2-ld: maybe-all-build-bison
51715all-stage3-ld: maybe-all-build-bison
51716all-stage4-ld: maybe-all-build-bison
51717all-stageprofile-ld: maybe-all-build-bison
51718all-stagefeedback-ld: maybe-all-build-bison
72b2455a 51719all-ld: maybe-all-build-flex
72b2455a
PB
51720all-stage1-ld: maybe-all-build-flex
51721all-stage2-ld: maybe-all-build-flex
51722all-stage3-ld: maybe-all-build-flex
51723all-stage4-ld: maybe-all-build-flex
51724all-stageprofile-ld: maybe-all-build-flex
51725all-stagefeedback-ld: maybe-all-build-flex
9e6ce191 51726all-ld: maybe-all-intl
9e6ce191
PB
51727all-stage1-ld: maybe-all-stage1-intl
51728all-stage2-ld: maybe-all-stage2-intl
51729all-stage3-ld: maybe-all-stage3-intl
51730all-stage4-ld: maybe-all-stage4-intl
51731all-stageprofile-ld: maybe-all-stageprofile-intl
51732all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685 51733all-ld: maybe-all-gas
0140d685
L
51734all-stage1-ld: maybe-all-stage1-gas
51735all-stage2-ld: maybe-all-stage2-gas
51736all-stage3-ld: maybe-all-stage3-gas
51737all-stage4-ld: maybe-all-stage4-gas
51738all-stageprofile-ld: maybe-all-stageprofile-gas
51739all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403 51740all-ld: maybe-all-binutils
a6305403
YS
51741all-stage1-ld: maybe-all-stage1-binutils
51742all-stage2-ld: maybe-all-stage2-binutils
51743all-stage3-ld: maybe-all-stage3-binutils
51744all-stage4-ld: maybe-all-stage4-binutils
51745all-stageprofile-ld: maybe-all-stageprofile-binutils
51746all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 51747install-ld: maybe-install-gold
9b980aa1 51748install-strip-ld: maybe-install-strip-gold
93f9b408 51749configure-gold: maybe-configure-intl
93f9b408
ILT
51750configure-stage1-gold: maybe-configure-stage1-intl
51751configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 51752configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
51753configure-stage4-gold: maybe-configure-stage4-intl
51754configure-stageprofile-gold: maybe-configure-stageprofile-intl
51755configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
51756all-gold: maybe-all-libiberty
93f9b408
ILT
51757all-stage1-gold: maybe-all-stage1-libiberty
51758all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 51759all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
51760all-stage4-gold: maybe-all-stage4-libiberty
51761all-stageprofile-gold: maybe-all-stageprofile-libiberty
51762all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
51763all-gold: maybe-all-intl
93f9b408
ILT
51764all-stage1-gold: maybe-all-stage1-intl
51765all-stage2-gold: maybe-all-stage2-intl
93f9b408 51766all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
51767all-stage4-gold: maybe-all-stage4-intl
51768all-stageprofile-gold: maybe-all-stageprofile-intl
51769all-stagefeedback-gold: maybe-all-stagefeedback-intl
51770all-gold: maybe-all-bfd
93f9b408
ILT
51771all-stage1-gold: maybe-all-stage1-bfd
51772all-stage2-gold: maybe-all-stage2-bfd
93f9b408 51773all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
51774all-stage4-gold: maybe-all-stage4-bfd
51775all-stageprofile-gold: maybe-all-stageprofile-bfd
51776all-stagefeedback-gold: maybe-all-stagefeedback-bfd
51777all-gold: maybe-all-build-bison
93f9b408
ILT
51778all-stage1-gold: maybe-all-build-bison
51779all-stage2-gold: maybe-all-build-bison
93f9b408 51780all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
51781all-stage4-gold: maybe-all-build-bison
51782all-stageprofile-gold: maybe-all-build-bison
51783all-stagefeedback-gold: maybe-all-build-bison
0140d685 51784all-gold: maybe-all-gas
0140d685
L
51785all-stage1-gold: maybe-all-stage1-gas
51786all-stage2-gold: maybe-all-stage2-gas
51787all-stage3-gold: maybe-all-stage3-gas
51788all-stage4-gold: maybe-all-stage4-gas
51789all-stageprofile-gold: maybe-all-stageprofile-gas
51790all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97 51791check-gold: maybe-all-binutils
e5164e97
ILT
51792check-stage1-gold: maybe-all-stage1-binutils
51793check-stage2-gold: maybe-all-stage2-binutils
e5164e97 51794check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
51795check-stage4-gold: maybe-all-stage4-binutils
51796check-stageprofile-gold: maybe-all-stageprofile-binutils
51797check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca 51798check-gold: maybe-all-gas
700d40ca
ILT
51799check-stage1-gold: maybe-all-stage1-gas
51800check-stage2-gold: maybe-all-stage2-gas
51801check-stage3-gold: maybe-all-stage3-gas
51802check-stage4-gold: maybe-all-stage4-gas
51803check-stageprofile-gold: maybe-all-stageprofile-gas
51804check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee 51805configure-opcodes: maybe-configure-intl
7206a0ee
JJ
51806configure-stage1-opcodes: maybe-configure-stage1-intl
51807configure-stage2-opcodes: maybe-configure-stage2-intl
51808configure-stage3-opcodes: maybe-configure-stage3-intl
51809configure-stage4-opcodes: maybe-configure-stage4-intl
51810configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
51811configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191 51812all-opcodes: maybe-all-bfd
9e6ce191
PB
51813all-stage1-opcodes: maybe-all-stage1-bfd
51814all-stage2-opcodes: maybe-all-stage2-bfd
51815all-stage3-opcodes: maybe-all-stage3-bfd
51816all-stage4-opcodes: maybe-all-stage4-bfd
51817all-stageprofile-opcodes: maybe-all-stageprofile-bfd
51818all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
51819all-opcodes: maybe-all-libiberty
9e6ce191
PB
51820all-stage1-opcodes: maybe-all-stage1-libiberty
51821all-stage2-opcodes: maybe-all-stage2-libiberty
51822all-stage3-opcodes: maybe-all-stage3-libiberty
51823all-stage4-opcodes: maybe-all-stage4-libiberty
51824all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
51825all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee 51826all-opcodes: maybe-all-intl
7206a0ee
JJ
51827all-stage1-opcodes: maybe-all-stage1-intl
51828all-stage2-opcodes: maybe-all-stage2-intl
51829all-stage3-opcodes: maybe-all-stage3-intl
51830all-stage4-opcodes: maybe-all-stage4-intl
51831all-stageprofile-opcodes: maybe-all-stageprofile-intl
51832all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
51833all-dejagnu: maybe-all-tcl
51834all-dejagnu: maybe-all-expect
51835all-dejagnu: maybe-all-tk
51836configure-expect: maybe-configure-tcl
51837configure-expect: maybe-configure-tk
51838all-expect: maybe-all-tcl
51839all-expect: maybe-all-tk
51840configure-itcl: maybe-configure-tcl
51841configure-itcl: maybe-configure-tk
51842all-itcl: maybe-all-tcl
51843all-itcl: maybe-all-tk
ae831be5 51844install-itcl: maybe-install-tcl
9b980aa1 51845install-strip-itcl: maybe-install-strip-tcl
b4a77b47 51846configure-tk: maybe-configure-tcl
ae831be5 51847all-tk: maybe-all-tcl
9e6ce191
PB
51848all-sid: maybe-all-tcl
51849all-sid: maybe-all-tk
51850install-sid: maybe-install-tcl
9b980aa1 51851install-strip-sid: maybe-install-strip-tcl
9e6ce191 51852install-sid: maybe-install-tk
9b980aa1 51853install-strip-sid: maybe-install-strip-tk
9e6ce191
PB
51854all-sim: maybe-all-readline
51855all-sim: maybe-configure-gdb
72b2455a 51856all-fastjar: maybe-all-build-texinfo
0e65dfba
NA
51857all-libctf: all-libiberty
51858all-stage1-libctf: all-stage1-libiberty
51859all-stage2-libctf: all-stage2-libiberty
51860all-stage3-libctf: all-stage3-libiberty
51861all-stage4-libctf: all-stage4-libiberty
51862all-stageprofile-libctf: all-stageprofile-libiberty
51863all-stagefeedback-libctf: all-stagefeedback-libiberty
51864all-libctf: maybe-all-bfd
51865all-stage1-libctf: maybe-all-stage1-bfd
51866all-stage2-libctf: maybe-all-stage2-bfd
51867all-stage3-libctf: maybe-all-stage3-bfd
51868all-stage4-libctf: maybe-all-stage4-bfd
51869all-stageprofile-libctf: maybe-all-stageprofile-bfd
51870all-stagefeedback-libctf: maybe-all-stagefeedback-bfd
51871all-libctf: maybe-all-zlib
51872all-stage1-libctf: maybe-all-stage1-zlib
51873all-stage2-libctf: maybe-all-stage2-zlib
51874all-stage3-libctf: maybe-all-stage3-zlib
51875all-stage4-libctf: maybe-all-stage4-zlib
51876all-stageprofile-libctf: maybe-all-stageprofile-zlib
51877all-stagefeedback-libctf: maybe-all-stagefeedback-zlib
9698cf9b
NA
51878configure-libctf: maybe-all-bfd
51879configure-stage1-libctf: maybe-all-stage1-bfd
51880configure-stage2-libctf: maybe-all-stage2-bfd
51881configure-stage3-libctf: maybe-all-stage3-bfd
51882configure-stage4-libctf: maybe-all-stage4-bfd
51883configure-stageprofile-libctf: maybe-all-stageprofile-bfd
51884configure-stagefeedback-libctf: maybe-all-stagefeedback-bfd
51885configure-libctf: maybe-all-intl
51886configure-stage1-libctf: maybe-all-stage1-intl
51887configure-stage2-libctf: maybe-all-stage2-intl
51888configure-stage3-libctf: maybe-all-stage3-intl
51889configure-stage4-libctf: maybe-all-stage4-intl
51890configure-stageprofile-libctf: maybe-all-stageprofile-intl
51891configure-stagefeedback-libctf: maybe-all-stagefeedback-intl
51892configure-libctf: maybe-all-zlib
51893configure-stage1-libctf: maybe-all-stage1-zlib
51894configure-stage2-libctf: maybe-all-stage2-zlib
51895configure-stage3-libctf: maybe-all-stage3-zlib
51896configure-stage4-libctf: maybe-all-stage4-zlib
51897configure-stageprofile-libctf: maybe-all-stageprofile-zlib
51898configure-stagefeedback-libctf: maybe-all-stagefeedback-zlib
51899configure-libctf: maybe-all-libiconv
51900configure-stage1-libctf: maybe-all-stage1-libiconv
51901configure-stage2-libctf: maybe-all-stage2-libiconv
51902configure-stage3-libctf: maybe-all-stage3-libiconv
51903configure-stage4-libctf: maybe-all-stage4-libiconv
51904configure-stageprofile-libctf: maybe-all-stageprofile-libiconv
51905configure-stagefeedback-libctf: maybe-all-stagefeedback-libiconv
72b2455a 51906all-bison: maybe-all-build-texinfo
72b2455a 51907all-flex: maybe-all-build-bison
9e6ce191 51908all-flex: maybe-all-m4
72b2455a 51909all-flex: maybe-all-build-texinfo
72b2455a 51910all-m4: maybe-all-build-texinfo
b4a77b47 51911configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 51912all-target-fastjar: maybe-all-target-zlib
e552509b 51913configure-target-libgo: maybe-configure-target-libffi
8e71395b 51914all-target-libgo: maybe-all-target-libbacktrace
e552509b 51915all-target-libgo: maybe-all-target-libffi
9417cd2f 51916all-target-libgo: maybe-all-target-libatomic
cff87f51 51917configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
51918configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
51919configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
51920configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
51921configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
51922configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
51923configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
5286fdef 51924configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
51925configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
51926configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
51927configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
51928configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
51929configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
51930configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135 51931configure-target-libvtv: maybe-all-target-libstdc++-v3
95e43135
JBG
51932configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
51933configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
51934configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
51935configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
51936configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
51937configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0 51938all-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
51939all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
51940all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
51941all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
51942all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
51943all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
51944all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
9417cd2f
JBG
51945install-target-libgo: maybe-install-target-libatomic
51946install-target-libgfortran: maybe-install-target-libquadmath
51947install-target-libgfortran: maybe-install-target-libgcc
3dae1673 51948install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 51949install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
51950install-target-libvtv: maybe-install-target-libstdc++-v3
51951install-target-libvtv: maybe-install-target-libgcc
e3f56a99
NC
51952install-target-libcilkrts: maybe-install-target-libstdc++-v3
51953install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
51954install-target-liboffloadmic: maybe-install-target-libstdc++-v3
51955install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
51956install-target-libitm: maybe-install-target-libgcc
51957install-target-libobjc: maybe-install-target-libgcc
51958install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 51959all-target-libgloss: maybe-all-target-newlib
9e6ce191 51960all-target-winsup: maybe-all-target-libtermcap
e552509b 51961configure-target-libgfortran: maybe-all-target-libquadmath
68996839 51962configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
51963
51964
4119873a
AO
51965@if gcc-bootstrap
51966configure-gnattools: stage_last
51967configure-libcc1: stage_last
51968configure-utils: stage_last
51969configure-gdb: stage_last
01027315 51970configure-gdbsupport: stage_last
4119873a
AO
51971configure-gprof: stage_last
51972configure-sid: stage_last
51973configure-sim: stage_last
51974configure-fastjar: stage_last
51975configure-bison: stage_last
51976configure-flex: stage_last
51977configure-m4: stage_last
51978@endif gcc-bootstrap
51979
51980@unless gcc-bootstrap
51981all-gnattools: maybe-all-target-libstdc++-v3
51982configure-libcc1: maybe-configure-gcc
51983all-libcc1: maybe-all-gcc
51984all-utils: maybe-all-libiberty
51985configure-gdb: maybe-all-intl
51986configure-gdb: maybe-all-bfd
51987configure-gdb: maybe-all-libiconv
51988all-gdb: maybe-all-libiberty
51989all-gdb: maybe-all-libiconv
51990all-gdb: maybe-all-opcodes
51991all-gdb: maybe-all-libdecnumber
30d1f018 51992all-gdb: maybe-all-libctf
01027315 51993configure-gdbsupport: maybe-configure-bfd
c4d3fc14 51994all-gdbsupport: maybe-all-bfd
4119873a
AO
51995configure-gprof: maybe-configure-intl
51996all-gprof: maybe-all-libiberty
51997all-gprof: maybe-all-bfd
51998all-gprof: maybe-all-opcodes
51999all-gprof: maybe-all-intl
52000all-gprof: maybe-all-gas
52001all-sid: maybe-all-libiberty
52002all-sid: maybe-all-bfd
52003all-sid: maybe-all-opcodes
52004configure-sim: maybe-configure-intl
52005all-sim: maybe-all-intl
52006all-sim: maybe-all-libiberty
52007all-sim: maybe-all-bfd
52008all-sim: maybe-all-opcodes
52009all-fastjar: maybe-all-zlib
52010all-fastjar: maybe-all-libiberty
52011all-bison: maybe-all-intl
52012all-flex: maybe-all-intl
52013all-m4: maybe-all-intl
52014configure-target-libgo: maybe-all-target-libstdc++-v3
52015configure-target-liboffloadmic: maybe-configure-target-libgomp
52016all-target-liboffloadmic: maybe-all-target-libgomp
52017configure-target-newlib: maybe-all-binutils
52018configure-target-newlib: maybe-all-ld
52019@endunless gcc-bootstrap
52020
6aa8ef82
DJ
52021# Dependencies for target modules on other target modules are
52022# described by lang_env_dependencies; the defaults apply to anything
52023# not mentioned there.
52024
52025
52026@if gcc-bootstrap
e8a5fa9c
RW
52027configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
52028configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
52029configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
52030configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
52031configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
52032configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
52033configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
52034configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
52035configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
52036configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
52037configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
52038configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
52039configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
52040configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
52041configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
52042configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
52043configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
52044configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
52045configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
52046configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
52047configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
52048configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
52049configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
52050configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
52051configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
52052configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
52053configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
52054configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
52055configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
52056configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
52057@endif gcc-bootstrap
52058
52059@if gcc-no-bootstrap
52060configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 52061configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 52062configure-target-libmpx: maybe-all-target-libgcc
95e43135 52063configure-target-libvtv: maybe-all-target-libgcc
e3f56a99 52064configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 52065configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 52066configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 52067configure-target-newlib: maybe-all-target-libgcc
2bf680c4 52068configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 52069configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
52070configure-target-libgfortran: maybe-all-target-libgcc
52071configure-target-libobjc: maybe-all-target-libgcc
e552509b 52072configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
52073configure-target-libtermcap: maybe-all-target-libgcc
52074configure-target-winsup: maybe-all-target-libgcc
52075configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82 52076configure-target-libffi: maybe-all-target-libgcc
6aa8ef82 52077configure-target-zlib: maybe-all-target-libgcc
6aa8ef82
DJ
52078configure-target-rda: maybe-all-target-libgcc
52079configure-target-libada: maybe-all-target-libgcc
52080configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
52081configure-target-libitm: maybe-all-target-libgcc
52082configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
52083@endif gcc-no-bootstrap
52084
52085
52086configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
52087
5286fdef
L
52088configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
52089
1b6c0831
L
52090configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
52091
95e43135
JBG
52092configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
52093
e3f56a99
NC
52094configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
52095configure-target-libcilkrts: maybe-all-target-libstdc++-v3
52096
1b6c0831
L
52097configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
52098configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
52099
6aa8ef82
DJ
52100configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
52101
52102
52103
2bf680c4
ILT
52104configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
52105
e552509b
ILT
52106configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
52107
6aa8ef82
DJ
52108configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
52109
52110configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
52111
e552509b
ILT
52112configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
52113
6aa8ef82
DJ
52114configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
52115
52116configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
52117
52118
6aa8ef82 52119configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 52120configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82 52121
6aa8ef82
DJ
52122configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
52123
6aa8ef82
DJ
52124configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
52125
52126configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
52127
52128configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
52129
7ec59b9e
L
52130configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
52131configure-target-libitm: maybe-all-target-libstdc++-v3
52132
52133configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
52134
6aa8ef82 52135
907be67c 52136CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 52137GDB_TK = @GDB_TK@
907be67c
DJ
52138INSTALL_GDB_TK = @INSTALL_GDB_TK@
52139configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 52140all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 52141install-gdb: $(INSTALL_GDB_TK)
907a7241 52142
a2cc058a
NN
52143# Serialization dependencies. Host configures don't work well in parallel to
52144# each other, due to contention over config.cache. Target configures and
52145# build configures are similar.
52146@serialization_dependencies@
52147
15723a45
NN
52148# --------------------------------
52149# Regenerating top level configury
52150# --------------------------------
252b5132 52151
14a2a2f1 52152# Rebuilding Makefile.in, using autogen.
43be203f 52153AUTOGEN = autogen
6b784d9f 52154$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 52155 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 52156
a0da8069 52157# Rebuilding Makefile.
43be203f
AO
52158Makefile: $(srcdir)/Makefile.in config.status
52159 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
52160
479759c8 52161config.status: configure
10ecffb9 52162 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 52163
a0da8069 52164# Rebuilding configure.
43be203f 52165AUTOCONF = autoconf
da888c87 52166$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
0597bdc4
AM
52167 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
52168 $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
52169 $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
52170 $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
43be203f 52171 cd $(srcdir) && $(AUTOCONF)
252b5132 52172
3728fade
NN
52173# ------------------------------
52174# Special directives to GNU Make
52175# ------------------------------
52176
3728fade
NN
52177# Don't pass command-line variables to submakes.
52178.NOEXPORT:
52179MAKEOVERRIDES=
52180
252b5132 52181# end of Makefile.in
This page took 5.431514 seconds and 4 git commands to generate.