sim: common: clean up asprintf includes a bit
[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 \
919adfe8 947 maybe-configure-gdbserver \
dd12c3a8
NN
948 maybe-configure-gdb \
949 maybe-configure-expect \
950 maybe-configure-guile \
951 maybe-configure-tk \
dd12c3a8 952 maybe-configure-libtermcap \
b00612cc 953 maybe-configure-utils \
700d40ca 954 maybe-configure-gnattools \
1b6c0831
L
955 maybe-configure-lto-plugin \
956 maybe-configure-libcc1 \
0e65dfba
NA
957 maybe-configure-gotools \
958 maybe-configure-libctf
dd12c3a8
NN
959.PHONY: configure-target
960configure-target: \
961 maybe-configure-target-libstdc++-v3 \
5286fdef 962 maybe-configure-target-libsanitizer \
1b6c0831 963 maybe-configure-target-libmpx \
95e43135 964 maybe-configure-target-libvtv \
e3f56a99 965 maybe-configure-target-libcilkrts \
1b6c0831 966 maybe-configure-target-liboffloadmic \
064d0a7c 967 maybe-configure-target-libssp \
dd12c3a8 968 maybe-configure-target-newlib \
6aa8ef82 969 maybe-configure-target-libgcc \
2bf680c4 970 maybe-configure-target-libbacktrace \
e552509b 971 maybe-configure-target-libquadmath \
4b1cb4fe 972 maybe-configure-target-libgfortran \
dd12c3a8 973 maybe-configure-target-libobjc \
e552509b 974 maybe-configure-target-libgo \
dd12c3a8
NN
975 maybe-configure-target-libtermcap \
976 maybe-configure-target-winsup \
977 maybe-configure-target-libgloss \
dd12c3a8 978 maybe-configure-target-libffi \
dd12c3a8 979 maybe-configure-target-zlib \
a2592b1b 980 maybe-configure-target-rda \
b3ded179 981 maybe-configure-target-libada \
7ec59b9e
L
982 maybe-configure-target-libgomp \
983 maybe-configure-target-libitm \
984 maybe-configure-target-libatomic
252b5132 985
319cab08
PB
986# The target built for a native non-bootstrap build.
987.PHONY: all
f70224b5
PB
988all:
989@if gcc-bootstrap
be01d343 990 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
991 @r=`${PWD_COMMAND}`; export r; \
992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 993 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 994@endif gcc-bootstrap
0aed8855 995 @: $(MAKE); $(unstage)
f70224b5
PB
996 @r=`${PWD_COMMAND}`; export r; \
997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 998@if gcc-bootstrap
b5233201 999 if [ -f stage_last ]; then \
07fc31c9 1000 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 1001 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 1002 else \
1b05fbbd 1003@endif gcc-bootstrap
b5233201
AO
1004 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
1005@if gcc-bootstrap
1006 ; \
04ec0acb 1007 fi \
b5233201 1008@endif gcc-bootstrap
04ec0acb 1009 && :
6a9cf61e
PB
1010
1011.PHONY: all-build
c52c6897
PB
1012
1013all-build: maybe-all-build-libiberty
1014all-build: maybe-all-build-bison
c52c6897
PB
1015all-build: maybe-all-build-flex
1016all-build: maybe-all-build-m4
1017all-build: maybe-all-build-texinfo
1018all-build: maybe-all-build-fixincludes
1b6c0831 1019all-build: maybe-all-build-libcpp
c52c6897 1020
dd12c3a8 1021.PHONY: all-host
c52c6897 1022
c52c6897
PB
1023@if bfd-no-bootstrap
1024all-host: maybe-all-bfd
1025@endif bfd-no-bootstrap
1026@if opcodes-no-bootstrap
1027all-host: maybe-all-opcodes
1028@endif opcodes-no-bootstrap
1029@if binutils-no-bootstrap
1030all-host: maybe-all-binutils
1031@endif binutils-no-bootstrap
1032all-host: maybe-all-bison
f9806fa5 1033all-host: maybe-all-cgen
c52c6897 1034all-host: maybe-all-dejagnu
c52c6897
PB
1035all-host: maybe-all-etc
1036all-host: maybe-all-fastjar
201f096f 1037@if fixincludes-no-bootstrap
c52c6897 1038all-host: maybe-all-fixincludes
201f096f 1039@endif fixincludes-no-bootstrap
c52c6897
PB
1040all-host: maybe-all-flex
1041@if gas-no-bootstrap
1042all-host: maybe-all-gas
1043@endif gas-no-bootstrap
1044@if gcc-no-bootstrap
1045all-host: maybe-all-gcc
1046@endif gcc-no-bootstrap
4b900473
PB
1047@if gmp-no-bootstrap
1048all-host: maybe-all-gmp
1049@endif gmp-no-bootstrap
1050@if mpfr-no-bootstrap
1051all-host: maybe-all-mpfr
1052@endif mpfr-no-bootstrap
e8a5fa9c
RW
1053@if mpc-no-bootstrap
1054all-host: maybe-all-mpc
1055@endif mpc-no-bootstrap
7ec59b9e
L
1056@if isl-no-bootstrap
1057all-host: maybe-all-isl
1058@endif isl-no-bootstrap
1f53ca9a
AO
1059@if libelf-no-bootstrap
1060all-host: maybe-all-libelf
1061@endif libelf-no-bootstrap
93f9b408
ILT
1062@if gold-no-bootstrap
1063all-host: maybe-all-gold
1064@endif gold-no-bootstrap
c52c6897 1065all-host: maybe-all-gprof
c52c6897
PB
1066@if intl-no-bootstrap
1067all-host: maybe-all-intl
1068@endif intl-no-bootstrap
1069all-host: maybe-all-tcl
1070all-host: maybe-all-itcl
1071@if ld-no-bootstrap
1072all-host: maybe-all-ld
1073@endif ld-no-bootstrap
2bf680c4
ILT
1074@if libbacktrace-no-bootstrap
1075all-host: maybe-all-libbacktrace
1076@endif libbacktrace-no-bootstrap
c52c6897
PB
1077@if libcpp-no-bootstrap
1078all-host: maybe-all-libcpp
1079@endif libcpp-no-bootstrap
1080@if libdecnumber-no-bootstrap
1081all-host: maybe-all-libdecnumber
1082@endif libdecnumber-no-bootstrap
1083all-host: maybe-all-libgui
1084@if libiberty-no-bootstrap
1085all-host: maybe-all-libiberty
1086@endif libiberty-no-bootstrap
1b6c0831
L
1087@if libiberty-linker-plugin-no-bootstrap
1088all-host: maybe-all-libiberty-linker-plugin
1089@endif libiberty-linker-plugin-no-bootstrap
016a3251 1090@if libiconv-no-bootstrap
dc448a7b 1091all-host: maybe-all-libiconv
016a3251 1092@endif libiconv-no-bootstrap
c52c6897 1093all-host: maybe-all-m4
c52c6897 1094all-host: maybe-all-readline
c52c6897
PB
1095all-host: maybe-all-sid
1096all-host: maybe-all-sim
c52c6897 1097all-host: maybe-all-texinfo
c52c6897
PB
1098@if zlib-no-bootstrap
1099all-host: maybe-all-zlib
1100@endif zlib-no-bootstrap
73cc7272 1101all-host: maybe-all-gnulib
01027315 1102all-host: maybe-all-gdbsupport
919adfe8 1103all-host: maybe-all-gdbserver
c52c6897
PB
1104all-host: maybe-all-gdb
1105all-host: maybe-all-expect
1106all-host: maybe-all-guile
1107all-host: maybe-all-tk
1108all-host: maybe-all-libtermcap
1109all-host: maybe-all-utils
1110all-host: maybe-all-gnattools
700d40ca
ILT
1111@if lto-plugin-no-bootstrap
1112all-host: maybe-all-lto-plugin
1113@endif lto-plugin-no-bootstrap
1b6c0831
L
1114all-host: maybe-all-libcc1
1115all-host: maybe-all-gotools
0e65dfba
NA
1116@if libctf-no-bootstrap
1117all-host: maybe-all-libctf
1118@endif libctf-no-bootstrap
c52c6897 1119
dd12c3a8 1120.PHONY: all-target
c52c6897 1121
e8a5fa9c 1122@if target-libstdc++-v3-no-bootstrap
c52c6897 1123all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1124@endif target-libstdc++-v3-no-bootstrap
5eb08693 1125@if target-libsanitizer-no-bootstrap
5286fdef 1126all-target: maybe-all-target-libsanitizer
5eb08693 1127@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1128@if target-libmpx-no-bootstrap
1129all-target: maybe-all-target-libmpx
1130@endif target-libmpx-no-bootstrap
95e43135
JBG
1131@if target-libvtv-no-bootstrap
1132all-target: maybe-all-target-libvtv
1133@endif target-libvtv-no-bootstrap
e3f56a99 1134all-target: maybe-all-target-libcilkrts
1b6c0831 1135all-target: maybe-all-target-liboffloadmic
c52c6897 1136all-target: maybe-all-target-libssp
c52c6897 1137all-target: maybe-all-target-newlib
f86e35b8 1138@if target-libgcc-no-bootstrap
6aa8ef82 1139all-target: maybe-all-target-libgcc
f86e35b8 1140@endif target-libgcc-no-bootstrap
2bf680c4 1141all-target: maybe-all-target-libbacktrace
e552509b 1142all-target: maybe-all-target-libquadmath
c52c6897
PB
1143all-target: maybe-all-target-libgfortran
1144all-target: maybe-all-target-libobjc
e552509b 1145all-target: maybe-all-target-libgo
c52c6897
PB
1146all-target: maybe-all-target-libtermcap
1147all-target: maybe-all-target-winsup
1148all-target: maybe-all-target-libgloss
c52c6897 1149all-target: maybe-all-target-libffi
c52c6897 1150all-target: maybe-all-target-zlib
c52c6897
PB
1151all-target: maybe-all-target-rda
1152all-target: maybe-all-target-libada
911e63d0 1153@if target-libgomp-no-bootstrap
c52c6897 1154all-target: maybe-all-target-libgomp
911e63d0 1155@endif target-libgomp-no-bootstrap
7ec59b9e
L
1156all-target: maybe-all-target-libitm
1157all-target: maybe-all-target-libatomic
252b5132
RH
1158
1159# Do a target for all the subdirectories. A ``make do-X'' will do a
1160# ``make X'' in all subdirectories (because, in general, there is a
1161# dependency (below) of X upon do-X, a ``make X'' will also do this,
1162# but it may do additional work as well).
e393202e 1163
2a4cbe27 1164.PHONY: do-info
f70224b5 1165do-info:
0aed8855 1166 @: $(MAKE); $(unstage)
e360f423
PB
1167 @r=`${PWD_COMMAND}`; export r; \
1168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1169 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1170 info-target
f70224b5 1171
e393202e 1172
2a4cbe27 1173.PHONY: info-host
c52c6897 1174
c52c6897
PB
1175info-host: maybe-info-bfd
1176info-host: maybe-info-opcodes
1177info-host: maybe-info-binutils
1178info-host: maybe-info-bison
f9806fa5 1179info-host: maybe-info-cgen
c52c6897 1180info-host: maybe-info-dejagnu
c52c6897
PB
1181info-host: maybe-info-etc
1182info-host: maybe-info-fastjar
c52c6897
PB
1183info-host: maybe-info-fixincludes
1184info-host: maybe-info-flex
1185info-host: maybe-info-gas
1186info-host: maybe-info-gcc
4b900473
PB
1187info-host: maybe-info-gmp
1188info-host: maybe-info-mpfr
e8a5fa9c 1189info-host: maybe-info-mpc
7ec59b9e 1190info-host: maybe-info-isl
1f53ca9a 1191info-host: maybe-info-libelf
93f9b408 1192info-host: maybe-info-gold
c52c6897 1193info-host: maybe-info-gprof
c52c6897
PB
1194info-host: maybe-info-intl
1195info-host: maybe-info-tcl
1196info-host: maybe-info-itcl
1197info-host: maybe-info-ld
2bf680c4 1198info-host: maybe-info-libbacktrace
c52c6897
PB
1199info-host: maybe-info-libcpp
1200info-host: maybe-info-libdecnumber
1201info-host: maybe-info-libgui
1202info-host: maybe-info-libiberty
1b6c0831 1203info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1204info-host: maybe-info-libiconv
c52c6897 1205info-host: maybe-info-m4
c52c6897 1206info-host: maybe-info-readline
c52c6897
PB
1207info-host: maybe-info-sid
1208info-host: maybe-info-sim
c52c6897 1209info-host: maybe-info-texinfo
c52c6897 1210info-host: maybe-info-zlib
73cc7272 1211info-host: maybe-info-gnulib
01027315 1212info-host: maybe-info-gdbsupport
919adfe8 1213info-host: maybe-info-gdbserver
c52c6897
PB
1214info-host: maybe-info-gdb
1215info-host: maybe-info-expect
1216info-host: maybe-info-guile
1217info-host: maybe-info-tk
1218info-host: maybe-info-libtermcap
1219info-host: maybe-info-utils
1220info-host: maybe-info-gnattools
700d40ca 1221info-host: maybe-info-lto-plugin
1b6c0831
L
1222info-host: maybe-info-libcc1
1223info-host: maybe-info-gotools
0e65dfba 1224info-host: maybe-info-libctf
252b5132 1225
2a4cbe27 1226.PHONY: info-target
c52c6897
PB
1227
1228info-target: maybe-info-target-libstdc++-v3
5286fdef 1229info-target: maybe-info-target-libsanitizer
1b6c0831 1230info-target: maybe-info-target-libmpx
95e43135 1231info-target: maybe-info-target-libvtv
e3f56a99 1232info-target: maybe-info-target-libcilkrts
1b6c0831 1233info-target: maybe-info-target-liboffloadmic
c52c6897 1234info-target: maybe-info-target-libssp
c52c6897 1235info-target: maybe-info-target-newlib
6aa8ef82 1236info-target: maybe-info-target-libgcc
2bf680c4 1237info-target: maybe-info-target-libbacktrace
e552509b 1238info-target: maybe-info-target-libquadmath
c52c6897
PB
1239info-target: maybe-info-target-libgfortran
1240info-target: maybe-info-target-libobjc
e552509b 1241info-target: maybe-info-target-libgo
c52c6897
PB
1242info-target: maybe-info-target-libtermcap
1243info-target: maybe-info-target-winsup
1244info-target: maybe-info-target-libgloss
c52c6897 1245info-target: maybe-info-target-libffi
c52c6897 1246info-target: maybe-info-target-zlib
c52c6897
PB
1247info-target: maybe-info-target-rda
1248info-target: maybe-info-target-libada
1249info-target: maybe-info-target-libgomp
7ec59b9e
L
1250info-target: maybe-info-target-libitm
1251info-target: maybe-info-target-libatomic
252b5132 1252
4fa63067 1253.PHONY: do-dvi
f70224b5 1254do-dvi:
0aed8855 1255 @: $(MAKE); $(unstage)
e360f423
PB
1256 @r=`${PWD_COMMAND}`; export r; \
1257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1258 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1259 dvi-target
f70224b5 1260
2a4cbe27 1261
4fa63067 1262.PHONY: dvi-host
c52c6897 1263
c52c6897
PB
1264dvi-host: maybe-dvi-bfd
1265dvi-host: maybe-dvi-opcodes
1266dvi-host: maybe-dvi-binutils
1267dvi-host: maybe-dvi-bison
f9806fa5 1268dvi-host: maybe-dvi-cgen
c52c6897 1269dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1270dvi-host: maybe-dvi-etc
1271dvi-host: maybe-dvi-fastjar
c52c6897
PB
1272dvi-host: maybe-dvi-fixincludes
1273dvi-host: maybe-dvi-flex
1274dvi-host: maybe-dvi-gas
1275dvi-host: maybe-dvi-gcc
4b900473
PB
1276dvi-host: maybe-dvi-gmp
1277dvi-host: maybe-dvi-mpfr
e8a5fa9c 1278dvi-host: maybe-dvi-mpc
7ec59b9e 1279dvi-host: maybe-dvi-isl
1f53ca9a 1280dvi-host: maybe-dvi-libelf
93f9b408 1281dvi-host: maybe-dvi-gold
c52c6897 1282dvi-host: maybe-dvi-gprof
c52c6897
PB
1283dvi-host: maybe-dvi-intl
1284dvi-host: maybe-dvi-tcl
1285dvi-host: maybe-dvi-itcl
1286dvi-host: maybe-dvi-ld
2bf680c4 1287dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1288dvi-host: maybe-dvi-libcpp
1289dvi-host: maybe-dvi-libdecnumber
1290dvi-host: maybe-dvi-libgui
1291dvi-host: maybe-dvi-libiberty
1b6c0831 1292dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1293dvi-host: maybe-dvi-libiconv
c52c6897 1294dvi-host: maybe-dvi-m4
c52c6897 1295dvi-host: maybe-dvi-readline
c52c6897
PB
1296dvi-host: maybe-dvi-sid
1297dvi-host: maybe-dvi-sim
c52c6897 1298dvi-host: maybe-dvi-texinfo
c52c6897 1299dvi-host: maybe-dvi-zlib
73cc7272 1300dvi-host: maybe-dvi-gnulib
01027315 1301dvi-host: maybe-dvi-gdbsupport
919adfe8 1302dvi-host: maybe-dvi-gdbserver
c52c6897
PB
1303dvi-host: maybe-dvi-gdb
1304dvi-host: maybe-dvi-expect
1305dvi-host: maybe-dvi-guile
1306dvi-host: maybe-dvi-tk
1307dvi-host: maybe-dvi-libtermcap
1308dvi-host: maybe-dvi-utils
1309dvi-host: maybe-dvi-gnattools
700d40ca 1310dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1311dvi-host: maybe-dvi-libcc1
1312dvi-host: maybe-dvi-gotools
0e65dfba 1313dvi-host: maybe-dvi-libctf
2a4cbe27 1314
4fa63067 1315.PHONY: dvi-target
c52c6897
PB
1316
1317dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1318dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1319dvi-target: maybe-dvi-target-libmpx
95e43135 1320dvi-target: maybe-dvi-target-libvtv
e3f56a99 1321dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1322dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1323dvi-target: maybe-dvi-target-libssp
c52c6897 1324dvi-target: maybe-dvi-target-newlib
6aa8ef82 1325dvi-target: maybe-dvi-target-libgcc
2bf680c4 1326dvi-target: maybe-dvi-target-libbacktrace
e552509b 1327dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1328dvi-target: maybe-dvi-target-libgfortran
1329dvi-target: maybe-dvi-target-libobjc
e552509b 1330dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1331dvi-target: maybe-dvi-target-libtermcap
1332dvi-target: maybe-dvi-target-winsup
1333dvi-target: maybe-dvi-target-libgloss
c52c6897 1334dvi-target: maybe-dvi-target-libffi
c52c6897 1335dvi-target: maybe-dvi-target-zlib
c52c6897
PB
1336dvi-target: maybe-dvi-target-rda
1337dvi-target: maybe-dvi-target-libada
1338dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1339dvi-target: maybe-dvi-target-libitm
1340dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1341
56a8fe78
DD
1342.PHONY: do-pdf
1343do-pdf:
1344 @: $(MAKE); $(unstage)
1345 @r=`${PWD_COMMAND}`; export r; \
1346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1347 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1348 pdf-target
1349
1350
1351.PHONY: pdf-host
1352
56a8fe78
DD
1353pdf-host: maybe-pdf-bfd
1354pdf-host: maybe-pdf-opcodes
1355pdf-host: maybe-pdf-binutils
1356pdf-host: maybe-pdf-bison
f9806fa5 1357pdf-host: maybe-pdf-cgen
56a8fe78 1358pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1359pdf-host: maybe-pdf-etc
1360pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1361pdf-host: maybe-pdf-fixincludes
1362pdf-host: maybe-pdf-flex
1363pdf-host: maybe-pdf-gas
1364pdf-host: maybe-pdf-gcc
4b900473
PB
1365pdf-host: maybe-pdf-gmp
1366pdf-host: maybe-pdf-mpfr
e8a5fa9c 1367pdf-host: maybe-pdf-mpc
7ec59b9e 1368pdf-host: maybe-pdf-isl
1f53ca9a 1369pdf-host: maybe-pdf-libelf
93f9b408 1370pdf-host: maybe-pdf-gold
56a8fe78 1371pdf-host: maybe-pdf-gprof
56a8fe78
DD
1372pdf-host: maybe-pdf-intl
1373pdf-host: maybe-pdf-tcl
1374pdf-host: maybe-pdf-itcl
1375pdf-host: maybe-pdf-ld
2bf680c4 1376pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1377pdf-host: maybe-pdf-libcpp
1378pdf-host: maybe-pdf-libdecnumber
1379pdf-host: maybe-pdf-libgui
1380pdf-host: maybe-pdf-libiberty
1b6c0831 1381pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1382pdf-host: maybe-pdf-libiconv
56a8fe78 1383pdf-host: maybe-pdf-m4
56a8fe78 1384pdf-host: maybe-pdf-readline
56a8fe78
DD
1385pdf-host: maybe-pdf-sid
1386pdf-host: maybe-pdf-sim
56a8fe78 1387pdf-host: maybe-pdf-texinfo
56a8fe78 1388pdf-host: maybe-pdf-zlib
73cc7272 1389pdf-host: maybe-pdf-gnulib
01027315 1390pdf-host: maybe-pdf-gdbsupport
919adfe8 1391pdf-host: maybe-pdf-gdbserver
56a8fe78
DD
1392pdf-host: maybe-pdf-gdb
1393pdf-host: maybe-pdf-expect
1394pdf-host: maybe-pdf-guile
1395pdf-host: maybe-pdf-tk
1396pdf-host: maybe-pdf-libtermcap
1397pdf-host: maybe-pdf-utils
1398pdf-host: maybe-pdf-gnattools
700d40ca 1399pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1400pdf-host: maybe-pdf-libcc1
1401pdf-host: maybe-pdf-gotools
0e65dfba 1402pdf-host: maybe-pdf-libctf
56a8fe78
DD
1403
1404.PHONY: pdf-target
1405
1406pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1407pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1408pdf-target: maybe-pdf-target-libmpx
95e43135 1409pdf-target: maybe-pdf-target-libvtv
e3f56a99 1410pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1411pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1412pdf-target: maybe-pdf-target-libssp
1413pdf-target: maybe-pdf-target-newlib
6aa8ef82 1414pdf-target: maybe-pdf-target-libgcc
2bf680c4 1415pdf-target: maybe-pdf-target-libbacktrace
e552509b 1416pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1417pdf-target: maybe-pdf-target-libgfortran
1418pdf-target: maybe-pdf-target-libobjc
e552509b 1419pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1420pdf-target: maybe-pdf-target-libtermcap
1421pdf-target: maybe-pdf-target-winsup
1422pdf-target: maybe-pdf-target-libgloss
56a8fe78 1423pdf-target: maybe-pdf-target-libffi
56a8fe78 1424pdf-target: maybe-pdf-target-zlib
56a8fe78
DD
1425pdf-target: maybe-pdf-target-rda
1426pdf-target: maybe-pdf-target-libada
1427pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1428pdf-target: maybe-pdf-target-libitm
1429pdf-target: maybe-pdf-target-libatomic
56a8fe78 1430
6d389afc 1431.PHONY: do-html
f70224b5 1432do-html:
0aed8855 1433 @: $(MAKE); $(unstage)
e360f423
PB
1434 @r=`${PWD_COMMAND}`; export r; \
1435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1436 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1437 html-target
f70224b5 1438
6d389afc
MS
1439
1440.PHONY: html-host
c52c6897 1441
c52c6897
PB
1442html-host: maybe-html-bfd
1443html-host: maybe-html-opcodes
1444html-host: maybe-html-binutils
1445html-host: maybe-html-bison
f9806fa5 1446html-host: maybe-html-cgen
c52c6897 1447html-host: maybe-html-dejagnu
c52c6897
PB
1448html-host: maybe-html-etc
1449html-host: maybe-html-fastjar
c52c6897
PB
1450html-host: maybe-html-fixincludes
1451html-host: maybe-html-flex
1452html-host: maybe-html-gas
1453html-host: maybe-html-gcc
4b900473
PB
1454html-host: maybe-html-gmp
1455html-host: maybe-html-mpfr
e8a5fa9c 1456html-host: maybe-html-mpc
7ec59b9e 1457html-host: maybe-html-isl
1f53ca9a 1458html-host: maybe-html-libelf
93f9b408 1459html-host: maybe-html-gold
c52c6897 1460html-host: maybe-html-gprof
c52c6897
PB
1461html-host: maybe-html-intl
1462html-host: maybe-html-tcl
1463html-host: maybe-html-itcl
1464html-host: maybe-html-ld
2bf680c4 1465html-host: maybe-html-libbacktrace
c52c6897
PB
1466html-host: maybe-html-libcpp
1467html-host: maybe-html-libdecnumber
1468html-host: maybe-html-libgui
1469html-host: maybe-html-libiberty
1b6c0831 1470html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1471html-host: maybe-html-libiconv
c52c6897 1472html-host: maybe-html-m4
c52c6897 1473html-host: maybe-html-readline
c52c6897
PB
1474html-host: maybe-html-sid
1475html-host: maybe-html-sim
c52c6897 1476html-host: maybe-html-texinfo
c52c6897 1477html-host: maybe-html-zlib
73cc7272 1478html-host: maybe-html-gnulib
01027315 1479html-host: maybe-html-gdbsupport
919adfe8 1480html-host: maybe-html-gdbserver
c52c6897
PB
1481html-host: maybe-html-gdb
1482html-host: maybe-html-expect
1483html-host: maybe-html-guile
1484html-host: maybe-html-tk
1485html-host: maybe-html-libtermcap
1486html-host: maybe-html-utils
1487html-host: maybe-html-gnattools
700d40ca 1488html-host: maybe-html-lto-plugin
1b6c0831
L
1489html-host: maybe-html-libcc1
1490html-host: maybe-html-gotools
0e65dfba 1491html-host: maybe-html-libctf
6d389afc
MS
1492
1493.PHONY: html-target
c52c6897
PB
1494
1495html-target: maybe-html-target-libstdc++-v3
5286fdef 1496html-target: maybe-html-target-libsanitizer
1b6c0831 1497html-target: maybe-html-target-libmpx
95e43135 1498html-target: maybe-html-target-libvtv
e3f56a99 1499html-target: maybe-html-target-libcilkrts
1b6c0831 1500html-target: maybe-html-target-liboffloadmic
c52c6897 1501html-target: maybe-html-target-libssp
c52c6897 1502html-target: maybe-html-target-newlib
6aa8ef82 1503html-target: maybe-html-target-libgcc
2bf680c4 1504html-target: maybe-html-target-libbacktrace
e552509b 1505html-target: maybe-html-target-libquadmath
c52c6897
PB
1506html-target: maybe-html-target-libgfortran
1507html-target: maybe-html-target-libobjc
e552509b 1508html-target: maybe-html-target-libgo
c52c6897
PB
1509html-target: maybe-html-target-libtermcap
1510html-target: maybe-html-target-winsup
1511html-target: maybe-html-target-libgloss
c52c6897 1512html-target: maybe-html-target-libffi
c52c6897 1513html-target: maybe-html-target-zlib
c52c6897
PB
1514html-target: maybe-html-target-rda
1515html-target: maybe-html-target-libada
1516html-target: maybe-html-target-libgomp
7ec59b9e
L
1517html-target: maybe-html-target-libitm
1518html-target: maybe-html-target-libatomic
6d389afc 1519
4fa63067 1520.PHONY: do-TAGS
f70224b5 1521do-TAGS:
0aed8855 1522 @: $(MAKE); $(unstage)
e360f423
PB
1523 @r=`${PWD_COMMAND}`; export r; \
1524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1525 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1526 TAGS-target
f70224b5 1527
2a4cbe27 1528
4fa63067 1529.PHONY: TAGS-host
c52c6897 1530
c52c6897
PB
1531TAGS-host: maybe-TAGS-bfd
1532TAGS-host: maybe-TAGS-opcodes
1533TAGS-host: maybe-TAGS-binutils
1534TAGS-host: maybe-TAGS-bison
f9806fa5 1535TAGS-host: maybe-TAGS-cgen
c52c6897 1536TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1537TAGS-host: maybe-TAGS-etc
1538TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1539TAGS-host: maybe-TAGS-fixincludes
1540TAGS-host: maybe-TAGS-flex
1541TAGS-host: maybe-TAGS-gas
1542TAGS-host: maybe-TAGS-gcc
4b900473
PB
1543TAGS-host: maybe-TAGS-gmp
1544TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1545TAGS-host: maybe-TAGS-mpc
7ec59b9e 1546TAGS-host: maybe-TAGS-isl
1f53ca9a 1547TAGS-host: maybe-TAGS-libelf
93f9b408 1548TAGS-host: maybe-TAGS-gold
c52c6897 1549TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1550TAGS-host: maybe-TAGS-intl
1551TAGS-host: maybe-TAGS-tcl
1552TAGS-host: maybe-TAGS-itcl
1553TAGS-host: maybe-TAGS-ld
2bf680c4 1554TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1555TAGS-host: maybe-TAGS-libcpp
1556TAGS-host: maybe-TAGS-libdecnumber
1557TAGS-host: maybe-TAGS-libgui
1558TAGS-host: maybe-TAGS-libiberty
1b6c0831 1559TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1560TAGS-host: maybe-TAGS-libiconv
c52c6897 1561TAGS-host: maybe-TAGS-m4
c52c6897 1562TAGS-host: maybe-TAGS-readline
c52c6897
PB
1563TAGS-host: maybe-TAGS-sid
1564TAGS-host: maybe-TAGS-sim
c52c6897 1565TAGS-host: maybe-TAGS-texinfo
c52c6897 1566TAGS-host: maybe-TAGS-zlib
73cc7272 1567TAGS-host: maybe-TAGS-gnulib
01027315 1568TAGS-host: maybe-TAGS-gdbsupport
919adfe8 1569TAGS-host: maybe-TAGS-gdbserver
c52c6897
PB
1570TAGS-host: maybe-TAGS-gdb
1571TAGS-host: maybe-TAGS-expect
1572TAGS-host: maybe-TAGS-guile
1573TAGS-host: maybe-TAGS-tk
1574TAGS-host: maybe-TAGS-libtermcap
1575TAGS-host: maybe-TAGS-utils
1576TAGS-host: maybe-TAGS-gnattools
700d40ca 1577TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1578TAGS-host: maybe-TAGS-libcc1
1579TAGS-host: maybe-TAGS-gotools
0e65dfba 1580TAGS-host: maybe-TAGS-libctf
2a4cbe27 1581
4fa63067 1582.PHONY: TAGS-target
c52c6897
PB
1583
1584TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1585TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1586TAGS-target: maybe-TAGS-target-libmpx
95e43135 1587TAGS-target: maybe-TAGS-target-libvtv
e3f56a99 1588TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1589TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1590TAGS-target: maybe-TAGS-target-libssp
c52c6897 1591TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1592TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1593TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1594TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1595TAGS-target: maybe-TAGS-target-libgfortran
1596TAGS-target: maybe-TAGS-target-libobjc
e552509b 1597TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1598TAGS-target: maybe-TAGS-target-libtermcap
1599TAGS-target: maybe-TAGS-target-winsup
1600TAGS-target: maybe-TAGS-target-libgloss
c52c6897 1601TAGS-target: maybe-TAGS-target-libffi
c52c6897 1602TAGS-target: maybe-TAGS-target-zlib
c52c6897
PB
1603TAGS-target: maybe-TAGS-target-rda
1604TAGS-target: maybe-TAGS-target-libada
1605TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1606TAGS-target: maybe-TAGS-target-libitm
1607TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1608
4fa63067 1609.PHONY: do-install-info
f70224b5 1610do-install-info:
0aed8855 1611 @: $(MAKE); $(unstage)
e360f423
PB
1612 @r=`${PWD_COMMAND}`; export r; \
1613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1614 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1615 install-info-target
f70224b5 1616
a2592b1b 1617
4fa63067 1618.PHONY: install-info-host
c52c6897 1619
c52c6897
PB
1620install-info-host: maybe-install-info-bfd
1621install-info-host: maybe-install-info-opcodes
1622install-info-host: maybe-install-info-binutils
1623install-info-host: maybe-install-info-bison
f9806fa5 1624install-info-host: maybe-install-info-cgen
c52c6897 1625install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1626install-info-host: maybe-install-info-etc
1627install-info-host: maybe-install-info-fastjar
c52c6897
PB
1628install-info-host: maybe-install-info-fixincludes
1629install-info-host: maybe-install-info-flex
1630install-info-host: maybe-install-info-gas
1631install-info-host: maybe-install-info-gcc
4b900473
PB
1632install-info-host: maybe-install-info-gmp
1633install-info-host: maybe-install-info-mpfr
e8a5fa9c 1634install-info-host: maybe-install-info-mpc
7ec59b9e 1635install-info-host: maybe-install-info-isl
1f53ca9a 1636install-info-host: maybe-install-info-libelf
93f9b408 1637install-info-host: maybe-install-info-gold
c52c6897 1638install-info-host: maybe-install-info-gprof
c52c6897
PB
1639install-info-host: maybe-install-info-intl
1640install-info-host: maybe-install-info-tcl
1641install-info-host: maybe-install-info-itcl
1642install-info-host: maybe-install-info-ld
2bf680c4 1643install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1644install-info-host: maybe-install-info-libcpp
1645install-info-host: maybe-install-info-libdecnumber
1646install-info-host: maybe-install-info-libgui
1647install-info-host: maybe-install-info-libiberty
1b6c0831 1648install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1649install-info-host: maybe-install-info-libiconv
c52c6897 1650install-info-host: maybe-install-info-m4
c52c6897 1651install-info-host: maybe-install-info-readline
c52c6897
PB
1652install-info-host: maybe-install-info-sid
1653install-info-host: maybe-install-info-sim
c52c6897 1654install-info-host: maybe-install-info-texinfo
c52c6897 1655install-info-host: maybe-install-info-zlib
73cc7272 1656install-info-host: maybe-install-info-gnulib
01027315 1657install-info-host: maybe-install-info-gdbsupport
919adfe8 1658install-info-host: maybe-install-info-gdbserver
c52c6897
PB
1659install-info-host: maybe-install-info-gdb
1660install-info-host: maybe-install-info-expect
1661install-info-host: maybe-install-info-guile
1662install-info-host: maybe-install-info-tk
1663install-info-host: maybe-install-info-libtermcap
1664install-info-host: maybe-install-info-utils
1665install-info-host: maybe-install-info-gnattools
700d40ca 1666install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1667install-info-host: maybe-install-info-libcc1
1668install-info-host: maybe-install-info-gotools
0e65dfba 1669install-info-host: maybe-install-info-libctf
a2592b1b 1670
4fa63067 1671.PHONY: install-info-target
c52c6897
PB
1672
1673install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1674install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1675install-info-target: maybe-install-info-target-libmpx
95e43135 1676install-info-target: maybe-install-info-target-libvtv
e3f56a99 1677install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1678install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1679install-info-target: maybe-install-info-target-libssp
c52c6897 1680install-info-target: maybe-install-info-target-newlib
6aa8ef82 1681install-info-target: maybe-install-info-target-libgcc
2bf680c4 1682install-info-target: maybe-install-info-target-libbacktrace
e552509b 1683install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1684install-info-target: maybe-install-info-target-libgfortran
1685install-info-target: maybe-install-info-target-libobjc
e552509b 1686install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1687install-info-target: maybe-install-info-target-libtermcap
1688install-info-target: maybe-install-info-target-winsup
1689install-info-target: maybe-install-info-target-libgloss
c52c6897 1690install-info-target: maybe-install-info-target-libffi
c52c6897 1691install-info-target: maybe-install-info-target-zlib
c52c6897
PB
1692install-info-target: maybe-install-info-target-rda
1693install-info-target: maybe-install-info-target-libada
1694install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1695install-info-target: maybe-install-info-target-libitm
1696install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1697
a3ca38d2
DD
1698.PHONY: do-install-pdf
1699do-install-pdf:
1700 @: $(MAKE); $(unstage)
1701 @r=`${PWD_COMMAND}`; export r; \
1702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1703 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1704 install-pdf-target
1705
1706
1707.PHONY: install-pdf-host
1708
a3ca38d2
DD
1709install-pdf-host: maybe-install-pdf-bfd
1710install-pdf-host: maybe-install-pdf-opcodes
1711install-pdf-host: maybe-install-pdf-binutils
1712install-pdf-host: maybe-install-pdf-bison
f9806fa5 1713install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1714install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1715install-pdf-host: maybe-install-pdf-etc
1716install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1717install-pdf-host: maybe-install-pdf-fixincludes
1718install-pdf-host: maybe-install-pdf-flex
1719install-pdf-host: maybe-install-pdf-gas
1720install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1721install-pdf-host: maybe-install-pdf-gmp
1722install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1723install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1724install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1725install-pdf-host: maybe-install-pdf-libelf
93f9b408 1726install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1727install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1728install-pdf-host: maybe-install-pdf-intl
1729install-pdf-host: maybe-install-pdf-tcl
1730install-pdf-host: maybe-install-pdf-itcl
1731install-pdf-host: maybe-install-pdf-ld
2bf680c4 1732install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1733install-pdf-host: maybe-install-pdf-libcpp
1734install-pdf-host: maybe-install-pdf-libdecnumber
1735install-pdf-host: maybe-install-pdf-libgui
1736install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1737install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1738install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1739install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1740install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1741install-pdf-host: maybe-install-pdf-sid
1742install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1743install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2 1744install-pdf-host: maybe-install-pdf-zlib
73cc7272 1745install-pdf-host: maybe-install-pdf-gnulib
01027315 1746install-pdf-host: maybe-install-pdf-gdbsupport
919adfe8 1747install-pdf-host: maybe-install-pdf-gdbserver
a3ca38d2
DD
1748install-pdf-host: maybe-install-pdf-gdb
1749install-pdf-host: maybe-install-pdf-expect
1750install-pdf-host: maybe-install-pdf-guile
1751install-pdf-host: maybe-install-pdf-tk
1752install-pdf-host: maybe-install-pdf-libtermcap
1753install-pdf-host: maybe-install-pdf-utils
1754install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1755install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1756install-pdf-host: maybe-install-pdf-libcc1
1757install-pdf-host: maybe-install-pdf-gotools
0e65dfba 1758install-pdf-host: maybe-install-pdf-libctf
a3ca38d2
DD
1759
1760.PHONY: install-pdf-target
1761
1762install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1763install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1764install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1765install-pdf-target: maybe-install-pdf-target-libvtv
e3f56a99 1766install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1767install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1768install-pdf-target: maybe-install-pdf-target-libssp
1769install-pdf-target: maybe-install-pdf-target-newlib
1770install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1771install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1772install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1773install-pdf-target: maybe-install-pdf-target-libgfortran
1774install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1775install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1776install-pdf-target: maybe-install-pdf-target-libtermcap
1777install-pdf-target: maybe-install-pdf-target-winsup
1778install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2 1779install-pdf-target: maybe-install-pdf-target-libffi
a3ca38d2 1780install-pdf-target: maybe-install-pdf-target-zlib
a3ca38d2
DD
1781install-pdf-target: maybe-install-pdf-target-rda
1782install-pdf-target: maybe-install-pdf-target-libada
1783install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1784install-pdf-target: maybe-install-pdf-target-libitm
1785install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1786
108a6f8e
CD
1787.PHONY: do-install-html
1788do-install-html:
1789 @: $(MAKE); $(unstage)
1790 @r=`${PWD_COMMAND}`; export r; \
1791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1792 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1793 install-html-target
1794
1795
1796.PHONY: install-html-host
1797
108a6f8e
CD
1798install-html-host: maybe-install-html-bfd
1799install-html-host: maybe-install-html-opcodes
1800install-html-host: maybe-install-html-binutils
1801install-html-host: maybe-install-html-bison
f9806fa5 1802install-html-host: maybe-install-html-cgen
108a6f8e 1803install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1804install-html-host: maybe-install-html-etc
1805install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1806install-html-host: maybe-install-html-fixincludes
1807install-html-host: maybe-install-html-flex
1808install-html-host: maybe-install-html-gas
1809install-html-host: maybe-install-html-gcc
4b900473
PB
1810install-html-host: maybe-install-html-gmp
1811install-html-host: maybe-install-html-mpfr
e8a5fa9c 1812install-html-host: maybe-install-html-mpc
7ec59b9e 1813install-html-host: maybe-install-html-isl
1f53ca9a 1814install-html-host: maybe-install-html-libelf
93f9b408 1815install-html-host: maybe-install-html-gold
108a6f8e 1816install-html-host: maybe-install-html-gprof
108a6f8e
CD
1817install-html-host: maybe-install-html-intl
1818install-html-host: maybe-install-html-tcl
1819install-html-host: maybe-install-html-itcl
1820install-html-host: maybe-install-html-ld
2bf680c4 1821install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1822install-html-host: maybe-install-html-libcpp
1823install-html-host: maybe-install-html-libdecnumber
1824install-html-host: maybe-install-html-libgui
1825install-html-host: maybe-install-html-libiberty
1b6c0831 1826install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1827install-html-host: maybe-install-html-libiconv
108a6f8e 1828install-html-host: maybe-install-html-m4
108a6f8e 1829install-html-host: maybe-install-html-readline
108a6f8e
CD
1830install-html-host: maybe-install-html-sid
1831install-html-host: maybe-install-html-sim
108a6f8e 1832install-html-host: maybe-install-html-texinfo
108a6f8e 1833install-html-host: maybe-install-html-zlib
73cc7272 1834install-html-host: maybe-install-html-gnulib
01027315 1835install-html-host: maybe-install-html-gdbsupport
919adfe8 1836install-html-host: maybe-install-html-gdbserver
108a6f8e
CD
1837install-html-host: maybe-install-html-gdb
1838install-html-host: maybe-install-html-expect
1839install-html-host: maybe-install-html-guile
1840install-html-host: maybe-install-html-tk
1841install-html-host: maybe-install-html-libtermcap
1842install-html-host: maybe-install-html-utils
1843install-html-host: maybe-install-html-gnattools
700d40ca 1844install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1845install-html-host: maybe-install-html-libcc1
1846install-html-host: maybe-install-html-gotools
0e65dfba 1847install-html-host: maybe-install-html-libctf
108a6f8e
CD
1848
1849.PHONY: install-html-target
1850
1851install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1852install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1853install-html-target: maybe-install-html-target-libmpx
95e43135 1854install-html-target: maybe-install-html-target-libvtv
e3f56a99 1855install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1856install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1857install-html-target: maybe-install-html-target-libssp
108a6f8e 1858install-html-target: maybe-install-html-target-newlib
6aa8ef82 1859install-html-target: maybe-install-html-target-libgcc
2bf680c4 1860install-html-target: maybe-install-html-target-libbacktrace
e552509b 1861install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1862install-html-target: maybe-install-html-target-libgfortran
1863install-html-target: maybe-install-html-target-libobjc
e552509b 1864install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1865install-html-target: maybe-install-html-target-libtermcap
1866install-html-target: maybe-install-html-target-winsup
1867install-html-target: maybe-install-html-target-libgloss
108a6f8e 1868install-html-target: maybe-install-html-target-libffi
108a6f8e 1869install-html-target: maybe-install-html-target-zlib
108a6f8e
CD
1870install-html-target: maybe-install-html-target-rda
1871install-html-target: maybe-install-html-target-libada
1872install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1873install-html-target: maybe-install-html-target-libitm
1874install-html-target: maybe-install-html-target-libatomic
108a6f8e 1875
2a4cbe27 1876.PHONY: do-installcheck
f70224b5 1877do-installcheck:
0aed8855 1878 @: $(MAKE); $(unstage)
e360f423
PB
1879 @r=`${PWD_COMMAND}`; export r; \
1880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1881 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1882 installcheck-target
f70224b5 1883
2a4cbe27
NN
1884
1885.PHONY: installcheck-host
c52c6897 1886
c52c6897
PB
1887installcheck-host: maybe-installcheck-bfd
1888installcheck-host: maybe-installcheck-opcodes
1889installcheck-host: maybe-installcheck-binutils
1890installcheck-host: maybe-installcheck-bison
f9806fa5 1891installcheck-host: maybe-installcheck-cgen
c52c6897 1892installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1893installcheck-host: maybe-installcheck-etc
1894installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1895installcheck-host: maybe-installcheck-fixincludes
1896installcheck-host: maybe-installcheck-flex
1897installcheck-host: maybe-installcheck-gas
1898installcheck-host: maybe-installcheck-gcc
4b900473
PB
1899installcheck-host: maybe-installcheck-gmp
1900installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1901installcheck-host: maybe-installcheck-mpc
7ec59b9e 1902installcheck-host: maybe-installcheck-isl
1f53ca9a 1903installcheck-host: maybe-installcheck-libelf
93f9b408 1904installcheck-host: maybe-installcheck-gold
c52c6897 1905installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1906installcheck-host: maybe-installcheck-intl
1907installcheck-host: maybe-installcheck-tcl
1908installcheck-host: maybe-installcheck-itcl
1909installcheck-host: maybe-installcheck-ld
2bf680c4 1910installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1911installcheck-host: maybe-installcheck-libcpp
1912installcheck-host: maybe-installcheck-libdecnumber
1913installcheck-host: maybe-installcheck-libgui
1914installcheck-host: maybe-installcheck-libiberty
1b6c0831 1915installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1916installcheck-host: maybe-installcheck-libiconv
c52c6897 1917installcheck-host: maybe-installcheck-m4
c52c6897 1918installcheck-host: maybe-installcheck-readline
c52c6897
PB
1919installcheck-host: maybe-installcheck-sid
1920installcheck-host: maybe-installcheck-sim
c52c6897 1921installcheck-host: maybe-installcheck-texinfo
c52c6897 1922installcheck-host: maybe-installcheck-zlib
73cc7272 1923installcheck-host: maybe-installcheck-gnulib
01027315 1924installcheck-host: maybe-installcheck-gdbsupport
919adfe8 1925installcheck-host: maybe-installcheck-gdbserver
c52c6897
PB
1926installcheck-host: maybe-installcheck-gdb
1927installcheck-host: maybe-installcheck-expect
1928installcheck-host: maybe-installcheck-guile
1929installcheck-host: maybe-installcheck-tk
1930installcheck-host: maybe-installcheck-libtermcap
1931installcheck-host: maybe-installcheck-utils
1932installcheck-host: maybe-installcheck-gnattools
700d40ca 1933installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1934installcheck-host: maybe-installcheck-libcc1
1935installcheck-host: maybe-installcheck-gotools
0e65dfba 1936installcheck-host: maybe-installcheck-libctf
2a4cbe27
NN
1937
1938.PHONY: installcheck-target
c52c6897
PB
1939
1940installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1941installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1942installcheck-target: maybe-installcheck-target-libmpx
95e43135 1943installcheck-target: maybe-installcheck-target-libvtv
e3f56a99 1944installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1945installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1946installcheck-target: maybe-installcheck-target-libssp
c52c6897 1947installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1948installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1949installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1950installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1951installcheck-target: maybe-installcheck-target-libgfortran
1952installcheck-target: maybe-installcheck-target-libobjc
e552509b 1953installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1954installcheck-target: maybe-installcheck-target-libtermcap
1955installcheck-target: maybe-installcheck-target-winsup
1956installcheck-target: maybe-installcheck-target-libgloss
c52c6897 1957installcheck-target: maybe-installcheck-target-libffi
c52c6897 1958installcheck-target: maybe-installcheck-target-zlib
c52c6897
PB
1959installcheck-target: maybe-installcheck-target-rda
1960installcheck-target: maybe-installcheck-target-libada
1961installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1962installcheck-target: maybe-installcheck-target-libitm
1963installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1964
4fa63067 1965.PHONY: do-mostlyclean
f70224b5 1966do-mostlyclean:
0aed8855 1967 @: $(MAKE); $(unstage)
e360f423
PB
1968 @r=`${PWD_COMMAND}`; export r; \
1969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1970 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1971 mostlyclean-target
f70224b5 1972
2a4cbe27 1973
4fa63067 1974.PHONY: mostlyclean-host
c52c6897 1975
c52c6897
PB
1976mostlyclean-host: maybe-mostlyclean-bfd
1977mostlyclean-host: maybe-mostlyclean-opcodes
1978mostlyclean-host: maybe-mostlyclean-binutils
1979mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1980mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1981mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1982mostlyclean-host: maybe-mostlyclean-etc
1983mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1984mostlyclean-host: maybe-mostlyclean-fixincludes
1985mostlyclean-host: maybe-mostlyclean-flex
1986mostlyclean-host: maybe-mostlyclean-gas
1987mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1988mostlyclean-host: maybe-mostlyclean-gmp
1989mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1990mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1991mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1992mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1993mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1994mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1995mostlyclean-host: maybe-mostlyclean-intl
1996mostlyclean-host: maybe-mostlyclean-tcl
1997mostlyclean-host: maybe-mostlyclean-itcl
1998mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1999mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
2000mostlyclean-host: maybe-mostlyclean-libcpp
2001mostlyclean-host: maybe-mostlyclean-libdecnumber
2002mostlyclean-host: maybe-mostlyclean-libgui
2003mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 2004mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 2005mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 2006mostlyclean-host: maybe-mostlyclean-m4
c52c6897 2007mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
2008mostlyclean-host: maybe-mostlyclean-sid
2009mostlyclean-host: maybe-mostlyclean-sim
c52c6897 2010mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897 2011mostlyclean-host: maybe-mostlyclean-zlib
73cc7272 2012mostlyclean-host: maybe-mostlyclean-gnulib
01027315 2013mostlyclean-host: maybe-mostlyclean-gdbsupport
919adfe8 2014mostlyclean-host: maybe-mostlyclean-gdbserver
c52c6897
PB
2015mostlyclean-host: maybe-mostlyclean-gdb
2016mostlyclean-host: maybe-mostlyclean-expect
2017mostlyclean-host: maybe-mostlyclean-guile
2018mostlyclean-host: maybe-mostlyclean-tk
2019mostlyclean-host: maybe-mostlyclean-libtermcap
2020mostlyclean-host: maybe-mostlyclean-utils
2021mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 2022mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
2023mostlyclean-host: maybe-mostlyclean-libcc1
2024mostlyclean-host: maybe-mostlyclean-gotools
0e65dfba 2025mostlyclean-host: maybe-mostlyclean-libctf
2a4cbe27 2026
4fa63067 2027.PHONY: mostlyclean-target
c52c6897
PB
2028
2029mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 2030mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 2031mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 2032mostlyclean-target: maybe-mostlyclean-target-libvtv
e3f56a99 2033mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 2034mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 2035mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2036mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2037mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2038mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2039mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2040mostlyclean-target: maybe-mostlyclean-target-libgfortran
2041mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2042mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2043mostlyclean-target: maybe-mostlyclean-target-libtermcap
2044mostlyclean-target: maybe-mostlyclean-target-winsup
2045mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897 2046mostlyclean-target: maybe-mostlyclean-target-libffi
c52c6897 2047mostlyclean-target: maybe-mostlyclean-target-zlib
c52c6897
PB
2048mostlyclean-target: maybe-mostlyclean-target-rda
2049mostlyclean-target: maybe-mostlyclean-target-libada
2050mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2051mostlyclean-target: maybe-mostlyclean-target-libitm
2052mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2053
4fa63067 2054.PHONY: do-clean
f70224b5 2055do-clean:
0aed8855 2056 @: $(MAKE); $(unstage)
e360f423
PB
2057 @r=`${PWD_COMMAND}`; export r; \
2058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2059 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2060 clean-target
f70224b5 2061
2a4cbe27 2062
4fa63067 2063.PHONY: clean-host
c52c6897 2064
c52c6897
PB
2065clean-host: maybe-clean-bfd
2066clean-host: maybe-clean-opcodes
2067clean-host: maybe-clean-binutils
2068clean-host: maybe-clean-bison
f9806fa5 2069clean-host: maybe-clean-cgen
c52c6897 2070clean-host: maybe-clean-dejagnu
c52c6897
PB
2071clean-host: maybe-clean-etc
2072clean-host: maybe-clean-fastjar
c52c6897
PB
2073clean-host: maybe-clean-fixincludes
2074clean-host: maybe-clean-flex
2075clean-host: maybe-clean-gas
2076clean-host: maybe-clean-gcc
4b900473
PB
2077clean-host: maybe-clean-gmp
2078clean-host: maybe-clean-mpfr
e8a5fa9c 2079clean-host: maybe-clean-mpc
7ec59b9e 2080clean-host: maybe-clean-isl
1f53ca9a 2081clean-host: maybe-clean-libelf
93f9b408 2082clean-host: maybe-clean-gold
c52c6897 2083clean-host: maybe-clean-gprof
c52c6897
PB
2084clean-host: maybe-clean-intl
2085clean-host: maybe-clean-tcl
2086clean-host: maybe-clean-itcl
2087clean-host: maybe-clean-ld
2bf680c4 2088clean-host: maybe-clean-libbacktrace
c52c6897
PB
2089clean-host: maybe-clean-libcpp
2090clean-host: maybe-clean-libdecnumber
2091clean-host: maybe-clean-libgui
2092clean-host: maybe-clean-libiberty
1b6c0831 2093clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2094clean-host: maybe-clean-libiconv
c52c6897 2095clean-host: maybe-clean-m4
c52c6897 2096clean-host: maybe-clean-readline
c52c6897
PB
2097clean-host: maybe-clean-sid
2098clean-host: maybe-clean-sim
c52c6897 2099clean-host: maybe-clean-texinfo
c52c6897 2100clean-host: maybe-clean-zlib
73cc7272 2101clean-host: maybe-clean-gnulib
01027315 2102clean-host: maybe-clean-gdbsupport
919adfe8 2103clean-host: maybe-clean-gdbserver
c52c6897
PB
2104clean-host: maybe-clean-gdb
2105clean-host: maybe-clean-expect
2106clean-host: maybe-clean-guile
2107clean-host: maybe-clean-tk
2108clean-host: maybe-clean-libtermcap
2109clean-host: maybe-clean-utils
2110clean-host: maybe-clean-gnattools
700d40ca 2111clean-host: maybe-clean-lto-plugin
1b6c0831
L
2112clean-host: maybe-clean-libcc1
2113clean-host: maybe-clean-gotools
0e65dfba 2114clean-host: maybe-clean-libctf
2a4cbe27 2115
4fa63067 2116.PHONY: clean-target
c52c6897
PB
2117
2118clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2119clean-target: maybe-clean-target-libsanitizer
1b6c0831 2120clean-target: maybe-clean-target-libmpx
95e43135 2121clean-target: maybe-clean-target-libvtv
e3f56a99 2122clean-target: maybe-clean-target-libcilkrts
1b6c0831 2123clean-target: maybe-clean-target-liboffloadmic
c52c6897 2124clean-target: maybe-clean-target-libssp
c52c6897 2125clean-target: maybe-clean-target-newlib
6aa8ef82 2126clean-target: maybe-clean-target-libgcc
2bf680c4 2127clean-target: maybe-clean-target-libbacktrace
e552509b 2128clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2129clean-target: maybe-clean-target-libgfortran
2130clean-target: maybe-clean-target-libobjc
e552509b 2131clean-target: maybe-clean-target-libgo
c52c6897
PB
2132clean-target: maybe-clean-target-libtermcap
2133clean-target: maybe-clean-target-winsup
2134clean-target: maybe-clean-target-libgloss
c52c6897 2135clean-target: maybe-clean-target-libffi
c52c6897 2136clean-target: maybe-clean-target-zlib
c52c6897
PB
2137clean-target: maybe-clean-target-rda
2138clean-target: maybe-clean-target-libada
2139clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2140clean-target: maybe-clean-target-libitm
2141clean-target: maybe-clean-target-libatomic
2a4cbe27 2142
4fa63067 2143.PHONY: do-distclean
f70224b5 2144do-distclean:
0aed8855 2145 @: $(MAKE); $(unstage)
e360f423
PB
2146 @r=`${PWD_COMMAND}`; export r; \
2147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2148 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2149 distclean-target
f70224b5 2150
2a4cbe27 2151
4fa63067 2152.PHONY: distclean-host
c52c6897 2153
c52c6897
PB
2154distclean-host: maybe-distclean-bfd
2155distclean-host: maybe-distclean-opcodes
2156distclean-host: maybe-distclean-binutils
2157distclean-host: maybe-distclean-bison
f9806fa5 2158distclean-host: maybe-distclean-cgen
c52c6897 2159distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2160distclean-host: maybe-distclean-etc
2161distclean-host: maybe-distclean-fastjar
c52c6897
PB
2162distclean-host: maybe-distclean-fixincludes
2163distclean-host: maybe-distclean-flex
2164distclean-host: maybe-distclean-gas
2165distclean-host: maybe-distclean-gcc
4b900473
PB
2166distclean-host: maybe-distclean-gmp
2167distclean-host: maybe-distclean-mpfr
e8a5fa9c 2168distclean-host: maybe-distclean-mpc
7ec59b9e 2169distclean-host: maybe-distclean-isl
1f53ca9a 2170distclean-host: maybe-distclean-libelf
93f9b408 2171distclean-host: maybe-distclean-gold
c52c6897 2172distclean-host: maybe-distclean-gprof
c52c6897
PB
2173distclean-host: maybe-distclean-intl
2174distclean-host: maybe-distclean-tcl
2175distclean-host: maybe-distclean-itcl
2176distclean-host: maybe-distclean-ld
2bf680c4 2177distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2178distclean-host: maybe-distclean-libcpp
2179distclean-host: maybe-distclean-libdecnumber
2180distclean-host: maybe-distclean-libgui
2181distclean-host: maybe-distclean-libiberty
1b6c0831 2182distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2183distclean-host: maybe-distclean-libiconv
c52c6897 2184distclean-host: maybe-distclean-m4
c52c6897 2185distclean-host: maybe-distclean-readline
c52c6897
PB
2186distclean-host: maybe-distclean-sid
2187distclean-host: maybe-distclean-sim
c52c6897 2188distclean-host: maybe-distclean-texinfo
c52c6897 2189distclean-host: maybe-distclean-zlib
73cc7272 2190distclean-host: maybe-distclean-gnulib
01027315 2191distclean-host: maybe-distclean-gdbsupport
919adfe8 2192distclean-host: maybe-distclean-gdbserver
c52c6897
PB
2193distclean-host: maybe-distclean-gdb
2194distclean-host: maybe-distclean-expect
2195distclean-host: maybe-distclean-guile
2196distclean-host: maybe-distclean-tk
2197distclean-host: maybe-distclean-libtermcap
2198distclean-host: maybe-distclean-utils
2199distclean-host: maybe-distclean-gnattools
700d40ca 2200distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2201distclean-host: maybe-distclean-libcc1
2202distclean-host: maybe-distclean-gotools
0e65dfba 2203distclean-host: maybe-distclean-libctf
2a4cbe27 2204
4fa63067 2205.PHONY: distclean-target
c52c6897
PB
2206
2207distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2208distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2209distclean-target: maybe-distclean-target-libmpx
95e43135 2210distclean-target: maybe-distclean-target-libvtv
e3f56a99 2211distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2212distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2213distclean-target: maybe-distclean-target-libssp
c52c6897 2214distclean-target: maybe-distclean-target-newlib
6aa8ef82 2215distclean-target: maybe-distclean-target-libgcc
2bf680c4 2216distclean-target: maybe-distclean-target-libbacktrace
e552509b 2217distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2218distclean-target: maybe-distclean-target-libgfortran
2219distclean-target: maybe-distclean-target-libobjc
e552509b 2220distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2221distclean-target: maybe-distclean-target-libtermcap
2222distclean-target: maybe-distclean-target-winsup
2223distclean-target: maybe-distclean-target-libgloss
c52c6897 2224distclean-target: maybe-distclean-target-libffi
c52c6897 2225distclean-target: maybe-distclean-target-zlib
c52c6897
PB
2226distclean-target: maybe-distclean-target-rda
2227distclean-target: maybe-distclean-target-libada
2228distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2229distclean-target: maybe-distclean-target-libitm
2230distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2231
4fa63067 2232.PHONY: do-maintainer-clean
f70224b5 2233do-maintainer-clean:
0aed8855 2234 @: $(MAKE); $(unstage)
e360f423
PB
2235 @r=`${PWD_COMMAND}`; export r; \
2236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2237 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2238 maintainer-clean-target
f70224b5 2239
2a4cbe27 2240
4fa63067 2241.PHONY: maintainer-clean-host
c52c6897 2242
c52c6897
PB
2243maintainer-clean-host: maybe-maintainer-clean-bfd
2244maintainer-clean-host: maybe-maintainer-clean-opcodes
2245maintainer-clean-host: maybe-maintainer-clean-binutils
2246maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2247maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2248maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2249maintainer-clean-host: maybe-maintainer-clean-etc
2250maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2251maintainer-clean-host: maybe-maintainer-clean-fixincludes
2252maintainer-clean-host: maybe-maintainer-clean-flex
2253maintainer-clean-host: maybe-maintainer-clean-gas
2254maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2255maintainer-clean-host: maybe-maintainer-clean-gmp
2256maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2257maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2258maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2259maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2260maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2261maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2262maintainer-clean-host: maybe-maintainer-clean-intl
2263maintainer-clean-host: maybe-maintainer-clean-tcl
2264maintainer-clean-host: maybe-maintainer-clean-itcl
2265maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2266maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2267maintainer-clean-host: maybe-maintainer-clean-libcpp
2268maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2269maintainer-clean-host: maybe-maintainer-clean-libgui
2270maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2271maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2272maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2273maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2274maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2275maintainer-clean-host: maybe-maintainer-clean-sid
2276maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2277maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897 2278maintainer-clean-host: maybe-maintainer-clean-zlib
73cc7272 2279maintainer-clean-host: maybe-maintainer-clean-gnulib
01027315 2280maintainer-clean-host: maybe-maintainer-clean-gdbsupport
919adfe8 2281maintainer-clean-host: maybe-maintainer-clean-gdbserver
c52c6897
PB
2282maintainer-clean-host: maybe-maintainer-clean-gdb
2283maintainer-clean-host: maybe-maintainer-clean-expect
2284maintainer-clean-host: maybe-maintainer-clean-guile
2285maintainer-clean-host: maybe-maintainer-clean-tk
2286maintainer-clean-host: maybe-maintainer-clean-libtermcap
2287maintainer-clean-host: maybe-maintainer-clean-utils
2288maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2289maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2290maintainer-clean-host: maybe-maintainer-clean-libcc1
2291maintainer-clean-host: maybe-maintainer-clean-gotools
0e65dfba 2292maintainer-clean-host: maybe-maintainer-clean-libctf
2a4cbe27 2293
4fa63067 2294.PHONY: maintainer-clean-target
c52c6897
PB
2295
2296maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2297maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2298maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2299maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e3f56a99 2300maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2301maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2302maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2303maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2304maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2305maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2306maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2307maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2308maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2309maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2310maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2311maintainer-clean-target: maybe-maintainer-clean-target-winsup
2312maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897 2313maintainer-clean-target: maybe-maintainer-clean-target-libffi
c52c6897 2314maintainer-clean-target: maybe-maintainer-clean-target-zlib
c52c6897
PB
2315maintainer-clean-target: maybe-maintainer-clean-target-rda
2316maintainer-clean-target: maybe-maintainer-clean-target-libada
2317maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2318maintainer-clean-target: maybe-maintainer-clean-target-libitm
2319maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2320
2a4cbe27 2321
4fa63067 2322# Here are the targets which correspond to the do-X targets.
2a4cbe27 2323
a3ca38d2
DD
2324.PHONY: info installcheck dvi pdf html
2325.PHONY: install-info install-pdf install-html
4fa63067
NN
2326.PHONY: clean distclean mostlyclean maintainer-clean realclean
2327.PHONY: local-clean local-distclean local-maintainer-clean
2328info: do-info
2329installcheck: do-installcheck
2330dvi: do-dvi
56a8fe78 2331pdf: do-pdf
6d389afc 2332html: do-html
2a4cbe27 2333
4fa63067
NN
2334# Make sure makeinfo is built before we do a `make info', if we're
2335# in fact building texinfo.
2336do-info: maybe-all-texinfo
2a4cbe27 2337
4fa63067 2338install-info: do-install-info dir.info
b40e3958 2339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2340 if [ -f dir.info ]; then \
2341 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2342 else true; fi
2a4cbe27 2343
a3ca38d2
DD
2344install-pdf: do-install-pdf
2345
108a6f8e
CD
2346install-html: do-install-html
2347
4fa63067
NN
2348local-clean:
2349 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2350
4fa63067
NN
2351local-distclean:
2352 -rm -f Makefile config.status config.cache mh-frag mt-frag
bb7dc663 2353 -rm -f maybedep.tmp serdep.tmp stage_final
4fa63067
NN
2354 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2355 rm -rf $(TARGET_SUBDIR); \
2356 else true; fi
2357 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2358 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2359 rm -rf $(HOST_SUBDIR); \
2360 else true; fi
4fa63067
NN
2361 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2362 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2363 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2364 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
bb7dc663
NC
2365 -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
2366 -rmdir texinfo zlib 2>/dev/null
18fa8f9c 2367 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2368
4fa63067
NN
2369local-maintainer-clean:
2370 @echo "This command is intended for maintainers to use;"
2371 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2372
4fa63067
NN
2373clean: do-clean local-clean
2374mostlyclean: do-mostlyclean local-clean
2375distclean: do-distclean local-clean local-distclean
2376maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2377maintainer-clean: local-distclean
2378realclean: maintainer-clean
2a4cbe27 2379
4fa63067 2380# Check target.
2a4cbe27 2381
4fa63067
NN
2382.PHONY: check do-check
2383check: do-check
2a4cbe27 2384
4fa63067 2385# Only include modules actually being configured and built.
f70224b5
PB
2386.PHONY: check-host
2387check-host: \
4fa63067
NN
2388 maybe-check-bfd \
2389 maybe-check-opcodes \
2390 maybe-check-binutils \
2391 maybe-check-bison \
f9806fa5 2392 maybe-check-cgen \
4fa63067 2393 maybe-check-dejagnu \
4fa63067
NN
2394 maybe-check-etc \
2395 maybe-check-fastjar \
d3ed111c 2396 maybe-check-fixincludes \
4fa63067
NN
2397 maybe-check-flex \
2398 maybe-check-gas \
b813574b 2399 maybe-check-gcc \
4b900473
PB
2400 maybe-check-gmp \
2401 maybe-check-mpfr \
e8a5fa9c 2402 maybe-check-mpc \
7ec59b9e 2403 maybe-check-isl \
1f53ca9a 2404 maybe-check-libelf \
93f9b408 2405 maybe-check-gold \
4fa63067 2406 maybe-check-gprof \
4fa63067
NN
2407 maybe-check-intl \
2408 maybe-check-tcl \
2409 maybe-check-itcl \
2410 maybe-check-ld \
2bf680c4 2411 maybe-check-libbacktrace \
04cf1b77 2412 maybe-check-libcpp \
be01d343 2413 maybe-check-libdecnumber \
4fa63067
NN
2414 maybe-check-libgui \
2415 maybe-check-libiberty \
1b6c0831 2416 maybe-check-libiberty-linker-plugin \
dc448a7b 2417 maybe-check-libiconv \
4fa63067 2418 maybe-check-m4 \
4fa63067 2419 maybe-check-readline \
4fa63067
NN
2420 maybe-check-sid \
2421 maybe-check-sim \
4fa63067 2422 maybe-check-texinfo \
4fa63067 2423 maybe-check-zlib \
73cc7272 2424 maybe-check-gnulib \
01027315 2425 maybe-check-gdbsupport \
919adfe8 2426 maybe-check-gdbserver \
4fa63067
NN
2427 maybe-check-gdb \
2428 maybe-check-expect \
2429 maybe-check-guile \
2430 maybe-check-tk \
4fa63067
NN
2431 maybe-check-libtermcap \
2432 maybe-check-utils \
700d40ca 2433 maybe-check-gnattools \
1b6c0831
L
2434 maybe-check-lto-plugin \
2435 maybe-check-libcc1 \
0e65dfba
NA
2436 maybe-check-gotools \
2437 maybe-check-libctf
f70224b5
PB
2438
2439.PHONY: check-target
2440check-target: \
4fa63067 2441 maybe-check-target-libstdc++-v3 \
5286fdef 2442 maybe-check-target-libsanitizer \
1b6c0831 2443 maybe-check-target-libmpx \
95e43135 2444 maybe-check-target-libvtv \
e3f56a99 2445 maybe-check-target-libcilkrts \
1b6c0831 2446 maybe-check-target-liboffloadmic \
064d0a7c 2447 maybe-check-target-libssp \
4fa63067 2448 maybe-check-target-newlib \
6aa8ef82 2449 maybe-check-target-libgcc \
2bf680c4 2450 maybe-check-target-libbacktrace \
e552509b 2451 maybe-check-target-libquadmath \
4b1cb4fe 2452 maybe-check-target-libgfortran \
4fa63067 2453 maybe-check-target-libobjc \
e552509b 2454 maybe-check-target-libgo \
4fa63067
NN
2455 maybe-check-target-libtermcap \
2456 maybe-check-target-winsup \
2457 maybe-check-target-libgloss \
4fa63067 2458 maybe-check-target-libffi \
4fa63067 2459 maybe-check-target-zlib \
4fa63067 2460 maybe-check-target-rda \
b3ded179 2461 maybe-check-target-libada \
7ec59b9e
L
2462 maybe-check-target-libgomp \
2463 maybe-check-target-libitm \
2464 maybe-check-target-libatomic
f70224b5
PB
2465
2466do-check:
0aed8855 2467 @: $(MAKE); $(unstage)
e360f423
PB
2468 @r=`${PWD_COMMAND}`; export r; \
2469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2470 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2471
4fa63067 2472# Automated reporting of test results.
2a4cbe27 2473
4fa63067
NN
2474warning.log: build.log
2475 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2476
4fa63067
NN
2477mail-report.log:
2478 if test x'$(BOOT_CFLAGS)' != x''; then \
2479 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2480 fi; \
2481 $(srcdir)/contrib/test_summary -t >$@
2482 chmod +x $@
2483 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2484
4fa63067
NN
2485mail-report-with-warnings.log: warning.log
2486 if test x'$(BOOT_CFLAGS)' != x''; then \
2487 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2488 fi; \
2489 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2490 chmod +x $@
2491 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2492
1b6c0831
L
2493# Local Vim config
2494
2495$(srcdir)/.local.vimrc:
22121df0 2496 $(LN_S) contrib/vimrc $@
1b6c0831
L
2497
2498$(srcdir)/.lvimrc:
22121df0 2499 $(LN_S) contrib/vimrc $@
1b6c0831
L
2500
2501vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2502
2503.PHONY: vimrc
2504
4849dfd8
NC
2505# clang-format config
2506
2507$(srcdir)/.clang-format:
2508 $(LN_S) contrib/clang-format $@
2509
2510clang-format: $(srcdir)/.clang-format
2511
2512.PHONY: clang-format
2513
4fa63067 2514# Installation targets.
2a4cbe27 2515
4fa63067 2516.PHONY: install uninstall
f70224b5 2517install:
0aed8855 2518 @: $(MAKE); $(unstage)
e360f423
PB
2519 @r=`${PWD_COMMAND}`; export r; \
2520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2521 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2522
4fa63067
NN
2523.PHONY: install-host-nogcc
2524install-host-nogcc: \
4fa63067
NN
2525 maybe-install-bfd \
2526 maybe-install-opcodes \
2527 maybe-install-binutils \
2528 maybe-install-bison \
f9806fa5 2529 maybe-install-cgen \
4fa63067 2530 maybe-install-dejagnu \
4fa63067
NN
2531 maybe-install-etc \
2532 maybe-install-fastjar \
d3ed111c 2533 maybe-install-fixincludes \
4fa63067
NN
2534 maybe-install-flex \
2535 maybe-install-gas \
4b900473
PB
2536 maybe-install-gmp \
2537 maybe-install-mpfr \
e8a5fa9c 2538 maybe-install-mpc \
7ec59b9e 2539 maybe-install-isl \
1f53ca9a 2540 maybe-install-libelf \
93f9b408 2541 maybe-install-gold \
4fa63067 2542 maybe-install-gprof \
4fa63067
NN
2543 maybe-install-intl \
2544 maybe-install-tcl \
2545 maybe-install-itcl \
2546 maybe-install-ld \
2bf680c4 2547 maybe-install-libbacktrace \
04cf1b77 2548 maybe-install-libcpp \
be01d343 2549 maybe-install-libdecnumber \
4fa63067
NN
2550 maybe-install-libgui \
2551 maybe-install-libiberty \
1b6c0831 2552 maybe-install-libiberty-linker-plugin \
dc448a7b 2553 maybe-install-libiconv \
4fa63067 2554 maybe-install-m4 \
4fa63067 2555 maybe-install-readline \
4fa63067
NN
2556 maybe-install-sid \
2557 maybe-install-sim \
4fa63067 2558 maybe-install-texinfo \
4fa63067 2559 maybe-install-zlib \
73cc7272 2560 maybe-install-gnulib \
01027315 2561 maybe-install-gdbsupport \
919adfe8 2562 maybe-install-gdbserver \
4fa63067
NN
2563 maybe-install-gdb \
2564 maybe-install-expect \
2565 maybe-install-guile \
2566 maybe-install-tk \
4fa63067 2567 maybe-install-libtermcap \
b00612cc 2568 maybe-install-utils \
700d40ca 2569 maybe-install-gnattools \
1b6c0831
L
2570 maybe-install-lto-plugin \
2571 maybe-install-libcc1 \
0e65dfba
NA
2572 maybe-install-gotools \
2573 maybe-install-libctf
2a4cbe27 2574
4fa63067 2575.PHONY: install-host
b813574b 2576install-host: \
4fa63067
NN
2577 maybe-install-bfd \
2578 maybe-install-opcodes \
2579 maybe-install-binutils \
2580 maybe-install-bison \
f9806fa5 2581 maybe-install-cgen \
4fa63067 2582 maybe-install-dejagnu \
4fa63067
NN
2583 maybe-install-etc \
2584 maybe-install-fastjar \
d3ed111c 2585 maybe-install-fixincludes \
4fa63067
NN
2586 maybe-install-flex \
2587 maybe-install-gas \
b813574b 2588 maybe-install-gcc \
4b900473
PB
2589 maybe-install-gmp \
2590 maybe-install-mpfr \
e8a5fa9c 2591 maybe-install-mpc \
7ec59b9e 2592 maybe-install-isl \
1f53ca9a 2593 maybe-install-libelf \
93f9b408 2594 maybe-install-gold \
4fa63067 2595 maybe-install-gprof \
4fa63067
NN
2596 maybe-install-intl \
2597 maybe-install-tcl \
2598 maybe-install-itcl \
2599 maybe-install-ld \
2bf680c4 2600 maybe-install-libbacktrace \
04cf1b77 2601 maybe-install-libcpp \
be01d343 2602 maybe-install-libdecnumber \
4fa63067
NN
2603 maybe-install-libgui \
2604 maybe-install-libiberty \
1b6c0831 2605 maybe-install-libiberty-linker-plugin \
dc448a7b 2606 maybe-install-libiconv \
4fa63067 2607 maybe-install-m4 \
4fa63067 2608 maybe-install-readline \
4fa63067
NN
2609 maybe-install-sid \
2610 maybe-install-sim \
4fa63067 2611 maybe-install-texinfo \
4fa63067 2612 maybe-install-zlib \
73cc7272 2613 maybe-install-gnulib \
01027315 2614 maybe-install-gdbsupport \
919adfe8 2615 maybe-install-gdbserver \
4fa63067
NN
2616 maybe-install-gdb \
2617 maybe-install-expect \
2618 maybe-install-guile \
2619 maybe-install-tk \
4fa63067 2620 maybe-install-libtermcap \
b00612cc 2621 maybe-install-utils \
700d40ca 2622 maybe-install-gnattools \
1b6c0831
L
2623 maybe-install-lto-plugin \
2624 maybe-install-libcc1 \
0e65dfba
NA
2625 maybe-install-gotools \
2626 maybe-install-libctf
2a4cbe27 2627
4fa63067
NN
2628.PHONY: install-target
2629install-target: \
2630 maybe-install-target-libstdc++-v3 \
5286fdef 2631 maybe-install-target-libsanitizer \
1b6c0831 2632 maybe-install-target-libmpx \
95e43135 2633 maybe-install-target-libvtv \
e3f56a99 2634 maybe-install-target-libcilkrts \
1b6c0831 2635 maybe-install-target-liboffloadmic \
064d0a7c 2636 maybe-install-target-libssp \
4fa63067 2637 maybe-install-target-newlib \
6aa8ef82 2638 maybe-install-target-libgcc \
2bf680c4 2639 maybe-install-target-libbacktrace \
e552509b 2640 maybe-install-target-libquadmath \
4b1cb4fe 2641 maybe-install-target-libgfortran \
4fa63067 2642 maybe-install-target-libobjc \
e552509b 2643 maybe-install-target-libgo \
4fa63067
NN
2644 maybe-install-target-libtermcap \
2645 maybe-install-target-winsup \
2646 maybe-install-target-libgloss \
4fa63067 2647 maybe-install-target-libffi \
4fa63067 2648 maybe-install-target-zlib \
4fa63067 2649 maybe-install-target-rda \
b3ded179 2650 maybe-install-target-libada \
7ec59b9e
L
2651 maybe-install-target-libgomp \
2652 maybe-install-target-libitm \
2653 maybe-install-target-libatomic
2a4cbe27 2654
4fa63067
NN
2655uninstall:
2656 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2657
4fa63067
NN
2658.PHONY: install.all
2659install.all: install-no-fixedincludes
22121df0
L
2660 @if [ -f ./gcc/Makefile ]; then \
2661 r=`${PWD_COMMAND}`; export r; \
0aed8855 2662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2663 $(HOST_EXPORTS) \
4fa63067 2664 (cd ./gcc && \
22121df0 2665 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2666 else \
22121df0 2667 true; \
4fa63067 2668 fi
2a4cbe27 2669
7ec59b9e
L
2670# install-no-fixedincludes is used to allow the elaboration of binary packages
2671# suitable for distribution, where we cannot include the fixed system header
2672# files.
4fa63067
NN
2673.PHONY: install-no-fixedincludes
2674install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2675 install-target gcc-install-no-fixedincludes
2a4cbe27 2676
9b980aa1
RW
2677.PHONY: install-strip
2678install-strip:
2679 @: $(MAKE); $(unstage)
2680 @r=`${PWD_COMMAND}`; export r; \
2681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2682 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2683
2684.PHONY: install-strip-host
2685install-strip-host: \
9b980aa1
RW
2686 maybe-install-strip-bfd \
2687 maybe-install-strip-opcodes \
2688 maybe-install-strip-binutils \
2689 maybe-install-strip-bison \
9b980aa1
RW
2690 maybe-install-strip-cgen \
2691 maybe-install-strip-dejagnu \
9b980aa1
RW
2692 maybe-install-strip-etc \
2693 maybe-install-strip-fastjar \
9b980aa1
RW
2694 maybe-install-strip-fixincludes \
2695 maybe-install-strip-flex \
2696 maybe-install-strip-gas \
2697 maybe-install-strip-gcc \
9b980aa1
RW
2698 maybe-install-strip-gmp \
2699 maybe-install-strip-mpfr \
2700 maybe-install-strip-mpc \
7ec59b9e 2701 maybe-install-strip-isl \
9b980aa1 2702 maybe-install-strip-libelf \
9b980aa1
RW
2703 maybe-install-strip-gold \
2704 maybe-install-strip-gprof \
9b980aa1
RW
2705 maybe-install-strip-intl \
2706 maybe-install-strip-tcl \
2707 maybe-install-strip-itcl \
2708 maybe-install-strip-ld \
2bf680c4 2709 maybe-install-strip-libbacktrace \
9b980aa1
RW
2710 maybe-install-strip-libcpp \
2711 maybe-install-strip-libdecnumber \
2712 maybe-install-strip-libgui \
2713 maybe-install-strip-libiberty \
1b6c0831 2714 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2715 maybe-install-strip-libiconv \
9b980aa1 2716 maybe-install-strip-m4 \
9b980aa1 2717 maybe-install-strip-readline \
9b980aa1
RW
2718 maybe-install-strip-sid \
2719 maybe-install-strip-sim \
9b980aa1 2720 maybe-install-strip-texinfo \
9b980aa1 2721 maybe-install-strip-zlib \
73cc7272 2722 maybe-install-strip-gnulib \
01027315 2723 maybe-install-strip-gdbsupport \
919adfe8 2724 maybe-install-strip-gdbserver \
9b980aa1
RW
2725 maybe-install-strip-gdb \
2726 maybe-install-strip-expect \
2727 maybe-install-strip-guile \
2728 maybe-install-strip-tk \
2729 maybe-install-strip-libtermcap \
2730 maybe-install-strip-utils \
2731 maybe-install-strip-gnattools \
1b6c0831
L
2732 maybe-install-strip-lto-plugin \
2733 maybe-install-strip-libcc1 \
0e65dfba
NA
2734 maybe-install-strip-gotools \
2735 maybe-install-strip-libctf
9b980aa1
RW
2736
2737.PHONY: install-strip-target
2738install-strip-target: \
2739 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2740 maybe-install-strip-target-libsanitizer \
1b6c0831 2741 maybe-install-strip-target-libmpx \
95e43135 2742 maybe-install-strip-target-libvtv \
e3f56a99 2743 maybe-install-strip-target-libcilkrts \
1b6c0831 2744 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2745 maybe-install-strip-target-libssp \
2746 maybe-install-strip-target-newlib \
2747 maybe-install-strip-target-libgcc \
2bf680c4 2748 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2749 maybe-install-strip-target-libquadmath \
2750 maybe-install-strip-target-libgfortran \
2751 maybe-install-strip-target-libobjc \
2752 maybe-install-strip-target-libgo \
2753 maybe-install-strip-target-libtermcap \
2754 maybe-install-strip-target-winsup \
2755 maybe-install-strip-target-libgloss \
9b980aa1 2756 maybe-install-strip-target-libffi \
9b980aa1 2757 maybe-install-strip-target-zlib \
9b980aa1
RW
2758 maybe-install-strip-target-rda \
2759 maybe-install-strip-target-libada \
7ec59b9e
L
2760 maybe-install-strip-target-libgomp \
2761 maybe-install-strip-target-libitm \
2762 maybe-install-strip-target-libatomic
9b980aa1
RW
2763
2764
4fa63067 2765### other supporting targets
2a4cbe27 2766
4fa63067
NN
2767MAKEDIRS= \
2768 $(DESTDIR)$(prefix) \
2769 $(DESTDIR)$(exec_prefix)
2770.PHONY: installdirs
2771installdirs: mkinstalldirs
2772 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2773
4fa63067 2774dir.info: do-install-info
22121df0
L
2775 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2776 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2777 mv -f dir.info.new dir.info; \
2778 else true; \
4fa63067 2779 fi
2a4cbe27 2780
4fa63067
NN
2781dist:
2782 @echo "Building a full distribution of this tree isn't done"
2783 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2784
4fa63067 2785etags tags: TAGS
2a4cbe27 2786
4fa63067
NN
2787# Right now this just builds TAGS in each subdirectory. emacs19 has the
2788# ability to use several tags files at once, so there is probably no need
2789# to combine them into one big TAGS file (like CVS 1.3 does). We could
2790# (if we felt like it) have this Makefile write a piece of elisp which
2791# the user could load to tell emacs19 where all the TAGS files we just
2792# built are.
2793TAGS: do-TAGS
2a4cbe27 2794
a7254363
PB
2795# ------------------------------------
2796# Macros for configure and all targets
2797# ------------------------------------
2798
2799
2800
2801
2802
4fa63067
NN
2803# --------------------------------------
2804# Modules which run on the build machine
2805# --------------------------------------
2806
a7254363 2807
4fa63067
NN
2808.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2809maybe-configure-build-libiberty:
4f0ef2d8
CD
2810@if gcc-bootstrap
2811configure-build-libiberty: stage_current
2812@endif gcc-bootstrap
6bd3dfaa
PB
2813@if build-libiberty
2814maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2815configure-build-libiberty:
0aed8855 2816 @: $(MAKE); $(unstage)
c52c6897 2817 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2819 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2820 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2821 $(BUILD_EXPORTS) \
4fa63067
NN
2822 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2823 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2824 case $(srcdir) in \
b00612cc
PB
2825 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2826 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2827 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2828 esac; \
1b6c0831 2829 module_srcdir=libiberty; \
4fa63067 2830 rm -f no-such-file || : ; \
1b6c0831
L
2831 CONFIG_SITE=no-such-file $(SHELL) \
2832 $$s/$$module_srcdir/configure \
2833 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2834 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2835 --target=${target_alias} \
2a4cbe27 2836 || exit 1
6bd3dfaa 2837@endif build-libiberty
2a4cbe27 2838
a7254363
PB
2839
2840
d545f33b
PB
2841
2842
4fa63067
NN
2843.PHONY: all-build-libiberty maybe-all-build-libiberty
2844maybe-all-build-libiberty:
4f0ef2d8
CD
2845@if gcc-bootstrap
2846all-build-libiberty: stage_current
2847@endif gcc-bootstrap
6bd3dfaa 2848@if build-libiberty
72b2455a 2849TARGET-build-libiberty=all
6bd3dfaa 2850maybe-all-build-libiberty: all-build-libiberty
4fa63067 2851all-build-libiberty: configure-build-libiberty
0aed8855 2852 @: $(MAKE); $(unstage)
4fa63067 2853 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2855 $(BUILD_EXPORTS) \
72b2455a 2856 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2857 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2858 $(TARGET-build-libiberty))
6bd3dfaa 2859@endif build-libiberty
2a4cbe27 2860
a7254363
PB
2861
2862
d545f33b
PB
2863
2864
6a9cf61e
PB
2865.PHONY: configure-build-bison maybe-configure-build-bison
2866maybe-configure-build-bison:
4f0ef2d8
CD
2867@if gcc-bootstrap
2868configure-build-bison: stage_current
2869@endif gcc-bootstrap
6a9cf61e
PB
2870@if build-bison
2871maybe-configure-build-bison: configure-build-bison
c52c6897 2872configure-build-bison:
0aed8855 2873 @: $(MAKE); $(unstage)
c52c6897 2874 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2876 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2877 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2878 $(BUILD_EXPORTS) \
6a9cf61e
PB
2879 echo Configuring in $(BUILD_SUBDIR)/bison; \
2880 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2881 case $(srcdir) in \
b00612cc
PB
2882 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2883 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2884 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2885 esac; \
1b6c0831 2886 module_srcdir=bison; \
6a9cf61e 2887 rm -f no-such-file || : ; \
1b6c0831
L
2888 CONFIG_SITE=no-such-file $(SHELL) \
2889 $$s/$$module_srcdir/configure \
2890 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2891 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2892 --target=${target_alias} \
6a9cf61e
PB
2893 || exit 1
2894@endif build-bison
2895
a7254363
PB
2896
2897
d545f33b
PB
2898
2899
6a9cf61e
PB
2900.PHONY: all-build-bison maybe-all-build-bison
2901maybe-all-build-bison:
4f0ef2d8
CD
2902@if gcc-bootstrap
2903all-build-bison: stage_current
2904@endif gcc-bootstrap
6a9cf61e 2905@if build-bison
72b2455a 2906TARGET-build-bison=all
6a9cf61e
PB
2907maybe-all-build-bison: all-build-bison
2908all-build-bison: configure-build-bison
0aed8855 2909 @: $(MAKE); $(unstage)
6a9cf61e
PB
2910 @r=`${PWD_COMMAND}`; export r; \
2911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2912 $(BUILD_EXPORTS) \
72b2455a 2913 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2914 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2915 $(TARGET-build-bison))
6a9cf61e
PB
2916@endif build-bison
2917
a7254363
PB
2918
2919
d545f33b
PB
2920
2921
6a9cf61e
PB
2922.PHONY: configure-build-flex maybe-configure-build-flex
2923maybe-configure-build-flex:
4f0ef2d8
CD
2924@if gcc-bootstrap
2925configure-build-flex: stage_current
2926@endif gcc-bootstrap
6a9cf61e
PB
2927@if build-flex
2928maybe-configure-build-flex: configure-build-flex
c52c6897 2929configure-build-flex:
0aed8855 2930 @: $(MAKE); $(unstage)
c52c6897 2931 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2933 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2934 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2935 $(BUILD_EXPORTS) \
6a9cf61e
PB
2936 echo Configuring in $(BUILD_SUBDIR)/flex; \
2937 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2938 case $(srcdir) in \
b00612cc
PB
2939 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2940 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2941 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2942 esac; \
1b6c0831 2943 module_srcdir=flex; \
6a9cf61e 2944 rm -f no-such-file || : ; \
1b6c0831
L
2945 CONFIG_SITE=no-such-file $(SHELL) \
2946 $$s/$$module_srcdir/configure \
2947 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2948 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2949 --target=${target_alias} \
6a9cf61e
PB
2950 || exit 1
2951@endif build-flex
2952
a7254363
PB
2953
2954
d545f33b
PB
2955
2956
6a9cf61e
PB
2957.PHONY: all-build-flex maybe-all-build-flex
2958maybe-all-build-flex:
4f0ef2d8
CD
2959@if gcc-bootstrap
2960all-build-flex: stage_current
2961@endif gcc-bootstrap
6a9cf61e 2962@if build-flex
72b2455a 2963TARGET-build-flex=all
6a9cf61e
PB
2964maybe-all-build-flex: all-build-flex
2965all-build-flex: configure-build-flex
0aed8855 2966 @: $(MAKE); $(unstage)
6a9cf61e
PB
2967 @r=`${PWD_COMMAND}`; export r; \
2968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2969 $(BUILD_EXPORTS) \
72b2455a 2970 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2971 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2972 $(TARGET-build-flex))
6a9cf61e
PB
2973@endif build-flex
2974
a7254363
PB
2975
2976
d545f33b
PB
2977
2978
6a9cf61e
PB
2979.PHONY: configure-build-m4 maybe-configure-build-m4
2980maybe-configure-build-m4:
4f0ef2d8
CD
2981@if gcc-bootstrap
2982configure-build-m4: stage_current
2983@endif gcc-bootstrap
6a9cf61e
PB
2984@if build-m4
2985maybe-configure-build-m4: configure-build-m4
c52c6897 2986configure-build-m4:
0aed8855 2987 @: $(MAKE); $(unstage)
c52c6897 2988 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2990 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 2991 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 2992 $(BUILD_EXPORTS) \
6a9cf61e
PB
2993 echo Configuring in $(BUILD_SUBDIR)/m4; \
2994 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2995 case $(srcdir) in \
b00612cc
PB
2996 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2997 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2998 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2999 esac; \
1b6c0831 3000 module_srcdir=m4; \
6a9cf61e 3001 rm -f no-such-file || : ; \
1b6c0831
L
3002 CONFIG_SITE=no-such-file $(SHELL) \
3003 $$s/$$module_srcdir/configure \
3004 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3005 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3006 --target=${target_alias} \
6a9cf61e
PB
3007 || exit 1
3008@endif build-m4
3009
a7254363
PB
3010
3011
d545f33b
PB
3012
3013
6a9cf61e
PB
3014.PHONY: all-build-m4 maybe-all-build-m4
3015maybe-all-build-m4:
4f0ef2d8
CD
3016@if gcc-bootstrap
3017all-build-m4: stage_current
3018@endif gcc-bootstrap
6a9cf61e 3019@if build-m4
72b2455a 3020TARGET-build-m4=all
6a9cf61e
PB
3021maybe-all-build-m4: all-build-m4
3022all-build-m4: configure-build-m4
0aed8855 3023 @: $(MAKE); $(unstage)
6a9cf61e
PB
3024 @r=`${PWD_COMMAND}`; export r; \
3025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3026 $(BUILD_EXPORTS) \
72b2455a 3027 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 3028 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3029 $(TARGET-build-m4))
6a9cf61e
PB
3030@endif build-m4
3031
a7254363
PB
3032
3033
d545f33b
PB
3034
3035
6a9cf61e
PB
3036.PHONY: configure-build-texinfo maybe-configure-build-texinfo
3037maybe-configure-build-texinfo:
4f0ef2d8
CD
3038@if gcc-bootstrap
3039configure-build-texinfo: stage_current
3040@endif gcc-bootstrap
6a9cf61e
PB
3041@if build-texinfo
3042maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 3043configure-build-texinfo:
0aed8855 3044 @: $(MAKE); $(unstage)
c52c6897 3045 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3047 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 3048 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 3049 $(BUILD_EXPORTS) \
6a9cf61e
PB
3050 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3051 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3052 case $(srcdir) in \
b00612cc
PB
3053 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3054 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3055 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3056 esac; \
1b6c0831 3057 module_srcdir=texinfo; \
6a9cf61e 3058 rm -f no-such-file || : ; \
1b6c0831
L
3059 CONFIG_SITE=no-such-file $(SHELL) \
3060 $$s/$$module_srcdir/configure \
3061 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3062 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3063 --target=${target_alias} \
6a9cf61e
PB
3064 || exit 1
3065@endif build-texinfo
3066
a7254363
PB
3067
3068
d545f33b
PB
3069
3070
6a9cf61e
PB
3071.PHONY: all-build-texinfo maybe-all-build-texinfo
3072maybe-all-build-texinfo:
4f0ef2d8
CD
3073@if gcc-bootstrap
3074all-build-texinfo: stage_current
3075@endif gcc-bootstrap
6a9cf61e 3076@if build-texinfo
72b2455a 3077TARGET-build-texinfo=all
6a9cf61e
PB
3078maybe-all-build-texinfo: all-build-texinfo
3079all-build-texinfo: configure-build-texinfo
0aed8855 3080 @: $(MAKE); $(unstage)
6a9cf61e
PB
3081 @r=`${PWD_COMMAND}`; export r; \
3082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3083 $(BUILD_EXPORTS) \
72b2455a 3084 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3085 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3086 $(TARGET-build-texinfo))
6a9cf61e
PB
3087@endif build-texinfo
3088
a7254363
PB
3089
3090
d545f33b
PB
3091
3092
ee025550
PB
3093.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3094maybe-configure-build-fixincludes:
4f0ef2d8
CD
3095@if gcc-bootstrap
3096configure-build-fixincludes: stage_current
3097@endif gcc-bootstrap
ee025550
PB
3098@if build-fixincludes
3099maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3100configure-build-fixincludes:
0aed8855 3101 @: $(MAKE); $(unstage)
c52c6897 3102 @r=`${PWD_COMMAND}`; export r; \
ee025550 3103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3104 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3105 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3106 $(BUILD_EXPORTS) \
ee025550
PB
3107 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3108 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3109 case $(srcdir) in \
b00612cc
PB
3110 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3111 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3112 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3113 esac; \
1b6c0831 3114 module_srcdir=fixincludes; \
ee025550 3115 rm -f no-such-file || : ; \
1b6c0831
L
3116 CONFIG_SITE=no-such-file $(SHELL) \
3117 $$s/$$module_srcdir/configure \
3118 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3119 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3120 --target=${target_alias} \
ee025550
PB
3121 || exit 1
3122@endif build-fixincludes
3123
a7254363
PB
3124
3125
d545f33b
PB
3126
3127
ee025550
PB
3128.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3129maybe-all-build-fixincludes:
4f0ef2d8
CD
3130@if gcc-bootstrap
3131all-build-fixincludes: stage_current
3132@endif gcc-bootstrap
ee025550
PB
3133@if build-fixincludes
3134TARGET-build-fixincludes=all
3135maybe-all-build-fixincludes: all-build-fixincludes
3136all-build-fixincludes: configure-build-fixincludes
0aed8855 3137 @: $(MAKE); $(unstage)
ee025550
PB
3138 @r=`${PWD_COMMAND}`; export r; \
3139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3140 $(BUILD_EXPORTS) \
ee025550 3141 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3142 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3143 $(TARGET-build-fixincludes))
ee025550
PB
3144@endif build-fixincludes
3145
2a4cbe27 3146
a7254363 3147
d545f33b
PB
3148
3149
1b6c0831
L
3150.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3151maybe-configure-build-libcpp:
3152@if gcc-bootstrap
3153configure-build-libcpp: stage_current
3154@endif gcc-bootstrap
3155@if build-libcpp
3156maybe-configure-build-libcpp: configure-build-libcpp
3157configure-build-libcpp:
3158 @: $(MAKE); $(unstage)
3159 @r=`${PWD_COMMAND}`; export r; \
3160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3161 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3162 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3163 $(BUILD_EXPORTS) \
3164 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3165 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3166 case $(srcdir) in \
3167 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3168 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3169 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3170 esac; \
3171 module_srcdir=libcpp; \
3172 rm -f no-such-file || : ; \
3173 CONFIG_SITE=no-such-file $(SHELL) \
3174 $$s/$$module_srcdir/configure \
3175 --srcdir=$${topdir}/$$module_srcdir \
3176 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3177 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3178 || exit 1
3179@endif build-libcpp
3180
3181
3182
3183
3184
3185.PHONY: all-build-libcpp maybe-all-build-libcpp
3186maybe-all-build-libcpp:
3187@if gcc-bootstrap
3188all-build-libcpp: stage_current
3189@endif gcc-bootstrap
3190@if build-libcpp
3191TARGET-build-libcpp=all
3192maybe-all-build-libcpp: all-build-libcpp
3193all-build-libcpp: configure-build-libcpp
3194 @: $(MAKE); $(unstage)
3195 @r=`${PWD_COMMAND}`; export r; \
3196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3197 $(BUILD_EXPORTS) \
3198 (cd $(BUILD_SUBDIR)/libcpp && \
3199 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3200 $(TARGET-build-libcpp))
3201@endif build-libcpp
3202
3203
3204
3205
3206
4fa63067
NN
3207# --------------------------------------
3208# Modules which run on the host machine
3209# --------------------------------------
2a4cbe27 3210
a7254363 3211
a90ef4bf
JM
3212.PHONY: configure-bfd maybe-configure-bfd
3213maybe-configure-bfd:
4f0ef2d8 3214@if gcc-bootstrap
a90ef4bf 3215configure-bfd: stage_current
4f0ef2d8 3216@endif gcc-bootstrap
a90ef4bf
JM
3217@if bfd
3218maybe-configure-bfd: configure-bfd
3219configure-bfd:
c52c6897 3220 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3222 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3223 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3224 $(HOST_EXPORTS) \
a90ef4bf
JM
3225 echo Configuring in $(HOST_SUBDIR)/bfd; \
3226 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3227 case $(srcdir) in \
b00612cc 3228 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3229 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3230 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3231 esac; \
1b6c0831
L
3232 module_srcdir=bfd; \
3233 $(SHELL) \
3234 $$s/$$module_srcdir/configure \
3235 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3236 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3237 --target=${target_alias} \
2a4cbe27 3238 || exit 1
a90ef4bf 3239@endif bfd
a7254363 3240
d545f33b
PB
3241
3242
a90ef4bf
JM
3243.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3244maybe-configure-stage1-bfd:
3245@if bfd-bootstrap
3246maybe-configure-stage1-bfd: configure-stage1-bfd
3247configure-stage1-bfd:
3248 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3249 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3250 @r=`${PWD_COMMAND}`; export r; \
3251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3252 TFLAGS="$(STAGE1_TFLAGS)"; \
3253 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3254 $(HOST_EXPORTS) \
3255 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3256 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3257 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3258 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3259 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3260 cd $(HOST_SUBDIR)/bfd || exit 1; \
3261 case $(srcdir) in \
3262 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3263 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3264 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3265 esac; \
1b6c0831
L
3266 module_srcdir=bfd; \
3267 $(SHELL) $$s/$$module_srcdir/configure \
3268 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3269 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3270 --target=${target_alias} \
3271 \
a90ef4bf
JM
3272 $(STAGE1_CONFIGURE_FLAGS)
3273@endif bfd-bootstrap
2a4cbe27 3274
a90ef4bf
JM
3275.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3276maybe-configure-stage2-bfd:
3277@if bfd-bootstrap
3278maybe-configure-stage2-bfd: configure-stage2-bfd
3279configure-stage2-bfd:
3280 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3281 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3282 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3284 TFLAGS="$(STAGE2_TFLAGS)"; \
3285 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3286 $(HOST_EXPORTS) \
a90ef4bf
JM
3287 $(POSTSTAGE1_HOST_EXPORTS) \
3288 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3289 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3290 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3291 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3292 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3293 cd $(HOST_SUBDIR)/bfd || exit 1; \
3294 case $(srcdir) in \
3295 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3296 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3297 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3298 esac; \
1b6c0831
L
3299 module_srcdir=bfd; \
3300 $(SHELL) $$s/$$module_srcdir/configure \
3301 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3302 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3303 --target=${target_alias} \
22121df0 3304 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3305 $(STAGE2_CONFIGURE_FLAGS)
3306@endif bfd-bootstrap
2a4cbe27 3307
a90ef4bf
JM
3308.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3309maybe-configure-stage3-bfd:
3310@if bfd-bootstrap
3311maybe-configure-stage3-bfd: configure-stage3-bfd
3312configure-stage3-bfd:
3313 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3314 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3315 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3317 TFLAGS="$(STAGE3_TFLAGS)"; \
3318 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3319 $(HOST_EXPORTS) \
a90ef4bf
JM
3320 $(POSTSTAGE1_HOST_EXPORTS) \
3321 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3322 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3323 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3324 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3325 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3326 cd $(HOST_SUBDIR)/bfd || exit 1; \
3327 case $(srcdir) in \
3328 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3329 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3330 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3331 esac; \
1b6c0831
L
3332 module_srcdir=bfd; \
3333 $(SHELL) $$s/$$module_srcdir/configure \
3334 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3335 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3336 --target=${target_alias} \
22121df0 3337 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3338 $(STAGE3_CONFIGURE_FLAGS)
3339@endif bfd-bootstrap
9b980aa1 3340
a90ef4bf
JM
3341.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3342maybe-configure-stage4-bfd:
3343@if bfd-bootstrap
3344maybe-configure-stage4-bfd: configure-stage4-bfd
3345configure-stage4-bfd:
3346 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3347 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3348 @r=`${PWD_COMMAND}`; export r; \
3349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3350 TFLAGS="$(STAGE4_TFLAGS)"; \
3351 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3352 $(HOST_EXPORTS) \
a90ef4bf
JM
3353 $(POSTSTAGE1_HOST_EXPORTS) \
3354 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3355 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3356 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3357 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3358 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3359 cd $(HOST_SUBDIR)/bfd || exit 1; \
3360 case $(srcdir) in \
3361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3362 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3364 esac; \
1b6c0831
L
3365 module_srcdir=bfd; \
3366 $(SHELL) $$s/$$module_srcdir/configure \
3367 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3368 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3369 --target=${target_alias} \
22121df0 3370 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3371 $(STAGE4_CONFIGURE_FLAGS)
3372@endif bfd-bootstrap
4fa63067 3373
a90ef4bf
JM
3374.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3375maybe-configure-stageprofile-bfd:
3376@if bfd-bootstrap
3377maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3378configure-stageprofile-bfd:
3379 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3380 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3381 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3383 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3384 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3385 $(HOST_EXPORTS) \
a90ef4bf
JM
3386 $(POSTSTAGE1_HOST_EXPORTS) \
3387 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3388 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3389 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3390 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3391 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3392 cd $(HOST_SUBDIR)/bfd || exit 1; \
3393 case $(srcdir) in \
3394 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3395 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3396 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3397 esac; \
1b6c0831
L
3398 module_srcdir=bfd; \
3399 $(SHELL) $$s/$$module_srcdir/configure \
3400 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3401 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3402 --target=${target_alias} \
22121df0 3403 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3404 $(STAGEprofile_CONFIGURE_FLAGS)
3405@endif bfd-bootstrap
2a4cbe27 3406
a90ef4bf
JM
3407.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3408maybe-configure-stagefeedback-bfd:
3409@if bfd-bootstrap
3410maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3411configure-stagefeedback-bfd:
3412 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3413 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3414 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3416 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3417 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3418 $(HOST_EXPORTS) \
a90ef4bf
JM
3419 $(POSTSTAGE1_HOST_EXPORTS) \
3420 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3421 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3422 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3423 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3424 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3425 cd $(HOST_SUBDIR)/bfd || exit 1; \
3426 case $(srcdir) in \
3427 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3428 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3429 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3430 esac; \
1b6c0831
L
3431 module_srcdir=bfd; \
3432 $(SHELL) $$s/$$module_srcdir/configure \
3433 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3434 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3435 --target=${target_alias} \
22121df0 3436 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3437 $(STAGEfeedback_CONFIGURE_FLAGS)
3438@endif bfd-bootstrap
2a4cbe27 3439
56a8fe78 3440
56a8fe78 3441
56a8fe78 3442
6d389afc 3443
a90ef4bf
JM
3444.PHONY: all-bfd maybe-all-bfd
3445maybe-all-bfd:
3446@if gcc-bootstrap
3447all-bfd: stage_current
3448@endif gcc-bootstrap
3449@if bfd
3450TARGET-bfd=all
3451maybe-all-bfd: all-bfd
3452all-bfd: configure-bfd
3453 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3455 $(HOST_EXPORTS) \
3456 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3457 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3458 $(TARGET-bfd))
3459@endif bfd
6d389afc 3460
6d389afc 3461
2a4cbe27 3462
a90ef4bf
JM
3463.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3464.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3465maybe-all-stage1-bfd:
3466maybe-clean-stage1-bfd:
3467@if bfd-bootstrap
3468maybe-all-stage1-bfd: all-stage1-bfd
3469all-stage1: all-stage1-bfd
3470TARGET-stage1-bfd = $(TARGET-bfd)
3471all-stage1-bfd: configure-stage1-bfd
3472 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3473 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3475 TFLAGS="$(STAGE1_TFLAGS)"; \
3476 $(HOST_EXPORTS) \
3477 cd $(HOST_SUBDIR)/bfd && \
05a13254 3478 \
a90ef4bf
JM
3479 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3480 CFLAGS="$(STAGE1_CFLAGS)" \
3481 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3482 LIBCFLAGS="$(LIBCFLAGS)" \
3483 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3484 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3485 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3486 $(EXTRA_HOST_FLAGS) \
3487 $(STAGE1_FLAGS_TO_PASS) \
05a13254 3488 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 3489 $(TARGET-stage1-bfd)
2a4cbe27 3490
a90ef4bf
JM
3491maybe-clean-stage1-bfd: clean-stage1-bfd
3492clean-stage1: clean-stage1-bfd
3493clean-stage1-bfd:
3494 @if [ $(current_stage) = stage1 ]; then \
3495 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3496 else \
3497 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3498 $(MAKE) stage1-start; \
3499 fi; \
3500 cd $(HOST_SUBDIR)/bfd && \
3501 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3502 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3503@endif bfd-bootstrap
2a4cbe27 3504
2a4cbe27 3505
a90ef4bf
JM
3506.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3507.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3508maybe-all-stage2-bfd:
3509maybe-clean-stage2-bfd:
3510@if bfd-bootstrap
3511maybe-all-stage2-bfd: all-stage2-bfd
3512all-stage2: all-stage2-bfd
3513TARGET-stage2-bfd = $(TARGET-bfd)
3514all-stage2-bfd: configure-stage2-bfd
3515 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3516 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3518 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3519 $(HOST_EXPORTS) \
a90ef4bf
JM
3520 $(POSTSTAGE1_HOST_EXPORTS) \
3521 cd $(HOST_SUBDIR)/bfd && \
05a13254 3522 \
a90ef4bf
JM
3523 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3524 CFLAGS="$(STAGE2_CFLAGS)" \
3525 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3526 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3527 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3528 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3529 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3530 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3531 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 3532 $(TARGET-stage2-bfd)
2a4cbe27 3533
a90ef4bf
JM
3534maybe-clean-stage2-bfd: clean-stage2-bfd
3535clean-stage2: clean-stage2-bfd
3536clean-stage2-bfd:
3537 @if [ $(current_stage) = stage2 ]; then \
3538 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3539 else \
3540 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3541 $(MAKE) stage2-start; \
3542 fi; \
3543 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3544 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3545@endif bfd-bootstrap
2a4cbe27 3546
a3ca38d2 3547
a90ef4bf
JM
3548.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3549.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3550maybe-all-stage3-bfd:
3551maybe-clean-stage3-bfd:
3552@if bfd-bootstrap
3553maybe-all-stage3-bfd: all-stage3-bfd
3554all-stage3: all-stage3-bfd
3555TARGET-stage3-bfd = $(TARGET-bfd)
3556all-stage3-bfd: configure-stage3-bfd
3557 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3558 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3560 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3561 $(HOST_EXPORTS) \
a90ef4bf
JM
3562 $(POSTSTAGE1_HOST_EXPORTS) \
3563 cd $(HOST_SUBDIR)/bfd && \
05a13254 3564 \
a90ef4bf
JM
3565 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3566 CFLAGS="$(STAGE3_CFLAGS)" \
3567 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3568 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3569 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3570 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3571 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3572 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3573 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 3574 $(TARGET-stage3-bfd)
a3ca38d2 3575
a90ef4bf
JM
3576maybe-clean-stage3-bfd: clean-stage3-bfd
3577clean-stage3: clean-stage3-bfd
3578clean-stage3-bfd:
3579 @if [ $(current_stage) = stage3 ]; then \
3580 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3581 else \
3582 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3583 $(MAKE) stage3-start; \
3584 fi; \
3585 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3586 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3587@endif bfd-bootstrap
a3ca38d2 3588
108a6f8e 3589
a90ef4bf
JM
3590.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3591.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3592maybe-all-stage4-bfd:
3593maybe-clean-stage4-bfd:
3594@if bfd-bootstrap
3595maybe-all-stage4-bfd: all-stage4-bfd
3596all-stage4: all-stage4-bfd
3597TARGET-stage4-bfd = $(TARGET-bfd)
3598all-stage4-bfd: configure-stage4-bfd
3599 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3600 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3602 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3603 $(HOST_EXPORTS) \
a90ef4bf
JM
3604 $(POSTSTAGE1_HOST_EXPORTS) \
3605 cd $(HOST_SUBDIR)/bfd && \
05a13254 3606 \
a90ef4bf
JM
3607 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3608 CFLAGS="$(STAGE4_CFLAGS)" \
3609 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3610 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3611 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3612 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3613 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3614 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3615 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 3616 $(TARGET-stage4-bfd)
108a6f8e 3617
a90ef4bf
JM
3618maybe-clean-stage4-bfd: clean-stage4-bfd
3619clean-stage4: clean-stage4-bfd
3620clean-stage4-bfd:
3621 @if [ $(current_stage) = stage4 ]; then \
3622 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3623 else \
3624 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3625 $(MAKE) stage4-start; \
3626 fi; \
3627 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3628 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3629@endif bfd-bootstrap
108a6f8e 3630
2a4cbe27 3631
a90ef4bf
JM
3632.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3633.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3634maybe-all-stageprofile-bfd:
3635maybe-clean-stageprofile-bfd:
3636@if bfd-bootstrap
3637maybe-all-stageprofile-bfd: all-stageprofile-bfd
3638all-stageprofile: all-stageprofile-bfd
3639TARGET-stageprofile-bfd = $(TARGET-bfd)
3640all-stageprofile-bfd: configure-stageprofile-bfd
3641 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3642 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3644 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3645 $(HOST_EXPORTS) \
a90ef4bf
JM
3646 $(POSTSTAGE1_HOST_EXPORTS) \
3647 cd $(HOST_SUBDIR)/bfd && \
05a13254 3648 \
a90ef4bf
JM
3649 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3650 CFLAGS="$(STAGEprofile_CFLAGS)" \
3651 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3652 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3653 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3654 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3655 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3656 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3657 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 3658 $(TARGET-stageprofile-bfd)
2a4cbe27 3659
a90ef4bf
JM
3660maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3661clean-stageprofile: clean-stageprofile-bfd
3662clean-stageprofile-bfd:
3663 @if [ $(current_stage) = stageprofile ]; then \
3664 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3665 else \
3666 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3667 $(MAKE) stageprofile-start; \
3668 fi; \
3669 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3670 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3671@endif bfd-bootstrap
2a4cbe27 3672
a7254363 3673
a90ef4bf
JM
3674.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3675.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3676maybe-all-stagefeedback-bfd:
3677maybe-clean-stagefeedback-bfd:
3678@if bfd-bootstrap
3679maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3680all-stagefeedback: all-stagefeedback-bfd
3681TARGET-stagefeedback-bfd = $(TARGET-bfd)
3682all-stagefeedback-bfd: configure-stagefeedback-bfd
3683 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3684 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3686 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3687 $(HOST_EXPORTS) \
3688 $(POSTSTAGE1_HOST_EXPORTS) \
3689 cd $(HOST_SUBDIR)/bfd && \
05a13254 3690 \
a90ef4bf
JM
3691 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3692 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3693 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3694 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3695 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3696 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3697 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3698 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3699 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 3700 $(TARGET-stagefeedback-bfd)
d545f33b 3701
a90ef4bf
JM
3702maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3703clean-stagefeedback: clean-stagefeedback-bfd
3704clean-stagefeedback-bfd:
3705 @if [ $(current_stage) = stagefeedback ]; then \
3706 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3707 else \
3708 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3709 $(MAKE) stagefeedback-start; \
3710 fi; \
3711 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3712 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3713@endif bfd-bootstrap
d545f33b 3714
2a4cbe27 3715
a7254363 3716
d545f33b
PB
3717
3718
a90ef4bf
JM
3719.PHONY: check-bfd maybe-check-bfd
3720maybe-check-bfd:
3721@if bfd
3722maybe-check-bfd: check-bfd
2a4cbe27 3723
a90ef4bf 3724check-bfd:
0aed8855 3725 @: $(MAKE); $(unstage)
4fa63067 3726 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3728 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3729 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3730 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3731
a90ef4bf 3732@endif bfd
2a4cbe27 3733
a90ef4bf
JM
3734.PHONY: install-bfd maybe-install-bfd
3735maybe-install-bfd:
3736@if bfd
3737maybe-install-bfd: install-bfd
2a4cbe27 3738
a90ef4bf 3739install-bfd: installdirs
0aed8855 3740 @: $(MAKE); $(unstage)
4fa63067 3741 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3743 $(HOST_EXPORTS) \
a90ef4bf 3744 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3745 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3746
a90ef4bf 3747@endif bfd
2a4cbe27 3748
a90ef4bf
JM
3749.PHONY: install-strip-bfd maybe-install-strip-bfd
3750maybe-install-strip-bfd:
3751@if bfd
3752maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3753
a90ef4bf 3754install-strip-bfd: installdirs
9b980aa1
RW
3755 @: $(MAKE); $(unstage)
3756 @r=`${PWD_COMMAND}`; export r; \
3757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3758 $(HOST_EXPORTS) \
a90ef4bf 3759 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3760 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3761
a90ef4bf 3762@endif bfd
9b980aa1 3763
56a8fe78 3764# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3765
a90ef4bf
JM
3766.PHONY: maybe-info-bfd info-bfd
3767maybe-info-bfd:
3768@if bfd
3769maybe-info-bfd: info-bfd
4fa63067 3770
a90ef4bf
JM
3771info-bfd: \
3772 configure-bfd
3773 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3774 r=`${PWD_COMMAND}`; export r; \
3775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3776 $(HOST_EXPORTS) \
b813574b 3777 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3779 done; \
22121df0 3780 echo "Doing info in bfd"; \
a90ef4bf 3781 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3784 "RANLIB=$${RANLIB}" \
0c24b341 3785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3786 info) \
2a4cbe27
NN
3787 || exit 1
3788
a90ef4bf 3789@endif bfd
2a4cbe27 3790
a90ef4bf
JM
3791.PHONY: maybe-dvi-bfd dvi-bfd
3792maybe-dvi-bfd:
3793@if bfd
3794maybe-dvi-bfd: dvi-bfd
2a4cbe27 3795
a90ef4bf
JM
3796dvi-bfd: \
3797 configure-bfd
3798 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3799 r=`${PWD_COMMAND}`; export r; \
3800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3801 $(HOST_EXPORTS) \
b813574b 3802 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3804 done; \
22121df0 3805 echo "Doing dvi in bfd"; \
a90ef4bf 3806 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3809 "RANLIB=$${RANLIB}" \
0c24b341 3810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3811 dvi) \
2a4cbe27
NN
3812 || exit 1
3813
a90ef4bf 3814@endif bfd
2a4cbe27 3815
a90ef4bf
JM
3816.PHONY: maybe-pdf-bfd pdf-bfd
3817maybe-pdf-bfd:
3818@if bfd
3819maybe-pdf-bfd: pdf-bfd
56a8fe78 3820
a90ef4bf
JM
3821pdf-bfd: \
3822 configure-bfd
3823 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3824 r=`${PWD_COMMAND}`; export r; \
3825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3826 $(HOST_EXPORTS) \
3827 for flag in $(EXTRA_HOST_FLAGS) ; do \
3828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3829 done; \
22121df0 3830 echo "Doing pdf in bfd"; \
a90ef4bf 3831 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3834 "RANLIB=$${RANLIB}" \
0c24b341 3835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3836 pdf) \
3837 || exit 1
3838
a90ef4bf 3839@endif bfd
56a8fe78 3840
a90ef4bf
JM
3841.PHONY: maybe-html-bfd html-bfd
3842maybe-html-bfd:
3843@if bfd
3844maybe-html-bfd: html-bfd
6d389afc 3845
a90ef4bf
JM
3846html-bfd: \
3847 configure-bfd
3848 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3849 r=`${PWD_COMMAND}`; export r; \
3850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3851 $(HOST_EXPORTS) \
3852 for flag in $(EXTRA_HOST_FLAGS) ; do \
3853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3854 done; \
22121df0 3855 echo "Doing html in bfd"; \
a90ef4bf 3856 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3859 "RANLIB=$${RANLIB}" \
0c24b341 3860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3861 html) \
3862 || exit 1
3863
a90ef4bf 3864@endif bfd
6d389afc 3865
a90ef4bf
JM
3866.PHONY: maybe-TAGS-bfd TAGS-bfd
3867maybe-TAGS-bfd:
3868@if bfd
3869maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3870
a90ef4bf
JM
3871TAGS-bfd: \
3872 configure-bfd
3873 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3874 r=`${PWD_COMMAND}`; export r; \
3875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3876 $(HOST_EXPORTS) \
b813574b 3877 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3879 done; \
22121df0 3880 echo "Doing TAGS in bfd"; \
a90ef4bf 3881 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3884 "RANLIB=$${RANLIB}" \
0c24b341 3885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3886 TAGS) \
2a4cbe27
NN
3887 || exit 1
3888
a90ef4bf 3889@endif bfd
2a4cbe27 3890
a90ef4bf
JM
3891.PHONY: maybe-install-info-bfd install-info-bfd
3892maybe-install-info-bfd:
3893@if bfd
3894maybe-install-info-bfd: install-info-bfd
2a4cbe27 3895
a90ef4bf
JM
3896install-info-bfd: \
3897 configure-bfd \
3898 info-bfd
3899 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3900 r=`${PWD_COMMAND}`; export r; \
3901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3902 $(HOST_EXPORTS) \
b813574b 3903 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3905 done; \
22121df0 3906 echo "Doing install-info in bfd"; \
a90ef4bf 3907 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3910 "RANLIB=$${RANLIB}" \
0c24b341 3911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3912 install-info) \
2a4cbe27
NN
3913 || exit 1
3914
a90ef4bf 3915@endif bfd
2a4cbe27 3916
a90ef4bf
JM
3917.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3918maybe-install-pdf-bfd:
3919@if bfd
3920maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3921
a90ef4bf
JM
3922install-pdf-bfd: \
3923 configure-bfd \
3924 pdf-bfd
3925 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3926 r=`${PWD_COMMAND}`; export r; \
3927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3928 $(HOST_EXPORTS) \
3929 for flag in $(EXTRA_HOST_FLAGS) ; do \
3930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3931 done; \
22121df0 3932 echo "Doing install-pdf in bfd"; \
a90ef4bf 3933 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3936 "RANLIB=$${RANLIB}" \
0c24b341 3937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3938 install-pdf) \
3939 || exit 1
3940
a90ef4bf 3941@endif bfd
a3ca38d2 3942
a90ef4bf
JM
3943.PHONY: maybe-install-html-bfd install-html-bfd
3944maybe-install-html-bfd:
3945@if bfd
3946maybe-install-html-bfd: install-html-bfd
108a6f8e 3947
a90ef4bf
JM
3948install-html-bfd: \
3949 configure-bfd \
3950 html-bfd
3951 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3952 r=`${PWD_COMMAND}`; export r; \
3953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3954 $(HOST_EXPORTS) \
3955 for flag in $(EXTRA_HOST_FLAGS) ; do \
3956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3957 done; \
22121df0 3958 echo "Doing install-html in bfd"; \
a90ef4bf 3959 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3962 "RANLIB=$${RANLIB}" \
0c24b341 3963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3964 install-html) \
3965 || exit 1
3966
a90ef4bf 3967@endif bfd
108a6f8e 3968
a90ef4bf
JM
3969.PHONY: maybe-installcheck-bfd installcheck-bfd
3970maybe-installcheck-bfd:
3971@if bfd
3972maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3973
a90ef4bf
JM
3974installcheck-bfd: \
3975 configure-bfd
3976 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3977 r=`${PWD_COMMAND}`; export r; \
3978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3979 $(HOST_EXPORTS) \
b813574b 3980 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3982 done; \
22121df0 3983 echo "Doing installcheck in bfd"; \
a90ef4bf 3984 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3987 "RANLIB=$${RANLIB}" \
0c24b341 3988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3989 installcheck) \
2a4cbe27
NN
3990 || exit 1
3991
a90ef4bf 3992@endif bfd
2a4cbe27 3993
a90ef4bf
JM
3994.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3995maybe-mostlyclean-bfd:
3996@if bfd
3997maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3998
a90ef4bf
JM
3999mostlyclean-bfd:
4000 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4001 r=`${PWD_COMMAND}`; export r; \
4002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4003 $(HOST_EXPORTS) \
b813574b 4004 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4006 done; \
22121df0 4007 echo "Doing mostlyclean in bfd"; \
a90ef4bf 4008 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4011 "RANLIB=$${RANLIB}" \
0c24b341 4012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4013 mostlyclean) \
2a4cbe27
NN
4014 || exit 1
4015
a90ef4bf 4016@endif bfd
2a4cbe27 4017
a90ef4bf
JM
4018.PHONY: maybe-clean-bfd clean-bfd
4019maybe-clean-bfd:
4020@if bfd
4021maybe-clean-bfd: clean-bfd
2a4cbe27 4022
a90ef4bf
JM
4023clean-bfd:
4024 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4025 r=`${PWD_COMMAND}`; export r; \
4026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4027 $(HOST_EXPORTS) \
b813574b 4028 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4030 done; \
22121df0 4031 echo "Doing clean in bfd"; \
a90ef4bf 4032 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4035 "RANLIB=$${RANLIB}" \
0c24b341 4036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4037 clean) \
2a4cbe27
NN
4038 || exit 1
4039
a90ef4bf 4040@endif bfd
2a4cbe27 4041
a90ef4bf
JM
4042.PHONY: maybe-distclean-bfd distclean-bfd
4043maybe-distclean-bfd:
4044@if bfd
4045maybe-distclean-bfd: distclean-bfd
2a4cbe27 4046
a90ef4bf
JM
4047distclean-bfd:
4048 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4049 r=`${PWD_COMMAND}`; export r; \
4050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4051 $(HOST_EXPORTS) \
b813574b 4052 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4054 done; \
22121df0 4055 echo "Doing distclean in bfd"; \
a90ef4bf 4056 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4059 "RANLIB=$${RANLIB}" \
0c24b341 4060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4061 distclean) \
2a4cbe27
NN
4062 || exit 1
4063
a90ef4bf 4064@endif bfd
2a4cbe27 4065
a90ef4bf
JM
4066.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4067maybe-maintainer-clean-bfd:
4068@if bfd
4069maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4070
a90ef4bf
JM
4071maintainer-clean-bfd:
4072 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4073 r=`${PWD_COMMAND}`; export r; \
4074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4075 $(HOST_EXPORTS) \
b813574b 4076 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4078 done; \
22121df0 4079 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4080 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4083 "RANLIB=$${RANLIB}" \
0c24b341 4084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4085 maintainer-clean) \
2a4cbe27
NN
4086 || exit 1
4087
a90ef4bf 4088@endif bfd
2a4cbe27 4089
2a4cbe27 4090
a7254363 4091
a90ef4bf
JM
4092.PHONY: configure-opcodes maybe-configure-opcodes
4093maybe-configure-opcodes:
4f0ef2d8 4094@if gcc-bootstrap
a90ef4bf 4095configure-opcodes: stage_current
4f0ef2d8 4096@endif gcc-bootstrap
a90ef4bf
JM
4097@if opcodes
4098maybe-configure-opcodes: configure-opcodes
4099configure-opcodes:
c52c6897 4100 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4102 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4103 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4104 $(HOST_EXPORTS) \
a90ef4bf
JM
4105 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4106 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4107 case $(srcdir) in \
b00612cc 4108 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4109 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4110 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4111 esac; \
1b6c0831
L
4112 module_srcdir=opcodes; \
4113 $(SHELL) \
4114 $$s/$$module_srcdir/configure \
4115 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4116 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4117 --target=${target_alias} \
2a4cbe27 4118 || exit 1
a90ef4bf 4119@endif opcodes
a7254363 4120
d545f33b
PB
4121
4122
a90ef4bf
JM
4123.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4124maybe-configure-stage1-opcodes:
4125@if opcodes-bootstrap
4126maybe-configure-stage1-opcodes: configure-stage1-opcodes
4127configure-stage1-opcodes:
4128 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4129 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4130 @r=`${PWD_COMMAND}`; export r; \
4131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4132 TFLAGS="$(STAGE1_TFLAGS)"; \
4133 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4134 $(HOST_EXPORTS) \
4135 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4136 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4137 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4138 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4139 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4140 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4141 case $(srcdir) in \
4142 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4143 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4144 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4145 esac; \
1b6c0831
L
4146 module_srcdir=opcodes; \
4147 $(SHELL) $$s/$$module_srcdir/configure \
4148 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4149 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4150 --target=${target_alias} \
4151 \
a90ef4bf
JM
4152 $(STAGE1_CONFIGURE_FLAGS)
4153@endif opcodes-bootstrap
2a4cbe27 4154
a90ef4bf
JM
4155.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4156maybe-configure-stage2-opcodes:
4157@if opcodes-bootstrap
4158maybe-configure-stage2-opcodes: configure-stage2-opcodes
4159configure-stage2-opcodes:
4160 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4161 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4162 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4164 TFLAGS="$(STAGE2_TFLAGS)"; \
4165 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4166 $(HOST_EXPORTS) \
a90ef4bf
JM
4167 $(POSTSTAGE1_HOST_EXPORTS) \
4168 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4169 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4170 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4171 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4172 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4173 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4174 case $(srcdir) in \
4175 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4176 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4177 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4178 esac; \
1b6c0831
L
4179 module_srcdir=opcodes; \
4180 $(SHELL) $$s/$$module_srcdir/configure \
4181 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4182 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4183 --target=${target_alias} \
22121df0 4184 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4185 $(STAGE2_CONFIGURE_FLAGS)
4186@endif opcodes-bootstrap
2a4cbe27 4187
a90ef4bf
JM
4188.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4189maybe-configure-stage3-opcodes:
4190@if opcodes-bootstrap
4191maybe-configure-stage3-opcodes: configure-stage3-opcodes
4192configure-stage3-opcodes:
4193 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4194 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4195 @r=`${PWD_COMMAND}`; export r; \
4196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4197 TFLAGS="$(STAGE3_TFLAGS)"; \
4198 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4199 $(HOST_EXPORTS) \
a90ef4bf
JM
4200 $(POSTSTAGE1_HOST_EXPORTS) \
4201 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4202 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4203 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4204 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4205 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4206 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4207 case $(srcdir) in \
4208 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4209 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4210 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4211 esac; \
1b6c0831
L
4212 module_srcdir=opcodes; \
4213 $(SHELL) $$s/$$module_srcdir/configure \
4214 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4215 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4216 --target=${target_alias} \
22121df0 4217 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4218 $(STAGE3_CONFIGURE_FLAGS)
4219@endif opcodes-bootstrap
9b980aa1 4220
a90ef4bf
JM
4221.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4222maybe-configure-stage4-opcodes:
4223@if opcodes-bootstrap
4224maybe-configure-stage4-opcodes: configure-stage4-opcodes
4225configure-stage4-opcodes:
4226 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4227 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4228 @r=`${PWD_COMMAND}`; export r; \
4229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4230 TFLAGS="$(STAGE4_TFLAGS)"; \
4231 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4232 $(HOST_EXPORTS) \
a90ef4bf
JM
4233 $(POSTSTAGE1_HOST_EXPORTS) \
4234 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4235 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4236 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4237 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4238 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4239 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4240 case $(srcdir) in \
4241 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4242 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4243 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4244 esac; \
1b6c0831
L
4245 module_srcdir=opcodes; \
4246 $(SHELL) $$s/$$module_srcdir/configure \
4247 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4248 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4249 --target=${target_alias} \
22121df0 4250 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4251 $(STAGE4_CONFIGURE_FLAGS)
4252@endif opcodes-bootstrap
4fa63067 4253
a90ef4bf
JM
4254.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4255maybe-configure-stageprofile-opcodes:
4256@if opcodes-bootstrap
4257maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4258configure-stageprofile-opcodes:
4259 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4260 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4261 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4263 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4264 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4265 $(HOST_EXPORTS) \
a90ef4bf
JM
4266 $(POSTSTAGE1_HOST_EXPORTS) \
4267 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4268 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4269 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4270 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4271 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4272 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4273 case $(srcdir) in \
4274 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4275 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4276 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4277 esac; \
1b6c0831
L
4278 module_srcdir=opcodes; \
4279 $(SHELL) $$s/$$module_srcdir/configure \
4280 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4281 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4282 --target=${target_alias} \
22121df0 4283 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4284 $(STAGEprofile_CONFIGURE_FLAGS)
4285@endif opcodes-bootstrap
4286
4287.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4288maybe-configure-stagefeedback-opcodes:
4289@if opcodes-bootstrap
4290maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4291configure-stagefeedback-opcodes:
4292 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4293 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4294 @r=`${PWD_COMMAND}`; export r; \
4295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4296 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4297 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4298 $(HOST_EXPORTS) \
4299 $(POSTSTAGE1_HOST_EXPORTS) \
4300 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4301 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4302 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4303 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4304 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4305 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4306 case $(srcdir) in \
4307 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4308 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4309 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4310 esac; \
1b6c0831
L
4311 module_srcdir=opcodes; \
4312 $(SHELL) $$s/$$module_srcdir/configure \
4313 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4314 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4315 --target=${target_alias} \
22121df0 4316 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4317 $(STAGEfeedback_CONFIGURE_FLAGS)
4318@endif opcodes-bootstrap
4319
4320
4321
4322
4323
4324.PHONY: all-opcodes maybe-all-opcodes
4325maybe-all-opcodes:
4326@if gcc-bootstrap
4327all-opcodes: stage_current
4328@endif gcc-bootstrap
4329@if opcodes
4330TARGET-opcodes=all
4331maybe-all-opcodes: all-opcodes
4332all-opcodes: configure-opcodes
4333 @r=`${PWD_COMMAND}`; export r; \
4334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4335 $(HOST_EXPORTS) \
4336 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4337 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4338 $(TARGET-opcodes))
4339@endif opcodes
4340
4341
4342
4343.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4344.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4345maybe-all-stage1-opcodes:
4346maybe-clean-stage1-opcodes:
4347@if opcodes-bootstrap
4348maybe-all-stage1-opcodes: all-stage1-opcodes
4349all-stage1: all-stage1-opcodes
4350TARGET-stage1-opcodes = $(TARGET-opcodes)
4351all-stage1-opcodes: configure-stage1-opcodes
4352 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4353 @r=`${PWD_COMMAND}`; export r; \
4354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4355 TFLAGS="$(STAGE1_TFLAGS)"; \
4356 $(HOST_EXPORTS) \
4357 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4358 \
a90ef4bf
JM
4359 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4360 CFLAGS="$(STAGE1_CFLAGS)" \
4361 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4362 LIBCFLAGS="$(LIBCFLAGS)" \
4363 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4364 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4365 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4366 $(EXTRA_HOST_FLAGS) \
4367 $(STAGE1_FLAGS_TO_PASS) \
05a13254 4368 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
4369 $(TARGET-stage1-opcodes)
4370
4371maybe-clean-stage1-opcodes: clean-stage1-opcodes
4372clean-stage1: clean-stage1-opcodes
4373clean-stage1-opcodes:
4374 @if [ $(current_stage) = stage1 ]; then \
4375 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4376 else \
4377 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4378 $(MAKE) stage1-start; \
4379 fi; \
4380 cd $(HOST_SUBDIR)/opcodes && \
4381 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4382 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4383@endif opcodes-bootstrap
4384
4385
4386.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4387.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4388maybe-all-stage2-opcodes:
4389maybe-clean-stage2-opcodes:
4390@if opcodes-bootstrap
4391maybe-all-stage2-opcodes: all-stage2-opcodes
4392all-stage2: all-stage2-opcodes
4393TARGET-stage2-opcodes = $(TARGET-opcodes)
4394all-stage2-opcodes: configure-stage2-opcodes
4395 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4396 @r=`${PWD_COMMAND}`; export r; \
4397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4398 TFLAGS="$(STAGE2_TFLAGS)"; \
4399 $(HOST_EXPORTS) \
4400 $(POSTSTAGE1_HOST_EXPORTS) \
4401 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4402 \
a90ef4bf
JM
4403 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4404 CFLAGS="$(STAGE2_CFLAGS)" \
4405 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4406 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4407 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4408 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4409 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4410 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4411 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
4412 $(TARGET-stage2-opcodes)
4413
4414maybe-clean-stage2-opcodes: clean-stage2-opcodes
4415clean-stage2: clean-stage2-opcodes
4416clean-stage2-opcodes:
4417 @if [ $(current_stage) = stage2 ]; then \
4418 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4419 else \
4420 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4421 $(MAKE) stage2-start; \
4422 fi; \
4423 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4424 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4425@endif opcodes-bootstrap
4426
4427
4428.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4429.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4430maybe-all-stage3-opcodes:
4431maybe-clean-stage3-opcodes:
4432@if opcodes-bootstrap
4433maybe-all-stage3-opcodes: all-stage3-opcodes
4434all-stage3: all-stage3-opcodes
4435TARGET-stage3-opcodes = $(TARGET-opcodes)
4436all-stage3-opcodes: configure-stage3-opcodes
4437 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4438 @r=`${PWD_COMMAND}`; export r; \
4439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4440 TFLAGS="$(STAGE3_TFLAGS)"; \
4441 $(HOST_EXPORTS) \
4442 $(POSTSTAGE1_HOST_EXPORTS) \
4443 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4444 \
a90ef4bf
JM
4445 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4446 CFLAGS="$(STAGE3_CFLAGS)" \
4447 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4448 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4449 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4450 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4451 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4452 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4453 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
4454 $(TARGET-stage3-opcodes)
4455
4456maybe-clean-stage3-opcodes: clean-stage3-opcodes
4457clean-stage3: clean-stage3-opcodes
4458clean-stage3-opcodes:
4459 @if [ $(current_stage) = stage3 ]; then \
4460 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4461 else \
4462 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4463 $(MAKE) stage3-start; \
4464 fi; \
4465 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4466 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4467@endif opcodes-bootstrap
4468
4469
4470.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4471.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4472maybe-all-stage4-opcodes:
4473maybe-clean-stage4-opcodes:
4474@if opcodes-bootstrap
4475maybe-all-stage4-opcodes: all-stage4-opcodes
4476all-stage4: all-stage4-opcodes
4477TARGET-stage4-opcodes = $(TARGET-opcodes)
4478all-stage4-opcodes: configure-stage4-opcodes
4479 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4480 @r=`${PWD_COMMAND}`; export r; \
4481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4482 TFLAGS="$(STAGE4_TFLAGS)"; \
4483 $(HOST_EXPORTS) \
4484 $(POSTSTAGE1_HOST_EXPORTS) \
4485 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4486 \
a90ef4bf
JM
4487 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4488 CFLAGS="$(STAGE4_CFLAGS)" \
4489 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4490 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4491 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4492 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4493 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4494 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4495 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
4496 $(TARGET-stage4-opcodes)
4497
4498maybe-clean-stage4-opcodes: clean-stage4-opcodes
4499clean-stage4: clean-stage4-opcodes
4500clean-stage4-opcodes:
4501 @if [ $(current_stage) = stage4 ]; then \
4502 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4503 else \
4504 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4505 $(MAKE) stage4-start; \
4506 fi; \
4507 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4508 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4509@endif opcodes-bootstrap
4510
4511
4512.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4513.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4514maybe-all-stageprofile-opcodes:
4515maybe-clean-stageprofile-opcodes:
4516@if opcodes-bootstrap
4517maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4518all-stageprofile: all-stageprofile-opcodes
4519TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4520all-stageprofile-opcodes: configure-stageprofile-opcodes
4521 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4522 @r=`${PWD_COMMAND}`; export r; \
4523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4524 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4525 $(HOST_EXPORTS) \
4526 $(POSTSTAGE1_HOST_EXPORTS) \
4527 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4528 \
a90ef4bf
JM
4529 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4530 CFLAGS="$(STAGEprofile_CFLAGS)" \
4531 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4532 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4533 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4534 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4535 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4536 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4537 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
4538 $(TARGET-stageprofile-opcodes)
4539
4540maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4541clean-stageprofile: clean-stageprofile-opcodes
4542clean-stageprofile-opcodes:
4543 @if [ $(current_stage) = stageprofile ]; then \
4544 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4545 else \
4546 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4547 $(MAKE) stageprofile-start; \
4548 fi; \
4549 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4550 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4551@endif opcodes-bootstrap
4552
4553
4554.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4555.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4556maybe-all-stagefeedback-opcodes:
4557maybe-clean-stagefeedback-opcodes:
4558@if opcodes-bootstrap
4559maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4560all-stagefeedback: all-stagefeedback-opcodes
4561TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4562all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4563 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4564 @r=`${PWD_COMMAND}`; export r; \
4565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4566 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4567 $(HOST_EXPORTS) \
4568 $(POSTSTAGE1_HOST_EXPORTS) \
4569 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4570 \
a90ef4bf
JM
4571 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4572 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4573 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4574 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4575 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4576 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4577 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4578 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4579 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
4580 $(TARGET-stagefeedback-opcodes)
4581
4582maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4583clean-stagefeedback: clean-stagefeedback-opcodes
4584clean-stagefeedback-opcodes:
4585 @if [ $(current_stage) = stagefeedback ]; then \
4586 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4587 else \
4588 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4589 $(MAKE) stagefeedback-start; \
4590 fi; \
4591 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4592 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4593@endif opcodes-bootstrap
4594
4595
4596
4597
4598
4599.PHONY: check-opcodes maybe-check-opcodes
4600maybe-check-opcodes:
4601@if opcodes
4602maybe-check-opcodes: check-opcodes
4603
4604check-opcodes:
0aed8855 4605 @: $(MAKE); $(unstage)
a90ef4bf 4606 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4608 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4609 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4610 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4611
a90ef4bf 4612@endif opcodes
2a4cbe27 4613
a90ef4bf
JM
4614.PHONY: install-opcodes maybe-install-opcodes
4615maybe-install-opcodes:
4616@if opcodes
4617maybe-install-opcodes: install-opcodes
56a8fe78 4618
a90ef4bf 4619install-opcodes: installdirs
56a8fe78 4620 @: $(MAKE); $(unstage)
a90ef4bf 4621 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4623 $(HOST_EXPORTS) \
a90ef4bf
JM
4624 (cd $(HOST_SUBDIR)/opcodes && \
4625 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4626
a90ef4bf 4627@endif opcodes
56a8fe78 4628
a90ef4bf
JM
4629.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4630maybe-install-strip-opcodes:
4631@if opcodes
4632maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4633
a90ef4bf 4634install-strip-opcodes: installdirs
0aed8855 4635 @: $(MAKE); $(unstage)
a90ef4bf
JM
4636 @r=`${PWD_COMMAND}`; export r; \
4637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4638 $(HOST_EXPORTS) \
4639 (cd $(HOST_SUBDIR)/opcodes && \
4640 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4641
4642@endif opcodes
4643
4644# Other targets (info, dvi, pdf, etc.)
4645
4646.PHONY: maybe-info-opcodes info-opcodes
4647maybe-info-opcodes:
4648@if opcodes
4649maybe-info-opcodes: info-opcodes
4650
4651info-opcodes: \
4652 configure-opcodes
4653 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4654 r=`${PWD_COMMAND}`; export r; \
4655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4656 $(HOST_EXPORTS) \
4657 for flag in $(EXTRA_HOST_FLAGS) ; do \
4658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4659 done; \
22121df0 4660 echo "Doing info in opcodes"; \
a90ef4bf 4661 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4664 "RANLIB=$${RANLIB}" \
0c24b341 4665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4666 info) \
6d389afc
MS
4667 || exit 1
4668
a90ef4bf 4669@endif opcodes
6d389afc 4670
a90ef4bf
JM
4671.PHONY: maybe-dvi-opcodes dvi-opcodes
4672maybe-dvi-opcodes:
4673@if opcodes
4674maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4675
a90ef4bf
JM
4676dvi-opcodes: \
4677 configure-opcodes
4678 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4679 r=`${PWD_COMMAND}`; export r; \
4680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4681 $(HOST_EXPORTS) \
b813574b 4682 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4684 done; \
22121df0 4685 echo "Doing dvi in opcodes"; \
a90ef4bf 4686 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4689 "RANLIB=$${RANLIB}" \
0c24b341 4690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4691 dvi) \
2a4cbe27
NN
4692 || exit 1
4693
a90ef4bf 4694@endif opcodes
2a4cbe27 4695
a90ef4bf
JM
4696.PHONY: maybe-pdf-opcodes pdf-opcodes
4697maybe-pdf-opcodes:
4698@if opcodes
4699maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4700
a90ef4bf
JM
4701pdf-opcodes: \
4702 configure-opcodes
4703 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4704 r=`${PWD_COMMAND}`; export r; \
4705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4706 $(HOST_EXPORTS) \
b813574b 4707 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4709 done; \
22121df0 4710 echo "Doing pdf in opcodes"; \
a90ef4bf 4711 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4714 "RANLIB=$${RANLIB}" \
0c24b341 4715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4716 pdf) \
2a4cbe27
NN
4717 || exit 1
4718
a90ef4bf 4719@endif opcodes
2a4cbe27 4720
a90ef4bf
JM
4721.PHONY: maybe-html-opcodes html-opcodes
4722maybe-html-opcodes:
4723@if opcodes
4724maybe-html-opcodes: html-opcodes
a3ca38d2 4725
a90ef4bf
JM
4726html-opcodes: \
4727 configure-opcodes
4728 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4729 r=`${PWD_COMMAND}`; export r; \
4730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4731 $(HOST_EXPORTS) \
4732 for flag in $(EXTRA_HOST_FLAGS) ; do \
4733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4734 done; \
22121df0 4735 echo "Doing html in opcodes"; \
a90ef4bf 4736 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4739 "RANLIB=$${RANLIB}" \
0c24b341 4740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4741 html) \
a3ca38d2
DD
4742 || exit 1
4743
a90ef4bf 4744@endif opcodes
a3ca38d2 4745
a90ef4bf
JM
4746.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4747maybe-TAGS-opcodes:
4748@if opcodes
4749maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4750
a90ef4bf
JM
4751TAGS-opcodes: \
4752 configure-opcodes
4753 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4754 r=`${PWD_COMMAND}`; export r; \
4755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4756 $(HOST_EXPORTS) \
4757 for flag in $(EXTRA_HOST_FLAGS) ; do \
4758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4759 done; \
22121df0 4760 echo "Doing TAGS in opcodes"; \
a90ef4bf 4761 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4764 "RANLIB=$${RANLIB}" \
0c24b341 4765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4766 TAGS) \
108a6f8e
CD
4767 || exit 1
4768
a90ef4bf 4769@endif opcodes
108a6f8e 4770
a90ef4bf
JM
4771.PHONY: maybe-install-info-opcodes install-info-opcodes
4772maybe-install-info-opcodes:
4773@if opcodes
4774maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4775
a90ef4bf
JM
4776install-info-opcodes: \
4777 configure-opcodes \
4778 info-opcodes
4779 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4780 r=`${PWD_COMMAND}`; export r; \
4781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4782 $(HOST_EXPORTS) \
b813574b 4783 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4785 done; \
22121df0 4786 echo "Doing install-info in opcodes"; \
a90ef4bf 4787 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4790 "RANLIB=$${RANLIB}" \
0c24b341 4791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4792 install-info) \
2a4cbe27
NN
4793 || exit 1
4794
a90ef4bf 4795@endif opcodes
2a4cbe27 4796
a90ef4bf
JM
4797.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4798maybe-install-pdf-opcodes:
4799@if opcodes
4800maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4801
a90ef4bf
JM
4802install-pdf-opcodes: \
4803 configure-opcodes \
4804 pdf-opcodes
4805 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4806 r=`${PWD_COMMAND}`; export r; \
4807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4808 $(HOST_EXPORTS) \
b813574b 4809 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4811 done; \
22121df0 4812 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4813 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4816 "RANLIB=$${RANLIB}" \
0c24b341 4817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4818 install-pdf) \
2a4cbe27
NN
4819 || exit 1
4820
a90ef4bf 4821@endif opcodes
2a4cbe27 4822
a90ef4bf
JM
4823.PHONY: maybe-install-html-opcodes install-html-opcodes
4824maybe-install-html-opcodes:
4825@if opcodes
4826maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4827
a90ef4bf
JM
4828install-html-opcodes: \
4829 configure-opcodes \
4830 html-opcodes
4831 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4832 r=`${PWD_COMMAND}`; export r; \
4833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4834 $(HOST_EXPORTS) \
b813574b 4835 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4837 done; \
22121df0 4838 echo "Doing install-html in opcodes"; \
a90ef4bf 4839 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4842 "RANLIB=$${RANLIB}" \
0c24b341 4843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4844 install-html) \
2a4cbe27
NN
4845 || exit 1
4846
a90ef4bf 4847@endif opcodes
2a4cbe27 4848
a90ef4bf
JM
4849.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4850maybe-installcheck-opcodes:
4851@if opcodes
4852maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4853
a90ef4bf
JM
4854installcheck-opcodes: \
4855 configure-opcodes
4856 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4857 r=`${PWD_COMMAND}`; export r; \
4858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4859 $(HOST_EXPORTS) \
b813574b 4860 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4862 done; \
22121df0 4863 echo "Doing installcheck in opcodes"; \
a90ef4bf 4864 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4867 "RANLIB=$${RANLIB}" \
0c24b341 4868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4869 installcheck) \
2a4cbe27
NN
4870 || exit 1
4871
a90ef4bf 4872@endif opcodes
2a4cbe27 4873
a90ef4bf
JM
4874.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4875maybe-mostlyclean-opcodes:
4876@if opcodes
4877maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4878
a90ef4bf
JM
4879mostlyclean-opcodes:
4880 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4881 r=`${PWD_COMMAND}`; export r; \
4882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4883 $(HOST_EXPORTS) \
b813574b 4884 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4886 done; \
22121df0 4887 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4888 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4891 "RANLIB=$${RANLIB}" \
0c24b341 4892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4893 mostlyclean) \
2a4cbe27
NN
4894 || exit 1
4895
a90ef4bf 4896@endif opcodes
2a4cbe27 4897
a90ef4bf
JM
4898.PHONY: maybe-clean-opcodes clean-opcodes
4899maybe-clean-opcodes:
4900@if opcodes
4901maybe-clean-opcodes: clean-opcodes
2a4cbe27 4902
a90ef4bf
JM
4903clean-opcodes:
4904 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4905 r=`${PWD_COMMAND}`; export r; \
4906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4907 $(HOST_EXPORTS) \
b813574b 4908 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4910 done; \
22121df0 4911 echo "Doing clean in opcodes"; \
a90ef4bf 4912 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4915 "RANLIB=$${RANLIB}" \
0c24b341 4916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4917 clean) \
2a4cbe27
NN
4918 || exit 1
4919
a90ef4bf 4920@endif opcodes
2a4cbe27 4921
a90ef4bf
JM
4922.PHONY: maybe-distclean-opcodes distclean-opcodes
4923maybe-distclean-opcodes:
4924@if opcodes
4925maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4926
a90ef4bf
JM
4927distclean-opcodes:
4928 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4929 r=`${PWD_COMMAND}`; export r; \
4930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4931 $(HOST_EXPORTS) \
b813574b 4932 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4934 done; \
22121df0 4935 echo "Doing distclean in opcodes"; \
a90ef4bf 4936 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4939 "RANLIB=$${RANLIB}" \
0c24b341 4940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4941 distclean) \
2a4cbe27
NN
4942 || exit 1
4943
a90ef4bf 4944@endif opcodes
2a4cbe27 4945
a90ef4bf
JM
4946.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4947maybe-maintainer-clean-opcodes:
4948@if opcodes
4949maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4950
a90ef4bf
JM
4951maintainer-clean-opcodes:
4952 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4953 r=`${PWD_COMMAND}`; export r; \
4954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4955 $(HOST_EXPORTS) \
b813574b 4956 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4958 done; \
22121df0 4959 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 4960 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4963 "RANLIB=$${RANLIB}" \
0c24b341 4964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4965 maintainer-clean) \
2a4cbe27
NN
4966 || exit 1
4967
a90ef4bf 4968@endif opcodes
2a4cbe27 4969
2a4cbe27 4970
a7254363 4971
a90ef4bf
JM
4972.PHONY: configure-binutils maybe-configure-binutils
4973maybe-configure-binutils:
4f0ef2d8 4974@if gcc-bootstrap
a90ef4bf 4975configure-binutils: stage_current
4f0ef2d8 4976@endif gcc-bootstrap
a90ef4bf
JM
4977@if binutils
4978maybe-configure-binutils: configure-binutils
4979configure-binutils:
c52c6897
PB
4980 @r=`${PWD_COMMAND}`; export r; \
4981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4982 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 4983 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 4984 $(HOST_EXPORTS) \
a90ef4bf
JM
4985 echo Configuring in $(HOST_SUBDIR)/binutils; \
4986 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4987 case $(srcdir) in \
b00612cc 4988 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4989 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4990 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4991 esac; \
1b6c0831
L
4992 module_srcdir=binutils; \
4993 $(SHELL) \
4994 $$s/$$module_srcdir/configure \
4995 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4996 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4997 --target=${target_alias} \
2a4cbe27 4998 || exit 1
a90ef4bf 4999@endif binutils
2a4cbe27 5000
a7254363
PB
5001
5002
a90ef4bf
JM
5003.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
5004maybe-configure-stage1-binutils:
5005@if binutils-bootstrap
5006maybe-configure-stage1-binutils: configure-stage1-binutils
5007configure-stage1-binutils:
c52c6897 5008 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 5009 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5010 @r=`${PWD_COMMAND}`; export r; \
5011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5012 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 5013 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 5014 $(HOST_EXPORTS) \
8ee82aff 5015 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5016 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
5017 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
5018 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
5019 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5020 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5021 case $(srcdir) in \
5022 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5023 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5024 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5025 esac; \
1b6c0831
L
5026 module_srcdir=binutils; \
5027 $(SHELL) $$s/$$module_srcdir/configure \
5028 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5029 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5030 --target=${target_alias} \
5031 \
1b05fbbd 5032 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 5033@endif binutils-bootstrap
d545f33b 5034
a90ef4bf
JM
5035.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
5036maybe-configure-stage2-binutils:
5037@if binutils-bootstrap
5038maybe-configure-stage2-binutils: configure-stage2-binutils
5039configure-stage2-binutils:
c52c6897 5040 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 5041 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5042 @r=`${PWD_COMMAND}`; export r; \
5043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5044 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 5045 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5046 $(HOST_EXPORTS) \
1b05fbbd 5047 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5048 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5049 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
5050 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5051 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
5052 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5053 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5054 case $(srcdir) in \
5055 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5056 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5057 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5058 esac; \
1b6c0831
L
5059 module_srcdir=binutils; \
5060 $(SHELL) $$s/$$module_srcdir/configure \
5061 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5062 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5063 --target=${target_alias} \
22121df0 5064 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5065 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5066@endif binutils-bootstrap
8520c408 5067
a90ef4bf
JM
5068.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5069maybe-configure-stage3-binutils:
5070@if binutils-bootstrap
5071maybe-configure-stage3-binutils: configure-stage3-binutils
5072configure-stage3-binutils:
c52c6897 5073 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5074 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5075 @r=`${PWD_COMMAND}`; export r; \
5076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5077 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5078 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5079 $(HOST_EXPORTS) \
1b05fbbd 5080 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5081 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5082 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5083 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5084 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5085 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5086 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5087 case $(srcdir) in \
5088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5089 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5091 esac; \
1b6c0831
L
5092 module_srcdir=binutils; \
5093 $(SHELL) $$s/$$module_srcdir/configure \
5094 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5095 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5096 --target=${target_alias} \
22121df0 5097 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5098 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5099@endif binutils-bootstrap
8520c408 5100
a90ef4bf
JM
5101.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5102maybe-configure-stage4-binutils:
5103@if binutils-bootstrap
5104maybe-configure-stage4-binutils: configure-stage4-binutils
5105configure-stage4-binutils:
c52c6897 5106 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5107 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5108 @r=`${PWD_COMMAND}`; export r; \
5109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5110 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5111 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5112 $(HOST_EXPORTS) \
1b05fbbd 5113 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5114 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5115 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5116 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5117 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5118 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5119 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5120 case $(srcdir) in \
5121 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5122 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5123 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5124 esac; \
1b6c0831
L
5125 module_srcdir=binutils; \
5126 $(SHELL) $$s/$$module_srcdir/configure \
5127 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5128 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5129 --target=${target_alias} \
22121df0 5130 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5131 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5132@endif binutils-bootstrap
d545f33b 5133
a90ef4bf
JM
5134.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5135maybe-configure-stageprofile-binutils:
5136@if binutils-bootstrap
5137maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5138configure-stageprofile-binutils:
c52c6897 5139 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5140 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5141 @r=`${PWD_COMMAND}`; export r; \
5142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5143 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5144 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5145 $(HOST_EXPORTS) \
1b05fbbd
AO
5146 $(POSTSTAGE1_HOST_EXPORTS) \
5147 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5148 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5149 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5150 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5151 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5152 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5153 case $(srcdir) in \
5154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5155 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5157 esac; \
1b6c0831
L
5158 module_srcdir=binutils; \
5159 $(SHELL) $$s/$$module_srcdir/configure \
5160 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5161 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5162 --target=${target_alias} \
22121df0 5163 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5164 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5165@endif binutils-bootstrap
d545f33b 5166
a90ef4bf
JM
5167.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5168maybe-configure-stagefeedback-binutils:
5169@if binutils-bootstrap
5170maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5171configure-stagefeedback-binutils:
c52c6897 5172 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5173 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5174 @r=`${PWD_COMMAND}`; export r; \
5175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5176 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5177 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5178 $(HOST_EXPORTS) \
1b05fbbd
AO
5179 $(POSTSTAGE1_HOST_EXPORTS) \
5180 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5181 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5182 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5183 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5184 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5185 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5186 case $(srcdir) in \
5187 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5188 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5189 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5190 esac; \
1b6c0831
L
5191 module_srcdir=binutils; \
5192 $(SHELL) $$s/$$module_srcdir/configure \
5193 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5194 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5195 --target=${target_alias} \
22121df0 5196 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5197 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5198@endif binutils-bootstrap
d545f33b
PB
5199
5200
5201
5202
5203
a90ef4bf
JM
5204.PHONY: all-binutils maybe-all-binutils
5205maybe-all-binutils:
4f0ef2d8 5206@if gcc-bootstrap
a90ef4bf 5207all-binutils: stage_current
4f0ef2d8 5208@endif gcc-bootstrap
a90ef4bf
JM
5209@if binutils
5210TARGET-binutils=all
5211maybe-all-binutils: all-binutils
5212all-binutils: configure-binutils
c52c6897 5213 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5215 $(HOST_EXPORTS) \
a90ef4bf 5216 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5217 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5218 $(TARGET-binutils))
5219@endif binutils
2a4cbe27 5220
a7254363 5221
d545f33b 5222
a90ef4bf
JM
5223.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5224.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5225maybe-all-stage1-binutils:
5226maybe-clean-stage1-binutils:
5227@if binutils-bootstrap
5228maybe-all-stage1-binutils: all-stage1-binutils
5229all-stage1: all-stage1-binutils
5230TARGET-stage1-binutils = $(TARGET-binutils)
5231all-stage1-binutils: configure-stage1-binutils
c52c6897 5232 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5233 @r=`${PWD_COMMAND}`; export r; \
5234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5235 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5236 $(HOST_EXPORTS) \
a90ef4bf 5237 cd $(HOST_SUBDIR)/binutils && \
05a13254 5238 \
7f6ef0c0 5239 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5240 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5241 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5242 LIBCFLAGS="$(LIBCFLAGS)" \
5243 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5244 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5245 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5246 $(EXTRA_HOST_FLAGS) \
5247 $(STAGE1_FLAGS_TO_PASS) \
05a13254 5248 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5249 $(TARGET-stage1-binutils)
d545f33b 5250
a90ef4bf
JM
5251maybe-clean-stage1-binutils: clean-stage1-binutils
5252clean-stage1: clean-stage1-binutils
5253clean-stage1-binutils:
9dbaa842 5254 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5255 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5256 else \
a90ef4bf 5257 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5258 $(MAKE) stage1-start; \
5259 fi; \
a90ef4bf 5260 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5261 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5262 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5263@endif binutils-bootstrap
d545f33b
PB
5264
5265
a90ef4bf
JM
5266.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5267.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5268maybe-all-stage2-binutils:
5269maybe-clean-stage2-binutils:
5270@if binutils-bootstrap
5271maybe-all-stage2-binutils: all-stage2-binutils
5272all-stage2: all-stage2-binutils
5273TARGET-stage2-binutils = $(TARGET-binutils)
5274all-stage2-binutils: configure-stage2-binutils
c52c6897 5275 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5276 @r=`${PWD_COMMAND}`; export r; \
5277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5278 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5279 $(HOST_EXPORTS) \
1f53ca9a 5280 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5281 cd $(HOST_SUBDIR)/binutils && \
05a13254 5282 \
7f6ef0c0 5283 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5284 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5285 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5286 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5287 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5288 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5289 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5290 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5291 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5292 $(TARGET-stage2-binutils)
d545f33b 5293
a90ef4bf
JM
5294maybe-clean-stage2-binutils: clean-stage2-binutils
5295clean-stage2: clean-stage2-binutils
5296clean-stage2-binutils:
9dbaa842 5297 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5298 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5299 else \
a90ef4bf 5300 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5301 $(MAKE) stage2-start; \
5302 fi; \
a90ef4bf 5303 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5304 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5305@endif binutils-bootstrap
d545f33b
PB
5306
5307
a90ef4bf
JM
5308.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5309.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5310maybe-all-stage3-binutils:
5311maybe-clean-stage3-binutils:
5312@if binutils-bootstrap
5313maybe-all-stage3-binutils: all-stage3-binutils
5314all-stage3: all-stage3-binutils
5315TARGET-stage3-binutils = $(TARGET-binutils)
5316all-stage3-binutils: configure-stage3-binutils
c52c6897 5317 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5318 @r=`${PWD_COMMAND}`; export r; \
5319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5320 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5321 $(HOST_EXPORTS) \
1f53ca9a 5322 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5323 cd $(HOST_SUBDIR)/binutils && \
05a13254 5324 \
7f6ef0c0 5325 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5326 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5327 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5328 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5329 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5330 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5331 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5332 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5333 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5334 $(TARGET-stage3-binutils)
d545f33b 5335
a90ef4bf
JM
5336maybe-clean-stage3-binutils: clean-stage3-binutils
5337clean-stage3: clean-stage3-binutils
5338clean-stage3-binutils:
9dbaa842 5339 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5340 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5341 else \
a90ef4bf 5342 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5343 $(MAKE) stage3-start; \
5344 fi; \
a90ef4bf 5345 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5346 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5347@endif binutils-bootstrap
d545f33b
PB
5348
5349
a90ef4bf
JM
5350.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5351.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5352maybe-all-stage4-binutils:
5353maybe-clean-stage4-binutils:
5354@if binutils-bootstrap
5355maybe-all-stage4-binutils: all-stage4-binutils
5356all-stage4: all-stage4-binutils
5357TARGET-stage4-binutils = $(TARGET-binutils)
5358all-stage4-binutils: configure-stage4-binutils
c52c6897 5359 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5360 @r=`${PWD_COMMAND}`; export r; \
5361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5362 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5363 $(HOST_EXPORTS) \
1f53ca9a 5364 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5365 cd $(HOST_SUBDIR)/binutils && \
05a13254 5366 \
7f6ef0c0 5367 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5368 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5369 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5370 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5371 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5372 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5373 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5374 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5375 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5376 $(TARGET-stage4-binutils)
d545f33b 5377
a90ef4bf
JM
5378maybe-clean-stage4-binutils: clean-stage4-binutils
5379clean-stage4: clean-stage4-binutils
5380clean-stage4-binutils:
9dbaa842 5381 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5382 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5383 else \
a90ef4bf 5384 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5385 $(MAKE) stage4-start; \
5386 fi; \
a90ef4bf 5387 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5388 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5389@endif binutils-bootstrap
d545f33b
PB
5390
5391
a90ef4bf
JM
5392.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5393.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5394maybe-all-stageprofile-binutils:
5395maybe-clean-stageprofile-binutils:
5396@if binutils-bootstrap
5397maybe-all-stageprofile-binutils: all-stageprofile-binutils
5398all-stageprofile: all-stageprofile-binutils
5399TARGET-stageprofile-binutils = $(TARGET-binutils)
5400all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5401 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5402 @r=`${PWD_COMMAND}`; export r; \
5403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5404 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5405 $(HOST_EXPORTS) \
1f53ca9a 5406 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5407 cd $(HOST_SUBDIR)/binutils && \
05a13254 5408 \
7f6ef0c0 5409 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5410 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5411 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5412 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5413 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5414 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5415 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5416 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5417 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5418 $(TARGET-stageprofile-binutils)
d545f33b 5419
a90ef4bf
JM
5420maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5421clean-stageprofile: clean-stageprofile-binutils
5422clean-stageprofile-binutils:
9dbaa842 5423 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5424 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5425 else \
a90ef4bf 5426 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5427 $(MAKE) stageprofile-start; \
5428 fi; \
a90ef4bf 5429 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5430 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5431@endif binutils-bootstrap
d545f33b
PB
5432
5433
a90ef4bf
JM
5434.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5435.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5436maybe-all-stagefeedback-binutils:
5437maybe-clean-stagefeedback-binutils:
5438@if binutils-bootstrap
5439maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5440all-stagefeedback: all-stagefeedback-binutils
5441TARGET-stagefeedback-binutils = $(TARGET-binutils)
5442all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5443 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5444 @r=`${PWD_COMMAND}`; export r; \
5445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5446 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5447 $(HOST_EXPORTS) \
1f53ca9a 5448 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5449 cd $(HOST_SUBDIR)/binutils && \
05a13254 5450 \
7f6ef0c0 5451 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5452 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5453 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5454 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5455 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5456 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5457 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5458 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5459 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5460 $(TARGET-stagefeedback-binutils)
d545f33b 5461
a90ef4bf
JM
5462maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5463clean-stagefeedback: clean-stagefeedback-binutils
5464clean-stagefeedback-binutils:
9dbaa842 5465 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5466 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5467 else \
a90ef4bf 5468 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5469 $(MAKE) stagefeedback-start; \
5470 fi; \
a90ef4bf 5471 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5472 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5473@endif binutils-bootstrap
d545f33b
PB
5474
5475
5476
5477
5478
a90ef4bf
JM
5479.PHONY: check-binutils maybe-check-binutils
5480maybe-check-binutils:
5481@if binutils
5482maybe-check-binutils: check-binutils
2a4cbe27 5483
a90ef4bf 5484check-binutils:
0aed8855 5485 @: $(MAKE); $(unstage)
4fa63067 5486 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5488 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5489 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5490 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5491
a90ef4bf 5492@endif binutils
2a4cbe27 5493
a90ef4bf
JM
5494.PHONY: install-binutils maybe-install-binutils
5495maybe-install-binutils:
5496@if binutils
5497maybe-install-binutils: install-binutils
2a4cbe27 5498
a90ef4bf 5499install-binutils: installdirs
0aed8855 5500 @: $(MAKE); $(unstage)
4fa63067 5501 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5503 $(HOST_EXPORTS) \
a90ef4bf 5504 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5505 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5506
a90ef4bf 5507@endif binutils
2a4cbe27 5508
a90ef4bf
JM
5509.PHONY: install-strip-binutils maybe-install-strip-binutils
5510maybe-install-strip-binutils:
5511@if binutils
5512maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5513
a90ef4bf 5514install-strip-binutils: installdirs
9b980aa1
RW
5515 @: $(MAKE); $(unstage)
5516 @r=`${PWD_COMMAND}`; export r; \
5517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5518 $(HOST_EXPORTS) \
a90ef4bf 5519 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5520 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5521
a90ef4bf 5522@endif binutils
9b980aa1 5523
56a8fe78 5524# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5525
a90ef4bf
JM
5526.PHONY: maybe-info-binutils info-binutils
5527maybe-info-binutils:
5528@if binutils
5529maybe-info-binutils: info-binutils
4fa63067 5530
a90ef4bf
JM
5531info-binutils: \
5532 configure-binutils
5533 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5534 r=`${PWD_COMMAND}`; export r; \
5535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5536 $(HOST_EXPORTS) \
b813574b 5537 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5539 done; \
22121df0 5540 echo "Doing info in binutils"; \
a90ef4bf 5541 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5544 "RANLIB=$${RANLIB}" \
0c24b341 5545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5546 info) \
2a4cbe27
NN
5547 || exit 1
5548
a90ef4bf 5549@endif binutils
2a4cbe27 5550
a90ef4bf
JM
5551.PHONY: maybe-dvi-binutils dvi-binutils
5552maybe-dvi-binutils:
5553@if binutils
5554maybe-dvi-binutils: dvi-binutils
2a4cbe27 5555
a90ef4bf
JM
5556dvi-binutils: \
5557 configure-binutils
5558 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5559 r=`${PWD_COMMAND}`; export r; \
5560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5561 $(HOST_EXPORTS) \
b813574b 5562 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5564 done; \
22121df0 5565 echo "Doing dvi in binutils"; \
a90ef4bf 5566 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5569 "RANLIB=$${RANLIB}" \
0c24b341 5570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5571 dvi) \
2a4cbe27
NN
5572 || exit 1
5573
a90ef4bf 5574@endif binutils
2a4cbe27 5575
a90ef4bf
JM
5576.PHONY: maybe-pdf-binutils pdf-binutils
5577maybe-pdf-binutils:
5578@if binutils
5579maybe-pdf-binutils: pdf-binutils
56a8fe78 5580
a90ef4bf
JM
5581pdf-binutils: \
5582 configure-binutils
5583 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5584 r=`${PWD_COMMAND}`; export r; \
5585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5586 $(HOST_EXPORTS) \
5587 for flag in $(EXTRA_HOST_FLAGS) ; do \
5588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5589 done; \
22121df0 5590 echo "Doing pdf in binutils"; \
a90ef4bf 5591 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5594 "RANLIB=$${RANLIB}" \
0c24b341 5595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5596 pdf) \
5597 || exit 1
5598
a90ef4bf 5599@endif binutils
56a8fe78 5600
a90ef4bf
JM
5601.PHONY: maybe-html-binutils html-binutils
5602maybe-html-binutils:
5603@if binutils
5604maybe-html-binutils: html-binutils
6d389afc 5605
a90ef4bf
JM
5606html-binutils: \
5607 configure-binutils
5608 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5609 r=`${PWD_COMMAND}`; export r; \
5610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5611 $(HOST_EXPORTS) \
5612 for flag in $(EXTRA_HOST_FLAGS) ; do \
5613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5614 done; \
22121df0 5615 echo "Doing html in binutils"; \
a90ef4bf 5616 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5619 "RANLIB=$${RANLIB}" \
0c24b341 5620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5621 html) \
5622 || exit 1
5623
a90ef4bf 5624@endif binutils
6d389afc 5625
a90ef4bf
JM
5626.PHONY: maybe-TAGS-binutils TAGS-binutils
5627maybe-TAGS-binutils:
5628@if binutils
5629maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5630
a90ef4bf
JM
5631TAGS-binutils: \
5632 configure-binutils
5633 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5634 r=`${PWD_COMMAND}`; export r; \
5635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5636 $(HOST_EXPORTS) \
b813574b 5637 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5639 done; \
22121df0 5640 echo "Doing TAGS in binutils"; \
a90ef4bf 5641 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5644 "RANLIB=$${RANLIB}" \
0c24b341 5645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5646 TAGS) \
2a4cbe27
NN
5647 || exit 1
5648
a90ef4bf 5649@endif binutils
2a4cbe27 5650
a90ef4bf
JM
5651.PHONY: maybe-install-info-binutils install-info-binutils
5652maybe-install-info-binutils:
5653@if binutils
5654maybe-install-info-binutils: install-info-binutils
2a4cbe27 5655
a90ef4bf
JM
5656install-info-binutils: \
5657 configure-binutils \
5658 info-binutils
5659 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5660 r=`${PWD_COMMAND}`; export r; \
5661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5662 $(HOST_EXPORTS) \
b813574b 5663 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5665 done; \
22121df0 5666 echo "Doing install-info in binutils"; \
a90ef4bf 5667 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5670 "RANLIB=$${RANLIB}" \
0c24b341 5671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5672 install-info) \
2a4cbe27
NN
5673 || exit 1
5674
a90ef4bf 5675@endif binutils
2a4cbe27 5676
a90ef4bf
JM
5677.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5678maybe-install-pdf-binutils:
5679@if binutils
5680maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5681
a90ef4bf
JM
5682install-pdf-binutils: \
5683 configure-binutils \
5684 pdf-binutils
5685 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5686 r=`${PWD_COMMAND}`; export r; \
5687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5688 $(HOST_EXPORTS) \
5689 for flag in $(EXTRA_HOST_FLAGS) ; do \
5690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5691 done; \
22121df0 5692 echo "Doing install-pdf in binutils"; \
a90ef4bf 5693 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5696 "RANLIB=$${RANLIB}" \
0c24b341 5697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5698 install-pdf) \
5699 || exit 1
5700
a90ef4bf 5701@endif binutils
a3ca38d2 5702
a90ef4bf
JM
5703.PHONY: maybe-install-html-binutils install-html-binutils
5704maybe-install-html-binutils:
5705@if binutils
5706maybe-install-html-binutils: install-html-binutils
108a6f8e 5707
a90ef4bf
JM
5708install-html-binutils: \
5709 configure-binutils \
5710 html-binutils
5711 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5712 r=`${PWD_COMMAND}`; export r; \
5713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5714 $(HOST_EXPORTS) \
5715 for flag in $(EXTRA_HOST_FLAGS) ; do \
5716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5717 done; \
22121df0 5718 echo "Doing install-html in binutils"; \
a90ef4bf 5719 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5722 "RANLIB=$${RANLIB}" \
0c24b341 5723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5724 install-html) \
5725 || exit 1
5726
a90ef4bf 5727@endif binutils
108a6f8e 5728
a90ef4bf
JM
5729.PHONY: maybe-installcheck-binutils installcheck-binutils
5730maybe-installcheck-binutils:
5731@if binutils
5732maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5733
a90ef4bf
JM
5734installcheck-binutils: \
5735 configure-binutils
5736 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5737 r=`${PWD_COMMAND}`; export r; \
5738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5739 $(HOST_EXPORTS) \
b813574b 5740 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5742 done; \
22121df0 5743 echo "Doing installcheck in binutils"; \
a90ef4bf 5744 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5747 "RANLIB=$${RANLIB}" \
0c24b341 5748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5749 installcheck) \
2a4cbe27
NN
5750 || exit 1
5751
a90ef4bf 5752@endif binutils
2a4cbe27 5753
a90ef4bf
JM
5754.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5755maybe-mostlyclean-binutils:
5756@if binutils
5757maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5758
a90ef4bf
JM
5759mostlyclean-binutils:
5760 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5761 r=`${PWD_COMMAND}`; export r; \
5762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5763 $(HOST_EXPORTS) \
b813574b 5764 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5766 done; \
22121df0 5767 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5768 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5771 "RANLIB=$${RANLIB}" \
0c24b341 5772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5773 mostlyclean) \
2a4cbe27
NN
5774 || exit 1
5775
a90ef4bf 5776@endif binutils
2a4cbe27 5777
a90ef4bf
JM
5778.PHONY: maybe-clean-binutils clean-binutils
5779maybe-clean-binutils:
5780@if binutils
5781maybe-clean-binutils: clean-binutils
2a4cbe27 5782
a90ef4bf
JM
5783clean-binutils:
5784 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5785 r=`${PWD_COMMAND}`; export r; \
5786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5787 $(HOST_EXPORTS) \
b813574b 5788 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5790 done; \
22121df0 5791 echo "Doing clean in binutils"; \
a90ef4bf 5792 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5795 "RANLIB=$${RANLIB}" \
0c24b341 5796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5797 clean) \
2a4cbe27
NN
5798 || exit 1
5799
a90ef4bf 5800@endif binutils
2a4cbe27 5801
a90ef4bf
JM
5802.PHONY: maybe-distclean-binutils distclean-binutils
5803maybe-distclean-binutils:
5804@if binutils
5805maybe-distclean-binutils: distclean-binutils
2a4cbe27 5806
a90ef4bf
JM
5807distclean-binutils:
5808 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5809 r=`${PWD_COMMAND}`; export r; \
5810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5811 $(HOST_EXPORTS) \
b813574b 5812 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5814 done; \
22121df0 5815 echo "Doing distclean in binutils"; \
a90ef4bf 5816 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5819 "RANLIB=$${RANLIB}" \
0c24b341 5820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5821 distclean) \
2a4cbe27
NN
5822 || exit 1
5823
a90ef4bf 5824@endif binutils
2a4cbe27 5825
a90ef4bf
JM
5826.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5827maybe-maintainer-clean-binutils:
5828@if binutils
5829maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5830
a90ef4bf
JM
5831maintainer-clean-binutils:
5832 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5833 r=`${PWD_COMMAND}`; export r; \
5834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5835 $(HOST_EXPORTS) \
b813574b 5836 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5838 done; \
22121df0 5839 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5840 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5843 "RANLIB=$${RANLIB}" \
0c24b341 5844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5845 maintainer-clean) \
a2592b1b
DD
5846 || exit 1
5847
a90ef4bf 5848@endif binutils
a2592b1b 5849
2a4cbe27 5850
a7254363 5851
a90ef4bf
JM
5852.PHONY: configure-bison maybe-configure-bison
5853maybe-configure-bison:
4f0ef2d8 5854@if gcc-bootstrap
a90ef4bf 5855configure-bison: stage_current
4f0ef2d8 5856@endif gcc-bootstrap
a90ef4bf
JM
5857@if bison
5858maybe-configure-bison: configure-bison
5859configure-bison:
5860 @: $(MAKE); $(unstage)
c52c6897
PB
5861 @r=`${PWD_COMMAND}`; export r; \
5862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5863 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5864 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5865 $(HOST_EXPORTS) \
a90ef4bf
JM
5866 echo Configuring in $(HOST_SUBDIR)/bison; \
5867 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5868 case $(srcdir) in \
b00612cc 5869 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5870 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5871 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5872 esac; \
1b6c0831
L
5873 module_srcdir=bison; \
5874 $(SHELL) \
5875 $$s/$$module_srcdir/configure \
5876 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5877 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5878 --target=${target_alias} \
4fa63067 5879 || exit 1
a90ef4bf 5880@endif bison
2a4cbe27 5881
a7254363
PB
5882
5883
d545f33b 5884
8520c408 5885
a90ef4bf
JM
5886.PHONY: all-bison maybe-all-bison
5887maybe-all-bison:
5888@if gcc-bootstrap
5889all-bison: stage_current
5890@endif gcc-bootstrap
5891@if bison
5892TARGET-bison=all
5893maybe-all-bison: all-bison
5894all-bison: configure-bison
5895 @: $(MAKE); $(unstage)
c52c6897
PB
5896 @r=`${PWD_COMMAND}`; export r; \
5897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5898 $(HOST_EXPORTS) \
5899 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5900 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5901 $(TARGET-bison))
5902@endif bison
8520c408 5903
d545f33b 5904
d545f33b 5905
d545f33b 5906
a90ef4bf
JM
5907.PHONY: check-bison maybe-check-bison
5908maybe-check-bison:
5909@if bison
5910maybe-check-bison: check-bison
d545f33b 5911
a90ef4bf
JM
5912# This module is only tested in a native toolchain.
5913check-bison:
5914 @: $(MAKE); $(unstage)
22121df0 5915 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5916 r=`${PWD_COMMAND}`; export r; \
5917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5918 $(HOST_EXPORTS) \
a90ef4bf 5919 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5920 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5921 fi
d545f33b 5922
a90ef4bf 5923@endif bison
d545f33b 5924
a90ef4bf
JM
5925.PHONY: install-bison maybe-install-bison
5926maybe-install-bison:
5927@if bison
5928maybe-install-bison: install-bison
d545f33b 5929
a90ef4bf
JM
5930install-bison: installdirs
5931 @: $(MAKE); $(unstage)
c52c6897 5932 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5934 $(HOST_EXPORTS) \
5935 (cd $(HOST_SUBDIR)/bison && \
5936 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5937
a90ef4bf 5938@endif bison
a7254363 5939
a90ef4bf
JM
5940.PHONY: install-strip-bison maybe-install-strip-bison
5941maybe-install-strip-bison:
5942@if bison
5943maybe-install-strip-bison: install-strip-bison
d545f33b 5944
a90ef4bf
JM
5945install-strip-bison: installdirs
5946 @: $(MAKE); $(unstage)
d545f33b
PB
5947 @r=`${PWD_COMMAND}`; export r; \
5948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5949 $(HOST_EXPORTS) \
5950 (cd $(HOST_SUBDIR)/bison && \
5951 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5952
a90ef4bf 5953@endif bison
d545f33b 5954
a90ef4bf 5955# Other targets (info, dvi, pdf, etc.)
d545f33b 5956
a90ef4bf
JM
5957.PHONY: maybe-info-bison info-bison
5958maybe-info-bison:
5959@if bison
5960maybe-info-bison: info-bison
5961
5962info-bison: \
5963 configure-bison
5964 @: $(MAKE); $(unstage)
5965 @[ -f ./bison/Makefile ] || exit 0; \
5966 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5968 $(HOST_EXPORTS) \
a90ef4bf
JM
5969 for flag in $(EXTRA_HOST_FLAGS) ; do \
5970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5971 done; \
22121df0 5972 echo "Doing info in bison"; \
a90ef4bf
JM
5973 (cd $(HOST_SUBDIR)/bison && \
5974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5976 "RANLIB=$${RANLIB}" \
5977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5978 info) \
5979 || exit 1
d545f33b 5980
a90ef4bf 5981@endif bison
d545f33b 5982
a90ef4bf
JM
5983.PHONY: maybe-dvi-bison dvi-bison
5984maybe-dvi-bison:
5985@if bison
5986maybe-dvi-bison: dvi-bison
d545f33b 5987
a90ef4bf
JM
5988dvi-bison: \
5989 configure-bison
5990 @: $(MAKE); $(unstage)
5991 @[ -f ./bison/Makefile ] || exit 0; \
5992 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5994 $(HOST_EXPORTS) \
a90ef4bf
JM
5995 for flag in $(EXTRA_HOST_FLAGS) ; do \
5996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5997 done; \
22121df0 5998 echo "Doing dvi in bison"; \
a90ef4bf
JM
5999 (cd $(HOST_SUBDIR)/bison && \
6000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6002 "RANLIB=$${RANLIB}" \
6003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6004 dvi) \
6005 || exit 1
d545f33b 6006
a90ef4bf 6007@endif bison
d545f33b 6008
a90ef4bf
JM
6009.PHONY: maybe-pdf-bison pdf-bison
6010maybe-pdf-bison:
6011@if bison
6012maybe-pdf-bison: pdf-bison
d545f33b 6013
a90ef4bf
JM
6014pdf-bison: \
6015 configure-bison
6016 @: $(MAKE); $(unstage)
6017 @[ -f ./bison/Makefile ] || exit 0; \
6018 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6020 $(HOST_EXPORTS) \
a90ef4bf
JM
6021 for flag in $(EXTRA_HOST_FLAGS) ; do \
6022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6023 done; \
22121df0 6024 echo "Doing pdf in bison"; \
a90ef4bf
JM
6025 (cd $(HOST_SUBDIR)/bison && \
6026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6028 "RANLIB=$${RANLIB}" \
6029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6030 pdf) \
6031 || exit 1
d545f33b 6032
a90ef4bf 6033@endif bison
d545f33b 6034
a90ef4bf
JM
6035.PHONY: maybe-html-bison html-bison
6036maybe-html-bison:
6037@if bison
6038maybe-html-bison: html-bison
d545f33b 6039
a90ef4bf
JM
6040html-bison: \
6041 configure-bison
6042 @: $(MAKE); $(unstage)
6043 @[ -f ./bison/Makefile ] || exit 0; \
6044 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6046 $(HOST_EXPORTS) \
a90ef4bf
JM
6047 for flag in $(EXTRA_HOST_FLAGS) ; do \
6048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6049 done; \
22121df0 6050 echo "Doing html in bison"; \
a90ef4bf
JM
6051 (cd $(HOST_SUBDIR)/bison && \
6052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6054 "RANLIB=$${RANLIB}" \
6055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6056 html) \
6057 || exit 1
d545f33b 6058
a90ef4bf 6059@endif bison
2a4cbe27 6060
a90ef4bf
JM
6061.PHONY: maybe-TAGS-bison TAGS-bison
6062maybe-TAGS-bison:
6063@if bison
6064maybe-TAGS-bison: TAGS-bison
2a4cbe27 6065
a90ef4bf
JM
6066TAGS-bison: \
6067 configure-bison
0aed8855 6068 @: $(MAKE); $(unstage)
a90ef4bf
JM
6069 @[ -f ./bison/Makefile ] || exit 0; \
6070 r=`${PWD_COMMAND}`; export r; \
4fa63067 6071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6072 $(HOST_EXPORTS) \
a90ef4bf
JM
6073 for flag in $(EXTRA_HOST_FLAGS) ; do \
6074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6075 done; \
22121df0 6076 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6077 (cd $(HOST_SUBDIR)/bison && \
6078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6080 "RANLIB=$${RANLIB}" \
6081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6082 TAGS) \
6083 || exit 1
4fa63067 6084
a90ef4bf 6085@endif bison
4fa63067 6086
a90ef4bf
JM
6087.PHONY: maybe-install-info-bison install-info-bison
6088maybe-install-info-bison:
6089@if bison
6090maybe-install-info-bison: install-info-bison
9b980aa1 6091
a90ef4bf
JM
6092install-info-bison: \
6093 configure-bison \
6094 info-bison
9b980aa1 6095 @: $(MAKE); $(unstage)
a90ef4bf 6096 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6097 r=`${PWD_COMMAND}`; export r; \
6098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6099 $(HOST_EXPORTS) \
b813574b 6100 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6102 done; \
22121df0 6103 echo "Doing install-info in bison"; \
a90ef4bf 6104 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6107 "RANLIB=$${RANLIB}" \
0c24b341 6108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6109 install-info) \
2a4cbe27
NN
6110 || exit 1
6111
a90ef4bf 6112@endif bison
2a4cbe27 6113
a90ef4bf
JM
6114.PHONY: maybe-install-pdf-bison install-pdf-bison
6115maybe-install-pdf-bison:
6116@if bison
6117maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6118
a90ef4bf
JM
6119install-pdf-bison: \
6120 configure-bison \
6121 pdf-bison
6122 @: $(MAKE); $(unstage)
6123 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6124 r=`${PWD_COMMAND}`; export r; \
6125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6126 $(HOST_EXPORTS) \
b813574b 6127 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6129 done; \
22121df0 6130 echo "Doing install-pdf in bison"; \
a90ef4bf 6131 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6134 "RANLIB=$${RANLIB}" \
0c24b341 6135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6136 install-pdf) \
2a4cbe27
NN
6137 || exit 1
6138
a90ef4bf 6139@endif bison
2a4cbe27 6140
a90ef4bf
JM
6141.PHONY: maybe-install-html-bison install-html-bison
6142maybe-install-html-bison:
6143@if bison
6144maybe-install-html-bison: install-html-bison
56a8fe78 6145
a90ef4bf
JM
6146install-html-bison: \
6147 configure-bison \
6148 html-bison
6149 @: $(MAKE); $(unstage)
6150 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6151 r=`${PWD_COMMAND}`; export r; \
6152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6153 $(HOST_EXPORTS) \
6154 for flag in $(EXTRA_HOST_FLAGS) ; do \
6155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6156 done; \
22121df0 6157 echo "Doing install-html in bison"; \
a90ef4bf 6158 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6161 "RANLIB=$${RANLIB}" \
0c24b341 6162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6163 install-html) \
56a8fe78
DD
6164 || exit 1
6165
a90ef4bf 6166@endif bison
56a8fe78 6167
a90ef4bf
JM
6168.PHONY: maybe-installcheck-bison installcheck-bison
6169maybe-installcheck-bison:
6170@if bison
6171maybe-installcheck-bison: installcheck-bison
6d389afc 6172
a90ef4bf
JM
6173installcheck-bison: \
6174 configure-bison
6175 @: $(MAKE); $(unstage)
6176 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6177 r=`${PWD_COMMAND}`; export r; \
6178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6179 $(HOST_EXPORTS) \
6180 for flag in $(EXTRA_HOST_FLAGS) ; do \
6181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6182 done; \
22121df0 6183 echo "Doing installcheck in bison"; \
a90ef4bf 6184 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6187 "RANLIB=$${RANLIB}" \
0c24b341 6188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6189 installcheck) \
6d389afc
MS
6190 || exit 1
6191
a90ef4bf 6192@endif bison
6d389afc 6193
a90ef4bf
JM
6194.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6195maybe-mostlyclean-bison:
6196@if bison
6197maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6198
a90ef4bf
JM
6199mostlyclean-bison:
6200 @: $(MAKE); $(unstage)
6201 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6202 r=`${PWD_COMMAND}`; export r; \
6203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6204 $(HOST_EXPORTS) \
b813574b 6205 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6207 done; \
22121df0 6208 echo "Doing mostlyclean in bison"; \
a90ef4bf 6209 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6212 "RANLIB=$${RANLIB}" \
0c24b341 6213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6214 mostlyclean) \
2a4cbe27
NN
6215 || exit 1
6216
a90ef4bf 6217@endif bison
2a4cbe27 6218
a90ef4bf
JM
6219.PHONY: maybe-clean-bison clean-bison
6220maybe-clean-bison:
6221@if bison
6222maybe-clean-bison: clean-bison
2a4cbe27 6223
a90ef4bf
JM
6224clean-bison:
6225 @: $(MAKE); $(unstage)
6226 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6227 r=`${PWD_COMMAND}`; export r; \
6228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6229 $(HOST_EXPORTS) \
b813574b 6230 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6232 done; \
22121df0 6233 echo "Doing clean in bison"; \
a90ef4bf 6234 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6237 "RANLIB=$${RANLIB}" \
0c24b341 6238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6239 clean) \
2a4cbe27
NN
6240 || exit 1
6241
a90ef4bf 6242@endif bison
2a4cbe27 6243
a90ef4bf
JM
6244.PHONY: maybe-distclean-bison distclean-bison
6245maybe-distclean-bison:
6246@if bison
6247maybe-distclean-bison: distclean-bison
a3ca38d2 6248
a90ef4bf
JM
6249distclean-bison:
6250 @: $(MAKE); $(unstage)
6251 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6252 r=`${PWD_COMMAND}`; export r; \
6253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6254 $(HOST_EXPORTS) \
6255 for flag in $(EXTRA_HOST_FLAGS) ; do \
6256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6257 done; \
22121df0 6258 echo "Doing distclean in bison"; \
a90ef4bf 6259 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6262 "RANLIB=$${RANLIB}" \
0c24b341 6263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6264 distclean) \
a3ca38d2
DD
6265 || exit 1
6266
a90ef4bf 6267@endif bison
a3ca38d2 6268
a90ef4bf
JM
6269.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6270maybe-maintainer-clean-bison:
6271@if bison
6272maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6273
a90ef4bf
JM
6274maintainer-clean-bison:
6275 @: $(MAKE); $(unstage)
6276 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6277 r=`${PWD_COMMAND}`; export r; \
6278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6279 $(HOST_EXPORTS) \
6280 for flag in $(EXTRA_HOST_FLAGS) ; do \
6281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6282 done; \
22121df0 6283 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6284 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6287 "RANLIB=$${RANLIB}" \
0c24b341 6288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6289 maintainer-clean) \
108a6f8e
CD
6290 || exit 1
6291
a90ef4bf 6292@endif bison
108a6f8e 6293
2a4cbe27 6294
a90ef4bf
JM
6295
6296.PHONY: configure-cgen maybe-configure-cgen
6297maybe-configure-cgen:
6298@if gcc-bootstrap
6299configure-cgen: stage_current
6300@endif gcc-bootstrap
6301@if cgen
6302maybe-configure-cgen: configure-cgen
6303configure-cgen:
6304 @: $(MAKE); $(unstage)
6305 @r=`${PWD_COMMAND}`; export r; \
6306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6307 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6308 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6309 $(HOST_EXPORTS) \
6310 echo Configuring in $(HOST_SUBDIR)/cgen; \
6311 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6312 case $(srcdir) in \
6313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6314 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6316 esac; \
1b6c0831
L
6317 module_srcdir=cgen; \
6318 $(SHELL) \
6319 $$s/$$module_srcdir/configure \
6320 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6321 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6322 --target=${target_alias} \
a90ef4bf
JM
6323 || exit 1
6324@endif cgen
6325
6326
6327
6328
6329
6330.PHONY: all-cgen maybe-all-cgen
6331maybe-all-cgen:
6332@if gcc-bootstrap
6333all-cgen: stage_current
6334@endif gcc-bootstrap
6335@if cgen
6336TARGET-cgen=all
6337maybe-all-cgen: all-cgen
6338all-cgen: configure-cgen
6339 @: $(MAKE); $(unstage)
6340 @r=`${PWD_COMMAND}`; export r; \
6341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6342 $(HOST_EXPORTS) \
6343 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6344 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6345 $(TARGET-cgen))
6346@endif cgen
6347
6348
6349
6350
6351.PHONY: check-cgen maybe-check-cgen
6352maybe-check-cgen:
6353@if cgen
6354maybe-check-cgen: check-cgen
6355
6356check-cgen:
6357 @: $(MAKE); $(unstage)
6358 @r=`${PWD_COMMAND}`; export r; \
6359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6360 $(HOST_EXPORTS) \
a90ef4bf
JM
6361 (cd $(HOST_SUBDIR)/cgen && \
6362 $(MAKE) $(FLAGS_TO_PASS) check)
6363
6364@endif cgen
6365
6366.PHONY: install-cgen maybe-install-cgen
6367maybe-install-cgen:
6368@if cgen
6369maybe-install-cgen: install-cgen
6370
6371install-cgen: installdirs
6372 @: $(MAKE); $(unstage)
6373 @r=`${PWD_COMMAND}`; export r; \
6374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6375 $(HOST_EXPORTS) \
6376 (cd $(HOST_SUBDIR)/cgen && \
6377 $(MAKE) $(FLAGS_TO_PASS) install)
6378
6379@endif cgen
6380
6381.PHONY: install-strip-cgen maybe-install-strip-cgen
6382maybe-install-strip-cgen:
6383@if cgen
6384maybe-install-strip-cgen: install-strip-cgen
6385
6386install-strip-cgen: installdirs
6387 @: $(MAKE); $(unstage)
6388 @r=`${PWD_COMMAND}`; export r; \
6389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6390 $(HOST_EXPORTS) \
6391 (cd $(HOST_SUBDIR)/cgen && \
6392 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6393
6394@endif cgen
6395
6396# Other targets (info, dvi, pdf, etc.)
6397
6398.PHONY: maybe-info-cgen info-cgen
6399maybe-info-cgen:
6400@if cgen
6401maybe-info-cgen: info-cgen
6402
6403info-cgen: \
6404 configure-cgen
6405 @: $(MAKE); $(unstage)
6406 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6407 r=`${PWD_COMMAND}`; export r; \
6408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6409 $(HOST_EXPORTS) \
b813574b 6410 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6412 done; \
22121df0 6413 echo "Doing info in cgen"; \
a90ef4bf 6414 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6417 "RANLIB=$${RANLIB}" \
0c24b341 6418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6419 info) \
2a4cbe27
NN
6420 || exit 1
6421
a90ef4bf 6422@endif cgen
2a4cbe27 6423
a90ef4bf
JM
6424.PHONY: maybe-dvi-cgen dvi-cgen
6425maybe-dvi-cgen:
6426@if cgen
6427maybe-dvi-cgen: dvi-cgen
2a4cbe27 6428
a90ef4bf
JM
6429dvi-cgen: \
6430 configure-cgen
6431 @: $(MAKE); $(unstage)
6432 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6433 r=`${PWD_COMMAND}`; export r; \
6434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6435 $(HOST_EXPORTS) \
b813574b 6436 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6438 done; \
22121df0 6439 echo "Doing dvi in cgen"; \
a90ef4bf 6440 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6443 "RANLIB=$${RANLIB}" \
0c24b341 6444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6445 dvi) \
2a4cbe27
NN
6446 || exit 1
6447
a90ef4bf 6448@endif cgen
2a4cbe27 6449
a90ef4bf
JM
6450.PHONY: maybe-pdf-cgen pdf-cgen
6451maybe-pdf-cgen:
6452@if cgen
6453maybe-pdf-cgen: pdf-cgen
2a4cbe27 6454
a90ef4bf
JM
6455pdf-cgen: \
6456 configure-cgen
6457 @: $(MAKE); $(unstage)
6458 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6459 r=`${PWD_COMMAND}`; export r; \
6460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6461 $(HOST_EXPORTS) \
b813574b 6462 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6464 done; \
22121df0 6465 echo "Doing pdf in cgen"; \
a90ef4bf 6466 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6469 "RANLIB=$${RANLIB}" \
0c24b341 6470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6471 pdf) \
2a4cbe27
NN
6472 || exit 1
6473
a90ef4bf 6474@endif cgen
2a4cbe27 6475
a90ef4bf
JM
6476.PHONY: maybe-html-cgen html-cgen
6477maybe-html-cgen:
6478@if cgen
6479maybe-html-cgen: html-cgen
2a4cbe27 6480
a90ef4bf
JM
6481html-cgen: \
6482 configure-cgen
6483 @: $(MAKE); $(unstage)
6484 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6485 r=`${PWD_COMMAND}`; export r; \
6486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6487 $(HOST_EXPORTS) \
b813574b 6488 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6490 done; \
22121df0 6491 echo "Doing html in cgen"; \
a90ef4bf 6492 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6495 "RANLIB=$${RANLIB}" \
0c24b341 6496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6497 html) \
2a4cbe27
NN
6498 || exit 1
6499
a90ef4bf 6500@endif cgen
2a4cbe27 6501
a90ef4bf
JM
6502.PHONY: maybe-TAGS-cgen TAGS-cgen
6503maybe-TAGS-cgen:
6504@if cgen
6505maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6506
a90ef4bf
JM
6507TAGS-cgen: \
6508 configure-cgen
6509 @: $(MAKE); $(unstage)
6510 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6511 r=`${PWD_COMMAND}`; export r; \
6512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6513 $(HOST_EXPORTS) \
b813574b 6514 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6516 done; \
22121df0 6517 echo "Doing TAGS in cgen"; \
a90ef4bf 6518 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6521 "RANLIB=$${RANLIB}" \
0c24b341 6522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6523 TAGS) \
2a4cbe27
NN
6524 || exit 1
6525
a90ef4bf 6526@endif cgen
2a4cbe27 6527
a90ef4bf
JM
6528.PHONY: maybe-install-info-cgen install-info-cgen
6529maybe-install-info-cgen:
6530@if cgen
6531maybe-install-info-cgen: install-info-cgen
2a4cbe27 6532
a90ef4bf
JM
6533install-info-cgen: \
6534 configure-cgen \
6535 info-cgen
6536 @: $(MAKE); $(unstage)
6537 @[ -f ./cgen/Makefile ] || exit 0; \
6538 r=`${PWD_COMMAND}`; export r; \
6539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6540 $(HOST_EXPORTS) \
6541 for flag in $(EXTRA_HOST_FLAGS) ; do \
6542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6543 done; \
22121df0 6544 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6545 (cd $(HOST_SUBDIR)/cgen && \
6546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6548 "RANLIB=$${RANLIB}" \
6549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6550 install-info) \
6551 || exit 1
a7254363 6552
a90ef4bf
JM
6553@endif cgen
6554
6555.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6556maybe-install-pdf-cgen:
6557@if cgen
6558maybe-install-pdf-cgen: install-pdf-cgen
6559
6560install-pdf-cgen: \
6561 configure-cgen \
6562 pdf-cgen
6563 @: $(MAKE); $(unstage)
6564 @[ -f ./cgen/Makefile ] || exit 0; \
6565 r=`${PWD_COMMAND}`; export r; \
c52c6897 6566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6567 $(HOST_EXPORTS) \
6568 for flag in $(EXTRA_HOST_FLAGS) ; do \
6569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6570 done; \
22121df0 6571 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6572 (cd $(HOST_SUBDIR)/cgen && \
6573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6575 "RANLIB=$${RANLIB}" \
6576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6577 install-pdf) \
2a4cbe27
NN
6578 || exit 1
6579
a90ef4bf 6580@endif cgen
a7254363 6581
a90ef4bf
JM
6582.PHONY: maybe-install-html-cgen install-html-cgen
6583maybe-install-html-cgen:
6584@if cgen
6585maybe-install-html-cgen: install-html-cgen
a7254363 6586
a90ef4bf
JM
6587install-html-cgen: \
6588 configure-cgen \
6589 html-cgen
6590 @: $(MAKE); $(unstage)
6591 @[ -f ./cgen/Makefile ] || exit 0; \
6592 r=`${PWD_COMMAND}`; export r; \
c52c6897 6593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6594 $(HOST_EXPORTS) \
a90ef4bf
JM
6595 for flag in $(EXTRA_HOST_FLAGS) ; do \
6596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6597 done; \
22121df0 6598 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6599 (cd $(HOST_SUBDIR)/cgen && \
6600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6602 "RANLIB=$${RANLIB}" \
6603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6604 install-html) \
6605 || exit 1
d545f33b 6606
a90ef4bf
JM
6607@endif cgen
6608
6609.PHONY: maybe-installcheck-cgen installcheck-cgen
6610maybe-installcheck-cgen:
6611@if cgen
6612maybe-installcheck-cgen: installcheck-cgen
6613
6614installcheck-cgen: \
6615 configure-cgen
6616 @: $(MAKE); $(unstage)
6617 @[ -f ./cgen/Makefile ] || exit 0; \
6618 r=`${PWD_COMMAND}`; export r; \
c52c6897 6619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6620 $(HOST_EXPORTS) \
a90ef4bf
JM
6621 for flag in $(EXTRA_HOST_FLAGS) ; do \
6622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6623 done; \
22121df0 6624 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6625 (cd $(HOST_SUBDIR)/cgen && \
6626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6628 "RANLIB=$${RANLIB}" \
6629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6630 installcheck) \
6631 || exit 1
8520c408 6632
a90ef4bf
JM
6633@endif cgen
6634
6635.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6636maybe-mostlyclean-cgen:
6637@if cgen
6638maybe-mostlyclean-cgen: mostlyclean-cgen
6639
6640mostlyclean-cgen:
6641 @: $(MAKE); $(unstage)
6642 @[ -f ./cgen/Makefile ] || exit 0; \
6643 r=`${PWD_COMMAND}`; export r; \
c52c6897 6644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6645 $(HOST_EXPORTS) \
a90ef4bf
JM
6646 for flag in $(EXTRA_HOST_FLAGS) ; do \
6647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6648 done; \
22121df0 6649 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6650 (cd $(HOST_SUBDIR)/cgen && \
6651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6653 "RANLIB=$${RANLIB}" \
6654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6655 mostlyclean) \
6656 || exit 1
8520c408 6657
a90ef4bf
JM
6658@endif cgen
6659
6660.PHONY: maybe-clean-cgen clean-cgen
6661maybe-clean-cgen:
6662@if cgen
6663maybe-clean-cgen: clean-cgen
6664
6665clean-cgen:
6666 @: $(MAKE); $(unstage)
6667 @[ -f ./cgen/Makefile ] || exit 0; \
6668 r=`${PWD_COMMAND}`; export r; \
c52c6897 6669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6670 $(HOST_EXPORTS) \
a90ef4bf
JM
6671 for flag in $(EXTRA_HOST_FLAGS) ; do \
6672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6673 done; \
22121df0 6674 echo "Doing clean in cgen"; \
a90ef4bf
JM
6675 (cd $(HOST_SUBDIR)/cgen && \
6676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6678 "RANLIB=$${RANLIB}" \
6679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6680 clean) \
6681 || exit 1
d545f33b 6682
a90ef4bf
JM
6683@endif cgen
6684
6685.PHONY: maybe-distclean-cgen distclean-cgen
6686maybe-distclean-cgen:
6687@if cgen
6688maybe-distclean-cgen: distclean-cgen
6689
6690distclean-cgen:
6691 @: $(MAKE); $(unstage)
6692 @[ -f ./cgen/Makefile ] || exit 0; \
6693 r=`${PWD_COMMAND}`; export r; \
c52c6897 6694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6695 $(HOST_EXPORTS) \
a90ef4bf
JM
6696 for flag in $(EXTRA_HOST_FLAGS) ; do \
6697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6698 done; \
22121df0 6699 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6700 (cd $(HOST_SUBDIR)/cgen && \
6701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6703 "RANLIB=$${RANLIB}" \
6704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6705 distclean) \
6706 || exit 1
d545f33b 6707
a90ef4bf
JM
6708@endif cgen
6709
6710.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6711maybe-maintainer-clean-cgen:
6712@if cgen
6713maybe-maintainer-clean-cgen: maintainer-clean-cgen
6714
6715maintainer-clean-cgen:
6716 @: $(MAKE); $(unstage)
6717 @[ -f ./cgen/Makefile ] || exit 0; \
6718 r=`${PWD_COMMAND}`; export r; \
c52c6897 6719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6720 $(HOST_EXPORTS) \
a90ef4bf
JM
6721 for flag in $(EXTRA_HOST_FLAGS) ; do \
6722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6723 done; \
22121df0 6724 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6725 (cd $(HOST_SUBDIR)/cgen && \
6726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6728 "RANLIB=$${RANLIB}" \
6729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6730 maintainer-clean) \
6731 || exit 1
6732
6733@endif cgen
6734
6735
6736
6737.PHONY: configure-dejagnu maybe-configure-dejagnu
6738maybe-configure-dejagnu:
6739@if gcc-bootstrap
6740configure-dejagnu: stage_current
6741@endif gcc-bootstrap
6742@if dejagnu
6743maybe-configure-dejagnu: configure-dejagnu
6744configure-dejagnu:
6745 @: $(MAKE); $(unstage)
6746 @r=`${PWD_COMMAND}`; export r; \
6747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6748 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6749 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6750 $(HOST_EXPORTS) \
6751 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6752 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6753 case $(srcdir) in \
6754 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6755 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6756 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6757 esac; \
1b6c0831
L
6758 module_srcdir=dejagnu; \
6759 $(SHELL) \
6760 $$s/$$module_srcdir/configure \
6761 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6762 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6763 --target=${target_alias} \
a90ef4bf
JM
6764 || exit 1
6765@endif dejagnu
d545f33b
PB
6766
6767
6768
6769
6770
a90ef4bf
JM
6771.PHONY: all-dejagnu maybe-all-dejagnu
6772maybe-all-dejagnu:
4f0ef2d8 6773@if gcc-bootstrap
a90ef4bf 6774all-dejagnu: stage_current
4f0ef2d8 6775@endif gcc-bootstrap
a90ef4bf
JM
6776@if dejagnu
6777TARGET-dejagnu=all
6778maybe-all-dejagnu: all-dejagnu
6779all-dejagnu: configure-dejagnu
6780 @: $(MAKE); $(unstage)
c52c6897 6781 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6783 $(HOST_EXPORTS) \
a90ef4bf 6784 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6785 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6786 $(TARGET-dejagnu))
6787@endif dejagnu
4fa63067 6788
a7254363 6789
4fa63067 6790
a90ef4bf
JM
6791
6792.PHONY: check-dejagnu maybe-check-dejagnu
6793maybe-check-dejagnu:
6794@if dejagnu
6795maybe-check-dejagnu: check-dejagnu
6796
6797check-dejagnu:
6798 @: $(MAKE); $(unstage)
4fa63067
NN
6799 @r=`${PWD_COMMAND}`; export r; \
6800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6801 $(HOST_EXPORTS) \
a90ef4bf
JM
6802 (cd $(HOST_SUBDIR)/dejagnu && \
6803 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6804
a90ef4bf 6805@endif dejagnu
2a4cbe27 6806
a90ef4bf
JM
6807.PHONY: install-dejagnu maybe-install-dejagnu
6808maybe-install-dejagnu:
6809@if dejagnu
6810maybe-install-dejagnu: install-dejagnu
2a4cbe27 6811
a90ef4bf
JM
6812install-dejagnu: installdirs
6813 @: $(MAKE); $(unstage)
4fa63067 6814 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6816 $(HOST_EXPORTS) \
a90ef4bf
JM
6817 (cd $(HOST_SUBDIR)/dejagnu && \
6818 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6819
a90ef4bf 6820@endif dejagnu
d545f33b 6821
a90ef4bf
JM
6822.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6823maybe-install-strip-dejagnu:
6824@if dejagnu
6825maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6826
a90ef4bf 6827install-strip-dejagnu: installdirs
9b980aa1
RW
6828 @: $(MAKE); $(unstage)
6829 @r=`${PWD_COMMAND}`; export r; \
6830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6831 $(HOST_EXPORTS) \
a90ef4bf 6832 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6833 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6834
a90ef4bf 6835@endif dejagnu
9b980aa1 6836
56a8fe78 6837# Other targets (info, dvi, pdf, etc.)
d545f33b 6838
a90ef4bf
JM
6839.PHONY: maybe-info-dejagnu info-dejagnu
6840maybe-info-dejagnu:
6841@if dejagnu
6842maybe-info-dejagnu: info-dejagnu
d545f33b 6843
a90ef4bf
JM
6844info-dejagnu: \
6845 configure-dejagnu
6846 @: $(MAKE); $(unstage)
6847 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6848 r=`${PWD_COMMAND}`; export r; \
6849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6850 $(HOST_EXPORTS) \
6851 for flag in $(EXTRA_HOST_FLAGS) ; do \
6852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6853 done; \
22121df0 6854 echo "Doing info in dejagnu"; \
a90ef4bf 6855 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6858 "RANLIB=$${RANLIB}" \
0c24b341 6859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6860 info) \
6861 || exit 1
6862
a90ef4bf 6863@endif dejagnu
d545f33b 6864
a90ef4bf
JM
6865.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6866maybe-dvi-dejagnu:
6867@if dejagnu
6868maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6869
a90ef4bf
JM
6870dvi-dejagnu: \
6871 configure-dejagnu
6872 @: $(MAKE); $(unstage)
6873 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6874 r=`${PWD_COMMAND}`; export r; \
6875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6876 $(HOST_EXPORTS) \
6877 for flag in $(EXTRA_HOST_FLAGS) ; do \
6878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6879 done; \
22121df0 6880 echo "Doing dvi in dejagnu"; \
a90ef4bf 6881 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6884 "RANLIB=$${RANLIB}" \
0c24b341 6885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6886 dvi) \
2a4cbe27
NN
6887 || exit 1
6888
a90ef4bf 6889@endif dejagnu
2a4cbe27 6890
a90ef4bf
JM
6891.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6892maybe-pdf-dejagnu:
6893@if dejagnu
6894maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6895
a90ef4bf
JM
6896pdf-dejagnu: \
6897 configure-dejagnu
6898 @: $(MAKE); $(unstage)
6899 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6900 r=`${PWD_COMMAND}`; export r; \
6901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6902 $(HOST_EXPORTS) \
6903 for flag in $(EXTRA_HOST_FLAGS) ; do \
6904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6905 done; \
22121df0 6906 echo "Doing pdf in dejagnu"; \
a90ef4bf 6907 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6910 "RANLIB=$${RANLIB}" \
0c24b341 6911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6912 pdf) \
6913 || exit 1
6914
a90ef4bf 6915@endif dejagnu
56a8fe78 6916
a90ef4bf
JM
6917.PHONY: maybe-html-dejagnu html-dejagnu
6918maybe-html-dejagnu:
6919@if dejagnu
6920maybe-html-dejagnu: html-dejagnu
6d389afc 6921
a90ef4bf
JM
6922html-dejagnu: \
6923 configure-dejagnu
6924 @: $(MAKE); $(unstage)
6925 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6926 r=`${PWD_COMMAND}`; export r; \
6927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6928 $(HOST_EXPORTS) \
6929 for flag in $(EXTRA_HOST_FLAGS) ; do \
6930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6931 done; \
22121df0 6932 echo "Doing html in dejagnu"; \
a90ef4bf 6933 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6936 "RANLIB=$${RANLIB}" \
0c24b341 6937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6938 html) \
6939 || exit 1
6940
a90ef4bf 6941@endif dejagnu
6d389afc 6942
a90ef4bf
JM
6943.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6944maybe-TAGS-dejagnu:
6945@if dejagnu
6946maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6947
a90ef4bf
JM
6948TAGS-dejagnu: \
6949 configure-dejagnu
6950 @: $(MAKE); $(unstage)
6951 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6952 r=`${PWD_COMMAND}`; export r; \
6953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6954 $(HOST_EXPORTS) \
b813574b 6955 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6957 done; \
22121df0 6958 echo "Doing TAGS in dejagnu"; \
a90ef4bf 6959 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6962 "RANLIB=$${RANLIB}" \
0c24b341 6963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6964 TAGS) \
2a4cbe27
NN
6965 || exit 1
6966
a90ef4bf 6967@endif dejagnu
2a4cbe27 6968
a90ef4bf
JM
6969.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6970maybe-install-info-dejagnu:
6971@if dejagnu
6972maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6973
a90ef4bf
JM
6974install-info-dejagnu: \
6975 configure-dejagnu \
6976 info-dejagnu
6977 @: $(MAKE); $(unstage)
6978 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6979 r=`${PWD_COMMAND}`; export r; \
6980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6981 $(HOST_EXPORTS) \
b813574b 6982 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6984 done; \
22121df0 6985 echo "Doing install-info in dejagnu"; \
a90ef4bf 6986 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6989 "RANLIB=$${RANLIB}" \
0c24b341 6990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6991 install-info) \
2a4cbe27
NN
6992 || exit 1
6993
a90ef4bf 6994@endif dejagnu
2a4cbe27 6995
a90ef4bf
JM
6996.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6997maybe-install-pdf-dejagnu:
6998@if dejagnu
6999maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 7000
a90ef4bf
JM
7001install-pdf-dejagnu: \
7002 configure-dejagnu \
7003 pdf-dejagnu
7004 @: $(MAKE); $(unstage)
7005 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
7006 r=`${PWD_COMMAND}`; export r; \
7007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7008 $(HOST_EXPORTS) \
7009 for flag in $(EXTRA_HOST_FLAGS) ; do \
7010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7011 done; \
22121df0 7012 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 7013 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
7014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7016 "RANLIB=$${RANLIB}" \
0c24b341 7017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7018 install-pdf) \
7019 || exit 1
7020
a90ef4bf 7021@endif dejagnu
a3ca38d2 7022
a90ef4bf
JM
7023.PHONY: maybe-install-html-dejagnu install-html-dejagnu
7024maybe-install-html-dejagnu:
7025@if dejagnu
7026maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 7027
a90ef4bf
JM
7028install-html-dejagnu: \
7029 configure-dejagnu \
7030 html-dejagnu
7031 @: $(MAKE); $(unstage)
7032 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
7033 r=`${PWD_COMMAND}`; export r; \
7034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7035 $(HOST_EXPORTS) \
7036 for flag in $(EXTRA_HOST_FLAGS) ; do \
7037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7038 done; \
22121df0 7039 echo "Doing install-html in dejagnu"; \
a90ef4bf 7040 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
7041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7043 "RANLIB=$${RANLIB}" \
0c24b341 7044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7045 install-html) \
7046 || exit 1
7047
a90ef4bf 7048@endif dejagnu
108a6f8e 7049
a90ef4bf
JM
7050.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
7051maybe-installcheck-dejagnu:
7052@if dejagnu
7053maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 7054
a90ef4bf
JM
7055installcheck-dejagnu: \
7056 configure-dejagnu
7057 @: $(MAKE); $(unstage)
7058 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7059 r=`${PWD_COMMAND}`; export r; \
7060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7061 $(HOST_EXPORTS) \
b813574b 7062 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7064 done; \
22121df0 7065 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7066 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7069 "RANLIB=$${RANLIB}" \
0c24b341 7070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7071 installcheck) \
2a4cbe27
NN
7072 || exit 1
7073
a90ef4bf 7074@endif dejagnu
2a4cbe27 7075
a90ef4bf
JM
7076.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7077maybe-mostlyclean-dejagnu:
7078@if dejagnu
7079maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7080
a90ef4bf
JM
7081mostlyclean-dejagnu:
7082 @: $(MAKE); $(unstage)
7083 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7084 r=`${PWD_COMMAND}`; export r; \
7085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7086 $(HOST_EXPORTS) \
b813574b 7087 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7089 done; \
22121df0 7090 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7091 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7094 "RANLIB=$${RANLIB}" \
0c24b341 7095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7096 mostlyclean) \
2a4cbe27
NN
7097 || exit 1
7098
a90ef4bf 7099@endif dejagnu
2a4cbe27 7100
a90ef4bf
JM
7101.PHONY: maybe-clean-dejagnu clean-dejagnu
7102maybe-clean-dejagnu:
7103@if dejagnu
7104maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7105
a90ef4bf
JM
7106clean-dejagnu:
7107 @: $(MAKE); $(unstage)
7108 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7109 r=`${PWD_COMMAND}`; export r; \
7110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7111 $(HOST_EXPORTS) \
b813574b 7112 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7114 done; \
22121df0 7115 echo "Doing clean in dejagnu"; \
a90ef4bf 7116 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7119 "RANLIB=$${RANLIB}" \
0c24b341 7120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7121 clean) \
2a4cbe27
NN
7122 || exit 1
7123
a90ef4bf 7124@endif dejagnu
2a4cbe27 7125
a90ef4bf
JM
7126.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7127maybe-distclean-dejagnu:
7128@if dejagnu
7129maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7130
a90ef4bf
JM
7131distclean-dejagnu:
7132 @: $(MAKE); $(unstage)
7133 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7134 r=`${PWD_COMMAND}`; export r; \
7135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7136 $(HOST_EXPORTS) \
b813574b 7137 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7139 done; \
22121df0 7140 echo "Doing distclean in dejagnu"; \
a90ef4bf 7141 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7144 "RANLIB=$${RANLIB}" \
0c24b341 7145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7146 distclean) \
2a4cbe27
NN
7147 || exit 1
7148
a90ef4bf 7149@endif dejagnu
2a4cbe27 7150
a90ef4bf
JM
7151.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7152maybe-maintainer-clean-dejagnu:
7153@if dejagnu
7154maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7155
a90ef4bf
JM
7156maintainer-clean-dejagnu:
7157 @: $(MAKE); $(unstage)
7158 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7159 r=`${PWD_COMMAND}`; export r; \
7160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7161 $(HOST_EXPORTS) \
b813574b 7162 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7164 done; \
22121df0 7165 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7166 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7169 "RANLIB=$${RANLIB}" \
0c24b341 7170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7171 maintainer-clean) \
2a4cbe27
NN
7172 || exit 1
7173
a90ef4bf 7174@endif dejagnu
2a4cbe27 7175
2a4cbe27 7176
a7254363 7177
a90ef4bf
JM
7178.PHONY: configure-etc maybe-configure-etc
7179maybe-configure-etc:
4f0ef2d8 7180@if gcc-bootstrap
a90ef4bf 7181configure-etc: stage_current
4f0ef2d8 7182@endif gcc-bootstrap
a90ef4bf
JM
7183@if etc
7184maybe-configure-etc: configure-etc
7185configure-etc:
0aed8855 7186 @: $(MAKE); $(unstage)
c52c6897 7187 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7189 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7190 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7191 $(HOST_EXPORTS) \
a90ef4bf
JM
7192 echo Configuring in $(HOST_SUBDIR)/etc; \
7193 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7194 case $(srcdir) in \
b00612cc 7195 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7196 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7197 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7198 esac; \
1b6c0831
L
7199 module_srcdir=etc; \
7200 $(SHELL) \
7201 $$s/$$module_srcdir/configure \
7202 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7203 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7204 --target=${target_alias} \
2a4cbe27 7205 || exit 1
a90ef4bf 7206@endif etc
2a4cbe27 7207
a7254363
PB
7208
7209
d545f33b
PB
7210
7211
a90ef4bf
JM
7212.PHONY: all-etc maybe-all-etc
7213maybe-all-etc:
4f0ef2d8 7214@if gcc-bootstrap
a90ef4bf 7215all-etc: stage_current
4f0ef2d8 7216@endif gcc-bootstrap
a90ef4bf
JM
7217@if etc
7218TARGET-etc=all
7219maybe-all-etc: all-etc
7220all-etc: configure-etc
0aed8855 7221 @: $(MAKE); $(unstage)
4fa63067
NN
7222 @r=`${PWD_COMMAND}`; export r; \
7223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7224 $(HOST_EXPORTS) \
a90ef4bf 7225 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7226 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7227 $(TARGET-etc))
7228@endif etc
2a4cbe27 7229
a7254363 7230
d545f33b
PB
7231
7232
a90ef4bf
JM
7233.PHONY: check-etc maybe-check-etc
7234maybe-check-etc:
7235@if etc
7236maybe-check-etc: check-etc
2a4cbe27 7237
a90ef4bf 7238check-etc:
0aed8855 7239 @: $(MAKE); $(unstage)
a90ef4bf
JM
7240 @r=`${PWD_COMMAND}`; export r; \
7241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7242 $(HOST_EXPORTS) \
a90ef4bf
JM
7243 (cd $(HOST_SUBDIR)/etc && \
7244 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7245
a90ef4bf 7246@endif etc
4fa63067 7247
a90ef4bf
JM
7248.PHONY: install-etc maybe-install-etc
7249maybe-install-etc:
7250@if etc
7251maybe-install-etc: install-etc
4fa63067 7252
a90ef4bf 7253install-etc: installdirs
0aed8855 7254 @: $(MAKE); $(unstage)
4fa63067 7255 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7257 $(HOST_EXPORTS) \
a90ef4bf 7258 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7259 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7260
a90ef4bf 7261@endif etc
2a4cbe27 7262
a90ef4bf
JM
7263.PHONY: install-strip-etc maybe-install-strip-etc
7264maybe-install-strip-etc:
7265@if etc
7266maybe-install-strip-etc: install-strip-etc
9b980aa1 7267
a90ef4bf 7268install-strip-etc: installdirs
9b980aa1
RW
7269 @: $(MAKE); $(unstage)
7270 @r=`${PWD_COMMAND}`; export r; \
7271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7272 $(HOST_EXPORTS) \
a90ef4bf 7273 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7274 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7275
a90ef4bf 7276@endif etc
9b980aa1 7277
56a8fe78 7278# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7279
a90ef4bf
JM
7280.PHONY: maybe-info-etc info-etc
7281maybe-info-etc:
7282@if etc
7283maybe-info-etc: info-etc
4fa63067 7284
a90ef4bf
JM
7285info-etc: \
7286 configure-etc
0aed8855 7287 @: $(MAKE); $(unstage)
a90ef4bf 7288 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7289 r=`${PWD_COMMAND}`; export r; \
7290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7291 $(HOST_EXPORTS) \
b813574b 7292 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7294 done; \
22121df0 7295 echo "Doing info in etc"; \
a90ef4bf 7296 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7299 "RANLIB=$${RANLIB}" \
0c24b341 7300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7301 info) \
2a4cbe27
NN
7302 || exit 1
7303
a90ef4bf 7304@endif etc
2a4cbe27 7305
a90ef4bf
JM
7306.PHONY: maybe-dvi-etc dvi-etc
7307maybe-dvi-etc:
7308@if etc
7309maybe-dvi-etc: dvi-etc
2a4cbe27 7310
a90ef4bf
JM
7311dvi-etc: \
7312 configure-etc
0aed8855 7313 @: $(MAKE); $(unstage)
a90ef4bf 7314 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7315 r=`${PWD_COMMAND}`; export r; \
7316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7317 $(HOST_EXPORTS) \
b813574b 7318 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7320 done; \
22121df0 7321 echo "Doing dvi in etc"; \
a90ef4bf 7322 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7325 "RANLIB=$${RANLIB}" \
0c24b341 7326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7327 dvi) \
2a4cbe27
NN
7328 || exit 1
7329
a90ef4bf 7330@endif etc
2a4cbe27 7331
a90ef4bf
JM
7332.PHONY: maybe-pdf-etc pdf-etc
7333maybe-pdf-etc:
7334@if etc
7335maybe-pdf-etc: pdf-etc
56a8fe78 7336
a90ef4bf
JM
7337pdf-etc: \
7338 configure-etc
56a8fe78 7339 @: $(MAKE); $(unstage)
a90ef4bf 7340 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7341 r=`${PWD_COMMAND}`; export r; \
7342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7343 $(HOST_EXPORTS) \
7344 for flag in $(EXTRA_HOST_FLAGS) ; do \
7345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7346 done; \
22121df0 7347 echo "Doing pdf in etc"; \
a90ef4bf 7348 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7351 "RANLIB=$${RANLIB}" \
0c24b341 7352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7353 pdf) \
7354 || exit 1
7355
a90ef4bf 7356@endif etc
56a8fe78 7357
a90ef4bf
JM
7358.PHONY: maybe-html-etc html-etc
7359maybe-html-etc:
7360@if etc
7361maybe-html-etc: html-etc
6d389afc 7362
a90ef4bf
JM
7363html-etc: \
7364 configure-etc
0aed8855 7365 @: $(MAKE); $(unstage)
a90ef4bf 7366 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7367 r=`${PWD_COMMAND}`; export r; \
7368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7369 $(HOST_EXPORTS) \
7370 for flag in $(EXTRA_HOST_FLAGS) ; do \
7371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7372 done; \
22121df0 7373 echo "Doing html in etc"; \
a90ef4bf 7374 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7377 "RANLIB=$${RANLIB}" \
0c24b341 7378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7379 html) \
7380 || exit 1
7381
a90ef4bf 7382@endif etc
6d389afc 7383
a90ef4bf
JM
7384.PHONY: maybe-TAGS-etc TAGS-etc
7385maybe-TAGS-etc:
7386@if etc
7387maybe-TAGS-etc: TAGS-etc
2a4cbe27 7388
a90ef4bf
JM
7389TAGS-etc: \
7390 configure-etc
0aed8855 7391 @: $(MAKE); $(unstage)
a90ef4bf 7392 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7393 r=`${PWD_COMMAND}`; export r; \
7394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7395 $(HOST_EXPORTS) \
b813574b 7396 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7398 done; \
22121df0 7399 echo "Doing TAGS in etc"; \
a90ef4bf 7400 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7403 "RANLIB=$${RANLIB}" \
0c24b341 7404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7405 TAGS) \
2a4cbe27
NN
7406 || exit 1
7407
a90ef4bf 7408@endif etc
2a4cbe27 7409
a90ef4bf
JM
7410.PHONY: maybe-install-info-etc install-info-etc
7411maybe-install-info-etc:
7412@if etc
7413maybe-install-info-etc: install-info-etc
2a4cbe27 7414
a90ef4bf
JM
7415install-info-etc: \
7416 configure-etc \
7417 info-etc
0aed8855 7418 @: $(MAKE); $(unstage)
a90ef4bf 7419 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7420 r=`${PWD_COMMAND}`; export r; \
7421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7422 $(HOST_EXPORTS) \
b813574b 7423 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7425 done; \
22121df0 7426 echo "Doing install-info in etc"; \
a90ef4bf 7427 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7430 "RANLIB=$${RANLIB}" \
0c24b341 7431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7432 install-info) \
2a4cbe27
NN
7433 || exit 1
7434
a90ef4bf 7435@endif etc
2a4cbe27 7436
a90ef4bf
JM
7437.PHONY: maybe-install-pdf-etc install-pdf-etc
7438maybe-install-pdf-etc:
7439@if etc
7440maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7441
a90ef4bf
JM
7442install-pdf-etc: \
7443 configure-etc \
7444 pdf-etc
a3ca38d2 7445 @: $(MAKE); $(unstage)
a90ef4bf 7446 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7447 r=`${PWD_COMMAND}`; export r; \
7448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7449 $(HOST_EXPORTS) \
7450 for flag in $(EXTRA_HOST_FLAGS) ; do \
7451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7452 done; \
22121df0 7453 echo "Doing install-pdf in etc"; \
a90ef4bf 7454 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7457 "RANLIB=$${RANLIB}" \
0c24b341 7458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7459 install-pdf) \
7460 || exit 1
7461
a90ef4bf 7462@endif etc
a3ca38d2 7463
a90ef4bf
JM
7464.PHONY: maybe-install-html-etc install-html-etc
7465maybe-install-html-etc:
7466@if etc
7467maybe-install-html-etc: install-html-etc
108a6f8e 7468
a90ef4bf
JM
7469install-html-etc: \
7470 configure-etc \
7471 html-etc
108a6f8e 7472 @: $(MAKE); $(unstage)
a90ef4bf 7473 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7474 r=`${PWD_COMMAND}`; export r; \
7475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7476 $(HOST_EXPORTS) \
7477 for flag in $(EXTRA_HOST_FLAGS) ; do \
7478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7479 done; \
22121df0 7480 echo "Doing install-html in etc"; \
a90ef4bf 7481 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7484 "RANLIB=$${RANLIB}" \
0c24b341 7485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7486 install-html) \
7487 || exit 1
7488
a90ef4bf 7489@endif etc
108a6f8e 7490
a90ef4bf
JM
7491.PHONY: maybe-installcheck-etc installcheck-etc
7492maybe-installcheck-etc:
7493@if etc
7494maybe-installcheck-etc: installcheck-etc
2a4cbe27 7495
a90ef4bf
JM
7496installcheck-etc: \
7497 configure-etc
0aed8855 7498 @: $(MAKE); $(unstage)
a90ef4bf 7499 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7500 r=`${PWD_COMMAND}`; export r; \
7501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7502 $(HOST_EXPORTS) \
b813574b 7503 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7505 done; \
22121df0 7506 echo "Doing installcheck in etc"; \
a90ef4bf 7507 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7510 "RANLIB=$${RANLIB}" \
0c24b341 7511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7512 installcheck) \
2a4cbe27
NN
7513 || exit 1
7514
a90ef4bf 7515@endif etc
2a4cbe27 7516
a90ef4bf
JM
7517.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7518maybe-mostlyclean-etc:
7519@if etc
7520maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7521
a90ef4bf 7522mostlyclean-etc:
0aed8855 7523 @: $(MAKE); $(unstage)
a90ef4bf 7524 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7525 r=`${PWD_COMMAND}`; export r; \
7526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7527 $(HOST_EXPORTS) \
b813574b 7528 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7530 done; \
22121df0 7531 echo "Doing mostlyclean in etc"; \
a90ef4bf 7532 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7535 "RANLIB=$${RANLIB}" \
0c24b341 7536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7537 mostlyclean) \
2a4cbe27
NN
7538 || exit 1
7539
a90ef4bf 7540@endif etc
2a4cbe27 7541
a90ef4bf
JM
7542.PHONY: maybe-clean-etc clean-etc
7543maybe-clean-etc:
7544@if etc
7545maybe-clean-etc: clean-etc
2a4cbe27 7546
a90ef4bf 7547clean-etc:
0aed8855 7548 @: $(MAKE); $(unstage)
a90ef4bf 7549 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7550 r=`${PWD_COMMAND}`; export r; \
7551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7552 $(HOST_EXPORTS) \
b813574b 7553 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7555 done; \
22121df0 7556 echo "Doing clean in etc"; \
a90ef4bf 7557 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7560 "RANLIB=$${RANLIB}" \
0c24b341 7561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7562 clean) \
2a4cbe27
NN
7563 || exit 1
7564
a90ef4bf 7565@endif etc
2a4cbe27 7566
a90ef4bf
JM
7567.PHONY: maybe-distclean-etc distclean-etc
7568maybe-distclean-etc:
7569@if etc
7570maybe-distclean-etc: distclean-etc
2a4cbe27 7571
a90ef4bf 7572distclean-etc:
0aed8855 7573 @: $(MAKE); $(unstage)
a90ef4bf 7574 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7575 r=`${PWD_COMMAND}`; export r; \
7576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7577 $(HOST_EXPORTS) \
b813574b 7578 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7580 done; \
22121df0 7581 echo "Doing distclean in etc"; \
a90ef4bf 7582 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7585 "RANLIB=$${RANLIB}" \
0c24b341 7586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7587 distclean) \
2a4cbe27
NN
7588 || exit 1
7589
a90ef4bf 7590@endif etc
2a4cbe27 7591
a90ef4bf
JM
7592.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7593maybe-maintainer-clean-etc:
7594@if etc
7595maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7596
a90ef4bf 7597maintainer-clean-etc:
0aed8855 7598 @: $(MAKE); $(unstage)
a90ef4bf 7599 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7600 r=`${PWD_COMMAND}`; export r; \
7601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7602 $(HOST_EXPORTS) \
b813574b 7603 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7605 done; \
22121df0 7606 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7607 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7610 "RANLIB=$${RANLIB}" \
0c24b341 7611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7612 maintainer-clean) \
2a4cbe27
NN
7613 || exit 1
7614
a90ef4bf 7615@endif etc
2a4cbe27 7616
2a4cbe27 7617
a7254363 7618
a90ef4bf
JM
7619.PHONY: configure-fastjar maybe-configure-fastjar
7620maybe-configure-fastjar:
4f0ef2d8 7621@if gcc-bootstrap
a90ef4bf 7622configure-fastjar: stage_current
4f0ef2d8 7623@endif gcc-bootstrap
a90ef4bf
JM
7624@if fastjar
7625maybe-configure-fastjar: configure-fastjar
7626configure-fastjar:
0aed8855 7627 @: $(MAKE); $(unstage)
c52c6897 7628 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7630 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7631 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7632 $(HOST_EXPORTS) \
a90ef4bf
JM
7633 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7634 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7635 case $(srcdir) in \
b00612cc 7636 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7637 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7638 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7639 esac; \
1b6c0831
L
7640 module_srcdir=fastjar; \
7641 $(SHELL) \
7642 $$s/$$module_srcdir/configure \
7643 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7644 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7645 --target=${target_alias} \
4fa63067 7646 || exit 1
a90ef4bf 7647@endif fastjar
4fa63067 7648
a7254363
PB
7649
7650
d545f33b
PB
7651
7652
a90ef4bf
JM
7653.PHONY: all-fastjar maybe-all-fastjar
7654maybe-all-fastjar:
4f0ef2d8 7655@if gcc-bootstrap
a90ef4bf 7656all-fastjar: stage_current
4f0ef2d8 7657@endif gcc-bootstrap
a90ef4bf
JM
7658@if fastjar
7659TARGET-fastjar=all
7660maybe-all-fastjar: all-fastjar
7661all-fastjar: configure-fastjar
0aed8855 7662 @: $(MAKE); $(unstage)
4fa63067
NN
7663 @r=`${PWD_COMMAND}`; export r; \
7664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7665 $(HOST_EXPORTS) \
a90ef4bf 7666 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7667 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7668 $(TARGET-fastjar))
7669@endif fastjar
4fa63067 7670
a7254363 7671
d545f33b
PB
7672
7673
a90ef4bf
JM
7674.PHONY: check-fastjar maybe-check-fastjar
7675maybe-check-fastjar:
7676@if fastjar
7677maybe-check-fastjar: check-fastjar
4fa63067
NN
7678
7679# This module is only tested in a native toolchain.
a90ef4bf 7680check-fastjar:
0aed8855 7681 @: $(MAKE); $(unstage)
22121df0 7682 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7683 r=`${PWD_COMMAND}`; export r; \
7684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7685 $(HOST_EXPORTS) \
a90ef4bf 7686 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7687 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7688 fi
7689
a90ef4bf 7690@endif fastjar
4fa63067 7691
a90ef4bf
JM
7692.PHONY: install-fastjar maybe-install-fastjar
7693maybe-install-fastjar:
7694@if fastjar
7695maybe-install-fastjar: install-fastjar
4fa63067 7696
a90ef4bf 7697install-fastjar: installdirs
0aed8855 7698 @: $(MAKE); $(unstage)
4fa63067
NN
7699 @r=`${PWD_COMMAND}`; export r; \
7700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7701 $(HOST_EXPORTS) \
a90ef4bf 7702 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7703 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7704
a90ef4bf 7705@endif fastjar
4fa63067 7706
a90ef4bf
JM
7707.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7708maybe-install-strip-fastjar:
7709@if fastjar
7710maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7711
a90ef4bf 7712install-strip-fastjar: installdirs
9b980aa1
RW
7713 @: $(MAKE); $(unstage)
7714 @r=`${PWD_COMMAND}`; export r; \
7715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7716 $(HOST_EXPORTS) \
a90ef4bf 7717 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7718 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7719
a90ef4bf 7720@endif fastjar
9b980aa1 7721
56a8fe78 7722# Other targets (info, dvi, pdf, etc.)
4fa63067 7723
a90ef4bf
JM
7724.PHONY: maybe-info-fastjar info-fastjar
7725maybe-info-fastjar:
7726@if fastjar
7727maybe-info-fastjar: info-fastjar
4fa63067 7728
a90ef4bf
JM
7729info-fastjar: \
7730 configure-fastjar
0aed8855 7731 @: $(MAKE); $(unstage)
a90ef4bf 7732 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7733 r=`${PWD_COMMAND}`; export r; \
7734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7735 $(HOST_EXPORTS) \
b813574b 7736 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7738 done; \
22121df0 7739 echo "Doing info in fastjar"; \
a90ef4bf 7740 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7743 "RANLIB=$${RANLIB}" \
0c24b341 7744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7745 info) \
2a4cbe27
NN
7746 || exit 1
7747
a90ef4bf 7748@endif fastjar
2a4cbe27 7749
a90ef4bf
JM
7750.PHONY: maybe-dvi-fastjar dvi-fastjar
7751maybe-dvi-fastjar:
7752@if fastjar
7753maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7754
a90ef4bf
JM
7755dvi-fastjar: \
7756 configure-fastjar
0aed8855 7757 @: $(MAKE); $(unstage)
a90ef4bf 7758 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7759 r=`${PWD_COMMAND}`; export r; \
7760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7761 $(HOST_EXPORTS) \
b813574b 7762 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7764 done; \
22121df0 7765 echo "Doing dvi in fastjar"; \
a90ef4bf 7766 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7769 "RANLIB=$${RANLIB}" \
0c24b341 7770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7771 dvi) \
2a4cbe27
NN
7772 || exit 1
7773
a90ef4bf 7774@endif fastjar
2a4cbe27 7775
a90ef4bf
JM
7776.PHONY: maybe-pdf-fastjar pdf-fastjar
7777maybe-pdf-fastjar:
7778@if fastjar
7779maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7780
a90ef4bf
JM
7781pdf-fastjar: \
7782 configure-fastjar
56a8fe78 7783 @: $(MAKE); $(unstage)
a90ef4bf 7784 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7785 r=`${PWD_COMMAND}`; export r; \
7786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7787 $(HOST_EXPORTS) \
7788 for flag in $(EXTRA_HOST_FLAGS) ; do \
7789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7790 done; \
22121df0 7791 echo "Doing pdf in fastjar"; \
a90ef4bf 7792 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7795 "RANLIB=$${RANLIB}" \
0c24b341 7796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7797 pdf) \
7798 || exit 1
7799
a90ef4bf 7800@endif fastjar
56a8fe78 7801
a90ef4bf
JM
7802.PHONY: maybe-html-fastjar html-fastjar
7803maybe-html-fastjar:
7804@if fastjar
7805maybe-html-fastjar: html-fastjar
6d389afc 7806
a90ef4bf
JM
7807html-fastjar: \
7808 configure-fastjar
0aed8855 7809 @: $(MAKE); $(unstage)
a90ef4bf 7810 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7811 r=`${PWD_COMMAND}`; export r; \
7812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7813 $(HOST_EXPORTS) \
7814 for flag in $(EXTRA_HOST_FLAGS) ; do \
7815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7816 done; \
22121df0 7817 echo "Doing html in fastjar"; \
a90ef4bf 7818 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7821 "RANLIB=$${RANLIB}" \
0c24b341 7822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7823 html) \
7824 || exit 1
7825
a90ef4bf 7826@endif fastjar
6d389afc 7827
a90ef4bf
JM
7828.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7829maybe-TAGS-fastjar:
7830@if fastjar
7831maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7832
a90ef4bf
JM
7833TAGS-fastjar: \
7834 configure-fastjar
0aed8855 7835 @: $(MAKE); $(unstage)
a90ef4bf 7836 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7837 r=`${PWD_COMMAND}`; export r; \
7838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7839 $(HOST_EXPORTS) \
b813574b 7840 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7842 done; \
22121df0 7843 echo "Doing TAGS in fastjar"; \
a90ef4bf 7844 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7847 "RANLIB=$${RANLIB}" \
0c24b341 7848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7849 TAGS) \
2a4cbe27
NN
7850 || exit 1
7851
a90ef4bf 7852@endif fastjar
2a4cbe27 7853
a90ef4bf
JM
7854.PHONY: maybe-install-info-fastjar install-info-fastjar
7855maybe-install-info-fastjar:
7856@if fastjar
7857maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7858
a90ef4bf
JM
7859install-info-fastjar: \
7860 configure-fastjar \
7861 info-fastjar
0aed8855 7862 @: $(MAKE); $(unstage)
a90ef4bf 7863 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7864 r=`${PWD_COMMAND}`; export r; \
7865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7866 $(HOST_EXPORTS) \
b813574b 7867 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7869 done; \
22121df0 7870 echo "Doing install-info in fastjar"; \
a90ef4bf 7871 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7874 "RANLIB=$${RANLIB}" \
0c24b341 7875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7876 install-info) \
2a4cbe27
NN
7877 || exit 1
7878
a90ef4bf 7879@endif fastjar
2a4cbe27 7880
a90ef4bf
JM
7881.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7882maybe-install-pdf-fastjar:
7883@if fastjar
7884maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7885
a90ef4bf
JM
7886install-pdf-fastjar: \
7887 configure-fastjar \
7888 pdf-fastjar
a3ca38d2 7889 @: $(MAKE); $(unstage)
a90ef4bf 7890 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7891 r=`${PWD_COMMAND}`; export r; \
7892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7893 $(HOST_EXPORTS) \
7894 for flag in $(EXTRA_HOST_FLAGS) ; do \
7895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7896 done; \
22121df0 7897 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7898 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7901 "RANLIB=$${RANLIB}" \
0c24b341 7902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7903 install-pdf) \
7904 || exit 1
7905
a90ef4bf 7906@endif fastjar
a3ca38d2 7907
a90ef4bf
JM
7908.PHONY: maybe-install-html-fastjar install-html-fastjar
7909maybe-install-html-fastjar:
7910@if fastjar
7911maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7912
a90ef4bf
JM
7913install-html-fastjar: \
7914 configure-fastjar \
7915 html-fastjar
108a6f8e 7916 @: $(MAKE); $(unstage)
a90ef4bf 7917 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7918 r=`${PWD_COMMAND}`; export r; \
7919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7920 $(HOST_EXPORTS) \
7921 for flag in $(EXTRA_HOST_FLAGS) ; do \
7922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7923 done; \
22121df0 7924 echo "Doing install-html in fastjar"; \
a90ef4bf 7925 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7928 "RANLIB=$${RANLIB}" \
0c24b341 7929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7930 install-html) \
7931 || exit 1
7932
a90ef4bf 7933@endif fastjar
108a6f8e 7934
a90ef4bf
JM
7935.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7936maybe-installcheck-fastjar:
7937@if fastjar
7938maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7939
a90ef4bf
JM
7940installcheck-fastjar: \
7941 configure-fastjar
0aed8855 7942 @: $(MAKE); $(unstage)
a90ef4bf 7943 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7944 r=`${PWD_COMMAND}`; export r; \
7945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7946 $(HOST_EXPORTS) \
b813574b 7947 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7949 done; \
22121df0 7950 echo "Doing installcheck in fastjar"; \
a90ef4bf 7951 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7954 "RANLIB=$${RANLIB}" \
0c24b341 7955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7956 installcheck) \
2a4cbe27
NN
7957 || exit 1
7958
a90ef4bf 7959@endif fastjar
2a4cbe27 7960
a90ef4bf
JM
7961.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7962maybe-mostlyclean-fastjar:
7963@if fastjar
7964maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7965
a90ef4bf 7966mostlyclean-fastjar:
0aed8855 7967 @: $(MAKE); $(unstage)
a90ef4bf 7968 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7969 r=`${PWD_COMMAND}`; export r; \
7970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7971 $(HOST_EXPORTS) \
b813574b 7972 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7974 done; \
22121df0 7975 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 7976 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7979 "RANLIB=$${RANLIB}" \
0c24b341 7980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7981 mostlyclean) \
2a4cbe27
NN
7982 || exit 1
7983
a90ef4bf 7984@endif fastjar
2a4cbe27 7985
a90ef4bf
JM
7986.PHONY: maybe-clean-fastjar clean-fastjar
7987maybe-clean-fastjar:
7988@if fastjar
7989maybe-clean-fastjar: clean-fastjar
2a4cbe27 7990
a90ef4bf 7991clean-fastjar:
0aed8855 7992 @: $(MAKE); $(unstage)
a90ef4bf 7993 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7994 r=`${PWD_COMMAND}`; export r; \
7995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7996 $(HOST_EXPORTS) \
b813574b 7997 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7999 done; \
22121df0 8000 echo "Doing clean in fastjar"; \
a90ef4bf 8001 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8004 "RANLIB=$${RANLIB}" \
0c24b341 8005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8006 clean) \
2a4cbe27
NN
8007 || exit 1
8008
a90ef4bf 8009@endif fastjar
2a4cbe27 8010
a90ef4bf
JM
8011.PHONY: maybe-distclean-fastjar distclean-fastjar
8012maybe-distclean-fastjar:
8013@if fastjar
8014maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 8015
a90ef4bf 8016distclean-fastjar:
0aed8855 8017 @: $(MAKE); $(unstage)
a90ef4bf 8018 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8019 r=`${PWD_COMMAND}`; export r; \
8020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8021 $(HOST_EXPORTS) \
b813574b 8022 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8024 done; \
22121df0 8025 echo "Doing distclean in fastjar"; \
a90ef4bf 8026 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8029 "RANLIB=$${RANLIB}" \
0c24b341 8030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8031 distclean) \
2a4cbe27
NN
8032 || exit 1
8033
a90ef4bf 8034@endif fastjar
2a4cbe27 8035
a90ef4bf
JM
8036.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
8037maybe-maintainer-clean-fastjar:
8038@if fastjar
8039maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
8040
8041maintainer-clean-fastjar:
0aed8855 8042 @: $(MAKE); $(unstage)
a90ef4bf 8043 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8044 r=`${PWD_COMMAND}`; export r; \
8045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8046 $(HOST_EXPORTS) \
b813574b 8047 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8049 done; \
22121df0 8050 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 8051 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8054 "RANLIB=$${RANLIB}" \
0c24b341 8055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8056 maintainer-clean) \
2a4cbe27
NN
8057 || exit 1
8058
a90ef4bf 8059@endif fastjar
2a4cbe27 8060
2a4cbe27 8061
a7254363 8062
a90ef4bf
JM
8063.PHONY: configure-fixincludes maybe-configure-fixincludes
8064maybe-configure-fixincludes:
4f0ef2d8 8065@if gcc-bootstrap
a90ef4bf 8066configure-fixincludes: stage_current
4f0ef2d8 8067@endif gcc-bootstrap
a90ef4bf
JM
8068@if fixincludes
8069maybe-configure-fixincludes: configure-fixincludes
8070configure-fixincludes:
c52c6897 8071 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8073 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8074 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8075 $(HOST_EXPORTS) \
a90ef4bf
JM
8076 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8077 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8078 case $(srcdir) in \
b00612cc 8079 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8080 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8081 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8082 esac; \
1b6c0831
L
8083 module_srcdir=fixincludes; \
8084 $(SHELL) \
8085 $$s/$$module_srcdir/configure \
8086 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8087 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8088 --target=${target_alias} \
4fa63067 8089 || exit 1
a90ef4bf 8090@endif fixincludes
4fa63067 8091
a7254363
PB
8092
8093
201f096f 8094.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8095maybe-configure-stage1-fixincludes:
8096@if fixincludes-bootstrap
8097maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8098configure-stage1-fixincludes:
8099 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8100 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8101 @r=`${PWD_COMMAND}`; export r; \
8102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8103 TFLAGS="$(STAGE1_TFLAGS)"; \
8104 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8105 $(HOST_EXPORTS) \
8106 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8107 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8108 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8109 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8110 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8111 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8112 case $(srcdir) in \
8113 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8114 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8115 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8116 esac; \
1b6c0831
L
8117 module_srcdir=fixincludes; \
8118 $(SHELL) $$s/$$module_srcdir/configure \
8119 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8120 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8121 --target=${target_alias} \
8122 \
201f096f 8123 $(STAGE1_CONFIGURE_FLAGS)
8124@endif fixincludes-bootstrap
8125
8126.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8127maybe-configure-stage2-fixincludes:
8128@if fixincludes-bootstrap
8129maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8130configure-stage2-fixincludes:
8131 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8132 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8133 @r=`${PWD_COMMAND}`; export r; \
8134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8135 TFLAGS="$(STAGE2_TFLAGS)"; \
8136 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8137 $(HOST_EXPORTS) \
8138 $(POSTSTAGE1_HOST_EXPORTS) \
8139 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8140 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8141 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8142 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8143 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8144 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8145 case $(srcdir) in \
8146 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8147 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8148 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8149 esac; \
1b6c0831
L
8150 module_srcdir=fixincludes; \
8151 $(SHELL) $$s/$$module_srcdir/configure \
8152 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8153 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8154 --target=${target_alias} \
22121df0 8155 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8156 $(STAGE2_CONFIGURE_FLAGS)
8157@endif fixincludes-bootstrap
8158
8159.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8160maybe-configure-stage3-fixincludes:
8161@if fixincludes-bootstrap
8162maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8163configure-stage3-fixincludes:
8164 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8165 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8166 @r=`${PWD_COMMAND}`; export r; \
8167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8168 TFLAGS="$(STAGE3_TFLAGS)"; \
8169 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8170 $(HOST_EXPORTS) \
8171 $(POSTSTAGE1_HOST_EXPORTS) \
8172 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8173 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8174 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8175 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8176 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8177 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8178 case $(srcdir) in \
8179 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8180 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8181 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8182 esac; \
1b6c0831
L
8183 module_srcdir=fixincludes; \
8184 $(SHELL) $$s/$$module_srcdir/configure \
8185 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8186 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8187 --target=${target_alias} \
22121df0 8188 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8189 $(STAGE3_CONFIGURE_FLAGS)
8190@endif fixincludes-bootstrap
8191
8192.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8193maybe-configure-stage4-fixincludes:
8194@if fixincludes-bootstrap
8195maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8196configure-stage4-fixincludes:
8197 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8198 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8199 @r=`${PWD_COMMAND}`; export r; \
8200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8201 TFLAGS="$(STAGE4_TFLAGS)"; \
8202 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8203 $(HOST_EXPORTS) \
8204 $(POSTSTAGE1_HOST_EXPORTS) \
8205 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8206 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8207 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8208 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8209 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8210 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8211 case $(srcdir) in \
8212 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8213 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8214 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8215 esac; \
1b6c0831
L
8216 module_srcdir=fixincludes; \
8217 $(SHELL) $$s/$$module_srcdir/configure \
8218 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8219 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8220 --target=${target_alias} \
22121df0 8221 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8222 $(STAGE4_CONFIGURE_FLAGS)
8223@endif fixincludes-bootstrap
8224
8225.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8226maybe-configure-stageprofile-fixincludes:
8227@if fixincludes-bootstrap
8228maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8229configure-stageprofile-fixincludes:
8230 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8231 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8232 @r=`${PWD_COMMAND}`; export r; \
8233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8234 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8235 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8236 $(HOST_EXPORTS) \
8237 $(POSTSTAGE1_HOST_EXPORTS) \
8238 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8239 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8240 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8241 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8242 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8243 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8244 case $(srcdir) in \
8245 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8246 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8247 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8248 esac; \
1b6c0831
L
8249 module_srcdir=fixincludes; \
8250 $(SHELL) $$s/$$module_srcdir/configure \
8251 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8252 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8253 --target=${target_alias} \
22121df0 8254 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8255 $(STAGEprofile_CONFIGURE_FLAGS)
8256@endif fixincludes-bootstrap
8257
8258.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8259maybe-configure-stagefeedback-fixincludes:
8260@if fixincludes-bootstrap
8261maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8262configure-stagefeedback-fixincludes:
8263 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8264 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8265 @r=`${PWD_COMMAND}`; export r; \
8266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8267 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8268 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8269 $(HOST_EXPORTS) \
8270 $(POSTSTAGE1_HOST_EXPORTS) \
8271 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8272 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8273 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8274 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8275 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8276 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8277 case $(srcdir) in \
8278 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8279 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8280 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8281 esac; \
1b6c0831
L
8282 module_srcdir=fixincludes; \
8283 $(SHELL) $$s/$$module_srcdir/configure \
8284 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8285 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8286 --target=${target_alias} \
22121df0 8287 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8288 $(STAGEfeedback_CONFIGURE_FLAGS)
8289@endif fixincludes-bootstrap
8290
8291
8292
d545f33b
PB
8293
8294
a90ef4bf
JM
8295.PHONY: all-fixincludes maybe-all-fixincludes
8296maybe-all-fixincludes:
4f0ef2d8 8297@if gcc-bootstrap
a90ef4bf 8298all-fixincludes: stage_current
4f0ef2d8 8299@endif gcc-bootstrap
a90ef4bf
JM
8300@if fixincludes
8301TARGET-fixincludes=all
8302maybe-all-fixincludes: all-fixincludes
8303all-fixincludes: configure-fixincludes
4fa63067
NN
8304 @r=`${PWD_COMMAND}`; export r; \
8305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8306 $(HOST_EXPORTS) \
a90ef4bf 8307 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8308 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8309 $(TARGET-fixincludes))
8310@endif fixincludes
4fa63067 8311
a7254363 8312
d545f33b 8313
201f096f 8314.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8315.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8316maybe-all-stage1-fixincludes:
8317maybe-clean-stage1-fixincludes:
8318@if fixincludes-bootstrap
8319maybe-all-stage1-fixincludes: all-stage1-fixincludes
8320all-stage1: all-stage1-fixincludes
8321TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8322all-stage1-fixincludes: configure-stage1-fixincludes
8323 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8324 @r=`${PWD_COMMAND}`; export r; \
8325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8326 TFLAGS="$(STAGE1_TFLAGS)"; \
8327 $(HOST_EXPORTS) \
8328 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8329 \
201f096f 8330 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8331 CFLAGS="$(STAGE1_CFLAGS)" \
8332 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8333 LIBCFLAGS="$(LIBCFLAGS)" \
8334 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8335 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8336 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8337 $(EXTRA_HOST_FLAGS) \
8338 $(STAGE1_FLAGS_TO_PASS) \
05a13254 8339 TFLAGS="$(STAGE1_TFLAGS)" \
201f096f 8340 $(TARGET-stage1-fixincludes)
8341
8342maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8343clean-stage1: clean-stage1-fixincludes
8344clean-stage1-fixincludes:
8345 @if [ $(current_stage) = stage1 ]; then \
8346 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8347 else \
8348 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8349 $(MAKE) stage1-start; \
8350 fi; \
8351 cd $(HOST_SUBDIR)/fixincludes && \
8352 $(MAKE) $(EXTRA_HOST_FLAGS) \
8353 $(STAGE1_FLAGS_TO_PASS) clean
8354@endif fixincludes-bootstrap
8355
8356
8357.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8358.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8359maybe-all-stage2-fixincludes:
8360maybe-clean-stage2-fixincludes:
8361@if fixincludes-bootstrap
8362maybe-all-stage2-fixincludes: all-stage2-fixincludes
8363all-stage2: all-stage2-fixincludes
8364TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8365all-stage2-fixincludes: configure-stage2-fixincludes
8366 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8367 @r=`${PWD_COMMAND}`; export r; \
8368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8369 TFLAGS="$(STAGE2_TFLAGS)"; \
8370 $(HOST_EXPORTS) \
8371 $(POSTSTAGE1_HOST_EXPORTS) \
8372 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8373 \
201f096f 8374 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8375 CFLAGS="$(STAGE2_CFLAGS)" \
8376 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8377 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8378 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8379 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8380 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8381 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8382 TFLAGS="$(STAGE2_TFLAGS)" \
201f096f 8383 $(TARGET-stage2-fixincludes)
8384
8385maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8386clean-stage2: clean-stage2-fixincludes
8387clean-stage2-fixincludes:
8388 @if [ $(current_stage) = stage2 ]; then \
8389 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8390 else \
8391 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8392 $(MAKE) stage2-start; \
8393 fi; \
8394 cd $(HOST_SUBDIR)/fixincludes && \
8395 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8396@endif fixincludes-bootstrap
8397
8398
8399.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8400.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8401maybe-all-stage3-fixincludes:
8402maybe-clean-stage3-fixincludes:
8403@if fixincludes-bootstrap
8404maybe-all-stage3-fixincludes: all-stage3-fixincludes
8405all-stage3: all-stage3-fixincludes
8406TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8407all-stage3-fixincludes: configure-stage3-fixincludes
8408 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8409 @r=`${PWD_COMMAND}`; export r; \
8410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8411 TFLAGS="$(STAGE3_TFLAGS)"; \
8412 $(HOST_EXPORTS) \
8413 $(POSTSTAGE1_HOST_EXPORTS) \
8414 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8415 \
201f096f 8416 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8417 CFLAGS="$(STAGE3_CFLAGS)" \
8418 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8419 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8420 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8421 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8422 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8423 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8424 TFLAGS="$(STAGE3_TFLAGS)" \
201f096f 8425 $(TARGET-stage3-fixincludes)
8426
8427maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8428clean-stage3: clean-stage3-fixincludes
8429clean-stage3-fixincludes:
8430 @if [ $(current_stage) = stage3 ]; then \
8431 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8432 else \
8433 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8434 $(MAKE) stage3-start; \
8435 fi; \
8436 cd $(HOST_SUBDIR)/fixincludes && \
8437 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8438@endif fixincludes-bootstrap
8439
8440
8441.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8442.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8443maybe-all-stage4-fixincludes:
8444maybe-clean-stage4-fixincludes:
8445@if fixincludes-bootstrap
8446maybe-all-stage4-fixincludes: all-stage4-fixincludes
8447all-stage4: all-stage4-fixincludes
8448TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8449all-stage4-fixincludes: configure-stage4-fixincludes
8450 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8451 @r=`${PWD_COMMAND}`; export r; \
8452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8453 TFLAGS="$(STAGE4_TFLAGS)"; \
8454 $(HOST_EXPORTS) \
8455 $(POSTSTAGE1_HOST_EXPORTS) \
8456 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8457 \
201f096f 8458 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8459 CFLAGS="$(STAGE4_CFLAGS)" \
8460 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8461 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8462 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8463 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8464 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8465 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8466 TFLAGS="$(STAGE4_TFLAGS)" \
201f096f 8467 $(TARGET-stage4-fixincludes)
8468
8469maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8470clean-stage4: clean-stage4-fixincludes
8471clean-stage4-fixincludes:
8472 @if [ $(current_stage) = stage4 ]; then \
8473 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8474 else \
8475 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8476 $(MAKE) stage4-start; \
8477 fi; \
8478 cd $(HOST_SUBDIR)/fixincludes && \
8479 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8480@endif fixincludes-bootstrap
8481
8482
8483.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8484.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8485maybe-all-stageprofile-fixincludes:
8486maybe-clean-stageprofile-fixincludes:
8487@if fixincludes-bootstrap
8488maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8489all-stageprofile: all-stageprofile-fixincludes
8490TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8491all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8492 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8493 @r=`${PWD_COMMAND}`; export r; \
8494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8495 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8496 $(HOST_EXPORTS) \
8497 $(POSTSTAGE1_HOST_EXPORTS) \
8498 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8499 \
201f096f 8500 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8501 CFLAGS="$(STAGEprofile_CFLAGS)" \
8502 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8503 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8504 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8505 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8506 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8507 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8508 TFLAGS="$(STAGEprofile_TFLAGS)" \
201f096f 8509 $(TARGET-stageprofile-fixincludes)
8510
8511maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8512clean-stageprofile: clean-stageprofile-fixincludes
8513clean-stageprofile-fixincludes:
8514 @if [ $(current_stage) = stageprofile ]; then \
8515 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8516 else \
8517 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8518 $(MAKE) stageprofile-start; \
8519 fi; \
8520 cd $(HOST_SUBDIR)/fixincludes && \
8521 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8522@endif fixincludes-bootstrap
8523
8524
8525.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8526.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8527maybe-all-stagefeedback-fixincludes:
8528maybe-clean-stagefeedback-fixincludes:
8529@if fixincludes-bootstrap
8530maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8531all-stagefeedback: all-stagefeedback-fixincludes
8532TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8533all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8534 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8535 @r=`${PWD_COMMAND}`; export r; \
8536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8537 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8538 $(HOST_EXPORTS) \
8539 $(POSTSTAGE1_HOST_EXPORTS) \
8540 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8541 \
201f096f 8542 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8543 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8544 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8545 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8546 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8547 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8548 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8549 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8550 TFLAGS="$(STAGEfeedback_TFLAGS)" \
201f096f 8551 $(TARGET-stagefeedback-fixincludes)
8552
8553maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8554clean-stagefeedback: clean-stagefeedback-fixincludes
8555clean-stagefeedback-fixincludes:
8556 @if [ $(current_stage) = stagefeedback ]; then \
8557 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8558 else \
8559 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8560 $(MAKE) stagefeedback-start; \
8561 fi; \
8562 cd $(HOST_SUBDIR)/fixincludes && \
8563 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8564@endif fixincludes-bootstrap
8565
8566
8567
8568
d545f33b 8569
a90ef4bf
JM
8570.PHONY: check-fixincludes maybe-check-fixincludes
8571maybe-check-fixincludes:
8572@if fixincludes
8573maybe-check-fixincludes: check-fixincludes
4fa63067 8574
a90ef4bf 8575check-fixincludes:
0aed8855 8576 @: $(MAKE); $(unstage)
4fa63067
NN
8577 @r=`${PWD_COMMAND}`; export r; \
8578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8579 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8580 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8581 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8582
a90ef4bf 8583@endif fixincludes
4fa63067 8584
a90ef4bf
JM
8585.PHONY: install-fixincludes maybe-install-fixincludes
8586maybe-install-fixincludes:
8587@if fixincludes
8588maybe-install-fixincludes: install-fixincludes
4fa63067 8589
a90ef4bf 8590install-fixincludes: installdirs
0aed8855 8591 @: $(MAKE); $(unstage)
4fa63067
NN
8592 @r=`${PWD_COMMAND}`; export r; \
8593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8594 $(HOST_EXPORTS) \
a90ef4bf 8595 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8596 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8597
a90ef4bf 8598@endif fixincludes
4fa63067 8599
a90ef4bf
JM
8600.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8601maybe-install-strip-fixincludes:
8602@if fixincludes
8603maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8604
a90ef4bf 8605install-strip-fixincludes: installdirs
9b980aa1
RW
8606 @: $(MAKE); $(unstage)
8607 @r=`${PWD_COMMAND}`; export r; \
8608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8609 $(HOST_EXPORTS) \
a90ef4bf 8610 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8611 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8612
a90ef4bf 8613@endif fixincludes
9b980aa1 8614
56a8fe78 8615# Other targets (info, dvi, pdf, etc.)
4fa63067 8616
a90ef4bf
JM
8617.PHONY: maybe-info-fixincludes info-fixincludes
8618maybe-info-fixincludes:
8619@if fixincludes
8620maybe-info-fixincludes: info-fixincludes
4fa63067 8621
a90ef4bf
JM
8622info-fixincludes: \
8623 configure-fixincludes
a90ef4bf 8624 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8625 r=`${PWD_COMMAND}`; export r; \
8626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8627 $(HOST_EXPORTS) \
b813574b 8628 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8630 done; \
22121df0 8631 echo "Doing info in fixincludes"; \
a90ef4bf 8632 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8635 "RANLIB=$${RANLIB}" \
0c24b341 8636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8637 info) \
2a4cbe27
NN
8638 || exit 1
8639
a90ef4bf 8640@endif fixincludes
2a4cbe27 8641
a90ef4bf
JM
8642.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8643maybe-dvi-fixincludes:
8644@if fixincludes
8645maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8646
a90ef4bf
JM
8647dvi-fixincludes: \
8648 configure-fixincludes
a90ef4bf 8649 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8650 r=`${PWD_COMMAND}`; export r; \
8651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8652 $(HOST_EXPORTS) \
b813574b 8653 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8655 done; \
22121df0 8656 echo "Doing dvi in fixincludes"; \
a90ef4bf 8657 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8660 "RANLIB=$${RANLIB}" \
0c24b341 8661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8662 dvi) \
2a4cbe27
NN
8663 || exit 1
8664
a90ef4bf 8665@endif fixincludes
2a4cbe27 8666
a90ef4bf
JM
8667.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8668maybe-pdf-fixincludes:
8669@if fixincludes
8670maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8671
a90ef4bf
JM
8672pdf-fixincludes: \
8673 configure-fixincludes
a90ef4bf 8674 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8675 r=`${PWD_COMMAND}`; export r; \
8676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8677 $(HOST_EXPORTS) \
8678 for flag in $(EXTRA_HOST_FLAGS) ; do \
8679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8680 done; \
22121df0 8681 echo "Doing pdf in fixincludes"; \
a90ef4bf 8682 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8685 "RANLIB=$${RANLIB}" \
0c24b341 8686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8687 pdf) \
8688 || exit 1
8689
a90ef4bf 8690@endif fixincludes
56a8fe78 8691
a90ef4bf
JM
8692.PHONY: maybe-html-fixincludes html-fixincludes
8693maybe-html-fixincludes:
8694@if fixincludes
8695maybe-html-fixincludes: html-fixincludes
6d389afc 8696
a90ef4bf
JM
8697html-fixincludes: \
8698 configure-fixincludes
a90ef4bf 8699 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8700 r=`${PWD_COMMAND}`; export r; \
8701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8702 $(HOST_EXPORTS) \
8703 for flag in $(EXTRA_HOST_FLAGS) ; do \
8704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8705 done; \
22121df0 8706 echo "Doing html in fixincludes"; \
a90ef4bf 8707 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8710 "RANLIB=$${RANLIB}" \
0c24b341 8711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8712 html) \
8713 || exit 1
8714
a90ef4bf 8715@endif fixincludes
6d389afc 8716
a90ef4bf
JM
8717.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8718maybe-TAGS-fixincludes:
8719@if fixincludes
8720maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8721
a90ef4bf
JM
8722# fixincludes doesn't support TAGS.
8723TAGS-fixincludes:
2a4cbe27 8724
a90ef4bf 8725@endif fixincludes
2a4cbe27 8726
a90ef4bf
JM
8727.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8728maybe-install-info-fixincludes:
8729@if fixincludes
8730maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8731
a90ef4bf
JM
8732install-info-fixincludes: \
8733 configure-fixincludes \
8734 info-fixincludes
a90ef4bf 8735 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8736 r=`${PWD_COMMAND}`; export r; \
8737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8738 $(HOST_EXPORTS) \
b813574b 8739 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8741 done; \
22121df0 8742 echo "Doing install-info in fixincludes"; \
a90ef4bf 8743 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8746 "RANLIB=$${RANLIB}" \
0c24b341 8747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8748 install-info) \
2a4cbe27
NN
8749 || exit 1
8750
a90ef4bf 8751@endif fixincludes
2a4cbe27 8752
a90ef4bf
JM
8753.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8754maybe-install-pdf-fixincludes:
8755@if fixincludes
8756maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8757
a90ef4bf
JM
8758install-pdf-fixincludes: \
8759 configure-fixincludes \
8760 pdf-fixincludes
a90ef4bf 8761 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8762 r=`${PWD_COMMAND}`; export r; \
8763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8764 $(HOST_EXPORTS) \
8765 for flag in $(EXTRA_HOST_FLAGS) ; do \
8766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8767 done; \
22121df0 8768 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8769 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8772 "RANLIB=$${RANLIB}" \
0c24b341 8773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8774 install-pdf) \
8775 || exit 1
8776
a90ef4bf 8777@endif fixincludes
a3ca38d2 8778
a90ef4bf
JM
8779.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8780maybe-install-html-fixincludes:
8781@if fixincludes
8782maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8783
a90ef4bf
JM
8784install-html-fixincludes: \
8785 configure-fixincludes \
8786 html-fixincludes
a90ef4bf 8787 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8788 r=`${PWD_COMMAND}`; export r; \
8789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8790 $(HOST_EXPORTS) \
8791 for flag in $(EXTRA_HOST_FLAGS) ; do \
8792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8793 done; \
22121df0 8794 echo "Doing install-html in fixincludes"; \
a90ef4bf 8795 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8798 "RANLIB=$${RANLIB}" \
0c24b341 8799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8800 install-html) \
8801 || exit 1
8802
a90ef4bf 8803@endif fixincludes
108a6f8e 8804
a90ef4bf
JM
8805.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8806maybe-installcheck-fixincludes:
8807@if fixincludes
8808maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8809
a90ef4bf
JM
8810installcheck-fixincludes: \
8811 configure-fixincludes
a90ef4bf 8812 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8813 r=`${PWD_COMMAND}`; export r; \
8814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8815 $(HOST_EXPORTS) \
b813574b 8816 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8818 done; \
22121df0 8819 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8820 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8823 "RANLIB=$${RANLIB}" \
0c24b341 8824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8825 installcheck) \
2a4cbe27
NN
8826 || exit 1
8827
a90ef4bf 8828@endif fixincludes
2a4cbe27 8829
a90ef4bf
JM
8830.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8831maybe-mostlyclean-fixincludes:
8832@if fixincludes
8833maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8834
a90ef4bf 8835mostlyclean-fixincludes:
a90ef4bf 8836 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8837 r=`${PWD_COMMAND}`; export r; \
8838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8839 $(HOST_EXPORTS) \
b813574b 8840 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8842 done; \
22121df0 8843 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8844 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8847 "RANLIB=$${RANLIB}" \
0c24b341 8848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8849 mostlyclean) \
2a4cbe27
NN
8850 || exit 1
8851
a90ef4bf 8852@endif fixincludes
2a4cbe27 8853
a90ef4bf
JM
8854.PHONY: maybe-clean-fixincludes clean-fixincludes
8855maybe-clean-fixincludes:
8856@if fixincludes
8857maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8858
a90ef4bf 8859clean-fixincludes:
a90ef4bf 8860 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8861 r=`${PWD_COMMAND}`; export r; \
8862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8863 $(HOST_EXPORTS) \
b813574b 8864 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8866 done; \
22121df0 8867 echo "Doing clean in fixincludes"; \
a90ef4bf 8868 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8871 "RANLIB=$${RANLIB}" \
0c24b341 8872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8873 clean) \
2a4cbe27
NN
8874 || exit 1
8875
a90ef4bf 8876@endif fixincludes
2a4cbe27 8877
a90ef4bf
JM
8878.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8879maybe-distclean-fixincludes:
8880@if fixincludes
8881maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8882
a90ef4bf 8883distclean-fixincludes:
a90ef4bf 8884 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8885 r=`${PWD_COMMAND}`; export r; \
8886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8887 $(HOST_EXPORTS) \
b813574b 8888 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8890 done; \
22121df0 8891 echo "Doing distclean in fixincludes"; \
a90ef4bf 8892 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8895 "RANLIB=$${RANLIB}" \
0c24b341 8896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8897 distclean) \
2a4cbe27
NN
8898 || exit 1
8899
a90ef4bf 8900@endif fixincludes
2a4cbe27 8901
a90ef4bf
JM
8902.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8903maybe-maintainer-clean-fixincludes:
8904@if fixincludes
8905maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8906
a90ef4bf 8907maintainer-clean-fixincludes:
a90ef4bf 8908 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8909 r=`${PWD_COMMAND}`; export r; \
8910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8911 $(HOST_EXPORTS) \
b813574b 8912 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8914 done; \
22121df0 8915 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8916 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8919 "RANLIB=$${RANLIB}" \
0c24b341 8920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8921 maintainer-clean) \
2a4cbe27
NN
8922 || exit 1
8923
a90ef4bf 8924@endif fixincludes
2a4cbe27 8925
2a4cbe27 8926
a7254363 8927
a90ef4bf
JM
8928.PHONY: configure-flex maybe-configure-flex
8929maybe-configure-flex:
f9806fa5 8930@if gcc-bootstrap
a90ef4bf 8931configure-flex: stage_current
f9806fa5 8932@endif gcc-bootstrap
a90ef4bf
JM
8933@if flex
8934maybe-configure-flex: configure-flex
8935configure-flex:
f9806fa5
DE
8936 @: $(MAKE); $(unstage)
8937 @r=`${PWD_COMMAND}`; export r; \
8938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8939 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8940 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 8941 $(HOST_EXPORTS) \
a90ef4bf
JM
8942 echo Configuring in $(HOST_SUBDIR)/flex; \
8943 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8944 case $(srcdir) in \
8945 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8946 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8947 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8948 esac; \
1b6c0831
L
8949 module_srcdir=flex; \
8950 $(SHELL) \
8951 $$s/$$module_srcdir/configure \
8952 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8953 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8954 --target=${target_alias} \
f9806fa5 8955 || exit 1
a90ef4bf 8956@endif flex
f9806fa5
DE
8957
8958
8959
8960
8961
a90ef4bf
JM
8962.PHONY: all-flex maybe-all-flex
8963maybe-all-flex:
f9806fa5 8964@if gcc-bootstrap
a90ef4bf 8965all-flex: stage_current
f9806fa5 8966@endif gcc-bootstrap
a90ef4bf
JM
8967@if flex
8968TARGET-flex=all
8969maybe-all-flex: all-flex
8970all-flex: configure-flex
f9806fa5
DE
8971 @: $(MAKE); $(unstage)
8972 @r=`${PWD_COMMAND}`; export r; \
8973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8974 $(HOST_EXPORTS) \
a90ef4bf 8975 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8976 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8977 $(TARGET-flex))
8978@endif flex
f9806fa5
DE
8979
8980
8981
8982
a90ef4bf
JM
8983.PHONY: check-flex maybe-check-flex
8984maybe-check-flex:
8985@if flex
8986maybe-check-flex: check-flex
f9806fa5 8987
a90ef4bf
JM
8988# This module is only tested in a native toolchain.
8989check-flex:
f9806fa5 8990 @: $(MAKE); $(unstage)
22121df0 8991 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
8992 r=`${PWD_COMMAND}`; export r; \
8993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8994 $(HOST_EXPORTS) \
a90ef4bf 8995 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8996 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8997 fi
f9806fa5 8998
a90ef4bf 8999@endif flex
f9806fa5 9000
a90ef4bf
JM
9001.PHONY: install-flex maybe-install-flex
9002maybe-install-flex:
9003@if flex
9004maybe-install-flex: install-flex
f9806fa5 9005
a90ef4bf 9006install-flex: installdirs
f9806fa5
DE
9007 @: $(MAKE); $(unstage)
9008 @r=`${PWD_COMMAND}`; export r; \
9009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9010 $(HOST_EXPORTS) \
a90ef4bf 9011 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9012 $(MAKE) $(FLAGS_TO_PASS) install)
9013
a90ef4bf 9014@endif flex
f9806fa5 9015
a90ef4bf
JM
9016.PHONY: install-strip-flex maybe-install-strip-flex
9017maybe-install-strip-flex:
9018@if flex
9019maybe-install-strip-flex: install-strip-flex
9b980aa1 9020
a90ef4bf 9021install-strip-flex: installdirs
9b980aa1
RW
9022 @: $(MAKE); $(unstage)
9023 @r=`${PWD_COMMAND}`; export r; \
9024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9025 $(HOST_EXPORTS) \
a90ef4bf 9026 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
9027 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9028
a90ef4bf 9029@endif flex
9b980aa1 9030
f9806fa5
DE
9031# Other targets (info, dvi, pdf, etc.)
9032
a90ef4bf
JM
9033.PHONY: maybe-info-flex info-flex
9034maybe-info-flex:
9035@if flex
9036maybe-info-flex: info-flex
f9806fa5 9037
a90ef4bf
JM
9038info-flex: \
9039 configure-flex
f9806fa5 9040 @: $(MAKE); $(unstage)
a90ef4bf 9041 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9042 r=`${PWD_COMMAND}`; export r; \
9043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9044 $(HOST_EXPORTS) \
9045 for flag in $(EXTRA_HOST_FLAGS) ; do \
9046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9047 done; \
22121df0 9048 echo "Doing info in flex"; \
a90ef4bf 9049 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9052 "RANLIB=$${RANLIB}" \
9053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9054 info) \
9055 || exit 1
9056
a90ef4bf 9057@endif flex
f9806fa5 9058
a90ef4bf
JM
9059.PHONY: maybe-dvi-flex dvi-flex
9060maybe-dvi-flex:
9061@if flex
9062maybe-dvi-flex: dvi-flex
f9806fa5 9063
a90ef4bf
JM
9064dvi-flex: \
9065 configure-flex
f9806fa5 9066 @: $(MAKE); $(unstage)
a90ef4bf 9067 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9068 r=`${PWD_COMMAND}`; export r; \
9069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9070 $(HOST_EXPORTS) \
9071 for flag in $(EXTRA_HOST_FLAGS) ; do \
9072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9073 done; \
22121df0 9074 echo "Doing dvi in flex"; \
a90ef4bf 9075 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9078 "RANLIB=$${RANLIB}" \
9079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9080 dvi) \
9081 || exit 1
9082
a90ef4bf 9083@endif flex
f9806fa5 9084
a90ef4bf
JM
9085.PHONY: maybe-pdf-flex pdf-flex
9086maybe-pdf-flex:
9087@if flex
9088maybe-pdf-flex: pdf-flex
f9806fa5 9089
a90ef4bf
JM
9090pdf-flex: \
9091 configure-flex
f9806fa5 9092 @: $(MAKE); $(unstage)
a90ef4bf 9093 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9094 r=`${PWD_COMMAND}`; export r; \
9095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9096 $(HOST_EXPORTS) \
9097 for flag in $(EXTRA_HOST_FLAGS) ; do \
9098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9099 done; \
22121df0 9100 echo "Doing pdf in flex"; \
a90ef4bf 9101 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9104 "RANLIB=$${RANLIB}" \
9105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9106 pdf) \
9107 || exit 1
9108
a90ef4bf 9109@endif flex
f9806fa5 9110
a90ef4bf
JM
9111.PHONY: maybe-html-flex html-flex
9112maybe-html-flex:
9113@if flex
9114maybe-html-flex: html-flex
f9806fa5 9115
a90ef4bf
JM
9116html-flex: \
9117 configure-flex
f9806fa5 9118 @: $(MAKE); $(unstage)
a90ef4bf 9119 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9120 r=`${PWD_COMMAND}`; export r; \
9121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9122 $(HOST_EXPORTS) \
9123 for flag in $(EXTRA_HOST_FLAGS) ; do \
9124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9125 done; \
22121df0 9126 echo "Doing html in flex"; \
a90ef4bf 9127 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9130 "RANLIB=$${RANLIB}" \
9131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9132 html) \
9133 || exit 1
9134
a90ef4bf 9135@endif flex
f9806fa5 9136
a90ef4bf
JM
9137.PHONY: maybe-TAGS-flex TAGS-flex
9138maybe-TAGS-flex:
9139@if flex
9140maybe-TAGS-flex: TAGS-flex
f9806fa5 9141
a90ef4bf
JM
9142TAGS-flex: \
9143 configure-flex
f9806fa5 9144 @: $(MAKE); $(unstage)
a90ef4bf 9145 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9146 r=`${PWD_COMMAND}`; export r; \
9147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9148 $(HOST_EXPORTS) \
9149 for flag in $(EXTRA_HOST_FLAGS) ; do \
9150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9151 done; \
22121df0 9152 echo "Doing TAGS in flex"; \
a90ef4bf 9153 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9156 "RANLIB=$${RANLIB}" \
9157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9158 TAGS) \
9159 || exit 1
9160
a90ef4bf 9161@endif flex
f9806fa5 9162
a90ef4bf
JM
9163.PHONY: maybe-install-info-flex install-info-flex
9164maybe-install-info-flex:
9165@if flex
9166maybe-install-info-flex: install-info-flex
f9806fa5 9167
a90ef4bf
JM
9168install-info-flex: \
9169 configure-flex \
9170 info-flex
f9806fa5 9171 @: $(MAKE); $(unstage)
a90ef4bf 9172 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9173 r=`${PWD_COMMAND}`; export r; \
9174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9175 $(HOST_EXPORTS) \
9176 for flag in $(EXTRA_HOST_FLAGS) ; do \
9177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9178 done; \
22121df0 9179 echo "Doing install-info in flex"; \
a90ef4bf 9180 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9183 "RANLIB=$${RANLIB}" \
9184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9185 install-info) \
9186 || exit 1
9187
a90ef4bf 9188@endif flex
f9806fa5 9189
a90ef4bf
JM
9190.PHONY: maybe-install-pdf-flex install-pdf-flex
9191maybe-install-pdf-flex:
9192@if flex
9193maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9194
a90ef4bf
JM
9195install-pdf-flex: \
9196 configure-flex \
9197 pdf-flex
f9806fa5 9198 @: $(MAKE); $(unstage)
a90ef4bf 9199 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9200 r=`${PWD_COMMAND}`; export r; \
9201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9202 $(HOST_EXPORTS) \
9203 for flag in $(EXTRA_HOST_FLAGS) ; do \
9204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9205 done; \
22121df0 9206 echo "Doing install-pdf in flex"; \
a90ef4bf 9207 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9210 "RANLIB=$${RANLIB}" \
9211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9212 install-pdf) \
9213 || exit 1
9214
a90ef4bf 9215@endif flex
f9806fa5 9216
a90ef4bf
JM
9217.PHONY: maybe-install-html-flex install-html-flex
9218maybe-install-html-flex:
9219@if flex
9220maybe-install-html-flex: install-html-flex
f9806fa5 9221
a90ef4bf
JM
9222install-html-flex: \
9223 configure-flex \
9224 html-flex
f9806fa5 9225 @: $(MAKE); $(unstage)
a90ef4bf 9226 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9227 r=`${PWD_COMMAND}`; export r; \
9228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9229 $(HOST_EXPORTS) \
9230 for flag in $(EXTRA_HOST_FLAGS) ; do \
9231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9232 done; \
22121df0 9233 echo "Doing install-html in flex"; \
a90ef4bf 9234 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9237 "RANLIB=$${RANLIB}" \
9238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9239 install-html) \
9240 || exit 1
9241
a90ef4bf 9242@endif flex
f9806fa5 9243
a90ef4bf
JM
9244.PHONY: maybe-installcheck-flex installcheck-flex
9245maybe-installcheck-flex:
9246@if flex
9247maybe-installcheck-flex: installcheck-flex
f9806fa5 9248
a90ef4bf
JM
9249installcheck-flex: \
9250 configure-flex
f9806fa5 9251 @: $(MAKE); $(unstage)
a90ef4bf 9252 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9253 r=`${PWD_COMMAND}`; export r; \
9254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9255 $(HOST_EXPORTS) \
9256 for flag in $(EXTRA_HOST_FLAGS) ; do \
9257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9258 done; \
22121df0 9259 echo "Doing installcheck in flex"; \
a90ef4bf 9260 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9263 "RANLIB=$${RANLIB}" \
9264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9265 installcheck) \
9266 || exit 1
9267
a90ef4bf 9268@endif flex
f9806fa5 9269
a90ef4bf
JM
9270.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9271maybe-mostlyclean-flex:
9272@if flex
9273maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9274
a90ef4bf 9275mostlyclean-flex:
f9806fa5 9276 @: $(MAKE); $(unstage)
a90ef4bf 9277 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9278 r=`${PWD_COMMAND}`; export r; \
9279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9280 $(HOST_EXPORTS) \
9281 for flag in $(EXTRA_HOST_FLAGS) ; do \
9282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9283 done; \
22121df0 9284 echo "Doing mostlyclean in flex"; \
a90ef4bf 9285 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9288 "RANLIB=$${RANLIB}" \
9289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9290 mostlyclean) \
9291 || exit 1
9292
a90ef4bf 9293@endif flex
f9806fa5 9294
a90ef4bf
JM
9295.PHONY: maybe-clean-flex clean-flex
9296maybe-clean-flex:
9297@if flex
9298maybe-clean-flex: clean-flex
f9806fa5 9299
a90ef4bf 9300clean-flex:
f9806fa5 9301 @: $(MAKE); $(unstage)
a90ef4bf 9302 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9303 r=`${PWD_COMMAND}`; export r; \
9304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9305 $(HOST_EXPORTS) \
9306 for flag in $(EXTRA_HOST_FLAGS) ; do \
9307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9308 done; \
22121df0 9309 echo "Doing clean in flex"; \
a90ef4bf 9310 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9313 "RANLIB=$${RANLIB}" \
9314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9315 clean) \
9316 || exit 1
9317
a90ef4bf 9318@endif flex
f9806fa5 9319
a90ef4bf
JM
9320.PHONY: maybe-distclean-flex distclean-flex
9321maybe-distclean-flex:
9322@if flex
9323maybe-distclean-flex: distclean-flex
f9806fa5 9324
a90ef4bf 9325distclean-flex:
f9806fa5 9326 @: $(MAKE); $(unstage)
a90ef4bf 9327 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9328 r=`${PWD_COMMAND}`; export r; \
9329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9330 $(HOST_EXPORTS) \
9331 for flag in $(EXTRA_HOST_FLAGS) ; do \
9332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9333 done; \
22121df0 9334 echo "Doing distclean in flex"; \
a90ef4bf 9335 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9338 "RANLIB=$${RANLIB}" \
9339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9340 distclean) \
9341 || exit 1
9342
a90ef4bf 9343@endif flex
f9806fa5 9344
a90ef4bf
JM
9345.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9346maybe-maintainer-clean-flex:
9347@if flex
9348maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9349
a90ef4bf 9350maintainer-clean-flex:
f9806fa5 9351 @: $(MAKE); $(unstage)
a90ef4bf 9352 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9353 r=`${PWD_COMMAND}`; export r; \
9354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9355 $(HOST_EXPORTS) \
9356 for flag in $(EXTRA_HOST_FLAGS) ; do \
9357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9358 done; \
22121df0 9359 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9360 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9363 "RANLIB=$${RANLIB}" \
9364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9365 maintainer-clean) \
9366 || exit 1
9367
a90ef4bf 9368@endif flex
f9806fa5
DE
9369
9370
9371
a90ef4bf
JM
9372.PHONY: configure-gas maybe-configure-gas
9373maybe-configure-gas:
4f0ef2d8 9374@if gcc-bootstrap
a90ef4bf 9375configure-gas: stage_current
4f0ef2d8 9376@endif gcc-bootstrap
a90ef4bf
JM
9377@if gas
9378maybe-configure-gas: configure-gas
9379configure-gas:
c52c6897 9380 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9382 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9383 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9384 $(HOST_EXPORTS) \
a90ef4bf
JM
9385 echo Configuring in $(HOST_SUBDIR)/gas; \
9386 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9387 case $(srcdir) in \
b00612cc 9388 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9389 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9390 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9391 esac; \
1b6c0831
L
9392 module_srcdir=gas; \
9393 $(SHELL) \
9394 $$s/$$module_srcdir/configure \
9395 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9396 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9397 --target=${target_alias} \
4fa63067 9398 || exit 1
a90ef4bf 9399@endif gas
a7254363 9400
d545f33b
PB
9401
9402
a90ef4bf
JM
9403.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9404maybe-configure-stage1-gas:
9405@if gas-bootstrap
9406maybe-configure-stage1-gas: configure-stage1-gas
9407configure-stage1-gas:
9408 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9409 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9410 @r=`${PWD_COMMAND}`; export r; \
9411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9412 TFLAGS="$(STAGE1_TFLAGS)"; \
9413 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9414 $(HOST_EXPORTS) \
9415 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9416 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9417 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9418 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9419 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9420 cd $(HOST_SUBDIR)/gas || exit 1; \
9421 case $(srcdir) in \
9422 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9423 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9424 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9425 esac; \
1b6c0831
L
9426 module_srcdir=gas; \
9427 $(SHELL) $$s/$$module_srcdir/configure \
9428 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9429 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9430 --target=${target_alias} \
9431 \
a90ef4bf
JM
9432 $(STAGE1_CONFIGURE_FLAGS)
9433@endif gas-bootstrap
4fa63067 9434
a90ef4bf
JM
9435.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9436maybe-configure-stage2-gas:
9437@if gas-bootstrap
9438maybe-configure-stage2-gas: configure-stage2-gas
9439configure-stage2-gas:
9440 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9441 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9442 @r=`${PWD_COMMAND}`; export r; \
9443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9444 TFLAGS="$(STAGE2_TFLAGS)"; \
9445 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9446 $(HOST_EXPORTS) \
a90ef4bf
JM
9447 $(POSTSTAGE1_HOST_EXPORTS) \
9448 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9449 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9450 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9451 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9452 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9453 cd $(HOST_SUBDIR)/gas || exit 1; \
9454 case $(srcdir) in \
9455 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9456 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9457 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9458 esac; \
1b6c0831
L
9459 module_srcdir=gas; \
9460 $(SHELL) $$s/$$module_srcdir/configure \
9461 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9462 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9463 --target=${target_alias} \
22121df0 9464 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9465 $(STAGE2_CONFIGURE_FLAGS)
9466@endif gas-bootstrap
4fa63067 9467
a90ef4bf
JM
9468.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9469maybe-configure-stage3-gas:
9470@if gas-bootstrap
9471maybe-configure-stage3-gas: configure-stage3-gas
9472configure-stage3-gas:
9473 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9474 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9475 @r=`${PWD_COMMAND}`; export r; \
9476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9477 TFLAGS="$(STAGE3_TFLAGS)"; \
9478 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9479 $(HOST_EXPORTS) \
a90ef4bf
JM
9480 $(POSTSTAGE1_HOST_EXPORTS) \
9481 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9482 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9483 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9484 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9485 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9486 cd $(HOST_SUBDIR)/gas || exit 1; \
9487 case $(srcdir) in \
9488 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9489 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9490 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9491 esac; \
1b6c0831
L
9492 module_srcdir=gas; \
9493 $(SHELL) $$s/$$module_srcdir/configure \
9494 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9495 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9496 --target=${target_alias} \
22121df0 9497 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9498 $(STAGE3_CONFIGURE_FLAGS)
9499@endif gas-bootstrap
9b980aa1 9500
a90ef4bf
JM
9501.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9502maybe-configure-stage4-gas:
9503@if gas-bootstrap
9504maybe-configure-stage4-gas: configure-stage4-gas
9505configure-stage4-gas:
9506 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9507 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9508 @r=`${PWD_COMMAND}`; export r; \
9509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9510 TFLAGS="$(STAGE4_TFLAGS)"; \
9511 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9512 $(HOST_EXPORTS) \
a90ef4bf
JM
9513 $(POSTSTAGE1_HOST_EXPORTS) \
9514 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9515 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9516 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9517 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9518 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9519 cd $(HOST_SUBDIR)/gas || exit 1; \
9520 case $(srcdir) in \
9521 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9522 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9523 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9524 esac; \
1b6c0831
L
9525 module_srcdir=gas; \
9526 $(SHELL) $$s/$$module_srcdir/configure \
9527 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9528 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9529 --target=${target_alias} \
22121df0 9530 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9531 $(STAGE4_CONFIGURE_FLAGS)
9532@endif gas-bootstrap
4fa63067 9533
a90ef4bf
JM
9534.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9535maybe-configure-stageprofile-gas:
9536@if gas-bootstrap
9537maybe-configure-stageprofile-gas: configure-stageprofile-gas
9538configure-stageprofile-gas:
9539 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9540 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9541 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9543 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9544 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9545 $(HOST_EXPORTS) \
a90ef4bf
JM
9546 $(POSTSTAGE1_HOST_EXPORTS) \
9547 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9548 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9549 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9550 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9551 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9552 cd $(HOST_SUBDIR)/gas || exit 1; \
9553 case $(srcdir) in \
9554 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9555 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9556 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9557 esac; \
1b6c0831
L
9558 module_srcdir=gas; \
9559 $(SHELL) $$s/$$module_srcdir/configure \
9560 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9561 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9562 --target=${target_alias} \
22121df0 9563 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9564 $(STAGEprofile_CONFIGURE_FLAGS)
9565@endif gas-bootstrap
2a4cbe27 9566
a90ef4bf
JM
9567.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9568maybe-configure-stagefeedback-gas:
9569@if gas-bootstrap
9570maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9571configure-stagefeedback-gas:
9572 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9573 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9574 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9576 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9577 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9578 $(HOST_EXPORTS) \
a90ef4bf
JM
9579 $(POSTSTAGE1_HOST_EXPORTS) \
9580 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9581 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9582 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9583 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9584 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9585 cd $(HOST_SUBDIR)/gas || exit 1; \
9586 case $(srcdir) in \
9587 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9588 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9589 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9590 esac; \
1b6c0831
L
9591 module_srcdir=gas; \
9592 $(SHELL) $$s/$$module_srcdir/configure \
9593 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9594 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9595 --target=${target_alias} \
22121df0 9596 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9597 $(STAGEfeedback_CONFIGURE_FLAGS)
9598@endif gas-bootstrap
2a4cbe27 9599
56a8fe78 9600
56a8fe78 9601
56a8fe78 9602
6d389afc 9603
a90ef4bf
JM
9604.PHONY: all-gas maybe-all-gas
9605maybe-all-gas:
9606@if gcc-bootstrap
9607all-gas: stage_current
9608@endif gcc-bootstrap
9609@if gas
9610TARGET-gas=all
9611maybe-all-gas: all-gas
9612all-gas: configure-gas
9613 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9615 $(HOST_EXPORTS) \
9616 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9617 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9618 $(TARGET-gas))
9619@endif gas
6d389afc 9620
6d389afc 9621
2a4cbe27 9622
a90ef4bf
JM
9623.PHONY: all-stage1-gas maybe-all-stage1-gas
9624.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9625maybe-all-stage1-gas:
9626maybe-clean-stage1-gas:
9627@if gas-bootstrap
9628maybe-all-stage1-gas: all-stage1-gas
9629all-stage1: all-stage1-gas
9630TARGET-stage1-gas = $(TARGET-gas)
9631all-stage1-gas: configure-stage1-gas
9632 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9633 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9635 TFLAGS="$(STAGE1_TFLAGS)"; \
9636 $(HOST_EXPORTS) \
9637 cd $(HOST_SUBDIR)/gas && \
05a13254 9638 \
a90ef4bf
JM
9639 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9640 CFLAGS="$(STAGE1_CFLAGS)" \
9641 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9642 LIBCFLAGS="$(LIBCFLAGS)" \
9643 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9644 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9645 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9646 $(EXTRA_HOST_FLAGS) \
9647 $(STAGE1_FLAGS_TO_PASS) \
05a13254 9648 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 9649 $(TARGET-stage1-gas)
2a4cbe27 9650
a90ef4bf
JM
9651maybe-clean-stage1-gas: clean-stage1-gas
9652clean-stage1: clean-stage1-gas
9653clean-stage1-gas:
9654 @if [ $(current_stage) = stage1 ]; then \
9655 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9656 else \
9657 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9658 $(MAKE) stage1-start; \
9659 fi; \
9660 cd $(HOST_SUBDIR)/gas && \
9661 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9662 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9663@endif gas-bootstrap
2a4cbe27 9664
2a4cbe27 9665
a90ef4bf
JM
9666.PHONY: all-stage2-gas maybe-all-stage2-gas
9667.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9668maybe-all-stage2-gas:
9669maybe-clean-stage2-gas:
9670@if gas-bootstrap
9671maybe-all-stage2-gas: all-stage2-gas
9672all-stage2: all-stage2-gas
9673TARGET-stage2-gas = $(TARGET-gas)
9674all-stage2-gas: configure-stage2-gas
9675 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9676 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9678 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9679 $(HOST_EXPORTS) \
a90ef4bf
JM
9680 $(POSTSTAGE1_HOST_EXPORTS) \
9681 cd $(HOST_SUBDIR)/gas && \
05a13254 9682 \
a90ef4bf
JM
9683 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9684 CFLAGS="$(STAGE2_CFLAGS)" \
9685 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9686 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9687 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9688 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9689 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9690 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9691 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 9692 $(TARGET-stage2-gas)
2a4cbe27 9693
a90ef4bf
JM
9694maybe-clean-stage2-gas: clean-stage2-gas
9695clean-stage2: clean-stage2-gas
9696clean-stage2-gas:
9697 @if [ $(current_stage) = stage2 ]; then \
9698 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9699 else \
9700 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9701 $(MAKE) stage2-start; \
9702 fi; \
9703 cd $(HOST_SUBDIR)/gas && \
b3676d82 9704 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9705@endif gas-bootstrap
2a4cbe27 9706
2a4cbe27 9707
a90ef4bf
JM
9708.PHONY: all-stage3-gas maybe-all-stage3-gas
9709.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9710maybe-all-stage3-gas:
9711maybe-clean-stage3-gas:
9712@if gas-bootstrap
9713maybe-all-stage3-gas: all-stage3-gas
9714all-stage3: all-stage3-gas
9715TARGET-stage3-gas = $(TARGET-gas)
9716all-stage3-gas: configure-stage3-gas
9717 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9718 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9720 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9721 $(HOST_EXPORTS) \
a90ef4bf
JM
9722 $(POSTSTAGE1_HOST_EXPORTS) \
9723 cd $(HOST_SUBDIR)/gas && \
05a13254 9724 \
a90ef4bf
JM
9725 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9726 CFLAGS="$(STAGE3_CFLAGS)" \
9727 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9728 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9729 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9730 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9731 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9732 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9733 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 9734 $(TARGET-stage3-gas)
2a4cbe27 9735
a90ef4bf
JM
9736maybe-clean-stage3-gas: clean-stage3-gas
9737clean-stage3: clean-stage3-gas
9738clean-stage3-gas:
9739 @if [ $(current_stage) = stage3 ]; then \
9740 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9741 else \
9742 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9743 $(MAKE) stage3-start; \
9744 fi; \
9745 cd $(HOST_SUBDIR)/gas && \
b3676d82 9746 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9747@endif gas-bootstrap
2a4cbe27 9748
2a4cbe27 9749
a90ef4bf
JM
9750.PHONY: all-stage4-gas maybe-all-stage4-gas
9751.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9752maybe-all-stage4-gas:
9753maybe-clean-stage4-gas:
9754@if gas-bootstrap
9755maybe-all-stage4-gas: all-stage4-gas
9756all-stage4: all-stage4-gas
9757TARGET-stage4-gas = $(TARGET-gas)
9758all-stage4-gas: configure-stage4-gas
9759 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9760 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9762 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9763 $(HOST_EXPORTS) \
a90ef4bf
JM
9764 $(POSTSTAGE1_HOST_EXPORTS) \
9765 cd $(HOST_SUBDIR)/gas && \
05a13254 9766 \
a90ef4bf
JM
9767 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9768 CFLAGS="$(STAGE4_CFLAGS)" \
9769 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9770 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9771 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9772 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9773 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9774 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9775 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 9776 $(TARGET-stage4-gas)
2a4cbe27 9777
a90ef4bf
JM
9778maybe-clean-stage4-gas: clean-stage4-gas
9779clean-stage4: clean-stage4-gas
9780clean-stage4-gas:
9781 @if [ $(current_stage) = stage4 ]; then \
9782 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9783 else \
9784 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9785 $(MAKE) stage4-start; \
9786 fi; \
9787 cd $(HOST_SUBDIR)/gas && \
b3676d82 9788 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9789@endif gas-bootstrap
2a4cbe27 9790
2a4cbe27 9791
a90ef4bf
JM
9792.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9793.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9794maybe-all-stageprofile-gas:
9795maybe-clean-stageprofile-gas:
9796@if gas-bootstrap
9797maybe-all-stageprofile-gas: all-stageprofile-gas
9798all-stageprofile: all-stageprofile-gas
9799TARGET-stageprofile-gas = $(TARGET-gas)
9800all-stageprofile-gas: configure-stageprofile-gas
9801 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9802 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9804 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9805 $(HOST_EXPORTS) \
a90ef4bf
JM
9806 $(POSTSTAGE1_HOST_EXPORTS) \
9807 cd $(HOST_SUBDIR)/gas && \
05a13254 9808 \
a90ef4bf
JM
9809 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9810 CFLAGS="$(STAGEprofile_CFLAGS)" \
9811 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9812 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9813 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9814 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9815 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9816 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9817 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 9818 $(TARGET-stageprofile-gas)
4fa63067 9819
a90ef4bf
JM
9820maybe-clean-stageprofile-gas: clean-stageprofile-gas
9821clean-stageprofile: clean-stageprofile-gas
9822clean-stageprofile-gas:
9823 @if [ $(current_stage) = stageprofile ]; then \
9824 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9825 else \
9826 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9827 $(MAKE) stageprofile-start; \
9828 fi; \
9829 cd $(HOST_SUBDIR)/gas && \
b3676d82 9830 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9831@endif gas-bootstrap
4fa63067 9832
a7254363 9833
a90ef4bf
JM
9834.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9835.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9836maybe-all-stagefeedback-gas:
9837maybe-clean-stagefeedback-gas:
9838@if gas-bootstrap
9839maybe-all-stagefeedback-gas: all-stagefeedback-gas
9840all-stagefeedback: all-stagefeedback-gas
9841TARGET-stagefeedback-gas = $(TARGET-gas)
9842all-stagefeedback-gas: configure-stagefeedback-gas
9843 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9844 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9846 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9847 $(HOST_EXPORTS) \
9848 $(POSTSTAGE1_HOST_EXPORTS) \
9849 cd $(HOST_SUBDIR)/gas && \
05a13254 9850 \
a90ef4bf
JM
9851 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9852 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9853 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9854 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9855 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9856 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9857 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9858 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9859 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 9860 $(TARGET-stagefeedback-gas)
d545f33b 9861
a90ef4bf
JM
9862maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9863clean-stagefeedback: clean-stagefeedback-gas
9864clean-stagefeedback-gas:
9865 @if [ $(current_stage) = stagefeedback ]; then \
9866 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9867 else \
9868 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9869 $(MAKE) stagefeedback-start; \
9870 fi; \
9871 cd $(HOST_SUBDIR)/gas && \
b3676d82 9872 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9873@endif gas-bootstrap
d545f33b 9874
2a4cbe27 9875
a7254363 9876
d545f33b
PB
9877
9878
a90ef4bf
JM
9879.PHONY: check-gas maybe-check-gas
9880maybe-check-gas:
9881@if gas
9882maybe-check-gas: check-gas
2a4cbe27 9883
a90ef4bf 9884check-gas:
0aed8855 9885 @: $(MAKE); $(unstage)
4fa63067 9886 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9888 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9889 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9890 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9891
a90ef4bf 9892@endif gas
2a4cbe27 9893
a90ef4bf
JM
9894.PHONY: install-gas maybe-install-gas
9895maybe-install-gas:
9896@if gas
9897maybe-install-gas: install-gas
2a4cbe27 9898
a90ef4bf 9899install-gas: installdirs
0aed8855 9900 @: $(MAKE); $(unstage)
4fa63067 9901 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9903 $(HOST_EXPORTS) \
a90ef4bf 9904 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9905 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9906
a90ef4bf 9907@endif gas
2a4cbe27 9908
a90ef4bf
JM
9909.PHONY: install-strip-gas maybe-install-strip-gas
9910maybe-install-strip-gas:
9911@if gas
9912maybe-install-strip-gas: install-strip-gas
9b980aa1 9913
a90ef4bf 9914install-strip-gas: installdirs
9b980aa1
RW
9915 @: $(MAKE); $(unstage)
9916 @r=`${PWD_COMMAND}`; export r; \
9917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9918 $(HOST_EXPORTS) \
a90ef4bf 9919 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9920 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9921
a90ef4bf 9922@endif gas
9b980aa1 9923
56a8fe78 9924# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9925
a90ef4bf
JM
9926.PHONY: maybe-info-gas info-gas
9927maybe-info-gas:
9928@if gas
9929maybe-info-gas: info-gas
2a4cbe27 9930
a90ef4bf
JM
9931info-gas: \
9932 configure-gas
9933 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9934 r=`${PWD_COMMAND}`; export r; \
9935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9936 $(HOST_EXPORTS) \
b813574b 9937 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9939 done; \
22121df0 9940 echo "Doing info in gas"; \
a90ef4bf 9941 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9944 "RANLIB=$${RANLIB}" \
0c24b341 9945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9946 info) \
2a4cbe27
NN
9947 || exit 1
9948
a90ef4bf 9949@endif gas
2a4cbe27 9950
a90ef4bf
JM
9951.PHONY: maybe-dvi-gas dvi-gas
9952maybe-dvi-gas:
9953@if gas
9954maybe-dvi-gas: dvi-gas
2a4cbe27 9955
a90ef4bf
JM
9956dvi-gas: \
9957 configure-gas
9958 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9959 r=`${PWD_COMMAND}`; export r; \
9960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9961 $(HOST_EXPORTS) \
b813574b 9962 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9964 done; \
22121df0 9965 echo "Doing dvi in gas"; \
a90ef4bf 9966 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9969 "RANLIB=$${RANLIB}" \
0c24b341 9970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9971 dvi) \
2a4cbe27
NN
9972 || exit 1
9973
a90ef4bf 9974@endif gas
2a4cbe27 9975
a90ef4bf
JM
9976.PHONY: maybe-pdf-gas pdf-gas
9977maybe-pdf-gas:
9978@if gas
9979maybe-pdf-gas: pdf-gas
56a8fe78 9980
a90ef4bf
JM
9981pdf-gas: \
9982 configure-gas
9983 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9984 r=`${PWD_COMMAND}`; export r; \
9985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9986 $(HOST_EXPORTS) \
9987 for flag in $(EXTRA_HOST_FLAGS) ; do \
9988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9989 done; \
22121df0 9990 echo "Doing pdf in gas"; \
a90ef4bf 9991 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9994 "RANLIB=$${RANLIB}" \
0c24b341 9995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9996 pdf) \
9997 || exit 1
9998
a90ef4bf 9999@endif gas
56a8fe78 10000
a90ef4bf
JM
10001.PHONY: maybe-html-gas html-gas
10002maybe-html-gas:
10003@if gas
10004maybe-html-gas: html-gas
6d389afc 10005
a90ef4bf
JM
10006html-gas: \
10007 configure-gas
10008 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
10009 r=`${PWD_COMMAND}`; export r; \
10010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
10011 $(HOST_EXPORTS) \
10012 for flag in $(EXTRA_HOST_FLAGS) ; do \
10013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10014 done; \
22121df0 10015 echo "Doing html in gas"; \
a90ef4bf 10016 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
10017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10019 "RANLIB=$${RANLIB}" \
0c24b341 10020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10021 html) \
10022 || exit 1
10023
a90ef4bf 10024@endif gas
6d389afc 10025
a90ef4bf
JM
10026.PHONY: maybe-TAGS-gas TAGS-gas
10027maybe-TAGS-gas:
10028@if gas
10029maybe-TAGS-gas: TAGS-gas
2a4cbe27 10030
a90ef4bf
JM
10031TAGS-gas: \
10032 configure-gas
10033 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10034 r=`${PWD_COMMAND}`; export r; \
10035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10036 $(HOST_EXPORTS) \
b813574b 10037 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10039 done; \
22121df0 10040 echo "Doing TAGS in gas"; \
a90ef4bf 10041 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10044 "RANLIB=$${RANLIB}" \
0c24b341 10045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10046 TAGS) \
2a4cbe27
NN
10047 || exit 1
10048
a90ef4bf 10049@endif gas
2a4cbe27 10050
a90ef4bf
JM
10051.PHONY: maybe-install-info-gas install-info-gas
10052maybe-install-info-gas:
10053@if gas
10054maybe-install-info-gas: install-info-gas
2a4cbe27 10055
a90ef4bf
JM
10056install-info-gas: \
10057 configure-gas \
10058 info-gas
10059 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10060 r=`${PWD_COMMAND}`; export r; \
10061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10062 $(HOST_EXPORTS) \
b813574b 10063 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10065 done; \
22121df0 10066 echo "Doing install-info in gas"; \
a90ef4bf 10067 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10070 "RANLIB=$${RANLIB}" \
0c24b341 10071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10072 install-info) \
2a4cbe27
NN
10073 || exit 1
10074
a90ef4bf 10075@endif gas
2a4cbe27 10076
a90ef4bf
JM
10077.PHONY: maybe-install-pdf-gas install-pdf-gas
10078maybe-install-pdf-gas:
10079@if gas
10080maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 10081
a90ef4bf
JM
10082install-pdf-gas: \
10083 configure-gas \
10084 pdf-gas
10085 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
10086 r=`${PWD_COMMAND}`; export r; \
10087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10088 $(HOST_EXPORTS) \
10089 for flag in $(EXTRA_HOST_FLAGS) ; do \
10090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10091 done; \
22121df0 10092 echo "Doing install-pdf in gas"; \
a90ef4bf 10093 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10096 "RANLIB=$${RANLIB}" \
0c24b341 10097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10098 install-pdf) \
10099 || exit 1
10100
a90ef4bf 10101@endif gas
a3ca38d2 10102
a90ef4bf
JM
10103.PHONY: maybe-install-html-gas install-html-gas
10104maybe-install-html-gas:
10105@if gas
10106maybe-install-html-gas: install-html-gas
108a6f8e 10107
a90ef4bf
JM
10108install-html-gas: \
10109 configure-gas \
10110 html-gas
10111 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10112 r=`${PWD_COMMAND}`; export r; \
10113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10114 $(HOST_EXPORTS) \
10115 for flag in $(EXTRA_HOST_FLAGS) ; do \
10116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10117 done; \
22121df0 10118 echo "Doing install-html in gas"; \
a90ef4bf 10119 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10122 "RANLIB=$${RANLIB}" \
0c24b341 10123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10124 install-html) \
10125 || exit 1
10126
a90ef4bf 10127@endif gas
108a6f8e 10128
a90ef4bf
JM
10129.PHONY: maybe-installcheck-gas installcheck-gas
10130maybe-installcheck-gas:
10131@if gas
10132maybe-installcheck-gas: installcheck-gas
2a4cbe27 10133
a90ef4bf
JM
10134installcheck-gas: \
10135 configure-gas
10136 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10137 r=`${PWD_COMMAND}`; export r; \
10138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10139 $(HOST_EXPORTS) \
b813574b 10140 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10142 done; \
22121df0 10143 echo "Doing installcheck in gas"; \
a90ef4bf 10144 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10147 "RANLIB=$${RANLIB}" \
0c24b341 10148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10149 installcheck) \
2a4cbe27
NN
10150 || exit 1
10151
a90ef4bf 10152@endif gas
2a4cbe27 10153
a90ef4bf
JM
10154.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10155maybe-mostlyclean-gas:
10156@if gas
10157maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10158
a90ef4bf
JM
10159mostlyclean-gas:
10160 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10161 r=`${PWD_COMMAND}`; export r; \
10162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10163 $(HOST_EXPORTS) \
b813574b 10164 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10166 done; \
22121df0 10167 echo "Doing mostlyclean in gas"; \
a90ef4bf 10168 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10171 "RANLIB=$${RANLIB}" \
0c24b341 10172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10173 mostlyclean) \
2a4cbe27
NN
10174 || exit 1
10175
a90ef4bf 10176@endif gas
2a4cbe27 10177
a90ef4bf
JM
10178.PHONY: maybe-clean-gas clean-gas
10179maybe-clean-gas:
10180@if gas
10181maybe-clean-gas: clean-gas
2a4cbe27 10182
a90ef4bf
JM
10183clean-gas:
10184 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10185 r=`${PWD_COMMAND}`; export r; \
10186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10187 $(HOST_EXPORTS) \
b813574b 10188 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10190 done; \
22121df0 10191 echo "Doing clean in gas"; \
a90ef4bf 10192 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10195 "RANLIB=$${RANLIB}" \
0c24b341 10196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10197 clean) \
2a4cbe27
NN
10198 || exit 1
10199
a90ef4bf 10200@endif gas
2a4cbe27 10201
a90ef4bf
JM
10202.PHONY: maybe-distclean-gas distclean-gas
10203maybe-distclean-gas:
10204@if gas
10205maybe-distclean-gas: distclean-gas
2a4cbe27 10206
a90ef4bf
JM
10207distclean-gas:
10208 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10209 r=`${PWD_COMMAND}`; export r; \
10210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10211 $(HOST_EXPORTS) \
b813574b 10212 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10214 done; \
22121df0 10215 echo "Doing distclean in gas"; \
a90ef4bf 10216 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10219 "RANLIB=$${RANLIB}" \
0c24b341 10220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10221 distclean) \
2a4cbe27
NN
10222 || exit 1
10223
a90ef4bf 10224@endif gas
2a4cbe27 10225
a90ef4bf
JM
10226.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10227maybe-maintainer-clean-gas:
10228@if gas
10229maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10230
a90ef4bf
JM
10231maintainer-clean-gas:
10232 @[ -f ./gas/Makefile ] || exit 0; \
10233 r=`${PWD_COMMAND}`; export r; \
b40e3958 10234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10235 $(HOST_EXPORTS) \
b813574b 10236 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10238 done; \
22121df0 10239 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10240 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10243 "RANLIB=$${RANLIB}" \
0c24b341 10244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10245 maintainer-clean) \
2a4cbe27
NN
10246 || exit 1
10247
a90ef4bf 10248@endif gas
2a4cbe27 10249
2a4cbe27 10250
a7254363 10251
a90ef4bf
JM
10252.PHONY: configure-gcc maybe-configure-gcc
10253maybe-configure-gcc:
4f0ef2d8 10254@if gcc-bootstrap
a90ef4bf 10255configure-gcc: stage_current
4f0ef2d8 10256@endif gcc-bootstrap
a90ef4bf
JM
10257@if gcc
10258maybe-configure-gcc: configure-gcc
10259configure-gcc:
c52c6897 10260 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10262 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10263 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10264 $(HOST_EXPORTS) \
a90ef4bf
JM
10265 echo Configuring in $(HOST_SUBDIR)/gcc; \
10266 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10267 case $(srcdir) in \
b00612cc 10268 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10269 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10270 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10271 esac; \
1b6c0831
L
10272 module_srcdir=gcc; \
10273 $(SHELL) \
10274 $$s/$$module_srcdir/configure \
10275 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10276 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10277 --target=${target_alias} \
4fa63067 10278 || exit 1
a90ef4bf 10279@endif gcc
a7254363 10280
d545f33b
PB
10281
10282
a90ef4bf
JM
10283.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10284maybe-configure-stage1-gcc:
4f0ef2d8 10285@if gcc-bootstrap
a90ef4bf
JM
10286maybe-configure-stage1-gcc: configure-stage1-gcc
10287configure-stage1-gcc:
10288 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10289 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10290 @r=`${PWD_COMMAND}`; export r; \
10291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10292 TFLAGS="$(STAGE1_TFLAGS)"; \
10293 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10294 $(HOST_EXPORTS) \
10295 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10296 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10297 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10298 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10299 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10300 cd $(HOST_SUBDIR)/gcc || exit 1; \
10301 case $(srcdir) in \
10302 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10303 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10304 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10305 esac; \
1b6c0831
L
10306 module_srcdir=gcc; \
10307 $(SHELL) $$s/$$module_srcdir/configure \
10308 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10309 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10310 --target=${target_alias} \
10311 \
a90ef4bf
JM
10312 $(STAGE1_CONFIGURE_FLAGS)
10313@endif gcc-bootstrap
4fa63067 10314
a90ef4bf
JM
10315.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10316maybe-configure-stage2-gcc:
10317@if gcc-bootstrap
10318maybe-configure-stage2-gcc: configure-stage2-gcc
10319configure-stage2-gcc:
10320 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10321 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10322 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10324 TFLAGS="$(STAGE2_TFLAGS)"; \
10325 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10326 $(HOST_EXPORTS) \
a90ef4bf
JM
10327 $(POSTSTAGE1_HOST_EXPORTS) \
10328 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10329 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10330 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10331 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10332 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10333 cd $(HOST_SUBDIR)/gcc || exit 1; \
10334 case $(srcdir) in \
10335 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10336 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10337 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10338 esac; \
1b6c0831
L
10339 module_srcdir=gcc; \
10340 $(SHELL) $$s/$$module_srcdir/configure \
10341 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10342 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10343 --target=${target_alias} \
22121df0 10344 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10345 $(STAGE2_CONFIGURE_FLAGS)
10346@endif gcc-bootstrap
9b980aa1 10347
a90ef4bf
JM
10348.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10349maybe-configure-stage3-gcc:
10350@if gcc-bootstrap
10351maybe-configure-stage3-gcc: configure-stage3-gcc
10352configure-stage3-gcc:
10353 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10354 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10355 @r=`${PWD_COMMAND}`; export r; \
10356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10357 TFLAGS="$(STAGE3_TFLAGS)"; \
10358 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10359 $(HOST_EXPORTS) \
a90ef4bf
JM
10360 $(POSTSTAGE1_HOST_EXPORTS) \
10361 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10362 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10363 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10364 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10365 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10366 cd $(HOST_SUBDIR)/gcc || exit 1; \
10367 case $(srcdir) in \
10368 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10369 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10370 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10371 esac; \
1b6c0831
L
10372 module_srcdir=gcc; \
10373 $(SHELL) $$s/$$module_srcdir/configure \
10374 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10375 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10376 --target=${target_alias} \
22121df0 10377 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10378 $(STAGE3_CONFIGURE_FLAGS)
10379@endif gcc-bootstrap
4fa63067 10380
a90ef4bf
JM
10381.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10382maybe-configure-stage4-gcc:
10383@if gcc-bootstrap
10384maybe-configure-stage4-gcc: configure-stage4-gcc
10385configure-stage4-gcc:
10386 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10387 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10388 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10390 TFLAGS="$(STAGE4_TFLAGS)"; \
10391 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10392 $(HOST_EXPORTS) \
a90ef4bf
JM
10393 $(POSTSTAGE1_HOST_EXPORTS) \
10394 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10395 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10396 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10397 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10398 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10399 cd $(HOST_SUBDIR)/gcc || exit 1; \
10400 case $(srcdir) in \
10401 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10402 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10403 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10404 esac; \
1b6c0831
L
10405 module_srcdir=gcc; \
10406 $(SHELL) $$s/$$module_srcdir/configure \
10407 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10408 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10409 --target=${target_alias} \
22121df0 10410 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10411 $(STAGE4_CONFIGURE_FLAGS)
10412@endif gcc-bootstrap
2a4cbe27 10413
a90ef4bf
JM
10414.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10415maybe-configure-stageprofile-gcc:
10416@if gcc-bootstrap
10417maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10418configure-stageprofile-gcc:
10419 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10420 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10421 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10423 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10424 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10425 $(HOST_EXPORTS) \
a90ef4bf
JM
10426 $(POSTSTAGE1_HOST_EXPORTS) \
10427 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10428 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10429 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10430 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10431 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10432 cd $(HOST_SUBDIR)/gcc || exit 1; \
10433 case $(srcdir) in \
10434 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10435 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10436 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10437 esac; \
1b6c0831
L
10438 module_srcdir=gcc; \
10439 $(SHELL) $$s/$$module_srcdir/configure \
10440 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10441 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10442 --target=${target_alias} \
22121df0 10443 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10444 $(STAGEprofile_CONFIGURE_FLAGS)
10445@endif gcc-bootstrap
56a8fe78 10446
a90ef4bf
JM
10447.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10448maybe-configure-stagefeedback-gcc:
10449@if gcc-bootstrap
10450maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10451configure-stagefeedback-gcc:
10452 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10453 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10454 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10456 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10457 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10458 $(HOST_EXPORTS) \
a90ef4bf
JM
10459 $(POSTSTAGE1_HOST_EXPORTS) \
10460 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10461 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10462 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10463 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10464 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10465 cd $(HOST_SUBDIR)/gcc || exit 1; \
10466 case $(srcdir) in \
10467 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10468 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10469 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10470 esac; \
1b6c0831
L
10471 module_srcdir=gcc; \
10472 $(SHELL) $$s/$$module_srcdir/configure \
10473 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10474 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10475 --target=${target_alias} \
22121df0 10476 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10477 $(STAGEfeedback_CONFIGURE_FLAGS)
10478@endif gcc-bootstrap
56a8fe78 10479
2a4cbe27 10480
2a4cbe27
NN
10481
10482
2a4cbe27 10483
a90ef4bf
JM
10484.PHONY: all-gcc maybe-all-gcc
10485maybe-all-gcc:
10486@if gcc-bootstrap
10487all-gcc: stage_current
10488@endif gcc-bootstrap
10489@if gcc
10490TARGET-gcc=all
10491maybe-all-gcc: all-gcc
10492all-gcc: configure-gcc
10493 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10495 $(HOST_EXPORTS) \
10496 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10497 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10498 $(TARGET-gcc))
10499@endif gcc
6d389afc 10500
6d389afc 10501
6d389afc 10502
a90ef4bf
JM
10503.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10504.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10505maybe-all-stage1-gcc:
10506maybe-clean-stage1-gcc:
10507@if gcc-bootstrap
10508maybe-all-stage1-gcc: all-stage1-gcc
10509all-stage1: all-stage1-gcc
10510TARGET-stage1-gcc = $(TARGET-gcc)
10511all-stage1-gcc: configure-stage1-gcc
10512 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10513 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10515 TFLAGS="$(STAGE1_TFLAGS)"; \
10516 $(HOST_EXPORTS) \
10517 cd $(HOST_SUBDIR)/gcc && \
05a13254 10518 \
a90ef4bf
JM
10519 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10520 CFLAGS="$(STAGE1_CFLAGS)" \
10521 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10522 LIBCFLAGS="$(LIBCFLAGS)" \
10523 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10524 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10525 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10526 $(EXTRA_HOST_FLAGS) \
10527 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10528 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 10529 $(TARGET-stage1-gcc)
2a4cbe27 10530
a90ef4bf
JM
10531maybe-clean-stage1-gcc: clean-stage1-gcc
10532clean-stage1: clean-stage1-gcc
10533clean-stage1-gcc:
10534 @if [ $(current_stage) = stage1 ]; then \
10535 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10536 else \
10537 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10538 $(MAKE) stage1-start; \
10539 fi; \
10540 cd $(HOST_SUBDIR)/gcc && \
10541 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10542 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10543@endif gcc-bootstrap
2a4cbe27 10544
a3ca38d2 10545
a90ef4bf
JM
10546.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10547.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10548maybe-all-stage2-gcc:
10549maybe-clean-stage2-gcc:
10550@if gcc-bootstrap
10551maybe-all-stage2-gcc: all-stage2-gcc
10552all-stage2: all-stage2-gcc
10553TARGET-stage2-gcc = $(TARGET-gcc)
10554all-stage2-gcc: configure-stage2-gcc
10555 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10556 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10558 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10559 $(HOST_EXPORTS) \
a90ef4bf
JM
10560 $(POSTSTAGE1_HOST_EXPORTS) \
10561 cd $(HOST_SUBDIR)/gcc && \
05a13254 10562 \
a90ef4bf
JM
10563 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10564 CFLAGS="$(STAGE2_CFLAGS)" \
10565 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10566 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10567 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10568 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10569 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10570 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10571 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 10572 $(TARGET-stage2-gcc)
a3ca38d2 10573
a90ef4bf
JM
10574maybe-clean-stage2-gcc: clean-stage2-gcc
10575clean-stage2: clean-stage2-gcc
10576clean-stage2-gcc:
10577 @if [ $(current_stage) = stage2 ]; then \
10578 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10579 else \
10580 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10581 $(MAKE) stage2-start; \
10582 fi; \
10583 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10584 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10585@endif gcc-bootstrap
a3ca38d2 10586
108a6f8e 10587
a90ef4bf
JM
10588.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10589.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10590maybe-all-stage3-gcc:
10591maybe-clean-stage3-gcc:
10592@if gcc-bootstrap
10593maybe-all-stage3-gcc: all-stage3-gcc
10594all-stage3: all-stage3-gcc
10595TARGET-stage3-gcc = $(TARGET-gcc)
10596all-stage3-gcc: configure-stage3-gcc
10597 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10598 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10600 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10601 $(HOST_EXPORTS) \
a90ef4bf
JM
10602 $(POSTSTAGE1_HOST_EXPORTS) \
10603 cd $(HOST_SUBDIR)/gcc && \
05a13254 10604 \
a90ef4bf
JM
10605 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10606 CFLAGS="$(STAGE3_CFLAGS)" \
10607 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10608 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10609 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10610 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10611 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10612 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10613 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 10614 $(TARGET-stage3-gcc)
108a6f8e 10615
a90ef4bf
JM
10616maybe-clean-stage3-gcc: clean-stage3-gcc
10617clean-stage3: clean-stage3-gcc
10618clean-stage3-gcc:
10619 @if [ $(current_stage) = stage3 ]; then \
10620 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10621 else \
10622 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10623 $(MAKE) stage3-start; \
10624 fi; \
10625 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10626 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10627@endif gcc-bootstrap
108a6f8e 10628
2a4cbe27 10629
a90ef4bf
JM
10630.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10631.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10632maybe-all-stage4-gcc:
10633maybe-clean-stage4-gcc:
10634@if gcc-bootstrap
10635maybe-all-stage4-gcc: all-stage4-gcc
10636all-stage4: all-stage4-gcc
10637TARGET-stage4-gcc = $(TARGET-gcc)
10638all-stage4-gcc: configure-stage4-gcc
10639 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10640 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10642 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10643 $(HOST_EXPORTS) \
a90ef4bf
JM
10644 $(POSTSTAGE1_HOST_EXPORTS) \
10645 cd $(HOST_SUBDIR)/gcc && \
05a13254 10646 \
a90ef4bf
JM
10647 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10648 CFLAGS="$(STAGE4_CFLAGS)" \
10649 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10650 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10651 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10652 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10653 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10654 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10655 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 10656 $(TARGET-stage4-gcc)
2a4cbe27 10657
a90ef4bf
JM
10658maybe-clean-stage4-gcc: clean-stage4-gcc
10659clean-stage4: clean-stage4-gcc
10660clean-stage4-gcc:
10661 @if [ $(current_stage) = stage4 ]; then \
10662 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10663 else \
10664 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10665 $(MAKE) stage4-start; \
10666 fi; \
10667 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10668 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10669@endif gcc-bootstrap
2a4cbe27 10670
a2592b1b 10671
a90ef4bf
JM
10672.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10673.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10674maybe-all-stageprofile-gcc:
10675maybe-clean-stageprofile-gcc:
10676@if gcc-bootstrap
10677maybe-all-stageprofile-gcc: all-stageprofile-gcc
10678all-stageprofile: all-stageprofile-gcc
10679TARGET-stageprofile-gcc = $(TARGET-gcc)
10680all-stageprofile-gcc: configure-stageprofile-gcc
10681 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10682 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10684 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10685 $(HOST_EXPORTS) \
a90ef4bf
JM
10686 $(POSTSTAGE1_HOST_EXPORTS) \
10687 cd $(HOST_SUBDIR)/gcc && \
05a13254 10688 \
a90ef4bf
JM
10689 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10690 CFLAGS="$(STAGEprofile_CFLAGS)" \
10691 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10692 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10693 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10694 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10695 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10696 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10697 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 10698 $(TARGET-stageprofile-gcc)
2a4cbe27 10699
a90ef4bf
JM
10700maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10701clean-stageprofile: clean-stageprofile-gcc
10702clean-stageprofile-gcc:
10703 @if [ $(current_stage) = stageprofile ]; then \
10704 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10705 else \
10706 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10707 $(MAKE) stageprofile-start; \
10708 fi; \
10709 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10710 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10711@endif gcc-bootstrap
2a4cbe27 10712
a7254363 10713
a90ef4bf
JM
10714.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10715.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10716maybe-all-stagefeedback-gcc:
10717maybe-clean-stagefeedback-gcc:
4f0ef2d8 10718@if gcc-bootstrap
a90ef4bf
JM
10719maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10720all-stagefeedback: all-stagefeedback-gcc
10721TARGET-stagefeedback-gcc = $(TARGET-gcc)
10722all-stagefeedback-gcc: configure-stagefeedback-gcc
10723 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10724 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10726 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10727 $(HOST_EXPORTS) \
10728 $(POSTSTAGE1_HOST_EXPORTS) \
10729 cd $(HOST_SUBDIR)/gcc && \
05a13254 10730 \
a90ef4bf
JM
10731 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10732 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10733 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10734 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10735 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10736 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10737 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10738 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10739 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 10740 $(TARGET-stagefeedback-gcc)
d545f33b 10741
a90ef4bf
JM
10742maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10743clean-stagefeedback: clean-stagefeedback-gcc
10744clean-stagefeedback-gcc:
10745 @if [ $(current_stage) = stagefeedback ]; then \
10746 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10747 else \
10748 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10749 $(MAKE) stagefeedback-start; \
10750 fi; \
10751 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10752 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10753@endif gcc-bootstrap
4fa63067 10754
a7254363 10755
d545f33b
PB
10756
10757
4fa63067 10758
a90ef4bf
JM
10759.PHONY: check-gcc maybe-check-gcc
10760maybe-check-gcc:
10761@if gcc
10762maybe-check-gcc: check-gcc
10763
10764check-gcc:
0aed8855 10765 @: $(MAKE); $(unstage)
4fa63067
NN
10766 @r=`${PWD_COMMAND}`; export r; \
10767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10768 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10769 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10770 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10771
a90ef4bf 10772@endif gcc
4fa63067 10773
a90ef4bf
JM
10774.PHONY: install-gcc maybe-install-gcc
10775maybe-install-gcc:
10776@if gcc
10777maybe-install-gcc: install-gcc
4fa63067 10778
a90ef4bf 10779install-gcc: installdirs
0aed8855 10780 @: $(MAKE); $(unstage)
4fa63067
NN
10781 @r=`${PWD_COMMAND}`; export r; \
10782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10783 $(HOST_EXPORTS) \
a90ef4bf
JM
10784 (cd $(HOST_SUBDIR)/gcc && \
10785 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10786
a90ef4bf 10787@endif gcc
4fa63067 10788
a90ef4bf
JM
10789.PHONY: install-strip-gcc maybe-install-strip-gcc
10790maybe-install-strip-gcc:
10791@if gcc
10792maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10793
a90ef4bf 10794install-strip-gcc: installdirs
9b980aa1
RW
10795 @: $(MAKE); $(unstage)
10796 @r=`${PWD_COMMAND}`; export r; \
10797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10798 $(HOST_EXPORTS) \
a90ef4bf
JM
10799 (cd $(HOST_SUBDIR)/gcc && \
10800 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10801
a90ef4bf 10802@endif gcc
9b980aa1 10803
56a8fe78 10804# Other targets (info, dvi, pdf, etc.)
4fa63067 10805
a90ef4bf
JM
10806.PHONY: maybe-info-gcc info-gcc
10807maybe-info-gcc:
10808@if gcc
10809maybe-info-gcc: info-gcc
4fa63067 10810
a90ef4bf
JM
10811info-gcc: \
10812 configure-gcc
10813 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10814 r=`${PWD_COMMAND}`; export r; \
10815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10816 $(HOST_EXPORTS) \
a90ef4bf 10817 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10819 done; \
22121df0 10820 echo "Doing info in gcc"; \
a90ef4bf 10821 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10824 "RANLIB=$${RANLIB}" \
0c24b341 10825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10826 info) \
2a4cbe27
NN
10827 || exit 1
10828
a90ef4bf 10829@endif gcc
2a4cbe27 10830
a90ef4bf
JM
10831.PHONY: maybe-dvi-gcc dvi-gcc
10832maybe-dvi-gcc:
10833@if gcc
10834maybe-dvi-gcc: dvi-gcc
2a4cbe27 10835
a90ef4bf
JM
10836dvi-gcc: \
10837 configure-gcc
10838 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10839 r=`${PWD_COMMAND}`; export r; \
10840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10841 $(HOST_EXPORTS) \
a90ef4bf 10842 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10844 done; \
22121df0 10845 echo "Doing dvi in gcc"; \
a90ef4bf 10846 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10849 "RANLIB=$${RANLIB}" \
0c24b341 10850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10851 dvi) \
2a4cbe27
NN
10852 || exit 1
10853
a90ef4bf 10854@endif gcc
2a4cbe27 10855
a90ef4bf
JM
10856.PHONY: maybe-pdf-gcc pdf-gcc
10857maybe-pdf-gcc:
10858@if gcc
10859maybe-pdf-gcc: pdf-gcc
56a8fe78 10860
a90ef4bf
JM
10861pdf-gcc: \
10862 configure-gcc
10863 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10864 r=`${PWD_COMMAND}`; export r; \
10865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10866 $(HOST_EXPORTS) \
a90ef4bf 10867 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10869 done; \
22121df0 10870 echo "Doing pdf in gcc"; \
a90ef4bf 10871 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10874 "RANLIB=$${RANLIB}" \
0c24b341 10875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10876 pdf) \
10877 || exit 1
10878
a90ef4bf 10879@endif gcc
56a8fe78 10880
a90ef4bf
JM
10881.PHONY: maybe-html-gcc html-gcc
10882maybe-html-gcc:
10883@if gcc
10884maybe-html-gcc: html-gcc
6d389afc 10885
a90ef4bf
JM
10886html-gcc: \
10887 configure-gcc
10888 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10889 r=`${PWD_COMMAND}`; export r; \
10890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10891 $(HOST_EXPORTS) \
a90ef4bf 10892 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10894 done; \
22121df0 10895 echo "Doing html in gcc"; \
a90ef4bf 10896 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10899 "RANLIB=$${RANLIB}" \
0c24b341 10900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10901 html) \
10902 || exit 1
10903
a90ef4bf 10904@endif gcc
6d389afc 10905
a90ef4bf
JM
10906.PHONY: maybe-TAGS-gcc TAGS-gcc
10907maybe-TAGS-gcc:
10908@if gcc
10909maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10910
a90ef4bf
JM
10911TAGS-gcc: \
10912 configure-gcc
10913 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10914 r=`${PWD_COMMAND}`; export r; \
10915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10916 $(HOST_EXPORTS) \
a90ef4bf 10917 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10919 done; \
22121df0 10920 echo "Doing TAGS in gcc"; \
a90ef4bf 10921 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10924 "RANLIB=$${RANLIB}" \
0c24b341 10925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10926 TAGS) \
2a4cbe27
NN
10927 || exit 1
10928
a90ef4bf 10929@endif gcc
2a4cbe27 10930
a90ef4bf
JM
10931.PHONY: maybe-install-info-gcc install-info-gcc
10932maybe-install-info-gcc:
10933@if gcc
10934maybe-install-info-gcc: install-info-gcc
2a4cbe27 10935
a90ef4bf
JM
10936install-info-gcc: \
10937 configure-gcc \
10938 info-gcc
10939 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10940 r=`${PWD_COMMAND}`; export r; \
10941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10942 $(HOST_EXPORTS) \
a90ef4bf 10943 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10945 done; \
22121df0 10946 echo "Doing install-info in gcc"; \
a90ef4bf 10947 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10950 "RANLIB=$${RANLIB}" \
0c24b341 10951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10952 install-info) \
2a4cbe27
NN
10953 || exit 1
10954
a90ef4bf 10955@endif gcc
2a4cbe27 10956
a90ef4bf
JM
10957.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10958maybe-install-pdf-gcc:
10959@if gcc
10960maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10961
a90ef4bf
JM
10962install-pdf-gcc: \
10963 configure-gcc \
10964 pdf-gcc
10965 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10966 r=`${PWD_COMMAND}`; export r; \
10967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10968 $(HOST_EXPORTS) \
a90ef4bf 10969 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10971 done; \
22121df0 10972 echo "Doing install-pdf in gcc"; \
a90ef4bf 10973 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10976 "RANLIB=$${RANLIB}" \
0c24b341 10977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10978 install-pdf) \
10979 || exit 1
10980
a90ef4bf 10981@endif gcc
a3ca38d2 10982
a90ef4bf
JM
10983.PHONY: maybe-install-html-gcc install-html-gcc
10984maybe-install-html-gcc:
10985@if gcc
10986maybe-install-html-gcc: install-html-gcc
108a6f8e 10987
a90ef4bf
JM
10988install-html-gcc: \
10989 configure-gcc \
10990 html-gcc
10991 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10992 r=`${PWD_COMMAND}`; export r; \
10993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10994 $(HOST_EXPORTS) \
a90ef4bf 10995 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10997 done; \
22121df0 10998 echo "Doing install-html in gcc"; \
a90ef4bf 10999 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
11000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11002 "RANLIB=$${RANLIB}" \
0c24b341 11003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11004 install-html) \
11005 || exit 1
11006
a90ef4bf 11007@endif gcc
108a6f8e 11008
a90ef4bf
JM
11009.PHONY: maybe-installcheck-gcc installcheck-gcc
11010maybe-installcheck-gcc:
11011@if gcc
11012maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 11013
a90ef4bf
JM
11014installcheck-gcc: \
11015 configure-gcc
11016 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11017 r=`${PWD_COMMAND}`; export r; \
11018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11019 $(HOST_EXPORTS) \
a90ef4bf 11020 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11022 done; \
22121df0 11023 echo "Doing installcheck in gcc"; \
a90ef4bf 11024 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11027 "RANLIB=$${RANLIB}" \
0c24b341 11028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11029 installcheck) \
2a4cbe27
NN
11030 || exit 1
11031
a90ef4bf 11032@endif gcc
2a4cbe27 11033
a90ef4bf
JM
11034.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
11035maybe-mostlyclean-gcc:
11036@if gcc
11037maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 11038
a90ef4bf
JM
11039mostlyclean-gcc:
11040 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11041 r=`${PWD_COMMAND}`; export r; \
11042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11043 $(HOST_EXPORTS) \
a90ef4bf 11044 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11046 done; \
22121df0 11047 echo "Doing mostlyclean in gcc"; \
a90ef4bf 11048 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11051 "RANLIB=$${RANLIB}" \
0c24b341 11052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11053 mostlyclean) \
2a4cbe27
NN
11054 || exit 1
11055
a90ef4bf 11056@endif gcc
2a4cbe27 11057
a90ef4bf
JM
11058.PHONY: maybe-clean-gcc clean-gcc
11059maybe-clean-gcc:
11060@if gcc
11061maybe-clean-gcc: clean-gcc
2a4cbe27 11062
a90ef4bf
JM
11063clean-gcc:
11064 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11065 r=`${PWD_COMMAND}`; export r; \
11066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11067 $(HOST_EXPORTS) \
a90ef4bf 11068 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11070 done; \
22121df0 11071 echo "Doing clean in gcc"; \
a90ef4bf 11072 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11075 "RANLIB=$${RANLIB}" \
0c24b341 11076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11077 clean) \
2a4cbe27
NN
11078 || exit 1
11079
a90ef4bf 11080@endif gcc
2a4cbe27 11081
a90ef4bf
JM
11082.PHONY: maybe-distclean-gcc distclean-gcc
11083maybe-distclean-gcc:
11084@if gcc
11085maybe-distclean-gcc: distclean-gcc
2a4cbe27 11086
a90ef4bf
JM
11087distclean-gcc:
11088 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11089 r=`${PWD_COMMAND}`; export r; \
11090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11091 $(HOST_EXPORTS) \
a90ef4bf 11092 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11094 done; \
22121df0 11095 echo "Doing distclean in gcc"; \
a90ef4bf 11096 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11099 "RANLIB=$${RANLIB}" \
0c24b341 11100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11101 distclean) \
2a4cbe27
NN
11102 || exit 1
11103
a90ef4bf 11104@endif gcc
2a4cbe27 11105
a90ef4bf
JM
11106.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11107maybe-maintainer-clean-gcc:
11108@if gcc
11109maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11110
a90ef4bf
JM
11111maintainer-clean-gcc:
11112 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11113 r=`${PWD_COMMAND}`; export r; \
11114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11115 $(HOST_EXPORTS) \
a90ef4bf 11116 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11118 done; \
22121df0 11119 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11120 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11123 "RANLIB=$${RANLIB}" \
0c24b341 11124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11125 maintainer-clean) \
2a4cbe27
NN
11126 || exit 1
11127
a90ef4bf 11128@endif gcc
2a4cbe27 11129
2a4cbe27 11130
a7254363 11131
a90ef4bf
JM
11132.PHONY: configure-gmp maybe-configure-gmp
11133maybe-configure-gmp:
4f0ef2d8 11134@if gcc-bootstrap
a90ef4bf 11135configure-gmp: stage_current
4f0ef2d8 11136@endif gcc-bootstrap
a90ef4bf
JM
11137@if gmp
11138maybe-configure-gmp: configure-gmp
11139configure-gmp:
c52c6897 11140 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11142 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11143 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11144 $(HOST_EXPORTS) \
a90ef4bf
JM
11145 echo Configuring in $(HOST_SUBDIR)/gmp; \
11146 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11147 case $(srcdir) in \
b00612cc 11148 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11149 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11150 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11151 esac; \
1b6c0831
L
11152 module_srcdir=gmp; \
11153 $(SHELL) \
11154 $$s/$$module_srcdir/configure \
11155 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11156 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11157 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11158 || exit 1
a90ef4bf 11159@endif gmp
a7254363 11160
d545f33b
PB
11161
11162
a90ef4bf
JM
11163.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11164maybe-configure-stage1-gmp:
11165@if gmp-bootstrap
11166maybe-configure-stage1-gmp: configure-stage1-gmp
11167configure-stage1-gmp:
11168 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11169 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11170 @r=`${PWD_COMMAND}`; export r; \
11171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11172 TFLAGS="$(STAGE1_TFLAGS)"; \
11173 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11174 $(HOST_EXPORTS) \
11175 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11176 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11177 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11178 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11179 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11180 cd $(HOST_SUBDIR)/gmp || exit 1; \
11181 case $(srcdir) in \
11182 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11183 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11184 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11185 esac; \
1b6c0831
L
11186 module_srcdir=gmp; \
11187 $(SHELL) $$s/$$module_srcdir/configure \
11188 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11189 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11190 --target=none-${host_vendor}-${host_os} \
11191 \
a90ef4bf 11192 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11193 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11194@endif gmp-bootstrap
4fa63067 11195
a90ef4bf
JM
11196.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11197maybe-configure-stage2-gmp:
11198@if gmp-bootstrap
11199maybe-configure-stage2-gmp: configure-stage2-gmp
11200configure-stage2-gmp:
11201 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11202 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11203 @r=`${PWD_COMMAND}`; export r; \
11204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11205 TFLAGS="$(STAGE2_TFLAGS)"; \
11206 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11207 $(HOST_EXPORTS) \
11208 $(POSTSTAGE1_HOST_EXPORTS) \
11209 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11210 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11211 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11212 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11213 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11214 cd $(HOST_SUBDIR)/gmp || exit 1; \
11215 case $(srcdir) in \
11216 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11217 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11218 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11219 esac; \
1b6c0831
L
11220 module_srcdir=gmp; \
11221 $(SHELL) $$s/$$module_srcdir/configure \
11222 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11223 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11224 --target=none-${host_vendor}-${host_os} \
22121df0 11225 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11226 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11227 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11228@endif gmp-bootstrap
4fa63067 11229
a90ef4bf
JM
11230.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11231maybe-configure-stage3-gmp:
11232@if gmp-bootstrap
11233maybe-configure-stage3-gmp: configure-stage3-gmp
11234configure-stage3-gmp:
11235 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11236 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11237 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11239 TFLAGS="$(STAGE3_TFLAGS)"; \
11240 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11241 $(HOST_EXPORTS) \
a90ef4bf
JM
11242 $(POSTSTAGE1_HOST_EXPORTS) \
11243 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11244 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11245 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11246 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11247 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11248 cd $(HOST_SUBDIR)/gmp || exit 1; \
11249 case $(srcdir) in \
11250 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11251 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11252 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11253 esac; \
1b6c0831
L
11254 module_srcdir=gmp; \
11255 $(SHELL) $$s/$$module_srcdir/configure \
11256 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11257 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11258 --target=none-${host_vendor}-${host_os} \
22121df0 11259 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11260 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11261 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11262@endif gmp-bootstrap
2a4cbe27 11263
a90ef4bf
JM
11264.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11265maybe-configure-stage4-gmp:
11266@if gmp-bootstrap
11267maybe-configure-stage4-gmp: configure-stage4-gmp
11268configure-stage4-gmp:
11269 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11270 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11271 @r=`${PWD_COMMAND}`; export r; \
11272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11273 TFLAGS="$(STAGE4_TFLAGS)"; \
11274 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11275 $(HOST_EXPORTS) \
11276 $(POSTSTAGE1_HOST_EXPORTS) \
11277 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11278 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11279 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11280 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11281 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11282 cd $(HOST_SUBDIR)/gmp || exit 1; \
11283 case $(srcdir) in \
11284 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11285 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11286 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11287 esac; \
1b6c0831
L
11288 module_srcdir=gmp; \
11289 $(SHELL) $$s/$$module_srcdir/configure \
11290 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11291 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11292 --target=none-${host_vendor}-${host_os} \
22121df0 11293 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11294 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11295 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11296@endif gmp-bootstrap
2a4cbe27 11297
a90ef4bf
JM
11298.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11299maybe-configure-stageprofile-gmp:
11300@if gmp-bootstrap
11301maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11302configure-stageprofile-gmp:
11303 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11304 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11305 @r=`${PWD_COMMAND}`; export r; \
11306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11307 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11308 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11309 $(HOST_EXPORTS) \
11310 $(POSTSTAGE1_HOST_EXPORTS) \
11311 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11312 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11313 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11314 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11315 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11316 cd $(HOST_SUBDIR)/gmp || exit 1; \
11317 case $(srcdir) in \
11318 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11319 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11320 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11321 esac; \
1b6c0831
L
11322 module_srcdir=gmp; \
11323 $(SHELL) $$s/$$module_srcdir/configure \
11324 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11325 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11326 --target=none-${host_vendor}-${host_os} \
22121df0 11327 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11328 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11329 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11330@endif gmp-bootstrap
9b980aa1 11331
a90ef4bf
JM
11332.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11333maybe-configure-stagefeedback-gmp:
11334@if gmp-bootstrap
11335maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11336configure-stagefeedback-gmp:
11337 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11338 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11339 @r=`${PWD_COMMAND}`; export r; \
11340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11341 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11342 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11343 $(HOST_EXPORTS) \
a90ef4bf
JM
11344 $(POSTSTAGE1_HOST_EXPORTS) \
11345 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11346 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11347 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11348 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11349 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11350 cd $(HOST_SUBDIR)/gmp || exit 1; \
11351 case $(srcdir) in \
11352 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11353 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11354 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11355 esac; \
1b6c0831
L
11356 module_srcdir=gmp; \
11357 $(SHELL) $$s/$$module_srcdir/configure \
11358 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11359 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11360 --target=none-${host_vendor}-${host_os} \
22121df0 11361 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11362 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11363 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11364@endif gmp-bootstrap
9b980aa1 11365
9b980aa1 11366
2a4cbe27 11367
4fa63067 11368
a90ef4bf
JM
11369
11370.PHONY: all-gmp maybe-all-gmp
11371maybe-all-gmp:
11372@if gcc-bootstrap
11373all-gmp: stage_current
11374@endif gcc-bootstrap
11375@if gmp
11376TARGET-gmp=all
11377maybe-all-gmp: all-gmp
11378all-gmp: configure-gmp
11379 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11381 $(HOST_EXPORTS) \
11382 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11383 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
11384 $(TARGET-gmp))
11385@endif gmp
2a4cbe27
NN
11386
11387
2a4cbe27 11388
a90ef4bf
JM
11389.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11390.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11391maybe-all-stage1-gmp:
11392maybe-clean-stage1-gmp:
11393@if gmp-bootstrap
11394maybe-all-stage1-gmp: all-stage1-gmp
11395all-stage1: all-stage1-gmp
11396TARGET-stage1-gmp = $(TARGET-gmp)
11397all-stage1-gmp: configure-stage1-gmp
11398 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11399 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11401 TFLAGS="$(STAGE1_TFLAGS)"; \
11402 $(HOST_EXPORTS) \
11403 cd $(HOST_SUBDIR)/gmp && \
05a13254 11404 \
a90ef4bf
JM
11405 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11406 CFLAGS="$(STAGE1_CFLAGS)" \
11407 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11408 LIBCFLAGS="$(LIBCFLAGS)" \
11409 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11410 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11411 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 11412 $(EXTRA_HOST_FLAGS) \
05a13254
NC
11413 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11414 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 11415 $(TARGET-stage1-gmp)
2a4cbe27 11416
a90ef4bf
JM
11417maybe-clean-stage1-gmp: clean-stage1-gmp
11418clean-stage1: clean-stage1-gmp
11419clean-stage1-gmp:
11420 @if [ $(current_stage) = stage1 ]; then \
11421 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11422 else \
11423 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11424 $(MAKE) stage1-start; \
11425 fi; \
11426 cd $(HOST_SUBDIR)/gmp && \
11427 $(MAKE) $(EXTRA_HOST_FLAGS) \
05a13254 11428 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11429@endif gmp-bootstrap
2a4cbe27 11430
56a8fe78 11431
a90ef4bf
JM
11432.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11433.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11434maybe-all-stage2-gmp:
11435maybe-clean-stage2-gmp:
11436@if gmp-bootstrap
11437maybe-all-stage2-gmp: all-stage2-gmp
11438all-stage2: all-stage2-gmp
11439TARGET-stage2-gmp = $(TARGET-gmp)
11440all-stage2-gmp: configure-stage2-gmp
11441 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11442 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11444 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11445 $(HOST_EXPORTS) \
a90ef4bf
JM
11446 $(POSTSTAGE1_HOST_EXPORTS) \
11447 cd $(HOST_SUBDIR)/gmp && \
05a13254 11448 \
a90ef4bf
JM
11449 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11450 CFLAGS="$(STAGE2_CFLAGS)" \
11451 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11452 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11453 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11454 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11455 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11456 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11457 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 11458 $(TARGET-stage2-gmp)
56a8fe78 11459
a90ef4bf
JM
11460maybe-clean-stage2-gmp: clean-stage2-gmp
11461clean-stage2: clean-stage2-gmp
11462clean-stage2-gmp:
11463 @if [ $(current_stage) = stage2 ]; then \
11464 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11465 else \
11466 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11467 $(MAKE) stage2-start; \
11468 fi; \
11469 cd $(HOST_SUBDIR)/gmp && \
05a13254 11470 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11471@endif gmp-bootstrap
56a8fe78 11472
6d389afc 11473
a90ef4bf
JM
11474.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11475.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11476maybe-all-stage3-gmp:
11477maybe-clean-stage3-gmp:
11478@if gmp-bootstrap
11479maybe-all-stage3-gmp: all-stage3-gmp
11480all-stage3: all-stage3-gmp
11481TARGET-stage3-gmp = $(TARGET-gmp)
11482all-stage3-gmp: configure-stage3-gmp
11483 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11484 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11486 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11487 $(HOST_EXPORTS) \
a90ef4bf
JM
11488 $(POSTSTAGE1_HOST_EXPORTS) \
11489 cd $(HOST_SUBDIR)/gmp && \
05a13254 11490 \
a90ef4bf
JM
11491 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11492 CFLAGS="$(STAGE3_CFLAGS)" \
11493 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11494 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11495 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11496 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11497 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11498 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11499 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 11500 $(TARGET-stage3-gmp)
6d389afc 11501
a90ef4bf
JM
11502maybe-clean-stage3-gmp: clean-stage3-gmp
11503clean-stage3: clean-stage3-gmp
11504clean-stage3-gmp:
11505 @if [ $(current_stage) = stage3 ]; then \
11506 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11507 else \
11508 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11509 $(MAKE) stage3-start; \
11510 fi; \
11511 cd $(HOST_SUBDIR)/gmp && \
05a13254 11512 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11513@endif gmp-bootstrap
6d389afc 11514
2a4cbe27 11515
a90ef4bf
JM
11516.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11517.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11518maybe-all-stage4-gmp:
11519maybe-clean-stage4-gmp:
11520@if gmp-bootstrap
11521maybe-all-stage4-gmp: all-stage4-gmp
11522all-stage4: all-stage4-gmp
11523TARGET-stage4-gmp = $(TARGET-gmp)
11524all-stage4-gmp: configure-stage4-gmp
11525 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11526 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11528 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11529 $(HOST_EXPORTS) \
a90ef4bf
JM
11530 $(POSTSTAGE1_HOST_EXPORTS) \
11531 cd $(HOST_SUBDIR)/gmp && \
05a13254 11532 \
a90ef4bf
JM
11533 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11534 CFLAGS="$(STAGE4_CFLAGS)" \
11535 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11536 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11537 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11538 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11539 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11540 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11541 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 11542 $(TARGET-stage4-gmp)
2a4cbe27 11543
a90ef4bf
JM
11544maybe-clean-stage4-gmp: clean-stage4-gmp
11545clean-stage4: clean-stage4-gmp
11546clean-stage4-gmp:
11547 @if [ $(current_stage) = stage4 ]; then \
11548 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11549 else \
11550 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11551 $(MAKE) stage4-start; \
11552 fi; \
11553 cd $(HOST_SUBDIR)/gmp && \
05a13254 11554 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11555@endif gmp-bootstrap
2a4cbe27 11556
2a4cbe27 11557
a90ef4bf
JM
11558.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11559.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11560maybe-all-stageprofile-gmp:
11561maybe-clean-stageprofile-gmp:
11562@if gmp-bootstrap
11563maybe-all-stageprofile-gmp: all-stageprofile-gmp
11564all-stageprofile: all-stageprofile-gmp
11565TARGET-stageprofile-gmp = $(TARGET-gmp)
11566all-stageprofile-gmp: configure-stageprofile-gmp
11567 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11568 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11570 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11571 $(HOST_EXPORTS) \
a90ef4bf
JM
11572 $(POSTSTAGE1_HOST_EXPORTS) \
11573 cd $(HOST_SUBDIR)/gmp && \
05a13254 11574 \
a90ef4bf
JM
11575 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11576 CFLAGS="$(STAGEprofile_CFLAGS)" \
11577 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11578 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11579 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11580 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11581 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11582 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11583 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 11584 $(TARGET-stageprofile-gmp)
2a4cbe27 11585
a90ef4bf
JM
11586maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11587clean-stageprofile: clean-stageprofile-gmp
11588clean-stageprofile-gmp:
11589 @if [ $(current_stage) = stageprofile ]; then \
11590 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11591 else \
11592 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11593 $(MAKE) stageprofile-start; \
11594 fi; \
11595 cd $(HOST_SUBDIR)/gmp && \
05a13254 11596 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11597@endif gmp-bootstrap
2a4cbe27 11598
a7254363 11599
a90ef4bf
JM
11600.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11601.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11602maybe-all-stagefeedback-gmp:
11603maybe-clean-stagefeedback-gmp:
11604@if gmp-bootstrap
11605maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11606all-stagefeedback: all-stagefeedback-gmp
11607TARGET-stagefeedback-gmp = $(TARGET-gmp)
11608all-stagefeedback-gmp: configure-stagefeedback-gmp
11609 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11610 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11612 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11613 $(HOST_EXPORTS) \
11614 $(POSTSTAGE1_HOST_EXPORTS) \
11615 cd $(HOST_SUBDIR)/gmp && \
05a13254 11616 \
a90ef4bf
JM
11617 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11618 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11619 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11620 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11621 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11622 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11623 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11624 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11625 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 11626 $(TARGET-stagefeedback-gmp)
d545f33b 11627
a90ef4bf
JM
11628maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11629clean-stagefeedback: clean-stagefeedback-gmp
11630clean-stagefeedback-gmp:
11631 @if [ $(current_stage) = stagefeedback ]; then \
11632 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11633 else \
11634 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11635 $(MAKE) stagefeedback-start; \
11636 fi; \
11637 cd $(HOST_SUBDIR)/gmp && \
05a13254 11638 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11639@endif gmp-bootstrap
d545f33b 11640
4fa63067 11641
a7254363 11642
d545f33b
PB
11643
11644
a90ef4bf
JM
11645.PHONY: check-gmp maybe-check-gmp
11646maybe-check-gmp:
11647@if gmp
11648maybe-check-gmp: check-gmp
4fa63067 11649
a90ef4bf 11650check-gmp:
0aed8855 11651 @: $(MAKE); $(unstage)
4fa63067
NN
11652 @r=`${PWD_COMMAND}`; export r; \
11653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11654 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11655 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11656 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11657
a90ef4bf 11658@endif gmp
2a4cbe27 11659
a90ef4bf
JM
11660.PHONY: install-gmp maybe-install-gmp
11661maybe-install-gmp:
11662@if gmp
11663maybe-install-gmp: install-gmp
2a4cbe27 11664
a90ef4bf 11665install-gmp:
2a4cbe27 11666
a90ef4bf 11667@endif gmp
2a4cbe27 11668
a90ef4bf
JM
11669.PHONY: install-strip-gmp maybe-install-strip-gmp
11670maybe-install-strip-gmp:
11671@if gmp
11672maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11673
a90ef4bf 11674install-strip-gmp:
9b980aa1 11675
a90ef4bf 11676@endif gmp
9b980aa1 11677
56a8fe78 11678# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11679
a90ef4bf
JM
11680.PHONY: maybe-info-gmp info-gmp
11681maybe-info-gmp:
11682@if gmp
11683maybe-info-gmp: info-gmp
4fa63067 11684
a90ef4bf
JM
11685info-gmp: \
11686 configure-gmp
11687 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11688 r=`${PWD_COMMAND}`; export r; \
11689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11690 $(HOST_EXPORTS) \
05a13254 11691 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11693 done; \
22121df0 11694 echo "Doing info in gmp"; \
a90ef4bf 11695 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11698 "RANLIB=$${RANLIB}" \
0c24b341 11699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11700 info) \
2a4cbe27
NN
11701 || exit 1
11702
a90ef4bf 11703@endif gmp
2a4cbe27 11704
a90ef4bf
JM
11705.PHONY: maybe-dvi-gmp dvi-gmp
11706maybe-dvi-gmp:
11707@if gmp
11708maybe-dvi-gmp: dvi-gmp
2a4cbe27 11709
a90ef4bf
JM
11710dvi-gmp: \
11711 configure-gmp
11712 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11713 r=`${PWD_COMMAND}`; export r; \
11714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11715 $(HOST_EXPORTS) \
05a13254 11716 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11718 done; \
22121df0 11719 echo "Doing dvi in gmp"; \
a90ef4bf 11720 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11723 "RANLIB=$${RANLIB}" \
0c24b341 11724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11725 dvi) \
2a4cbe27
NN
11726 || exit 1
11727
a90ef4bf 11728@endif gmp
2a4cbe27 11729
a90ef4bf
JM
11730.PHONY: maybe-pdf-gmp pdf-gmp
11731maybe-pdf-gmp:
11732@if gmp
11733maybe-pdf-gmp: pdf-gmp
56a8fe78 11734
a90ef4bf
JM
11735pdf-gmp: \
11736 configure-gmp
11737 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11738 r=`${PWD_COMMAND}`; export r; \
11739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11740 $(HOST_EXPORTS) \
05a13254 11741 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
11742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11743 done; \
22121df0 11744 echo "Doing pdf in gmp"; \
a90ef4bf 11745 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11748 "RANLIB=$${RANLIB}" \
0c24b341 11749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11750 pdf) \
11751 || exit 1
11752
a90ef4bf 11753@endif gmp
56a8fe78 11754
a90ef4bf
JM
11755.PHONY: maybe-html-gmp html-gmp
11756maybe-html-gmp:
11757@if gmp
11758maybe-html-gmp: html-gmp
6d389afc 11759
a90ef4bf
JM
11760html-gmp: \
11761 configure-gmp
11762 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11763 r=`${PWD_COMMAND}`; export r; \
11764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 11765 $(HOST_EXPORTS) \
05a13254 11766 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
11767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11768 done; \
22121df0 11769 echo "Doing html in gmp"; \
a90ef4bf 11770 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11773 "RANLIB=$${RANLIB}" \
0c24b341 11774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11775 html) \
11776 || exit 1
11777
a90ef4bf 11778@endif gmp
6d389afc 11779
a90ef4bf
JM
11780.PHONY: maybe-TAGS-gmp TAGS-gmp
11781maybe-TAGS-gmp:
11782@if gmp
11783maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11784
a90ef4bf
JM
11785TAGS-gmp: \
11786 configure-gmp
11787 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11788 r=`${PWD_COMMAND}`; export r; \
11789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11790 $(HOST_EXPORTS) \
05a13254 11791 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11793 done; \
22121df0 11794 echo "Doing TAGS in gmp"; \
a90ef4bf 11795 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11798 "RANLIB=$${RANLIB}" \
0c24b341 11799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11800 TAGS) \
2a4cbe27
NN
11801 || exit 1
11802
a90ef4bf 11803@endif gmp
2a4cbe27 11804
a90ef4bf
JM
11805.PHONY: maybe-install-info-gmp install-info-gmp
11806maybe-install-info-gmp:
11807@if gmp
11808maybe-install-info-gmp: install-info-gmp
2a4cbe27 11809
a90ef4bf
JM
11810install-info-gmp: \
11811 configure-gmp \
11812 info-gmp
11813 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11814 r=`${PWD_COMMAND}`; export r; \
11815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11816 $(HOST_EXPORTS) \
05a13254 11817 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11819 done; \
22121df0 11820 echo "Doing install-info in gmp"; \
a90ef4bf 11821 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11824 "RANLIB=$${RANLIB}" \
0c24b341 11825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11826 install-info) \
2a4cbe27
NN
11827 || exit 1
11828
a90ef4bf 11829@endif gmp
2a4cbe27 11830
a90ef4bf
JM
11831.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11832maybe-install-pdf-gmp:
11833@if gmp
11834maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11835
a90ef4bf
JM
11836install-pdf-gmp: \
11837 configure-gmp \
11838 pdf-gmp
11839 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11840 r=`${PWD_COMMAND}`; export r; \
11841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11842 $(HOST_EXPORTS) \
05a13254 11843 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
11844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11845 done; \
22121df0 11846 echo "Doing install-pdf in gmp"; \
a90ef4bf 11847 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11850 "RANLIB=$${RANLIB}" \
0c24b341 11851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11852 install-pdf) \
11853 || exit 1
11854
a90ef4bf 11855@endif gmp
a3ca38d2 11856
a90ef4bf
JM
11857.PHONY: maybe-install-html-gmp install-html-gmp
11858maybe-install-html-gmp:
11859@if gmp
11860maybe-install-html-gmp: install-html-gmp
108a6f8e 11861
a90ef4bf
JM
11862install-html-gmp: \
11863 configure-gmp \
11864 html-gmp
11865 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11866 r=`${PWD_COMMAND}`; export r; \
11867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11868 $(HOST_EXPORTS) \
05a13254 11869 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
11870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11871 done; \
22121df0 11872 echo "Doing install-html in gmp"; \
a90ef4bf 11873 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11876 "RANLIB=$${RANLIB}" \
0c24b341 11877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11878 install-html) \
11879 || exit 1
11880
a90ef4bf 11881@endif gmp
108a6f8e 11882
a90ef4bf
JM
11883.PHONY: maybe-installcheck-gmp installcheck-gmp
11884maybe-installcheck-gmp:
11885@if gmp
11886maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11887
a90ef4bf
JM
11888installcheck-gmp: \
11889 configure-gmp
11890 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11891 r=`${PWD_COMMAND}`; export r; \
11892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11893 $(HOST_EXPORTS) \
05a13254 11894 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11896 done; \
22121df0 11897 echo "Doing installcheck in gmp"; \
a90ef4bf 11898 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11901 "RANLIB=$${RANLIB}" \
0c24b341 11902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11903 installcheck) \
2a4cbe27
NN
11904 || exit 1
11905
a90ef4bf 11906@endif gmp
2a4cbe27 11907
a90ef4bf
JM
11908.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11909maybe-mostlyclean-gmp:
11910@if gmp
11911maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11912
a90ef4bf
JM
11913mostlyclean-gmp:
11914 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11915 r=`${PWD_COMMAND}`; export r; \
11916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11917 $(HOST_EXPORTS) \
05a13254 11918 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11920 done; \
22121df0 11921 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11922 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11925 "RANLIB=$${RANLIB}" \
0c24b341 11926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11927 mostlyclean) \
2a4cbe27
NN
11928 || exit 1
11929
a90ef4bf 11930@endif gmp
2a4cbe27 11931
a90ef4bf
JM
11932.PHONY: maybe-clean-gmp clean-gmp
11933maybe-clean-gmp:
11934@if gmp
11935maybe-clean-gmp: clean-gmp
2a4cbe27 11936
a90ef4bf
JM
11937clean-gmp:
11938 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11939 r=`${PWD_COMMAND}`; export r; \
11940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11941 $(HOST_EXPORTS) \
05a13254 11942 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11944 done; \
22121df0 11945 echo "Doing clean in gmp"; \
a90ef4bf 11946 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11949 "RANLIB=$${RANLIB}" \
0c24b341 11950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11951 clean) \
2a4cbe27
NN
11952 || exit 1
11953
a90ef4bf 11954@endif gmp
2a4cbe27 11955
a90ef4bf
JM
11956.PHONY: maybe-distclean-gmp distclean-gmp
11957maybe-distclean-gmp:
11958@if gmp
11959maybe-distclean-gmp: distclean-gmp
2a4cbe27 11960
a90ef4bf
JM
11961distclean-gmp:
11962 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11963 r=`${PWD_COMMAND}`; export r; \
11964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11965 $(HOST_EXPORTS) \
05a13254 11966 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11968 done; \
22121df0 11969 echo "Doing distclean in gmp"; \
a90ef4bf 11970 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11973 "RANLIB=$${RANLIB}" \
0c24b341 11974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11975 distclean) \
2a4cbe27
NN
11976 || exit 1
11977
a90ef4bf 11978@endif gmp
2a4cbe27 11979
a90ef4bf
JM
11980.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11981maybe-maintainer-clean-gmp:
11982@if gmp
11983maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11984
a90ef4bf
JM
11985maintainer-clean-gmp:
11986 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11987 r=`${PWD_COMMAND}`; export r; \
11988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11989 $(HOST_EXPORTS) \
05a13254 11990 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11992 done; \
22121df0 11993 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 11994 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11997 "RANLIB=$${RANLIB}" \
0c24b341 11998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11999 maintainer-clean) \
2a4cbe27
NN
12000 || exit 1
12001
a90ef4bf 12002@endif gmp
2a4cbe27 12003
2a4cbe27 12004
a7254363 12005
a90ef4bf
JM
12006.PHONY: configure-mpfr maybe-configure-mpfr
12007maybe-configure-mpfr:
4f0ef2d8 12008@if gcc-bootstrap
a90ef4bf 12009configure-mpfr: stage_current
4f0ef2d8 12010@endif gcc-bootstrap
a90ef4bf
JM
12011@if mpfr
12012maybe-configure-mpfr: configure-mpfr
12013configure-mpfr:
12014 @r=`${PWD_COMMAND}`; export r; \
12015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12016 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 12017 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 12018 $(HOST_EXPORTS) \
a90ef4bf
JM
12019 echo Configuring in $(HOST_SUBDIR)/mpfr; \
12020 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 12021 case $(srcdir) in \
b00612cc 12022 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12023 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 12024 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 12025 esac; \
1b6c0831
L
12026 module_srcdir=mpfr; \
12027 $(SHELL) \
12028 $$s/$$module_srcdir/configure \
12029 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12030 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12031 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 12032 || exit 1
a90ef4bf 12033@endif mpfr
d545f33b
PB
12034
12035
2a4cbe27 12036
a90ef4bf
JM
12037.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
12038maybe-configure-stage1-mpfr:
12039@if mpfr-bootstrap
12040maybe-configure-stage1-mpfr: configure-stage1-mpfr
12041configure-stage1-mpfr:
12042 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12043 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12044 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12046 TFLAGS="$(STAGE1_TFLAGS)"; \
12047 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12048 $(HOST_EXPORTS) \
a90ef4bf
JM
12049 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12050 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12051 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12052 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
12053 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12054 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12055 case $(srcdir) in \
12056 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12057 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12058 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12059 esac; \
1b6c0831
L
12060 module_srcdir=mpfr; \
12061 $(SHELL) $$s/$$module_srcdir/configure \
12062 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12063 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12064 --target=${target_alias} \
12065 \
a90ef4bf
JM
12066 $(STAGE1_CONFIGURE_FLAGS) \
12067 --disable-shared @extra_mpfr_configure_flags@
12068@endif mpfr-bootstrap
2a4cbe27 12069
a90ef4bf
JM
12070.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
12071maybe-configure-stage2-mpfr:
12072@if mpfr-bootstrap
12073maybe-configure-stage2-mpfr: configure-stage2-mpfr
12074configure-stage2-mpfr:
12075 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12076 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12077 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12079 TFLAGS="$(STAGE2_TFLAGS)"; \
12080 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12081 $(HOST_EXPORTS) \
a90ef4bf
JM
12082 $(POSTSTAGE1_HOST_EXPORTS) \
12083 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12084 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12085 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12086 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
12087 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12088 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12089 case $(srcdir) in \
12090 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12091 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12092 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12093 esac; \
1b6c0831
L
12094 module_srcdir=mpfr; \
12095 $(SHELL) $$s/$$module_srcdir/configure \
12096 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12097 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12098 --target=${target_alias} \
22121df0 12099 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12100 $(STAGE2_CONFIGURE_FLAGS) \
12101 --disable-shared @extra_mpfr_configure_flags@
12102@endif mpfr-bootstrap
9b980aa1 12103
a90ef4bf
JM
12104.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12105maybe-configure-stage3-mpfr:
12106@if mpfr-bootstrap
12107maybe-configure-stage3-mpfr: configure-stage3-mpfr
12108configure-stage3-mpfr:
12109 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12110 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12111 @r=`${PWD_COMMAND}`; export r; \
12112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12113 TFLAGS="$(STAGE3_TFLAGS)"; \
12114 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12115 $(HOST_EXPORTS) \
a90ef4bf
JM
12116 $(POSTSTAGE1_HOST_EXPORTS) \
12117 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12118 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12119 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12120 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12121 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12122 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12123 case $(srcdir) in \
12124 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12125 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12126 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12127 esac; \
1b6c0831
L
12128 module_srcdir=mpfr; \
12129 $(SHELL) $$s/$$module_srcdir/configure \
12130 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12131 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12132 --target=${target_alias} \
22121df0 12133 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12134 $(STAGE3_CONFIGURE_FLAGS) \
12135 --disable-shared @extra_mpfr_configure_flags@
12136@endif mpfr-bootstrap
2a4cbe27 12137
a90ef4bf
JM
12138.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12139maybe-configure-stage4-mpfr:
12140@if mpfr-bootstrap
12141maybe-configure-stage4-mpfr: configure-stage4-mpfr
12142configure-stage4-mpfr:
12143 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12144 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12145 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12147 TFLAGS="$(STAGE4_TFLAGS)"; \
12148 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12149 $(HOST_EXPORTS) \
a90ef4bf
JM
12150 $(POSTSTAGE1_HOST_EXPORTS) \
12151 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12152 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12153 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12154 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12155 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12156 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12157 case $(srcdir) in \
12158 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12159 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12160 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12161 esac; \
1b6c0831
L
12162 module_srcdir=mpfr; \
12163 $(SHELL) $$s/$$module_srcdir/configure \
12164 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12165 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12166 --target=${target_alias} \
22121df0 12167 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12168 $(STAGE4_CONFIGURE_FLAGS) \
12169 --disable-shared @extra_mpfr_configure_flags@
12170@endif mpfr-bootstrap
2a4cbe27 12171
a90ef4bf
JM
12172.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12173maybe-configure-stageprofile-mpfr:
12174@if mpfr-bootstrap
12175maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12176configure-stageprofile-mpfr:
12177 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12178 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12179 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12181 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12182 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12183 $(HOST_EXPORTS) \
a90ef4bf
JM
12184 $(POSTSTAGE1_HOST_EXPORTS) \
12185 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12186 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12187 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12188 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12189 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12190 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12191 case $(srcdir) in \
12192 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12193 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12194 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12195 esac; \
1b6c0831
L
12196 module_srcdir=mpfr; \
12197 $(SHELL) $$s/$$module_srcdir/configure \
12198 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12199 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12200 --target=${target_alias} \
22121df0 12201 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12202 $(STAGEprofile_CONFIGURE_FLAGS) \
12203 --disable-shared @extra_mpfr_configure_flags@
12204@endif mpfr-bootstrap
56a8fe78 12205
a90ef4bf
JM
12206.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12207maybe-configure-stagefeedback-mpfr:
12208@if mpfr-bootstrap
12209maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12210configure-stagefeedback-mpfr:
12211 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12212 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12213 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12215 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12216 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12217 $(HOST_EXPORTS) \
a90ef4bf
JM
12218 $(POSTSTAGE1_HOST_EXPORTS) \
12219 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12220 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12221 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12222 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12223 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12224 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12225 case $(srcdir) in \
12226 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12227 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12228 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12229 esac; \
1b6c0831
L
12230 module_srcdir=mpfr; \
12231 $(SHELL) $$s/$$module_srcdir/configure \
12232 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12233 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12234 --target=${target_alias} \
22121df0 12235 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12236 $(STAGEfeedback_CONFIGURE_FLAGS) \
12237 --disable-shared @extra_mpfr_configure_flags@
12238@endif mpfr-bootstrap
56a8fe78 12239
6d389afc 12240
6d389afc 12241
6d389afc 12242
2a4cbe27 12243
a90ef4bf
JM
12244.PHONY: all-mpfr maybe-all-mpfr
12245maybe-all-mpfr:
12246@if gcc-bootstrap
12247all-mpfr: stage_current
12248@endif gcc-bootstrap
12249@if mpfr
12250TARGET-mpfr=all
12251maybe-all-mpfr: all-mpfr
12252all-mpfr: configure-mpfr
12253 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12255 $(HOST_EXPORTS) \
12256 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12257 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12258 $(TARGET-mpfr))
12259@endif mpfr
2a4cbe27
NN
12260
12261
2a4cbe27 12262
a90ef4bf
JM
12263.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12264.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12265maybe-all-stage1-mpfr:
12266maybe-clean-stage1-mpfr:
12267@if mpfr-bootstrap
12268maybe-all-stage1-mpfr: all-stage1-mpfr
12269all-stage1: all-stage1-mpfr
12270TARGET-stage1-mpfr = $(TARGET-mpfr)
12271all-stage1-mpfr: configure-stage1-mpfr
12272 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12273 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12275 TFLAGS="$(STAGE1_TFLAGS)"; \
12276 $(HOST_EXPORTS) \
12277 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12278 \
a90ef4bf
JM
12279 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12280 CFLAGS="$(STAGE1_CFLAGS)" \
12281 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12282 LIBCFLAGS="$(LIBCFLAGS)" \
12283 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12284 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12285 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 12286 $(EXTRA_HOST_FLAGS) \
ce5e165e 12287 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12288 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 12289 $(TARGET-stage1-mpfr)
2a4cbe27 12290
a90ef4bf
JM
12291maybe-clean-stage1-mpfr: clean-stage1-mpfr
12292clean-stage1: clean-stage1-mpfr
12293clean-stage1-mpfr:
12294 @if [ $(current_stage) = stage1 ]; then \
12295 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12296 else \
12297 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12298 $(MAKE) stage1-start; \
12299 fi; \
12300 cd $(HOST_SUBDIR)/mpfr && \
12301 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce5e165e 12302 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12303@endif mpfr-bootstrap
2a4cbe27 12304
a3ca38d2 12305
a90ef4bf
JM
12306.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12307.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12308maybe-all-stage2-mpfr:
12309maybe-clean-stage2-mpfr:
12310@if mpfr-bootstrap
12311maybe-all-stage2-mpfr: all-stage2-mpfr
12312all-stage2: all-stage2-mpfr
12313TARGET-stage2-mpfr = $(TARGET-mpfr)
12314all-stage2-mpfr: configure-stage2-mpfr
12315 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12316 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12318 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12319 $(HOST_EXPORTS) \
a90ef4bf
JM
12320 $(POSTSTAGE1_HOST_EXPORTS) \
12321 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12322 \
a90ef4bf
JM
12323 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12324 CFLAGS="$(STAGE2_CFLAGS)" \
12325 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12326 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12327 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12328 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12329 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12330 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12331 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 12332 $(TARGET-stage2-mpfr)
a3ca38d2 12333
a90ef4bf
JM
12334maybe-clean-stage2-mpfr: clean-stage2-mpfr
12335clean-stage2: clean-stage2-mpfr
12336clean-stage2-mpfr:
12337 @if [ $(current_stage) = stage2 ]; then \
12338 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12339 else \
12340 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12341 $(MAKE) stage2-start; \
12342 fi; \
12343 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12344 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12345@endif mpfr-bootstrap
a3ca38d2 12346
108a6f8e 12347
a90ef4bf
JM
12348.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12349.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12350maybe-all-stage3-mpfr:
12351maybe-clean-stage3-mpfr:
12352@if mpfr-bootstrap
12353maybe-all-stage3-mpfr: all-stage3-mpfr
12354all-stage3: all-stage3-mpfr
12355TARGET-stage3-mpfr = $(TARGET-mpfr)
12356all-stage3-mpfr: configure-stage3-mpfr
12357 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12358 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12360 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12361 $(HOST_EXPORTS) \
a90ef4bf
JM
12362 $(POSTSTAGE1_HOST_EXPORTS) \
12363 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12364 \
a90ef4bf
JM
12365 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12366 CFLAGS="$(STAGE3_CFLAGS)" \
12367 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12368 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12369 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12370 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12371 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12372 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12373 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 12374 $(TARGET-stage3-mpfr)
108a6f8e 12375
a90ef4bf
JM
12376maybe-clean-stage3-mpfr: clean-stage3-mpfr
12377clean-stage3: clean-stage3-mpfr
12378clean-stage3-mpfr:
12379 @if [ $(current_stage) = stage3 ]; then \
12380 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12381 else \
12382 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12383 $(MAKE) stage3-start; \
12384 fi; \
12385 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12386 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12387@endif mpfr-bootstrap
108a6f8e 12388
2a4cbe27 12389
a90ef4bf
JM
12390.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12391.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12392maybe-all-stage4-mpfr:
12393maybe-clean-stage4-mpfr:
12394@if mpfr-bootstrap
12395maybe-all-stage4-mpfr: all-stage4-mpfr
12396all-stage4: all-stage4-mpfr
12397TARGET-stage4-mpfr = $(TARGET-mpfr)
12398all-stage4-mpfr: configure-stage4-mpfr
12399 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12400 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12402 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12403 $(HOST_EXPORTS) \
a90ef4bf
JM
12404 $(POSTSTAGE1_HOST_EXPORTS) \
12405 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12406 \
a90ef4bf
JM
12407 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12408 CFLAGS="$(STAGE4_CFLAGS)" \
12409 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12410 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12411 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12412 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12413 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12414 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12415 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 12416 $(TARGET-stage4-mpfr)
2a4cbe27 12417
a90ef4bf
JM
12418maybe-clean-stage4-mpfr: clean-stage4-mpfr
12419clean-stage4: clean-stage4-mpfr
12420clean-stage4-mpfr:
12421 @if [ $(current_stage) = stage4 ]; then \
12422 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12423 else \
12424 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12425 $(MAKE) stage4-start; \
12426 fi; \
12427 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12428 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12429@endif mpfr-bootstrap
2a4cbe27 12430
2a4cbe27 12431
a90ef4bf
JM
12432.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12433.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12434maybe-all-stageprofile-mpfr:
12435maybe-clean-stageprofile-mpfr:
12436@if mpfr-bootstrap
12437maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12438all-stageprofile: all-stageprofile-mpfr
12439TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12440all-stageprofile-mpfr: configure-stageprofile-mpfr
12441 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12442 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12444 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12445 $(HOST_EXPORTS) \
a90ef4bf
JM
12446 $(POSTSTAGE1_HOST_EXPORTS) \
12447 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12448 \
a90ef4bf
JM
12449 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12450 CFLAGS="$(STAGEprofile_CFLAGS)" \
12451 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12452 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12453 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12454 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12455 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12456 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12457 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 12458 $(TARGET-stageprofile-mpfr)
2a4cbe27 12459
a90ef4bf
JM
12460maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12461clean-stageprofile: clean-stageprofile-mpfr
12462clean-stageprofile-mpfr:
12463 @if [ $(current_stage) = stageprofile ]; then \
12464 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12465 else \
12466 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12467 $(MAKE) stageprofile-start; \
12468 fi; \
12469 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12470 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12471@endif mpfr-bootstrap
2a4cbe27 12472
a7254363 12473
a90ef4bf
JM
12474.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12475.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12476maybe-all-stagefeedback-mpfr:
12477maybe-clean-stagefeedback-mpfr:
12478@if mpfr-bootstrap
12479maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12480all-stagefeedback: all-stagefeedback-mpfr
12481TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12482all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12483 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12484 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12486 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12487 $(HOST_EXPORTS) \
12488 $(POSTSTAGE1_HOST_EXPORTS) \
12489 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12490 \
a90ef4bf
JM
12491 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12492 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12493 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12494 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12495 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12496 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12497 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12498 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12499 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 12500 $(TARGET-stagefeedback-mpfr)
d545f33b 12501
a90ef4bf
JM
12502maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12503clean-stagefeedback: clean-stagefeedback-mpfr
12504clean-stagefeedback-mpfr:
12505 @if [ $(current_stage) = stagefeedback ]; then \
12506 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12507 else \
12508 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12509 $(MAKE) stagefeedback-start; \
12510 fi; \
12511 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12512 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12513@endif mpfr-bootstrap
d545f33b 12514
2a4cbe27 12515
a7254363 12516
d545f33b
PB
12517
12518
a90ef4bf
JM
12519.PHONY: check-mpfr maybe-check-mpfr
12520maybe-check-mpfr:
12521@if mpfr
12522maybe-check-mpfr: check-mpfr
2a4cbe27 12523
a90ef4bf 12524check-mpfr:
0aed8855 12525 @: $(MAKE); $(unstage)
4fa63067 12526 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12528 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12529 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12530 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12531
a90ef4bf 12532@endif mpfr
2a4cbe27 12533
a90ef4bf
JM
12534.PHONY: install-mpfr maybe-install-mpfr
12535maybe-install-mpfr:
12536@if mpfr
12537maybe-install-mpfr: install-mpfr
2a4cbe27 12538
a90ef4bf 12539install-mpfr:
4fa63067 12540
a90ef4bf 12541@endif mpfr
4fa63067 12542
a90ef4bf
JM
12543.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12544maybe-install-strip-mpfr:
12545@if mpfr
12546maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12547
a90ef4bf 12548install-strip-mpfr:
9b980aa1 12549
a90ef4bf 12550@endif mpfr
9b980aa1 12551
56a8fe78 12552# Other targets (info, dvi, pdf, etc.)
4fa63067 12553
a90ef4bf
JM
12554.PHONY: maybe-info-mpfr info-mpfr
12555maybe-info-mpfr:
12556@if mpfr
12557maybe-info-mpfr: info-mpfr
4fa63067 12558
a90ef4bf
JM
12559info-mpfr: \
12560 configure-mpfr
12561 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12562 r=`${PWD_COMMAND}`; export r; \
12563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12564 $(HOST_EXPORTS) \
ce5e165e 12565 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12567 done; \
22121df0 12568 echo "Doing info in mpfr"; \
a90ef4bf 12569 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12572 "RANLIB=$${RANLIB}" \
0c24b341 12573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12574 info) \
2a4cbe27
NN
12575 || exit 1
12576
a90ef4bf 12577@endif mpfr
2a4cbe27 12578
a90ef4bf
JM
12579.PHONY: maybe-dvi-mpfr dvi-mpfr
12580maybe-dvi-mpfr:
12581@if mpfr
12582maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12583
a90ef4bf
JM
12584dvi-mpfr: \
12585 configure-mpfr
12586 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12587 r=`${PWD_COMMAND}`; export r; \
12588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12589 $(HOST_EXPORTS) \
ce5e165e 12590 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12592 done; \
22121df0 12593 echo "Doing dvi in mpfr"; \
a90ef4bf 12594 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12597 "RANLIB=$${RANLIB}" \
0c24b341 12598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12599 dvi) \
2a4cbe27
NN
12600 || exit 1
12601
a90ef4bf 12602@endif mpfr
2a4cbe27 12603
a90ef4bf
JM
12604.PHONY: maybe-pdf-mpfr pdf-mpfr
12605maybe-pdf-mpfr:
12606@if mpfr
12607maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12608
a90ef4bf
JM
12609pdf-mpfr: \
12610 configure-mpfr
12611 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12612 r=`${PWD_COMMAND}`; export r; \
12613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12614 $(HOST_EXPORTS) \
ce5e165e 12615 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
12616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12617 done; \
22121df0 12618 echo "Doing pdf in mpfr"; \
a90ef4bf 12619 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12622 "RANLIB=$${RANLIB}" \
0c24b341 12623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12624 pdf) \
12625 || exit 1
12626
a90ef4bf 12627@endif mpfr
56a8fe78 12628
a90ef4bf
JM
12629.PHONY: maybe-html-mpfr html-mpfr
12630maybe-html-mpfr:
12631@if mpfr
12632maybe-html-mpfr: html-mpfr
6d389afc 12633
a90ef4bf
JM
12634html-mpfr: \
12635 configure-mpfr
12636 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12637 r=`${PWD_COMMAND}`; export r; \
12638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 12639 $(HOST_EXPORTS) \
ce5e165e 12640 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
12641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12642 done; \
22121df0 12643 echo "Doing html in mpfr"; \
a90ef4bf 12644 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12647 "RANLIB=$${RANLIB}" \
0c24b341 12648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12649 html) \
12650 || exit 1
12651
a90ef4bf 12652@endif mpfr
6d389afc 12653
a90ef4bf
JM
12654.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12655maybe-TAGS-mpfr:
12656@if mpfr
12657maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12658
a90ef4bf
JM
12659TAGS-mpfr: \
12660 configure-mpfr
12661 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12662 r=`${PWD_COMMAND}`; export r; \
12663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12664 $(HOST_EXPORTS) \
ce5e165e 12665 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12667 done; \
22121df0 12668 echo "Doing TAGS in mpfr"; \
a90ef4bf 12669 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12672 "RANLIB=$${RANLIB}" \
0c24b341 12673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12674 TAGS) \
2a4cbe27
NN
12675 || exit 1
12676
a90ef4bf 12677@endif mpfr
2a4cbe27 12678
a90ef4bf
JM
12679.PHONY: maybe-install-info-mpfr install-info-mpfr
12680maybe-install-info-mpfr:
12681@if mpfr
12682maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12683
a90ef4bf
JM
12684install-info-mpfr: \
12685 configure-mpfr \
12686 info-mpfr
12687 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12688 r=`${PWD_COMMAND}`; export r; \
12689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12690 $(HOST_EXPORTS) \
ce5e165e 12691 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12693 done; \
22121df0 12694 echo "Doing install-info in mpfr"; \
a90ef4bf 12695 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12698 "RANLIB=$${RANLIB}" \
0c24b341 12699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12700 install-info) \
2a4cbe27
NN
12701 || exit 1
12702
a90ef4bf 12703@endif mpfr
2a4cbe27 12704
a90ef4bf
JM
12705.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12706maybe-install-pdf-mpfr:
12707@if mpfr
12708maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12709
a90ef4bf
JM
12710install-pdf-mpfr: \
12711 configure-mpfr \
12712 pdf-mpfr
12713 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12714 r=`${PWD_COMMAND}`; export r; \
12715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12716 $(HOST_EXPORTS) \
ce5e165e 12717 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
12718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12719 done; \
22121df0 12720 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12721 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12724 "RANLIB=$${RANLIB}" \
0c24b341 12725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12726 install-pdf) \
12727 || exit 1
12728
a90ef4bf 12729@endif mpfr
a3ca38d2 12730
a90ef4bf
JM
12731.PHONY: maybe-install-html-mpfr install-html-mpfr
12732maybe-install-html-mpfr:
12733@if mpfr
12734maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12735
a90ef4bf
JM
12736install-html-mpfr: \
12737 configure-mpfr \
12738 html-mpfr
12739 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12740 r=`${PWD_COMMAND}`; export r; \
12741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12742 $(HOST_EXPORTS) \
ce5e165e 12743 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
12744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12745 done; \
22121df0 12746 echo "Doing install-html in mpfr"; \
a90ef4bf 12747 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12750 "RANLIB=$${RANLIB}" \
0c24b341 12751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12752 install-html) \
12753 || exit 1
12754
a90ef4bf 12755@endif mpfr
108a6f8e 12756
a90ef4bf
JM
12757.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12758maybe-installcheck-mpfr:
12759@if mpfr
12760maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12761
a90ef4bf
JM
12762installcheck-mpfr: \
12763 configure-mpfr
12764 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12765 r=`${PWD_COMMAND}`; export r; \
12766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12767 $(HOST_EXPORTS) \
ce5e165e 12768 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12770 done; \
22121df0 12771 echo "Doing installcheck in mpfr"; \
a90ef4bf 12772 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12775 "RANLIB=$${RANLIB}" \
0c24b341 12776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12777 installcheck) \
2a4cbe27
NN
12778 || exit 1
12779
a90ef4bf 12780@endif mpfr
2a4cbe27 12781
a90ef4bf
JM
12782.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12783maybe-mostlyclean-mpfr:
12784@if mpfr
12785maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12786
a90ef4bf
JM
12787mostlyclean-mpfr:
12788 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12789 r=`${PWD_COMMAND}`; export r; \
12790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12791 $(HOST_EXPORTS) \
ce5e165e 12792 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12794 done; \
22121df0 12795 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12796 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12799 "RANLIB=$${RANLIB}" \
0c24b341 12800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12801 mostlyclean) \
2a4cbe27
NN
12802 || exit 1
12803
a90ef4bf 12804@endif mpfr
2a4cbe27 12805
a90ef4bf
JM
12806.PHONY: maybe-clean-mpfr clean-mpfr
12807maybe-clean-mpfr:
12808@if mpfr
12809maybe-clean-mpfr: clean-mpfr
2a4cbe27 12810
a90ef4bf
JM
12811clean-mpfr:
12812 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12813 r=`${PWD_COMMAND}`; export r; \
12814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12815 $(HOST_EXPORTS) \
ce5e165e 12816 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12818 done; \
22121df0 12819 echo "Doing clean in mpfr"; \
a90ef4bf 12820 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12823 "RANLIB=$${RANLIB}" \
0c24b341 12824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12825 clean) \
2a4cbe27
NN
12826 || exit 1
12827
a90ef4bf 12828@endif mpfr
2a4cbe27 12829
a90ef4bf
JM
12830.PHONY: maybe-distclean-mpfr distclean-mpfr
12831maybe-distclean-mpfr:
12832@if mpfr
12833maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12834
a90ef4bf
JM
12835distclean-mpfr:
12836 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12837 r=`${PWD_COMMAND}`; export r; \
12838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12839 $(HOST_EXPORTS) \
ce5e165e 12840 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12842 done; \
22121df0 12843 echo "Doing distclean in mpfr"; \
a90ef4bf 12844 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12847 "RANLIB=$${RANLIB}" \
0c24b341 12848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12849 distclean) \
2a4cbe27
NN
12850 || exit 1
12851
a90ef4bf 12852@endif mpfr
2a4cbe27 12853
a90ef4bf
JM
12854.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12855maybe-maintainer-clean-mpfr:
12856@if mpfr
12857maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12858
a90ef4bf
JM
12859maintainer-clean-mpfr:
12860 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12861 r=`${PWD_COMMAND}`; export r; \
12862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12863 $(HOST_EXPORTS) \
ce5e165e 12864 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12866 done; \
22121df0 12867 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12868 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12871 "RANLIB=$${RANLIB}" \
0c24b341 12872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12873 maintainer-clean) \
2a4cbe27
NN
12874 || exit 1
12875
a90ef4bf 12876@endif mpfr
2a4cbe27 12877
2a4cbe27 12878
a7254363 12879
a90ef4bf
JM
12880.PHONY: configure-mpc maybe-configure-mpc
12881maybe-configure-mpc:
4f0ef2d8 12882@if gcc-bootstrap
a90ef4bf 12883configure-mpc: stage_current
4f0ef2d8 12884@endif gcc-bootstrap
a90ef4bf
JM
12885@if mpc
12886maybe-configure-mpc: configure-mpc
12887configure-mpc:
c52c6897 12888 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12890 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12891 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12892 $(HOST_EXPORTS) \
a90ef4bf
JM
12893 echo Configuring in $(HOST_SUBDIR)/mpc; \
12894 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12895 case $(srcdir) in \
b00612cc 12896 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12897 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12898 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12899 esac; \
1b6c0831
L
12900 module_srcdir=mpc; \
12901 $(SHELL) \
12902 $$s/$$module_srcdir/configure \
12903 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12904 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e3f56a99 12905 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12906 || exit 1
a90ef4bf 12907@endif mpc
d545f33b
PB
12908
12909
d3ed111c 12910
a90ef4bf
JM
12911.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12912maybe-configure-stage1-mpc:
12913@if mpc-bootstrap
12914maybe-configure-stage1-mpc: configure-stage1-mpc
12915configure-stage1-mpc:
12916 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12917 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12918 @r=`${PWD_COMMAND}`; export r; \
12919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12920 TFLAGS="$(STAGE1_TFLAGS)"; \
12921 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12922 $(HOST_EXPORTS) \
a90ef4bf
JM
12923 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12924 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12925 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12926 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12927 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12928 cd $(HOST_SUBDIR)/mpc || exit 1; \
12929 case $(srcdir) in \
12930 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12931 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12932 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12933 esac; \
1b6c0831
L
12934 module_srcdir=mpc; \
12935 $(SHELL) $$s/$$module_srcdir/configure \
12936 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12937 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12938 --target=${target_alias} \
12939 \
a90ef4bf 12940 $(STAGE1_CONFIGURE_FLAGS) \
e3f56a99 12941 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12942@endif mpc-bootstrap
d3ed111c 12943
a90ef4bf
JM
12944.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12945maybe-configure-stage2-mpc:
12946@if mpc-bootstrap
12947maybe-configure-stage2-mpc: configure-stage2-mpc
12948configure-stage2-mpc:
12949 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12950 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12951 @r=`${PWD_COMMAND}`; export r; \
12952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12953 TFLAGS="$(STAGE2_TFLAGS)"; \
12954 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12955 $(HOST_EXPORTS) \
a90ef4bf
JM
12956 $(POSTSTAGE1_HOST_EXPORTS) \
12957 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12958 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12959 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12960 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
12961 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12962 cd $(HOST_SUBDIR)/mpc || exit 1; \
12963 case $(srcdir) in \
12964 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12965 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12966 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12967 esac; \
1b6c0831
L
12968 module_srcdir=mpc; \
12969 $(SHELL) $$s/$$module_srcdir/configure \
12970 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12971 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12972 --target=${target_alias} \
22121df0 12973 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12974 $(STAGE2_CONFIGURE_FLAGS) \
e3f56a99 12975 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12976@endif mpc-bootstrap
9b980aa1 12977
a90ef4bf
JM
12978.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12979maybe-configure-stage3-mpc:
12980@if mpc-bootstrap
12981maybe-configure-stage3-mpc: configure-stage3-mpc
12982configure-stage3-mpc:
12983 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12984 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12985 @r=`${PWD_COMMAND}`; export r; \
12986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12987 TFLAGS="$(STAGE3_TFLAGS)"; \
12988 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12989 $(HOST_EXPORTS) \
a90ef4bf
JM
12990 $(POSTSTAGE1_HOST_EXPORTS) \
12991 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12992 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12993 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12994 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
12995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12996 cd $(HOST_SUBDIR)/mpc || exit 1; \
12997 case $(srcdir) in \
12998 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12999 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13000 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13001 esac; \
1b6c0831
L
13002 module_srcdir=mpc; \
13003 $(SHELL) $$s/$$module_srcdir/configure \
13004 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13005 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13006 --target=${target_alias} \
22121df0 13007 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13008 $(STAGE3_CONFIGURE_FLAGS) \
e3f56a99 13009 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 13010@endif mpc-bootstrap
d3ed111c 13011
a90ef4bf
JM
13012.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
13013maybe-configure-stage4-mpc:
13014@if mpc-bootstrap
13015maybe-configure-stage4-mpc: configure-stage4-mpc
13016configure-stage4-mpc:
13017 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13018 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13019 @r=`${PWD_COMMAND}`; export r; \
13020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13021 TFLAGS="$(STAGE4_TFLAGS)"; \
13022 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13023 $(HOST_EXPORTS) \
13024 $(POSTSTAGE1_HOST_EXPORTS) \
13025 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13026 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13027 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13028 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
13029 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13030 cd $(HOST_SUBDIR)/mpc || exit 1; \
13031 case $(srcdir) in \
13032 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13033 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13034 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13035 esac; \
1b6c0831
L
13036 module_srcdir=mpc; \
13037 $(SHELL) $$s/$$module_srcdir/configure \
13038 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13039 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13040 --target=${target_alias} \
22121df0 13041 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13042 $(STAGE4_CONFIGURE_FLAGS) \
e3f56a99 13043 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13044@endif mpc-bootstrap
13045
13046.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
13047maybe-configure-stageprofile-mpc:
13048@if mpc-bootstrap
13049maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
13050configure-stageprofile-mpc:
13051 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13052 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13053 @r=`${PWD_COMMAND}`; export r; \
13054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13055 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13056 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13057 $(HOST_EXPORTS) \
13058 $(POSTSTAGE1_HOST_EXPORTS) \
13059 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13060 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13061 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13062 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
13063 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13064 cd $(HOST_SUBDIR)/mpc || exit 1; \
13065 case $(srcdir) in \
13066 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13067 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13068 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13069 esac; \
1b6c0831
L
13070 module_srcdir=mpc; \
13071 $(SHELL) $$s/$$module_srcdir/configure \
13072 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13073 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13074 --target=${target_alias} \
22121df0 13075 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13076 $(STAGEprofile_CONFIGURE_FLAGS) \
e3f56a99 13077 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13078@endif mpc-bootstrap
13079
13080.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
13081maybe-configure-stagefeedback-mpc:
13082@if mpc-bootstrap
13083maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
13084configure-stagefeedback-mpc:
13085 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13086 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13087 @r=`${PWD_COMMAND}`; export r; \
13088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13089 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13090 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13091 $(HOST_EXPORTS) \
13092 $(POSTSTAGE1_HOST_EXPORTS) \
13093 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13094 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13095 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13096 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
13097 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13098 cd $(HOST_SUBDIR)/mpc || exit 1; \
13099 case $(srcdir) in \
13100 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13101 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13102 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13103 esac; \
1b6c0831
L
13104 module_srcdir=mpc; \
13105 $(SHELL) $$s/$$module_srcdir/configure \
13106 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13107 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13108 --target=${target_alias} \
22121df0 13109 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13110 $(STAGEfeedback_CONFIGURE_FLAGS) \
e3f56a99 13111 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13112@endif mpc-bootstrap
13113
13114
13115
13116
13117
13118.PHONY: all-mpc maybe-all-mpc
13119maybe-all-mpc:
13120@if gcc-bootstrap
13121all-mpc: stage_current
13122@endif gcc-bootstrap
13123@if mpc
13124TARGET-mpc=all
13125maybe-all-mpc: all-mpc
13126all-mpc: configure-mpc
13127 @r=`${PWD_COMMAND}`; export r; \
13128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13129 $(HOST_EXPORTS) \
13130 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13131 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13132 $(TARGET-mpc))
13133@endif mpc
13134
13135
13136
13137.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13138.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13139maybe-all-stage1-mpc:
13140maybe-clean-stage1-mpc:
13141@if mpc-bootstrap
13142maybe-all-stage1-mpc: all-stage1-mpc
13143all-stage1: all-stage1-mpc
13144TARGET-stage1-mpc = $(TARGET-mpc)
13145all-stage1-mpc: configure-stage1-mpc
13146 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13147 @r=`${PWD_COMMAND}`; export r; \
13148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13149 TFLAGS="$(STAGE1_TFLAGS)"; \
13150 $(HOST_EXPORTS) \
13151 cd $(HOST_SUBDIR)/mpc && \
05a13254 13152 \
a90ef4bf
JM
13153 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13154 CFLAGS="$(STAGE1_CFLAGS)" \
13155 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13156 LIBCFLAGS="$(LIBCFLAGS)" \
13157 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13158 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13159 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13160 $(EXTRA_HOST_FLAGS) \
13161 $(STAGE1_FLAGS_TO_PASS) \
05a13254 13162 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
13163 $(TARGET-stage1-mpc)
13164
13165maybe-clean-stage1-mpc: clean-stage1-mpc
13166clean-stage1: clean-stage1-mpc
13167clean-stage1-mpc:
13168 @if [ $(current_stage) = stage1 ]; then \
13169 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13170 else \
13171 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13172 $(MAKE) stage1-start; \
13173 fi; \
13174 cd $(HOST_SUBDIR)/mpc && \
13175 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13176 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13177@endif mpc-bootstrap
13178
13179
13180.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13181.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13182maybe-all-stage2-mpc:
13183maybe-clean-stage2-mpc:
13184@if mpc-bootstrap
13185maybe-all-stage2-mpc: all-stage2-mpc
13186all-stage2: all-stage2-mpc
13187TARGET-stage2-mpc = $(TARGET-mpc)
13188all-stage2-mpc: configure-stage2-mpc
13189 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13190 @r=`${PWD_COMMAND}`; export r; \
13191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13192 TFLAGS="$(STAGE2_TFLAGS)"; \
13193 $(HOST_EXPORTS) \
13194 $(POSTSTAGE1_HOST_EXPORTS) \
13195 cd $(HOST_SUBDIR)/mpc && \
05a13254 13196 \
a90ef4bf
JM
13197 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13198 CFLAGS="$(STAGE2_CFLAGS)" \
13199 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13200 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13201 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13202 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13203 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13204 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13205 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
13206 $(TARGET-stage2-mpc)
13207
13208maybe-clean-stage2-mpc: clean-stage2-mpc
13209clean-stage2: clean-stage2-mpc
13210clean-stage2-mpc:
13211 @if [ $(current_stage) = stage2 ]; then \
13212 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13213 else \
13214 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13215 $(MAKE) stage2-start; \
13216 fi; \
13217 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13218 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13219@endif mpc-bootstrap
13220
13221
13222.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13223.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13224maybe-all-stage3-mpc:
13225maybe-clean-stage3-mpc:
13226@if mpc-bootstrap
13227maybe-all-stage3-mpc: all-stage3-mpc
13228all-stage3: all-stage3-mpc
13229TARGET-stage3-mpc = $(TARGET-mpc)
13230all-stage3-mpc: configure-stage3-mpc
13231 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13232 @r=`${PWD_COMMAND}`; export r; \
13233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13234 TFLAGS="$(STAGE3_TFLAGS)"; \
13235 $(HOST_EXPORTS) \
13236 $(POSTSTAGE1_HOST_EXPORTS) \
13237 cd $(HOST_SUBDIR)/mpc && \
05a13254 13238 \
a90ef4bf
JM
13239 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13240 CFLAGS="$(STAGE3_CFLAGS)" \
13241 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13242 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13243 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13244 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13245 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13246 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13247 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
13248 $(TARGET-stage3-mpc)
13249
13250maybe-clean-stage3-mpc: clean-stage3-mpc
13251clean-stage3: clean-stage3-mpc
13252clean-stage3-mpc:
13253 @if [ $(current_stage) = stage3 ]; then \
13254 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13255 else \
13256 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13257 $(MAKE) stage3-start; \
13258 fi; \
13259 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13260 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13261@endif mpc-bootstrap
13262
13263
13264.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13265.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13266maybe-all-stage4-mpc:
13267maybe-clean-stage4-mpc:
13268@if mpc-bootstrap
13269maybe-all-stage4-mpc: all-stage4-mpc
13270all-stage4: all-stage4-mpc
13271TARGET-stage4-mpc = $(TARGET-mpc)
13272all-stage4-mpc: configure-stage4-mpc
13273 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13274 @r=`${PWD_COMMAND}`; export r; \
13275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13276 TFLAGS="$(STAGE4_TFLAGS)"; \
13277 $(HOST_EXPORTS) \
13278 $(POSTSTAGE1_HOST_EXPORTS) \
13279 cd $(HOST_SUBDIR)/mpc && \
05a13254 13280 \
a90ef4bf
JM
13281 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13282 CFLAGS="$(STAGE4_CFLAGS)" \
13283 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13284 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13285 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13286 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13287 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13288 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13289 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
13290 $(TARGET-stage4-mpc)
13291
13292maybe-clean-stage4-mpc: clean-stage4-mpc
13293clean-stage4: clean-stage4-mpc
13294clean-stage4-mpc:
13295 @if [ $(current_stage) = stage4 ]; then \
13296 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13297 else \
13298 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13299 $(MAKE) stage4-start; \
13300 fi; \
13301 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13302 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13303@endif mpc-bootstrap
13304
13305
13306.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13307.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13308maybe-all-stageprofile-mpc:
13309maybe-clean-stageprofile-mpc:
13310@if mpc-bootstrap
13311maybe-all-stageprofile-mpc: all-stageprofile-mpc
13312all-stageprofile: all-stageprofile-mpc
13313TARGET-stageprofile-mpc = $(TARGET-mpc)
13314all-stageprofile-mpc: configure-stageprofile-mpc
13315 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13316 @r=`${PWD_COMMAND}`; export r; \
13317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13318 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13319 $(HOST_EXPORTS) \
13320 $(POSTSTAGE1_HOST_EXPORTS) \
13321 cd $(HOST_SUBDIR)/mpc && \
05a13254 13322 \
a90ef4bf
JM
13323 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13324 CFLAGS="$(STAGEprofile_CFLAGS)" \
13325 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13326 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13327 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13328 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13329 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13330 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13331 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
13332 $(TARGET-stageprofile-mpc)
13333
13334maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13335clean-stageprofile: clean-stageprofile-mpc
13336clean-stageprofile-mpc:
13337 @if [ $(current_stage) = stageprofile ]; then \
13338 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13339 else \
13340 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13341 $(MAKE) stageprofile-start; \
13342 fi; \
13343 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13344 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13345@endif mpc-bootstrap
13346
13347
13348.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13349.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13350maybe-all-stagefeedback-mpc:
13351maybe-clean-stagefeedback-mpc:
13352@if mpc-bootstrap
13353maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13354all-stagefeedback: all-stagefeedback-mpc
13355TARGET-stagefeedback-mpc = $(TARGET-mpc)
13356all-stagefeedback-mpc: configure-stagefeedback-mpc
13357 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13358 @r=`${PWD_COMMAND}`; export r; \
13359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13360 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13361 $(HOST_EXPORTS) \
13362 $(POSTSTAGE1_HOST_EXPORTS) \
13363 cd $(HOST_SUBDIR)/mpc && \
05a13254 13364 \
a90ef4bf
JM
13365 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13366 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13367 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13368 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13369 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13370 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13371 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13372 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13373 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
13374 $(TARGET-stagefeedback-mpc)
13375
13376maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13377clean-stagefeedback: clean-stagefeedback-mpc
13378clean-stagefeedback-mpc:
13379 @if [ $(current_stage) = stagefeedback ]; then \
13380 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13381 else \
13382 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13383 $(MAKE) stagefeedback-start; \
13384 fi; \
13385 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13386 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13387@endif mpc-bootstrap
13388
13389
13390
13391
13392
13393.PHONY: check-mpc maybe-check-mpc
13394maybe-check-mpc:
13395@if mpc
13396maybe-check-mpc: check-mpc
13397
13398check-mpc:
13399 @: $(MAKE); $(unstage)
13400 @r=`${PWD_COMMAND}`; export r; \
13401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13402 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13403 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13404 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13405
13406@endif mpc
13407
13408.PHONY: install-mpc maybe-install-mpc
13409maybe-install-mpc:
13410@if mpc
13411maybe-install-mpc: install-mpc
13412
13413install-mpc:
13414
13415@endif mpc
13416
13417.PHONY: install-strip-mpc maybe-install-strip-mpc
13418maybe-install-strip-mpc:
13419@if mpc
13420maybe-install-strip-mpc: install-strip-mpc
13421
13422install-strip-mpc:
13423
13424@endif mpc
13425
13426# Other targets (info, dvi, pdf, etc.)
13427
13428.PHONY: maybe-info-mpc info-mpc
13429maybe-info-mpc:
13430@if mpc
13431maybe-info-mpc: info-mpc
13432
13433info-mpc: \
13434 configure-mpc
13435 @[ -f ./mpc/Makefile ] || exit 0; \
13436 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13438 $(HOST_EXPORTS) \
13439 for flag in $(EXTRA_HOST_FLAGS) ; do \
13440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13441 done; \
22121df0 13442 echo "Doing info in mpc"; \
a90ef4bf 13443 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13446 "RANLIB=$${RANLIB}" \
0c24b341 13447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13448 info) \
13449 || exit 1
d3ed111c 13450
a90ef4bf 13451@endif mpc
d3ed111c 13452
a90ef4bf
JM
13453.PHONY: maybe-dvi-mpc dvi-mpc
13454maybe-dvi-mpc:
13455@if mpc
13456maybe-dvi-mpc: dvi-mpc
d3ed111c 13457
a90ef4bf
JM
13458dvi-mpc: \
13459 configure-mpc
13460 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13461 r=`${PWD_COMMAND}`; export r; \
13462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13463 $(HOST_EXPORTS) \
13464 for flag in $(EXTRA_HOST_FLAGS) ; do \
13465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13466 done; \
22121df0 13467 echo "Doing dvi in mpc"; \
a90ef4bf 13468 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13471 "RANLIB=$${RANLIB}" \
0c24b341 13472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13473 dvi) \
13474 || exit 1
d3ed111c 13475
a90ef4bf 13476@endif mpc
d3ed111c 13477
a90ef4bf
JM
13478.PHONY: maybe-pdf-mpc pdf-mpc
13479maybe-pdf-mpc:
13480@if mpc
13481maybe-pdf-mpc: pdf-mpc
56a8fe78 13482
a90ef4bf
JM
13483pdf-mpc: \
13484 configure-mpc
13485 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13486 r=`${PWD_COMMAND}`; export r; \
13487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13488 $(HOST_EXPORTS) \
13489 for flag in $(EXTRA_HOST_FLAGS) ; do \
13490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13491 done; \
22121df0 13492 echo "Doing pdf in mpc"; \
a90ef4bf 13493 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13496 "RANLIB=$${RANLIB}" \
0c24b341 13497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13498 pdf) \
13499 || exit 1
56a8fe78 13500
a90ef4bf 13501@endif mpc
56a8fe78 13502
a90ef4bf
JM
13503.PHONY: maybe-html-mpc html-mpc
13504maybe-html-mpc:
13505@if mpc
13506maybe-html-mpc: html-mpc
6d389afc 13507
a90ef4bf
JM
13508html-mpc: \
13509 configure-mpc
13510 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13511 r=`${PWD_COMMAND}`; export r; \
13512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13513 $(HOST_EXPORTS) \
13514 for flag in $(EXTRA_HOST_FLAGS) ; do \
13515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13516 done; \
22121df0 13517 echo "Doing html in mpc"; \
a90ef4bf 13518 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13521 "RANLIB=$${RANLIB}" \
0c24b341 13522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13523 html) \
13524 || exit 1
13525
a90ef4bf 13526@endif mpc
d3ed111c 13527
a90ef4bf
JM
13528.PHONY: maybe-TAGS-mpc TAGS-mpc
13529maybe-TAGS-mpc:
13530@if mpc
13531maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13532
a90ef4bf
JM
13533TAGS-mpc: \
13534 configure-mpc
13535 @[ -f ./mpc/Makefile ] || exit 0; \
13536 r=`${PWD_COMMAND}`; export r; \
13537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13538 $(HOST_EXPORTS) \
13539 for flag in $(EXTRA_HOST_FLAGS) ; do \
13540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13541 done; \
22121df0 13542 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13543 (cd $(HOST_SUBDIR)/mpc && \
13544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13546 "RANLIB=$${RANLIB}" \
13547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13548 TAGS) \
13549 || exit 1
13550
13551@endif mpc
13552
13553.PHONY: maybe-install-info-mpc install-info-mpc
13554maybe-install-info-mpc:
13555@if mpc
13556maybe-install-info-mpc: install-info-mpc
13557
13558install-info-mpc: \
13559 configure-mpc \
13560 info-mpc
13561 @[ -f ./mpc/Makefile ] || exit 0; \
13562 r=`${PWD_COMMAND}`; export r; \
13563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13564 $(HOST_EXPORTS) \
13565 for flag in $(EXTRA_HOST_FLAGS) ; do \
13566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13567 done; \
22121df0 13568 echo "Doing install-info in mpc"; \
a90ef4bf 13569 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13572 "RANLIB=$${RANLIB}" \
0c24b341 13573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13574 install-info) \
13575 || exit 1
d3ed111c 13576
a90ef4bf 13577@endif mpc
d3ed111c 13578
a90ef4bf
JM
13579.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13580maybe-install-pdf-mpc:
13581@if mpc
13582maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13583
a90ef4bf
JM
13584install-pdf-mpc: \
13585 configure-mpc \
13586 pdf-mpc
13587 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13588 r=`${PWD_COMMAND}`; export r; \
13589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13590 $(HOST_EXPORTS) \
13591 for flag in $(EXTRA_HOST_FLAGS) ; do \
13592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13593 done; \
22121df0 13594 echo "Doing install-pdf in mpc"; \
a90ef4bf 13595 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13598 "RANLIB=$${RANLIB}" \
0c24b341 13599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13600 install-pdf) \
13601 || exit 1
a3ca38d2 13602
a90ef4bf 13603@endif mpc
a3ca38d2 13604
a90ef4bf
JM
13605.PHONY: maybe-install-html-mpc install-html-mpc
13606maybe-install-html-mpc:
13607@if mpc
13608maybe-install-html-mpc: install-html-mpc
108a6f8e 13609
a90ef4bf
JM
13610install-html-mpc: \
13611 configure-mpc \
13612 html-mpc
13613 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13614 r=`${PWD_COMMAND}`; export r; \
13615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13616 $(HOST_EXPORTS) \
13617 for flag in $(EXTRA_HOST_FLAGS) ; do \
13618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13619 done; \
22121df0 13620 echo "Doing install-html in mpc"; \
a90ef4bf 13621 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13624 "RANLIB=$${RANLIB}" \
0c24b341 13625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13626 install-html) \
13627 || exit 1
13628
a90ef4bf 13629@endif mpc
108a6f8e 13630
a90ef4bf
JM
13631.PHONY: maybe-installcheck-mpc installcheck-mpc
13632maybe-installcheck-mpc:
13633@if mpc
13634maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13635
a90ef4bf
JM
13636installcheck-mpc: \
13637 configure-mpc
13638 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13639 r=`${PWD_COMMAND}`; export r; \
13640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13641 $(HOST_EXPORTS) \
13642 for flag in $(EXTRA_HOST_FLAGS) ; do \
13643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13644 done; \
22121df0 13645 echo "Doing installcheck in mpc"; \
a90ef4bf 13646 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13649 "RANLIB=$${RANLIB}" \
0c24b341 13650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13651 installcheck) \
13652 || exit 1
d3ed111c 13653
a90ef4bf 13654@endif mpc
d3ed111c 13655
a90ef4bf
JM
13656.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13657maybe-mostlyclean-mpc:
13658@if mpc
13659maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13660
a90ef4bf
JM
13661mostlyclean-mpc:
13662 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13663 r=`${PWD_COMMAND}`; export r; \
13664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13665 $(HOST_EXPORTS) \
13666 for flag in $(EXTRA_HOST_FLAGS) ; do \
13667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13668 done; \
22121df0 13669 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13670 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13673 "RANLIB=$${RANLIB}" \
0c24b341 13674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13675 mostlyclean) \
13676 || exit 1
13677
a90ef4bf 13678@endif mpc
d3ed111c 13679
a90ef4bf
JM
13680.PHONY: maybe-clean-mpc clean-mpc
13681maybe-clean-mpc:
13682@if mpc
13683maybe-clean-mpc: clean-mpc
d3ed111c 13684
a90ef4bf
JM
13685clean-mpc:
13686 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13687 r=`${PWD_COMMAND}`; export r; \
13688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13689 $(HOST_EXPORTS) \
13690 for flag in $(EXTRA_HOST_FLAGS) ; do \
13691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13692 done; \
22121df0 13693 echo "Doing clean in mpc"; \
a90ef4bf 13694 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13697 "RANLIB=$${RANLIB}" \
0c24b341 13698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13699 clean) \
13700 || exit 1
13701
a90ef4bf 13702@endif mpc
d3ed111c 13703
a90ef4bf
JM
13704.PHONY: maybe-distclean-mpc distclean-mpc
13705maybe-distclean-mpc:
13706@if mpc
13707maybe-distclean-mpc: distclean-mpc
d3ed111c 13708
a90ef4bf
JM
13709distclean-mpc:
13710 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13711 r=`${PWD_COMMAND}`; export r; \
13712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13713 $(HOST_EXPORTS) \
13714 for flag in $(EXTRA_HOST_FLAGS) ; do \
13715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13716 done; \
22121df0 13717 echo "Doing distclean in mpc"; \
a90ef4bf 13718 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13721 "RANLIB=$${RANLIB}" \
0c24b341 13722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13723 distclean) \
13724 || exit 1
13725
a90ef4bf 13726@endif mpc
d3ed111c 13727
a90ef4bf
JM
13728.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13729maybe-maintainer-clean-mpc:
13730@if mpc
13731maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13732
a90ef4bf
JM
13733maintainer-clean-mpc:
13734 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13735 r=`${PWD_COMMAND}`; export r; \
13736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13737 $(HOST_EXPORTS) \
13738 for flag in $(EXTRA_HOST_FLAGS) ; do \
13739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13740 done; \
22121df0 13741 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13742 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13745 "RANLIB=$${RANLIB}" \
0c24b341 13746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13747 maintainer-clean) \
13748 || exit 1
13749
a90ef4bf 13750@endif mpc
d3ed111c
GK
13751
13752
a7254363 13753
7ec59b9e
L
13754.PHONY: configure-isl maybe-configure-isl
13755maybe-configure-isl:
4f0ef2d8 13756@if gcc-bootstrap
7ec59b9e 13757configure-isl: stage_current
4f0ef2d8 13758@endif gcc-bootstrap
7ec59b9e
L
13759@if isl
13760maybe-configure-isl: configure-isl
13761configure-isl:
c52c6897 13762 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13764 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13765 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13766 $(HOST_EXPORTS) \
7ec59b9e
L
13767 echo Configuring in $(HOST_SUBDIR)/isl; \
13768 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13769 case $(srcdir) in \
b00612cc 13770 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13771 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13772 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13773 esac; \
1b6c0831
L
13774 module_srcdir=isl; \
13775 $(SHELL) \
13776 $$s/$$module_srcdir/configure \
13777 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13778 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13779 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13780 || exit 1
7ec59b9e 13781@endif isl
4fa63067 13782
a7254363
PB
13783
13784
7ec59b9e
L
13785.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13786maybe-configure-stage1-isl:
13787@if isl-bootstrap
13788maybe-configure-stage1-isl: configure-stage1-isl
13789configure-stage1-isl:
a90ef4bf 13790 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13791 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13792 @r=`${PWD_COMMAND}`; export r; \
13793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13794 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13795 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13796 $(HOST_EXPORTS) \
13797 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13798 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13799 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13800 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13801 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13802 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13803 case $(srcdir) in \
13804 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13805 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13806 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13807 esac; \
1b6c0831
L
13808 module_srcdir=isl; \
13809 $(SHELL) $$s/$$module_srcdir/configure \
13810 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13811 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13812 --target=${target_alias} \
13813 \
a90ef4bf 13814 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13815 --disable-shared @extra_isl_gmp_configure_flags@
13816@endif isl-bootstrap
13817
13818.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13819maybe-configure-stage2-isl:
13820@if isl-bootstrap
13821maybe-configure-stage2-isl: configure-stage2-isl
13822configure-stage2-isl:
a90ef4bf 13823 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13824 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13825 @r=`${PWD_COMMAND}`; export r; \
13826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13827 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13828 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13829 $(HOST_EXPORTS) \
13830 $(POSTSTAGE1_HOST_EXPORTS) \
13831 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13832 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13833 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13834 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13835 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13836 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13837 case $(srcdir) in \
13838 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13839 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13840 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13841 esac; \
1b6c0831
L
13842 module_srcdir=isl; \
13843 $(SHELL) $$s/$$module_srcdir/configure \
13844 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13845 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13846 --target=${target_alias} \
22121df0 13847 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13848 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13849 --disable-shared @extra_isl_gmp_configure_flags@
13850@endif isl-bootstrap
13851
13852.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13853maybe-configure-stage3-isl:
13854@if isl-bootstrap
13855maybe-configure-stage3-isl: configure-stage3-isl
13856configure-stage3-isl:
a90ef4bf 13857 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13858 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13859 @r=`${PWD_COMMAND}`; export r; \
13860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13861 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13862 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13863 $(HOST_EXPORTS) \
13864 $(POSTSTAGE1_HOST_EXPORTS) \
13865 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13866 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13867 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13868 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13869 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13870 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13871 case $(srcdir) in \
13872 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13873 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13874 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13875 esac; \
1b6c0831
L
13876 module_srcdir=isl; \
13877 $(SHELL) $$s/$$module_srcdir/configure \
13878 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13879 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13880 --target=${target_alias} \
22121df0 13881 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13882 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13883 --disable-shared @extra_isl_gmp_configure_flags@
13884@endif isl-bootstrap
13885
13886.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13887maybe-configure-stage4-isl:
13888@if isl-bootstrap
13889maybe-configure-stage4-isl: configure-stage4-isl
13890configure-stage4-isl:
a90ef4bf 13891 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13892 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13893 @r=`${PWD_COMMAND}`; export r; \
13894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13895 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13896 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13897 $(HOST_EXPORTS) \
13898 $(POSTSTAGE1_HOST_EXPORTS) \
13899 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13900 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13901 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13902 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13903 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13904 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13905 case $(srcdir) in \
13906 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13907 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13908 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13909 esac; \
1b6c0831
L
13910 module_srcdir=isl; \
13911 $(SHELL) $$s/$$module_srcdir/configure \
13912 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13913 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13914 --target=${target_alias} \
22121df0 13915 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13916 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13917 --disable-shared @extra_isl_gmp_configure_flags@
13918@endif isl-bootstrap
13919
13920.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13921maybe-configure-stageprofile-isl:
13922@if isl-bootstrap
13923maybe-configure-stageprofile-isl: configure-stageprofile-isl
13924configure-stageprofile-isl:
a90ef4bf 13925 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13926 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13927 @r=`${PWD_COMMAND}`; export r; \
13928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13929 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13930 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13931 $(HOST_EXPORTS) \
13932 $(POSTSTAGE1_HOST_EXPORTS) \
13933 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13934 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13935 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13936 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13937 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13938 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13939 case $(srcdir) in \
13940 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13941 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13942 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13943 esac; \
1b6c0831
L
13944 module_srcdir=isl; \
13945 $(SHELL) $$s/$$module_srcdir/configure \
13946 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13947 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13948 --target=${target_alias} \
22121df0 13949 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13950 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13951 --disable-shared @extra_isl_gmp_configure_flags@
13952@endif isl-bootstrap
13953
13954.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13955maybe-configure-stagefeedback-isl:
13956@if isl-bootstrap
13957maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13958configure-stagefeedback-isl:
a90ef4bf 13959 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13960 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13961 @r=`${PWD_COMMAND}`; export r; \
13962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13963 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13964 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13965 $(HOST_EXPORTS) \
13966 $(POSTSTAGE1_HOST_EXPORTS) \
13967 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13968 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13969 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13970 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
13971 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13972 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13973 case $(srcdir) in \
13974 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13975 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13976 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13977 esac; \
1b6c0831
L
13978 module_srcdir=isl; \
13979 $(SHELL) $$s/$$module_srcdir/configure \
13980 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13981 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13982 --target=${target_alias} \
22121df0 13983 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13984 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13985 --disable-shared @extra_isl_gmp_configure_flags@
13986@endif isl-bootstrap
d545f33b 13987
4fa63067 13988
4fa63067
NN
13989
13990
4fa63067 13991
7ec59b9e
L
13992.PHONY: all-isl maybe-all-isl
13993maybe-all-isl:
a90ef4bf 13994@if gcc-bootstrap
7ec59b9e 13995all-isl: stage_current
a90ef4bf 13996@endif gcc-bootstrap
7ec59b9e
L
13997@if isl
13998TARGET-isl=all
13999maybe-all-isl: all-isl
14000all-isl: configure-isl
4fa63067
NN
14001 @r=`${PWD_COMMAND}`; export r; \
14002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14003 $(HOST_EXPORTS) \
7ec59b9e 14004 (cd $(HOST_SUBDIR)/isl && \
b3676d82 14005 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
14006 $(TARGET-isl))
14007@endif isl
14008
14009
14010
14011.PHONY: all-stage1-isl maybe-all-stage1-isl
14012.PHONY: clean-stage1-isl maybe-clean-stage1-isl
14013maybe-all-stage1-isl:
14014maybe-clean-stage1-isl:
14015@if isl-bootstrap
14016maybe-all-stage1-isl: all-stage1-isl
14017all-stage1: all-stage1-isl
14018TARGET-stage1-isl = $(TARGET-isl)
14019all-stage1-isl: configure-stage1-isl
a90ef4bf 14020 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
14021 @r=`${PWD_COMMAND}`; export r; \
14022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14023 TFLAGS="$(STAGE1_TFLAGS)"; \
14024 $(HOST_EXPORTS) \
7ec59b9e 14025 cd $(HOST_SUBDIR)/isl && \
05a13254 14026 \
a90ef4bf
JM
14027 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14028 CFLAGS="$(STAGE1_CFLAGS)" \
14029 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
14030 LIBCFLAGS="$(LIBCFLAGS)" \
14031 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14032 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14033 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14034 $(EXTRA_HOST_FLAGS) \
14035 $(STAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14036 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 14037 $(TARGET-stage1-isl)
9b980aa1 14038
7ec59b9e
L
14039maybe-clean-stage1-isl: clean-stage1-isl
14040clean-stage1: clean-stage1-isl
14041clean-stage1-isl:
a90ef4bf 14042 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 14043 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14044 else \
7ec59b9e 14045 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14046 $(MAKE) stage1-start; \
14047 fi; \
7ec59b9e 14048 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 14049 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14050 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14051@endif isl-bootstrap
14052
14053
14054.PHONY: all-stage2-isl maybe-all-stage2-isl
14055.PHONY: clean-stage2-isl maybe-clean-stage2-isl
14056maybe-all-stage2-isl:
14057maybe-clean-stage2-isl:
14058@if isl-bootstrap
14059maybe-all-stage2-isl: all-stage2-isl
14060all-stage2: all-stage2-isl
14061TARGET-stage2-isl = $(TARGET-isl)
14062all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
14063 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
14064 @r=`${PWD_COMMAND}`; export r; \
14065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14066 TFLAGS="$(STAGE2_TFLAGS)"; \
14067 $(HOST_EXPORTS) \
14068 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14069 cd $(HOST_SUBDIR)/isl && \
05a13254 14070 \
a90ef4bf
JM
14071 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14072 CFLAGS="$(STAGE2_CFLAGS)" \
14073 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
14074 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14075 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14076 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14077 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14078 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14079 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 14080 $(TARGET-stage2-isl)
a90ef4bf 14081
7ec59b9e
L
14082maybe-clean-stage2-isl: clean-stage2-isl
14083clean-stage2: clean-stage2-isl
14084clean-stage2-isl:
a90ef4bf 14085 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 14086 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14087 else \
7ec59b9e 14088 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14089 $(MAKE) stage2-start; \
14090 fi; \
7ec59b9e 14091 cd $(HOST_SUBDIR)/isl && \
b3676d82 14092 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14093@endif isl-bootstrap
14094
14095
14096.PHONY: all-stage3-isl maybe-all-stage3-isl
14097.PHONY: clean-stage3-isl maybe-clean-stage3-isl
14098maybe-all-stage3-isl:
14099maybe-clean-stage3-isl:
14100@if isl-bootstrap
14101maybe-all-stage3-isl: all-stage3-isl
14102all-stage3: all-stage3-isl
14103TARGET-stage3-isl = $(TARGET-isl)
14104all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
14105 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14106 @r=`${PWD_COMMAND}`; export r; \
14107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14108 TFLAGS="$(STAGE3_TFLAGS)"; \
14109 $(HOST_EXPORTS) \
14110 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14111 cd $(HOST_SUBDIR)/isl && \
05a13254 14112 \
a90ef4bf
JM
14113 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14114 CFLAGS="$(STAGE3_CFLAGS)" \
14115 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14116 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14117 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14118 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14119 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14120 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14121 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14122 $(TARGET-stage3-isl)
a90ef4bf 14123
7ec59b9e
L
14124maybe-clean-stage3-isl: clean-stage3-isl
14125clean-stage3: clean-stage3-isl
14126clean-stage3-isl:
a90ef4bf 14127 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14128 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14129 else \
7ec59b9e 14130 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14131 $(MAKE) stage3-start; \
14132 fi; \
7ec59b9e 14133 cd $(HOST_SUBDIR)/isl && \
b3676d82 14134 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14135@endif isl-bootstrap
14136
14137
14138.PHONY: all-stage4-isl maybe-all-stage4-isl
14139.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14140maybe-all-stage4-isl:
14141maybe-clean-stage4-isl:
14142@if isl-bootstrap
14143maybe-all-stage4-isl: all-stage4-isl
14144all-stage4: all-stage4-isl
14145TARGET-stage4-isl = $(TARGET-isl)
14146all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14147 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14148 @r=`${PWD_COMMAND}`; export r; \
14149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14150 TFLAGS="$(STAGE4_TFLAGS)"; \
14151 $(HOST_EXPORTS) \
14152 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14153 cd $(HOST_SUBDIR)/isl && \
05a13254 14154 \
a90ef4bf
JM
14155 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14156 CFLAGS="$(STAGE4_CFLAGS)" \
14157 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14158 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14159 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14160 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14161 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14162 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14163 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14164 $(TARGET-stage4-isl)
a90ef4bf 14165
7ec59b9e
L
14166maybe-clean-stage4-isl: clean-stage4-isl
14167clean-stage4: clean-stage4-isl
14168clean-stage4-isl:
a90ef4bf 14169 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14170 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14171 else \
7ec59b9e 14172 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14173 $(MAKE) stage4-start; \
14174 fi; \
7ec59b9e 14175 cd $(HOST_SUBDIR)/isl && \
b3676d82 14176 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14177@endif isl-bootstrap
14178
14179
14180.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14181.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14182maybe-all-stageprofile-isl:
14183maybe-clean-stageprofile-isl:
14184@if isl-bootstrap
14185maybe-all-stageprofile-isl: all-stageprofile-isl
14186all-stageprofile: all-stageprofile-isl
14187TARGET-stageprofile-isl = $(TARGET-isl)
14188all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14189 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14190 @r=`${PWD_COMMAND}`; export r; \
14191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14192 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14193 $(HOST_EXPORTS) \
14194 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14195 cd $(HOST_SUBDIR)/isl && \
05a13254 14196 \
a90ef4bf
JM
14197 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14198 CFLAGS="$(STAGEprofile_CFLAGS)" \
14199 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14200 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14201 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14202 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14203 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14204 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14205 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14206 $(TARGET-stageprofile-isl)
a90ef4bf 14207
7ec59b9e
L
14208maybe-clean-stageprofile-isl: clean-stageprofile-isl
14209clean-stageprofile: clean-stageprofile-isl
14210clean-stageprofile-isl:
a90ef4bf 14211 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14212 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14213 else \
7ec59b9e 14214 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14215 $(MAKE) stageprofile-start; \
14216 fi; \
7ec59b9e 14217 cd $(HOST_SUBDIR)/isl && \
b3676d82 14218 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14219@endif isl-bootstrap
14220
14221
14222.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14223.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14224maybe-all-stagefeedback-isl:
14225maybe-clean-stagefeedback-isl:
14226@if isl-bootstrap
14227maybe-all-stagefeedback-isl: all-stagefeedback-isl
14228all-stagefeedback: all-stagefeedback-isl
14229TARGET-stagefeedback-isl = $(TARGET-isl)
14230all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14231 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14232 @r=`${PWD_COMMAND}`; export r; \
14233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14234 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14235 $(HOST_EXPORTS) \
14236 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14237 cd $(HOST_SUBDIR)/isl && \
05a13254 14238 \
a90ef4bf
JM
14239 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14240 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14241 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14242 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14243 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14244 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14245 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14246 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14247 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14248 $(TARGET-stagefeedback-isl)
a90ef4bf 14249
7ec59b9e
L
14250maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14251clean-stagefeedback: clean-stagefeedback-isl
14252clean-stagefeedback-isl:
a90ef4bf 14253 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14254 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14255 else \
7ec59b9e 14256 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14257 $(MAKE) stagefeedback-start; \
14258 fi; \
7ec59b9e 14259 cd $(HOST_SUBDIR)/isl && \
b3676d82 14260 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14261@endif isl-bootstrap
a90ef4bf
JM
14262
14263
14264
14265
14266
7ec59b9e
L
14267.PHONY: check-isl maybe-check-isl
14268maybe-check-isl:
14269@if isl
14270maybe-check-isl: check-isl
a90ef4bf 14271
7ec59b9e 14272check-isl:
0aed8855 14273 @: $(MAKE); $(unstage)
a90ef4bf
JM
14274 @r=`${PWD_COMMAND}`; export r; \
14275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14276 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14277 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14278 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14279
7ec59b9e 14280@endif isl
a90ef4bf 14281
7ec59b9e
L
14282.PHONY: install-isl maybe-install-isl
14283maybe-install-isl:
14284@if isl
14285maybe-install-isl: install-isl
a90ef4bf 14286
7ec59b9e 14287install-isl:
a90ef4bf 14288
7ec59b9e 14289@endif isl
a90ef4bf 14290
7ec59b9e
L
14291.PHONY: install-strip-isl maybe-install-strip-isl
14292maybe-install-strip-isl:
14293@if isl
14294maybe-install-strip-isl: install-strip-isl
a90ef4bf 14295
7ec59b9e 14296install-strip-isl:
a90ef4bf 14297
7ec59b9e 14298@endif isl
a90ef4bf
JM
14299
14300# Other targets (info, dvi, pdf, etc.)
14301
7ec59b9e
L
14302.PHONY: maybe-info-isl info-isl
14303maybe-info-isl:
14304@if isl
14305maybe-info-isl: info-isl
a90ef4bf 14306
7ec59b9e
L
14307info-isl: \
14308 configure-isl
14309 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14310 r=`${PWD_COMMAND}`; export r; \
14311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14312 $(HOST_EXPORTS) \
7ec59b9e 14313 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14315 done; \
22121df0 14316 echo "Doing info in isl"; \
7ec59b9e 14317 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14320 "RANLIB=$${RANLIB}" \
0c24b341 14321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14322 info) \
2a4cbe27
NN
14323 || exit 1
14324
7ec59b9e 14325@endif isl
2a4cbe27 14326
7ec59b9e
L
14327.PHONY: maybe-dvi-isl dvi-isl
14328maybe-dvi-isl:
14329@if isl
14330maybe-dvi-isl: dvi-isl
2a4cbe27 14331
7ec59b9e
L
14332dvi-isl: \
14333 configure-isl
14334 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14335 r=`${PWD_COMMAND}`; export r; \
14336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14337 $(HOST_EXPORTS) \
7ec59b9e 14338 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14340 done; \
22121df0 14341 echo "Doing dvi in isl"; \
7ec59b9e 14342 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14345 "RANLIB=$${RANLIB}" \
0c24b341 14346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14347 dvi) \
2a4cbe27
NN
14348 || exit 1
14349
7ec59b9e 14350@endif isl
2a4cbe27 14351
7ec59b9e
L
14352.PHONY: maybe-pdf-isl pdf-isl
14353maybe-pdf-isl:
14354@if isl
14355maybe-pdf-isl: pdf-isl
56a8fe78 14356
7ec59b9e
L
14357pdf-isl: \
14358 configure-isl
14359 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14360 r=`${PWD_COMMAND}`; export r; \
14361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14362 $(HOST_EXPORTS) \
7ec59b9e 14363 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14365 done; \
22121df0 14366 echo "Doing pdf in isl"; \
7ec59b9e 14367 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14370 "RANLIB=$${RANLIB}" \
0c24b341 14371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14372 pdf) \
14373 || exit 1
14374
7ec59b9e 14375@endif isl
56a8fe78 14376
7ec59b9e
L
14377.PHONY: maybe-html-isl html-isl
14378maybe-html-isl:
14379@if isl
14380maybe-html-isl: html-isl
6d389afc 14381
7ec59b9e
L
14382html-isl: \
14383 configure-isl
14384 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14385 r=`${PWD_COMMAND}`; export r; \
14386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14387 $(HOST_EXPORTS) \
7ec59b9e 14388 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14390 done; \
22121df0 14391 echo "Doing html in isl"; \
7ec59b9e 14392 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14395 "RANLIB=$${RANLIB}" \
0c24b341 14396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14397 html) \
14398 || exit 1
14399
7ec59b9e 14400@endif isl
6d389afc 14401
7ec59b9e
L
14402.PHONY: maybe-TAGS-isl TAGS-isl
14403maybe-TAGS-isl:
14404@if isl
14405maybe-TAGS-isl: TAGS-isl
2a4cbe27 14406
7ec59b9e
L
14407TAGS-isl: \
14408 configure-isl
14409 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14410 r=`${PWD_COMMAND}`; export r; \
14411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14412 $(HOST_EXPORTS) \
7ec59b9e 14413 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14415 done; \
22121df0 14416 echo "Doing TAGS in isl"; \
7ec59b9e 14417 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14420 "RANLIB=$${RANLIB}" \
0c24b341 14421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14422 TAGS) \
2a4cbe27
NN
14423 || exit 1
14424
7ec59b9e 14425@endif isl
2a4cbe27 14426
7ec59b9e
L
14427.PHONY: maybe-install-info-isl install-info-isl
14428maybe-install-info-isl:
14429@if isl
14430maybe-install-info-isl: install-info-isl
2a4cbe27 14431
7ec59b9e
L
14432install-info-isl: \
14433 configure-isl \
14434 info-isl
14435 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14436 r=`${PWD_COMMAND}`; export r; \
14437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14438 $(HOST_EXPORTS) \
7ec59b9e 14439 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14441 done; \
22121df0 14442 echo "Doing install-info in isl"; \
7ec59b9e 14443 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14446 "RANLIB=$${RANLIB}" \
0c24b341 14447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14448 install-info) \
2a4cbe27
NN
14449 || exit 1
14450
7ec59b9e 14451@endif isl
2a4cbe27 14452
7ec59b9e
L
14453.PHONY: maybe-install-pdf-isl install-pdf-isl
14454maybe-install-pdf-isl:
14455@if isl
14456maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14457
7ec59b9e
L
14458install-pdf-isl: \
14459 configure-isl \
14460 pdf-isl
14461 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14462 r=`${PWD_COMMAND}`; export r; \
14463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14464 $(HOST_EXPORTS) \
7ec59b9e 14465 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14467 done; \
22121df0 14468 echo "Doing install-pdf in isl"; \
7ec59b9e 14469 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14472 "RANLIB=$${RANLIB}" \
0c24b341 14473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14474 install-pdf) \
14475 || exit 1
14476
7ec59b9e 14477@endif isl
a3ca38d2 14478
7ec59b9e
L
14479.PHONY: maybe-install-html-isl install-html-isl
14480maybe-install-html-isl:
14481@if isl
14482maybe-install-html-isl: install-html-isl
108a6f8e 14483
7ec59b9e
L
14484install-html-isl: \
14485 configure-isl \
14486 html-isl
14487 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14488 r=`${PWD_COMMAND}`; export r; \
14489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14490 $(HOST_EXPORTS) \
7ec59b9e 14491 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14493 done; \
22121df0 14494 echo "Doing install-html in isl"; \
7ec59b9e 14495 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14498 "RANLIB=$${RANLIB}" \
0c24b341 14499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14500 install-html) \
14501 || exit 1
14502
7ec59b9e 14503@endif isl
108a6f8e 14504
7ec59b9e
L
14505.PHONY: maybe-installcheck-isl installcheck-isl
14506maybe-installcheck-isl:
14507@if isl
14508maybe-installcheck-isl: installcheck-isl
2a4cbe27 14509
7ec59b9e
L
14510installcheck-isl: \
14511 configure-isl
14512 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14513 r=`${PWD_COMMAND}`; export r; \
14514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14515 $(HOST_EXPORTS) \
7ec59b9e 14516 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14518 done; \
22121df0 14519 echo "Doing installcheck in isl"; \
7ec59b9e 14520 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14523 "RANLIB=$${RANLIB}" \
0c24b341 14524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14525 installcheck) \
2a4cbe27
NN
14526 || exit 1
14527
7ec59b9e 14528@endif isl
2a4cbe27 14529
7ec59b9e
L
14530.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14531maybe-mostlyclean-isl:
14532@if isl
14533maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14534
7ec59b9e
L
14535mostlyclean-isl:
14536 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14537 r=`${PWD_COMMAND}`; export r; \
14538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14539 $(HOST_EXPORTS) \
7ec59b9e 14540 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14542 done; \
22121df0 14543 echo "Doing mostlyclean in isl"; \
7ec59b9e 14544 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14547 "RANLIB=$${RANLIB}" \
0c24b341 14548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14549 mostlyclean) \
2a4cbe27
NN
14550 || exit 1
14551
7ec59b9e 14552@endif isl
2a4cbe27 14553
7ec59b9e
L
14554.PHONY: maybe-clean-isl clean-isl
14555maybe-clean-isl:
14556@if isl
14557maybe-clean-isl: clean-isl
2a4cbe27 14558
7ec59b9e
L
14559clean-isl:
14560 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14561 r=`${PWD_COMMAND}`; export r; \
14562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14563 $(HOST_EXPORTS) \
7ec59b9e 14564 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14566 done; \
22121df0 14567 echo "Doing clean in isl"; \
7ec59b9e 14568 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14571 "RANLIB=$${RANLIB}" \
0c24b341 14572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14573 clean) \
2a4cbe27
NN
14574 || exit 1
14575
7ec59b9e 14576@endif isl
2a4cbe27 14577
7ec59b9e
L
14578.PHONY: maybe-distclean-isl distclean-isl
14579maybe-distclean-isl:
14580@if isl
14581maybe-distclean-isl: distclean-isl
2a4cbe27 14582
7ec59b9e
L
14583distclean-isl:
14584 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14585 r=`${PWD_COMMAND}`; export r; \
14586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14587 $(HOST_EXPORTS) \
7ec59b9e 14588 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14590 done; \
22121df0 14591 echo "Doing distclean in isl"; \
7ec59b9e 14592 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14595 "RANLIB=$${RANLIB}" \
0c24b341 14596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14597 distclean) \
2a4cbe27
NN
14598 || exit 1
14599
7ec59b9e 14600@endif isl
2a4cbe27 14601
7ec59b9e
L
14602.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14603maybe-maintainer-clean-isl:
14604@if isl
14605maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14606
7ec59b9e
L
14607maintainer-clean-isl:
14608 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14609 r=`${PWD_COMMAND}`; export r; \
14610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14611 $(HOST_EXPORTS) \
7ec59b9e 14612 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14614 done; \
22121df0 14615 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14616 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14619 "RANLIB=$${RANLIB}" \
0c24b341 14620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14621 maintainer-clean) \
2a4cbe27
NN
14622 || exit 1
14623
7ec59b9e 14624@endif isl
2a4cbe27 14625
2a4cbe27 14626
a7254363 14627
a90ef4bf
JM
14628.PHONY: configure-libelf maybe-configure-libelf
14629maybe-configure-libelf:
c52c6897 14630@if gcc-bootstrap
a90ef4bf 14631configure-libelf: stage_current
c52c6897 14632@endif gcc-bootstrap
a90ef4bf
JM
14633@if libelf
14634maybe-configure-libelf: configure-libelf
14635configure-libelf:
c52c6897
PB
14636 @r=`${PWD_COMMAND}`; export r; \
14637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14638 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14639 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14640 $(HOST_EXPORTS) \
a90ef4bf
JM
14641 echo Configuring in $(HOST_SUBDIR)/libelf; \
14642 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14643 case $(srcdir) in \
b00612cc 14644 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14645 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14646 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14647 esac; \
1b6c0831
L
14648 module_srcdir=libelf; \
14649 $(SHELL) \
14650 $$s/$$module_srcdir/configure \
14651 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14652 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14653 --target=${target_alias} --disable-shared \
4fa63067 14654 || exit 1
a90ef4bf 14655@endif libelf
4fa63067 14656
a7254363
PB
14657
14658
a90ef4bf
JM
14659.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14660maybe-configure-stage1-libelf:
14661@if libelf-bootstrap
14662maybe-configure-stage1-libelf: configure-stage1-libelf
14663configure-stage1-libelf:
c52c6897 14664 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14665 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14666 @r=`${PWD_COMMAND}`; export r; \
14667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14668 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14669 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14670 $(HOST_EXPORTS) \
8ee82aff 14671 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14672 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14673 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14674 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14675 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14676 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14677 case $(srcdir) in \
14678 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14679 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14680 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14681 esac; \
1b6c0831
L
14682 module_srcdir=libelf; \
14683 $(SHELL) $$s/$$module_srcdir/configure \
14684 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14685 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14686 --target=${target_alias} \
14687 \
a90ef4bf
JM
14688 $(STAGE1_CONFIGURE_FLAGS) \
14689 --disable-shared
14690@endif libelf-bootstrap
d545f33b 14691
a90ef4bf
JM
14692.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14693maybe-configure-stage2-libelf:
14694@if libelf-bootstrap
14695maybe-configure-stage2-libelf: configure-stage2-libelf
14696configure-stage2-libelf:
c52c6897 14697 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14698 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14699 @r=`${PWD_COMMAND}`; export r; \
14700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14701 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14702 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14703 $(HOST_EXPORTS) \
1b05fbbd 14704 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14705 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14706 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14707 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14708 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14709 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14710 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14711 case $(srcdir) in \
14712 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14713 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14714 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14715 esac; \
1b6c0831
L
14716 module_srcdir=libelf; \
14717 $(SHELL) $$s/$$module_srcdir/configure \
14718 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14719 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14720 --target=${target_alias} \
22121df0 14721 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14722 $(STAGE2_CONFIGURE_FLAGS) \
14723 --disable-shared
14724@endif libelf-bootstrap
8520c408 14725
a90ef4bf
JM
14726.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14727maybe-configure-stage3-libelf:
14728@if libelf-bootstrap
14729maybe-configure-stage3-libelf: configure-stage3-libelf
14730configure-stage3-libelf:
c52c6897 14731 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14732 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14733 @r=`${PWD_COMMAND}`; export r; \
14734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14735 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14736 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14737 $(HOST_EXPORTS) \
1b05fbbd 14738 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14739 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14740 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14741 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14742 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14743 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14744 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14745 case $(srcdir) in \
14746 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14747 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14748 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14749 esac; \
1b6c0831
L
14750 module_srcdir=libelf; \
14751 $(SHELL) $$s/$$module_srcdir/configure \
14752 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14753 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14754 --target=${target_alias} \
22121df0 14755 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14756 $(STAGE3_CONFIGURE_FLAGS) \
14757 --disable-shared
14758@endif libelf-bootstrap
8520c408 14759
a90ef4bf
JM
14760.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14761maybe-configure-stage4-libelf:
14762@if libelf-bootstrap
14763maybe-configure-stage4-libelf: configure-stage4-libelf
14764configure-stage4-libelf:
c52c6897 14765 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14766 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14767 @r=`${PWD_COMMAND}`; export r; \
14768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14769 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14770 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14771 $(HOST_EXPORTS) \
1b05fbbd 14772 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14773 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14774 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14775 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14776 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14777 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14778 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14779 case $(srcdir) in \
14780 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14781 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14782 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14783 esac; \
1b6c0831
L
14784 module_srcdir=libelf; \
14785 $(SHELL) $$s/$$module_srcdir/configure \
14786 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14787 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14788 --target=${target_alias} \
22121df0 14789 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14790 $(STAGE4_CONFIGURE_FLAGS) \
14791 --disable-shared
14792@endif libelf-bootstrap
d545f33b 14793
a90ef4bf
JM
14794.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14795maybe-configure-stageprofile-libelf:
14796@if libelf-bootstrap
14797maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14798configure-stageprofile-libelf:
c52c6897 14799 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14800 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14801 @r=`${PWD_COMMAND}`; export r; \
14802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14803 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14804 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14805 $(HOST_EXPORTS) \
1b05fbbd
AO
14806 $(POSTSTAGE1_HOST_EXPORTS) \
14807 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14808 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14809 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14810 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14811 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14812 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14813 case $(srcdir) in \
14814 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14815 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14816 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14817 esac; \
1b6c0831
L
14818 module_srcdir=libelf; \
14819 $(SHELL) $$s/$$module_srcdir/configure \
14820 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14821 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14822 --target=${target_alias} \
22121df0 14823 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14824 $(STAGEprofile_CONFIGURE_FLAGS) \
14825 --disable-shared
14826@endif libelf-bootstrap
d545f33b 14827
a90ef4bf
JM
14828.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14829maybe-configure-stagefeedback-libelf:
14830@if libelf-bootstrap
14831maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14832configure-stagefeedback-libelf:
c52c6897 14833 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14834 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14835 @r=`${PWD_COMMAND}`; export r; \
14836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14837 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14838 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14839 $(HOST_EXPORTS) \
1b05fbbd
AO
14840 $(POSTSTAGE1_HOST_EXPORTS) \
14841 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14842 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14843 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14844 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14845 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14846 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14847 case $(srcdir) in \
14848 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14849 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14850 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14851 esac; \
1b6c0831
L
14852 module_srcdir=libelf; \
14853 $(SHELL) $$s/$$module_srcdir/configure \
14854 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14855 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14856 --target=${target_alias} \
22121df0 14857 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14858 $(STAGEfeedback_CONFIGURE_FLAGS) \
14859 --disable-shared
14860@endif libelf-bootstrap
d545f33b
PB
14861
14862
14863
14864
14865
a90ef4bf
JM
14866.PHONY: all-libelf maybe-all-libelf
14867maybe-all-libelf:
4f0ef2d8 14868@if gcc-bootstrap
a90ef4bf 14869all-libelf: stage_current
4f0ef2d8 14870@endif gcc-bootstrap
a90ef4bf
JM
14871@if libelf
14872TARGET-libelf=all
14873maybe-all-libelf: all-libelf
14874all-libelf: configure-libelf
c52c6897 14875 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14877 $(HOST_EXPORTS) \
a90ef4bf 14878 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14879 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14880 $(TARGET-libelf))
14881@endif libelf
4fa63067 14882
a7254363 14883
d545f33b 14884
a90ef4bf
JM
14885.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14886.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14887maybe-all-stage1-libelf:
14888maybe-clean-stage1-libelf:
14889@if libelf-bootstrap
14890maybe-all-stage1-libelf: all-stage1-libelf
14891all-stage1: all-stage1-libelf
14892TARGET-stage1-libelf = $(TARGET-libelf)
14893all-stage1-libelf: configure-stage1-libelf
c52c6897 14894 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14895 @r=`${PWD_COMMAND}`; export r; \
14896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14897 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14898 $(HOST_EXPORTS) \
a90ef4bf 14899 cd $(HOST_SUBDIR)/libelf && \
05a13254 14900 \
7f6ef0c0 14901 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14902 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14903 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14904 LIBCFLAGS="$(LIBCFLAGS)" \
14905 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14906 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14907 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14908 $(EXTRA_HOST_FLAGS) \
14909 $(STAGE1_FLAGS_TO_PASS) \
05a13254 14910 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14911 $(TARGET-stage1-libelf)
d545f33b 14912
a90ef4bf
JM
14913maybe-clean-stage1-libelf: clean-stage1-libelf
14914clean-stage1: clean-stage1-libelf
14915clean-stage1-libelf:
9dbaa842 14916 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14917 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14918 else \
a90ef4bf 14919 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14920 $(MAKE) stage1-start; \
14921 fi; \
a90ef4bf 14922 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14923 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14924 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14925@endif libelf-bootstrap
d545f33b
PB
14926
14927
a90ef4bf
JM
14928.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14929.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14930maybe-all-stage2-libelf:
14931maybe-clean-stage2-libelf:
14932@if libelf-bootstrap
14933maybe-all-stage2-libelf: all-stage2-libelf
14934all-stage2: all-stage2-libelf
14935TARGET-stage2-libelf = $(TARGET-libelf)
14936all-stage2-libelf: configure-stage2-libelf
c52c6897 14937 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14938 @r=`${PWD_COMMAND}`; export r; \
14939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14940 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14941 $(HOST_EXPORTS) \
1f53ca9a 14942 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14943 cd $(HOST_SUBDIR)/libelf && \
05a13254 14944 \
7f6ef0c0 14945 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14946 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14947 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14948 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14949 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14950 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14951 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14952 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14953 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14954 $(TARGET-stage2-libelf)
d545f33b 14955
a90ef4bf
JM
14956maybe-clean-stage2-libelf: clean-stage2-libelf
14957clean-stage2: clean-stage2-libelf
14958clean-stage2-libelf:
9dbaa842 14959 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14960 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14961 else \
a90ef4bf 14962 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14963 $(MAKE) stage2-start; \
14964 fi; \
a90ef4bf 14965 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14966 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14967@endif libelf-bootstrap
d545f33b
PB
14968
14969
a90ef4bf
JM
14970.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14971.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14972maybe-all-stage3-libelf:
14973maybe-clean-stage3-libelf:
14974@if libelf-bootstrap
14975maybe-all-stage3-libelf: all-stage3-libelf
14976all-stage3: all-stage3-libelf
14977TARGET-stage3-libelf = $(TARGET-libelf)
14978all-stage3-libelf: configure-stage3-libelf
c52c6897 14979 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14980 @r=`${PWD_COMMAND}`; export r; \
14981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14982 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14983 $(HOST_EXPORTS) \
1f53ca9a 14984 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14985 cd $(HOST_SUBDIR)/libelf && \
05a13254 14986 \
7f6ef0c0 14987 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14988 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14989 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14990 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14991 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14992 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14993 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14994 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14995 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14996 $(TARGET-stage3-libelf)
d545f33b 14997
a90ef4bf
JM
14998maybe-clean-stage3-libelf: clean-stage3-libelf
14999clean-stage3: clean-stage3-libelf
15000clean-stage3-libelf:
9dbaa842 15001 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 15002 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15003 else \
a90ef4bf 15004 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15005 $(MAKE) stage3-start; \
15006 fi; \
a90ef4bf 15007 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15008 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15009@endif libelf-bootstrap
d545f33b
PB
15010
15011
a90ef4bf
JM
15012.PHONY: all-stage4-libelf maybe-all-stage4-libelf
15013.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
15014maybe-all-stage4-libelf:
15015maybe-clean-stage4-libelf:
15016@if libelf-bootstrap
15017maybe-all-stage4-libelf: all-stage4-libelf
15018all-stage4: all-stage4-libelf
15019TARGET-stage4-libelf = $(TARGET-libelf)
15020all-stage4-libelf: configure-stage4-libelf
c52c6897 15021 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
15022 @r=`${PWD_COMMAND}`; export r; \
15023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15024 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 15025 $(HOST_EXPORTS) \
1f53ca9a 15026 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15027 cd $(HOST_SUBDIR)/libelf && \
05a13254 15028 \
7f6ef0c0 15029 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15030 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 15031 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 15032 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
15033 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15034 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15035 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15036 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15037 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15038 $(TARGET-stage4-libelf)
d545f33b 15039
a90ef4bf
JM
15040maybe-clean-stage4-libelf: clean-stage4-libelf
15041clean-stage4: clean-stage4-libelf
15042clean-stage4-libelf:
9dbaa842 15043 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 15044 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15045 else \
a90ef4bf 15046 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15047 $(MAKE) stage4-start; \
15048 fi; \
a90ef4bf 15049 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15050 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15051@endif libelf-bootstrap
d545f33b
PB
15052
15053
a90ef4bf
JM
15054.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
15055.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
15056maybe-all-stageprofile-libelf:
15057maybe-clean-stageprofile-libelf:
15058@if libelf-bootstrap
15059maybe-all-stageprofile-libelf: all-stageprofile-libelf
15060all-stageprofile: all-stageprofile-libelf
15061TARGET-stageprofile-libelf = $(TARGET-libelf)
15062all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 15063 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
15064 @r=`${PWD_COMMAND}`; export r; \
15065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15066 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 15067 $(HOST_EXPORTS) \
1f53ca9a 15068 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15069 cd $(HOST_SUBDIR)/libelf && \
05a13254 15070 \
7f6ef0c0 15071 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15072 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 15073 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
15074 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15075 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15076 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15077 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15078 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15079 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15080 $(TARGET-stageprofile-libelf)
d545f33b 15081
a90ef4bf
JM
15082maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
15083clean-stageprofile: clean-stageprofile-libelf
15084clean-stageprofile-libelf:
9dbaa842 15085 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 15086 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15087 else \
a90ef4bf 15088 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15089 $(MAKE) stageprofile-start; \
15090 fi; \
a90ef4bf 15091 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15092 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15093@endif libelf-bootstrap
d545f33b
PB
15094
15095
a90ef4bf
JM
15096.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
15097.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
15098maybe-all-stagefeedback-libelf:
15099maybe-clean-stagefeedback-libelf:
15100@if libelf-bootstrap
15101maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
15102all-stagefeedback: all-stagefeedback-libelf
15103TARGET-stagefeedback-libelf = $(TARGET-libelf)
15104all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 15105 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
15106 @r=`${PWD_COMMAND}`; export r; \
15107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15108 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 15109 $(HOST_EXPORTS) \
1f53ca9a 15110 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15111 cd $(HOST_SUBDIR)/libelf && \
05a13254 15112 \
7f6ef0c0 15113 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15114 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15115 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15116 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15117 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15118 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15119 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15120 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15121 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15122 $(TARGET-stagefeedback-libelf)
d545f33b 15123
a90ef4bf
JM
15124maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15125clean-stagefeedback: clean-stagefeedback-libelf
15126clean-stagefeedback-libelf:
9dbaa842 15127 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15128 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15129 else \
a90ef4bf 15130 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15131 $(MAKE) stagefeedback-start; \
15132 fi; \
a90ef4bf 15133 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15134 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15135@endif libelf-bootstrap
d545f33b
PB
15136
15137
15138
15139
15140
a90ef4bf
JM
15141.PHONY: check-libelf maybe-check-libelf
15142maybe-check-libelf:
15143@if libelf
15144maybe-check-libelf: check-libelf
4fa63067 15145
a90ef4bf 15146check-libelf:
0aed8855 15147 @: $(MAKE); $(unstage)
4fa63067
NN
15148 @r=`${PWD_COMMAND}`; export r; \
15149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15150 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15151 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15152 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15153
a90ef4bf 15154@endif libelf
4fa63067 15155
a90ef4bf
JM
15156.PHONY: install-libelf maybe-install-libelf
15157maybe-install-libelf:
15158@if libelf
15159maybe-install-libelf: install-libelf
4fa63067 15160
a90ef4bf 15161install-libelf:
4fa63067 15162
a90ef4bf 15163@endif libelf
4fa63067 15164
a90ef4bf
JM
15165.PHONY: install-strip-libelf maybe-install-strip-libelf
15166maybe-install-strip-libelf:
15167@if libelf
15168maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15169
a90ef4bf 15170install-strip-libelf:
9b980aa1 15171
a90ef4bf 15172@endif libelf
9b980aa1 15173
56a8fe78 15174# Other targets (info, dvi, pdf, etc.)
4fa63067 15175
a90ef4bf
JM
15176.PHONY: maybe-info-libelf info-libelf
15177maybe-info-libelf:
15178@if libelf
15179maybe-info-libelf: info-libelf
4fa63067 15180
a90ef4bf
JM
15181info-libelf: \
15182 configure-libelf
15183 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15184 r=`${PWD_COMMAND}`; export r; \
15185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15186 $(HOST_EXPORTS) \
a90ef4bf 15187 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15189 done; \
22121df0 15190 echo "Doing info in libelf"; \
a90ef4bf 15191 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15194 "RANLIB=$${RANLIB}" \
0c24b341 15195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15196 info) \
2a4cbe27
NN
15197 || exit 1
15198
a90ef4bf 15199@endif libelf
2a4cbe27 15200
a90ef4bf
JM
15201.PHONY: maybe-dvi-libelf dvi-libelf
15202maybe-dvi-libelf:
15203@if libelf
15204maybe-dvi-libelf: dvi-libelf
2a4cbe27 15205
a90ef4bf
JM
15206dvi-libelf: \
15207 configure-libelf
15208 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15209 r=`${PWD_COMMAND}`; export r; \
15210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15211 $(HOST_EXPORTS) \
a90ef4bf 15212 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15214 done; \
22121df0 15215 echo "Doing dvi in libelf"; \
a90ef4bf 15216 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15219 "RANLIB=$${RANLIB}" \
0c24b341 15220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15221 dvi) \
2a4cbe27
NN
15222 || exit 1
15223
a90ef4bf 15224@endif libelf
2a4cbe27 15225
a90ef4bf
JM
15226.PHONY: maybe-pdf-libelf pdf-libelf
15227maybe-pdf-libelf:
15228@if libelf
15229maybe-pdf-libelf: pdf-libelf
56a8fe78 15230
a90ef4bf
JM
15231pdf-libelf: \
15232 configure-libelf
15233 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15234 r=`${PWD_COMMAND}`; export r; \
15235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15236 $(HOST_EXPORTS) \
a90ef4bf 15237 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15239 done; \
22121df0 15240 echo "Doing pdf in libelf"; \
a90ef4bf 15241 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15244 "RANLIB=$${RANLIB}" \
0c24b341 15245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15246 pdf) \
15247 || exit 1
15248
a90ef4bf 15249@endif libelf
56a8fe78 15250
a90ef4bf
JM
15251.PHONY: maybe-html-libelf html-libelf
15252maybe-html-libelf:
15253@if libelf
15254maybe-html-libelf: html-libelf
6d389afc 15255
a90ef4bf
JM
15256html-libelf: \
15257 configure-libelf
15258 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15259 r=`${PWD_COMMAND}`; export r; \
15260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15261 $(HOST_EXPORTS) \
a90ef4bf 15262 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15264 done; \
22121df0 15265 echo "Doing html in libelf"; \
a90ef4bf 15266 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15269 "RANLIB=$${RANLIB}" \
0c24b341 15270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15271 html) \
15272 || exit 1
15273
a90ef4bf 15274@endif libelf
6d389afc 15275
a90ef4bf
JM
15276.PHONY: maybe-TAGS-libelf TAGS-libelf
15277maybe-TAGS-libelf:
15278@if libelf
15279maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15280
a90ef4bf
JM
15281TAGS-libelf: \
15282 configure-libelf
15283 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15284 r=`${PWD_COMMAND}`; export r; \
15285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15286 $(HOST_EXPORTS) \
a90ef4bf 15287 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15289 done; \
22121df0 15290 echo "Doing TAGS in libelf"; \
a90ef4bf 15291 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15294 "RANLIB=$${RANLIB}" \
0c24b341 15295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15296 TAGS) \
2a4cbe27
NN
15297 || exit 1
15298
a90ef4bf 15299@endif libelf
2a4cbe27 15300
a90ef4bf
JM
15301.PHONY: maybe-install-info-libelf install-info-libelf
15302maybe-install-info-libelf:
15303@if libelf
15304maybe-install-info-libelf: install-info-libelf
a2592b1b 15305
a90ef4bf
JM
15306install-info-libelf: \
15307 configure-libelf \
15308 info-libelf
15309 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15310 r=`${PWD_COMMAND}`; export r; \
15311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15312 $(HOST_EXPORTS) \
a90ef4bf 15313 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15315 done; \
22121df0 15316 echo "Doing install-info in libelf"; \
a90ef4bf 15317 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15320 "RANLIB=$${RANLIB}" \
0c24b341 15321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15322 install-info) \
a2592b1b
DD
15323 || exit 1
15324
a90ef4bf 15325@endif libelf
a2592b1b 15326
a90ef4bf
JM
15327.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15328maybe-install-pdf-libelf:
15329@if libelf
15330maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15331
a90ef4bf
JM
15332install-pdf-libelf: \
15333 configure-libelf \
15334 pdf-libelf
15335 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15336 r=`${PWD_COMMAND}`; export r; \
15337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15338 $(HOST_EXPORTS) \
a90ef4bf 15339 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15341 done; \
22121df0 15342 echo "Doing install-pdf in libelf"; \
a90ef4bf 15343 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15346 "RANLIB=$${RANLIB}" \
0c24b341 15347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15348 install-pdf) \
15349 || exit 1
15350
a90ef4bf 15351@endif libelf
a3ca38d2 15352
a90ef4bf
JM
15353.PHONY: maybe-install-html-libelf install-html-libelf
15354maybe-install-html-libelf:
15355@if libelf
15356maybe-install-html-libelf: install-html-libelf
108a6f8e 15357
a90ef4bf
JM
15358install-html-libelf: \
15359 configure-libelf \
15360 html-libelf
15361 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15362 r=`${PWD_COMMAND}`; export r; \
15363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15364 $(HOST_EXPORTS) \
a90ef4bf 15365 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15367 done; \
22121df0 15368 echo "Doing install-html in libelf"; \
a90ef4bf 15369 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15372 "RANLIB=$${RANLIB}" \
0c24b341 15373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15374 install-html) \
15375 || exit 1
15376
a90ef4bf 15377@endif libelf
108a6f8e 15378
a90ef4bf
JM
15379.PHONY: maybe-installcheck-libelf installcheck-libelf
15380maybe-installcheck-libelf:
15381@if libelf
15382maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15383
a90ef4bf
JM
15384installcheck-libelf: \
15385 configure-libelf
15386 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15387 r=`${PWD_COMMAND}`; export r; \
15388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15389 $(HOST_EXPORTS) \
a90ef4bf 15390 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15392 done; \
22121df0 15393 echo "Doing installcheck in libelf"; \
a90ef4bf 15394 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15397 "RANLIB=$${RANLIB}" \
0c24b341 15398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15399 installcheck) \
4fa63067 15400 || exit 1
2a4cbe27 15401
a90ef4bf 15402@endif libelf
4fa63067 15403
a90ef4bf
JM
15404.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15405maybe-mostlyclean-libelf:
15406@if libelf
15407maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15408
a90ef4bf
JM
15409mostlyclean-libelf:
15410 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15411 r=`${PWD_COMMAND}`; export r; \
15412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15413 $(HOST_EXPORTS) \
a90ef4bf 15414 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15416 done; \
22121df0 15417 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15418 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15421 "RANLIB=$${RANLIB}" \
0c24b341 15422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15423 mostlyclean) \
2a4cbe27
NN
15424 || exit 1
15425
a90ef4bf 15426@endif libelf
2a4cbe27 15427
a90ef4bf
JM
15428.PHONY: maybe-clean-libelf clean-libelf
15429maybe-clean-libelf:
15430@if libelf
15431maybe-clean-libelf: clean-libelf
2a4cbe27 15432
a90ef4bf
JM
15433clean-libelf:
15434 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15435 r=`${PWD_COMMAND}`; export r; \
15436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15437 $(HOST_EXPORTS) \
a90ef4bf 15438 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15440 done; \
22121df0 15441 echo "Doing clean in libelf"; \
a90ef4bf 15442 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15445 "RANLIB=$${RANLIB}" \
0c24b341 15446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15447 clean) \
2a4cbe27
NN
15448 || exit 1
15449
a90ef4bf 15450@endif libelf
2a4cbe27 15451
a90ef4bf
JM
15452.PHONY: maybe-distclean-libelf distclean-libelf
15453maybe-distclean-libelf:
15454@if libelf
15455maybe-distclean-libelf: distclean-libelf
2a4cbe27 15456
a90ef4bf
JM
15457distclean-libelf:
15458 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15459 r=`${PWD_COMMAND}`; export r; \
15460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15461 $(HOST_EXPORTS) \
a90ef4bf 15462 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15464 done; \
22121df0 15465 echo "Doing distclean in libelf"; \
a90ef4bf 15466 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15469 "RANLIB=$${RANLIB}" \
0c24b341 15470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15471 distclean) \
2a4cbe27
NN
15472 || exit 1
15473
a90ef4bf 15474@endif libelf
2a4cbe27 15475
a90ef4bf
JM
15476.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15477maybe-maintainer-clean-libelf:
15478@if libelf
15479maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15480
a90ef4bf
JM
15481maintainer-clean-libelf:
15482 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15483 r=`${PWD_COMMAND}`; export r; \
15484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15485 $(HOST_EXPORTS) \
a90ef4bf 15486 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15488 done; \
22121df0 15489 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15490 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15493 "RANLIB=$${RANLIB}" \
0c24b341 15494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15495 maintainer-clean) \
2a4cbe27
NN
15496 || exit 1
15497
a90ef4bf 15498@endif libelf
2a4cbe27 15499
2a4cbe27 15500
a7254363 15501
a90ef4bf
JM
15502.PHONY: configure-gold maybe-configure-gold
15503maybe-configure-gold:
4f0ef2d8 15504@if gcc-bootstrap
a90ef4bf 15505configure-gold: stage_current
4f0ef2d8 15506@endif gcc-bootstrap
a90ef4bf
JM
15507@if gold
15508maybe-configure-gold: configure-gold
15509configure-gold:
c52c6897 15510 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15512 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15513 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15514 $(HOST_EXPORTS) \
a90ef4bf
JM
15515 echo Configuring in $(HOST_SUBDIR)/gold; \
15516 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15517 case $(srcdir) in \
b00612cc 15518 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15519 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15520 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15521 esac; \
1b6c0831
L
15522 module_srcdir=gold; \
15523 $(SHELL) \
15524 $$s/$$module_srcdir/configure \
15525 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15526 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15527 --target=${target_alias} \
4fa63067 15528 || exit 1
a90ef4bf 15529@endif gold
a7254363 15530
d545f33b
PB
15531
15532
a90ef4bf
JM
15533.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15534maybe-configure-stage1-gold:
15535@if gold-bootstrap
15536maybe-configure-stage1-gold: configure-stage1-gold
15537configure-stage1-gold:
15538 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15539 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15540 @r=`${PWD_COMMAND}`; export r; \
15541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15542 TFLAGS="$(STAGE1_TFLAGS)"; \
15543 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15544 $(HOST_EXPORTS) \
15545 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15546 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15547 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15548 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15549 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15550 cd $(HOST_SUBDIR)/gold || exit 1; \
15551 case $(srcdir) in \
15552 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15553 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15554 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15555 esac; \
1b6c0831
L
15556 module_srcdir=gold; \
15557 $(SHELL) $$s/$$module_srcdir/configure \
15558 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15559 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15560 --target=${target_alias} \
15561 \
a90ef4bf
JM
15562 $(STAGE1_CONFIGURE_FLAGS)
15563@endif gold-bootstrap
4fa63067 15564
a90ef4bf
JM
15565.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15566maybe-configure-stage2-gold:
15567@if gold-bootstrap
15568maybe-configure-stage2-gold: configure-stage2-gold
15569configure-stage2-gold:
15570 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15571 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15572 @r=`${PWD_COMMAND}`; export r; \
15573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15574 TFLAGS="$(STAGE2_TFLAGS)"; \
15575 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15576 $(HOST_EXPORTS) \
a90ef4bf
JM
15577 $(POSTSTAGE1_HOST_EXPORTS) \
15578 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15579 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15580 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15581 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15582 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15583 cd $(HOST_SUBDIR)/gold || exit 1; \
15584 case $(srcdir) in \
15585 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15586 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15587 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15588 esac; \
1b6c0831
L
15589 module_srcdir=gold; \
15590 $(SHELL) $$s/$$module_srcdir/configure \
15591 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15592 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15593 --target=${target_alias} \
22121df0 15594 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15595 $(STAGE2_CONFIGURE_FLAGS)
15596@endif gold-bootstrap
4fa63067 15597
a90ef4bf
JM
15598.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15599maybe-configure-stage3-gold:
15600@if gold-bootstrap
15601maybe-configure-stage3-gold: configure-stage3-gold
15602configure-stage3-gold:
15603 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15604 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15605 @r=`${PWD_COMMAND}`; export r; \
15606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15607 TFLAGS="$(STAGE3_TFLAGS)"; \
15608 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15609 $(HOST_EXPORTS) \
a90ef4bf
JM
15610 $(POSTSTAGE1_HOST_EXPORTS) \
15611 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15612 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15613 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15614 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15615 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15616 cd $(HOST_SUBDIR)/gold || exit 1; \
15617 case $(srcdir) in \
15618 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15619 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15620 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15621 esac; \
1b6c0831
L
15622 module_srcdir=gold; \
15623 $(SHELL) $$s/$$module_srcdir/configure \
15624 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15625 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15626 --target=${target_alias} \
22121df0 15627 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15628 $(STAGE3_CONFIGURE_FLAGS)
15629@endif gold-bootstrap
9b980aa1 15630
a90ef4bf
JM
15631.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15632maybe-configure-stage4-gold:
15633@if gold-bootstrap
15634maybe-configure-stage4-gold: configure-stage4-gold
15635configure-stage4-gold:
15636 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15637 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15638 @r=`${PWD_COMMAND}`; export r; \
15639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15640 TFLAGS="$(STAGE4_TFLAGS)"; \
15641 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15642 $(HOST_EXPORTS) \
a90ef4bf
JM
15643 $(POSTSTAGE1_HOST_EXPORTS) \
15644 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15645 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15646 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15647 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15648 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15649 cd $(HOST_SUBDIR)/gold || exit 1; \
15650 case $(srcdir) in \
15651 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15652 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15653 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15654 esac; \
1b6c0831
L
15655 module_srcdir=gold; \
15656 $(SHELL) $$s/$$module_srcdir/configure \
15657 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15658 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15659 --target=${target_alias} \
22121df0 15660 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15661 $(STAGE4_CONFIGURE_FLAGS)
15662@endif gold-bootstrap
4fa63067 15663
a90ef4bf
JM
15664.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15665maybe-configure-stageprofile-gold:
15666@if gold-bootstrap
15667maybe-configure-stageprofile-gold: configure-stageprofile-gold
15668configure-stageprofile-gold:
15669 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15670 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15671 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15673 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15674 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15675 $(HOST_EXPORTS) \
a90ef4bf
JM
15676 $(POSTSTAGE1_HOST_EXPORTS) \
15677 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15678 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15679 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15680 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15681 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15682 cd $(HOST_SUBDIR)/gold || exit 1; \
15683 case $(srcdir) in \
15684 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15685 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15686 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15687 esac; \
1b6c0831
L
15688 module_srcdir=gold; \
15689 $(SHELL) $$s/$$module_srcdir/configure \
15690 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15691 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15692 --target=${target_alias} \
22121df0 15693 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15694 $(STAGEprofile_CONFIGURE_FLAGS)
15695@endif gold-bootstrap
2a4cbe27 15696
a90ef4bf
JM
15697.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15698maybe-configure-stagefeedback-gold:
15699@if gold-bootstrap
15700maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15701configure-stagefeedback-gold:
15702 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15703 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15704 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15706 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15707 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15708 $(HOST_EXPORTS) \
a90ef4bf
JM
15709 $(POSTSTAGE1_HOST_EXPORTS) \
15710 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15711 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15712 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15713 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15714 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15715 cd $(HOST_SUBDIR)/gold || exit 1; \
15716 case $(srcdir) in \
15717 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15718 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15719 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15720 esac; \
1b6c0831
L
15721 module_srcdir=gold; \
15722 $(SHELL) $$s/$$module_srcdir/configure \
15723 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15724 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15725 --target=${target_alias} \
22121df0 15726 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15727 $(STAGEfeedback_CONFIGURE_FLAGS)
15728@endif gold-bootstrap
2a4cbe27 15729
56a8fe78 15730
56a8fe78 15731
56a8fe78 15732
6d389afc 15733
a90ef4bf
JM
15734.PHONY: all-gold maybe-all-gold
15735maybe-all-gold:
15736@if gcc-bootstrap
15737all-gold: stage_current
15738@endif gcc-bootstrap
15739@if gold
15740TARGET-gold=all
15741maybe-all-gold: all-gold
15742all-gold: configure-gold
15743 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15745 $(HOST_EXPORTS) \
15746 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15747 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15748 $(TARGET-gold))
15749@endif gold
6d389afc 15750
6d389afc 15751
2a4cbe27 15752
a90ef4bf
JM
15753.PHONY: all-stage1-gold maybe-all-stage1-gold
15754.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15755maybe-all-stage1-gold:
15756maybe-clean-stage1-gold:
15757@if gold-bootstrap
15758maybe-all-stage1-gold: all-stage1-gold
15759all-stage1: all-stage1-gold
15760TARGET-stage1-gold = $(TARGET-gold)
15761all-stage1-gold: configure-stage1-gold
15762 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15763 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15765 TFLAGS="$(STAGE1_TFLAGS)"; \
15766 $(HOST_EXPORTS) \
15767 cd $(HOST_SUBDIR)/gold && \
05a13254 15768 \
a90ef4bf
JM
15769 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15770 CFLAGS="$(STAGE1_CFLAGS)" \
15771 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15772 LIBCFLAGS="$(LIBCFLAGS)" \
15773 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15774 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15775 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15776 $(EXTRA_HOST_FLAGS) \
15777 $(STAGE1_FLAGS_TO_PASS) \
05a13254 15778 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 15779 $(TARGET-stage1-gold)
2a4cbe27 15780
a90ef4bf
JM
15781maybe-clean-stage1-gold: clean-stage1-gold
15782clean-stage1: clean-stage1-gold
15783clean-stage1-gold:
15784 @if [ $(current_stage) = stage1 ]; then \
15785 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15786 else \
15787 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15788 $(MAKE) stage1-start; \
15789 fi; \
15790 cd $(HOST_SUBDIR)/gold && \
15791 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15792 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15793@endif gold-bootstrap
2a4cbe27 15794
2a4cbe27 15795
a90ef4bf
JM
15796.PHONY: all-stage2-gold maybe-all-stage2-gold
15797.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15798maybe-all-stage2-gold:
15799maybe-clean-stage2-gold:
15800@if gold-bootstrap
15801maybe-all-stage2-gold: all-stage2-gold
15802all-stage2: all-stage2-gold
15803TARGET-stage2-gold = $(TARGET-gold)
15804all-stage2-gold: configure-stage2-gold
15805 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15806 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15808 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15809 $(HOST_EXPORTS) \
a90ef4bf
JM
15810 $(POSTSTAGE1_HOST_EXPORTS) \
15811 cd $(HOST_SUBDIR)/gold && \
05a13254 15812 \
a90ef4bf
JM
15813 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15814 CFLAGS="$(STAGE2_CFLAGS)" \
15815 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15816 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15817 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15818 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15819 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15820 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15821 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 15822 $(TARGET-stage2-gold)
2a4cbe27 15823
a90ef4bf
JM
15824maybe-clean-stage2-gold: clean-stage2-gold
15825clean-stage2: clean-stage2-gold
15826clean-stage2-gold:
15827 @if [ $(current_stage) = stage2 ]; then \
15828 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15829 else \
15830 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15831 $(MAKE) stage2-start; \
15832 fi; \
15833 cd $(HOST_SUBDIR)/gold && \
b3676d82 15834 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15835@endif gold-bootstrap
2a4cbe27 15836
a3ca38d2 15837
a90ef4bf
JM
15838.PHONY: all-stage3-gold maybe-all-stage3-gold
15839.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15840maybe-all-stage3-gold:
15841maybe-clean-stage3-gold:
15842@if gold-bootstrap
15843maybe-all-stage3-gold: all-stage3-gold
15844all-stage3: all-stage3-gold
15845TARGET-stage3-gold = $(TARGET-gold)
15846all-stage3-gold: configure-stage3-gold
15847 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15848 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15850 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15851 $(HOST_EXPORTS) \
a90ef4bf
JM
15852 $(POSTSTAGE1_HOST_EXPORTS) \
15853 cd $(HOST_SUBDIR)/gold && \
05a13254 15854 \
a90ef4bf
JM
15855 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15856 CFLAGS="$(STAGE3_CFLAGS)" \
15857 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15858 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15859 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15860 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15861 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15862 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15863 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 15864 $(TARGET-stage3-gold)
2a4cbe27 15865
a90ef4bf
JM
15866maybe-clean-stage3-gold: clean-stage3-gold
15867clean-stage3: clean-stage3-gold
15868clean-stage3-gold:
15869 @if [ $(current_stage) = stage3 ]; then \
15870 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15871 else \
15872 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15873 $(MAKE) stage3-start; \
15874 fi; \
15875 cd $(HOST_SUBDIR)/gold && \
b3676d82 15876 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15877@endif gold-bootstrap
2a4cbe27 15878
2a4cbe27 15879
a90ef4bf
JM
15880.PHONY: all-stage4-gold maybe-all-stage4-gold
15881.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15882maybe-all-stage4-gold:
15883maybe-clean-stage4-gold:
15884@if gold-bootstrap
15885maybe-all-stage4-gold: all-stage4-gold
15886all-stage4: all-stage4-gold
15887TARGET-stage4-gold = $(TARGET-gold)
15888all-stage4-gold: configure-stage4-gold
15889 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15890 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15892 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15893 $(HOST_EXPORTS) \
a90ef4bf
JM
15894 $(POSTSTAGE1_HOST_EXPORTS) \
15895 cd $(HOST_SUBDIR)/gold && \
05a13254 15896 \
a90ef4bf
JM
15897 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15898 CFLAGS="$(STAGE4_CFLAGS)" \
15899 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15900 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15901 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15902 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15903 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15904 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15905 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15906 $(TARGET-stage4-gold)
2a4cbe27 15907
a90ef4bf
JM
15908maybe-clean-stage4-gold: clean-stage4-gold
15909clean-stage4: clean-stage4-gold
15910clean-stage4-gold:
15911 @if [ $(current_stage) = stage4 ]; then \
15912 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15913 else \
15914 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15915 $(MAKE) stage4-start; \
15916 fi; \
15917 cd $(HOST_SUBDIR)/gold && \
b3676d82 15918 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15919@endif gold-bootstrap
2a4cbe27 15920
2a4cbe27 15921
a90ef4bf
JM
15922.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15923.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15924maybe-all-stageprofile-gold:
15925maybe-clean-stageprofile-gold:
15926@if gold-bootstrap
15927maybe-all-stageprofile-gold: all-stageprofile-gold
15928all-stageprofile: all-stageprofile-gold
15929TARGET-stageprofile-gold = $(TARGET-gold)
15930all-stageprofile-gold: configure-stageprofile-gold
15931 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15932 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15934 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15935 $(HOST_EXPORTS) \
a90ef4bf
JM
15936 $(POSTSTAGE1_HOST_EXPORTS) \
15937 cd $(HOST_SUBDIR)/gold && \
05a13254 15938 \
a90ef4bf
JM
15939 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15940 CFLAGS="$(STAGEprofile_CFLAGS)" \
15941 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15942 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15943 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15944 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15945 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15946 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15947 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15948 $(TARGET-stageprofile-gold)
2a4cbe27 15949
a90ef4bf
JM
15950maybe-clean-stageprofile-gold: clean-stageprofile-gold
15951clean-stageprofile: clean-stageprofile-gold
15952clean-stageprofile-gold:
15953 @if [ $(current_stage) = stageprofile ]; then \
15954 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15955 else \
15956 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15957 $(MAKE) stageprofile-start; \
15958 fi; \
15959 cd $(HOST_SUBDIR)/gold && \
b3676d82 15960 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15961@endif gold-bootstrap
2a4cbe27 15962
a7254363 15963
a90ef4bf
JM
15964.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15965.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15966maybe-all-stagefeedback-gold:
15967maybe-clean-stagefeedback-gold:
15968@if gold-bootstrap
15969maybe-all-stagefeedback-gold: all-stagefeedback-gold
15970all-stagefeedback: all-stagefeedback-gold
15971TARGET-stagefeedback-gold = $(TARGET-gold)
15972all-stagefeedback-gold: configure-stagefeedback-gold
15973 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15974 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15976 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15977 $(HOST_EXPORTS) \
15978 $(POSTSTAGE1_HOST_EXPORTS) \
15979 cd $(HOST_SUBDIR)/gold && \
05a13254 15980 \
a90ef4bf
JM
15981 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15982 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15983 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15984 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15985 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15986 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15987 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15988 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15989 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15990 $(TARGET-stagefeedback-gold)
d545f33b 15991
a90ef4bf
JM
15992maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15993clean-stagefeedback: clean-stagefeedback-gold
15994clean-stagefeedback-gold:
15995 @if [ $(current_stage) = stagefeedback ]; then \
15996 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15997 else \
15998 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15999 $(MAKE) stagefeedback-start; \
16000 fi; \
16001 cd $(HOST_SUBDIR)/gold && \
b3676d82 16002 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16003@endif gold-bootstrap
d545f33b 16004
4fa63067 16005
a7254363 16006
d545f33b
PB
16007
16008
a90ef4bf
JM
16009.PHONY: check-gold maybe-check-gold
16010maybe-check-gold:
16011@if gold
16012maybe-check-gold: check-gold
4fa63067 16013
a90ef4bf 16014check-gold:
0aed8855 16015 @: $(MAKE); $(unstage)
4fa63067
NN
16016 @r=`${PWD_COMMAND}`; export r; \
16017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16018 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 16019 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 16020 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 16021
a90ef4bf 16022@endif gold
4fa63067 16023
a90ef4bf
JM
16024.PHONY: install-gold maybe-install-gold
16025maybe-install-gold:
16026@if gold
16027maybe-install-gold: install-gold
4fa63067 16028
a90ef4bf 16029install-gold: installdirs
0aed8855 16030 @: $(MAKE); $(unstage)
4fa63067
NN
16031 @r=`${PWD_COMMAND}`; export r; \
16032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16033 $(HOST_EXPORTS) \
a90ef4bf 16034 (cd $(HOST_SUBDIR)/gold && \
2da12f12 16035 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 16036
a90ef4bf 16037@endif gold
4fa63067 16038
a90ef4bf
JM
16039.PHONY: install-strip-gold maybe-install-strip-gold
16040maybe-install-strip-gold:
16041@if gold
16042maybe-install-strip-gold: install-strip-gold
9b980aa1 16043
a90ef4bf 16044install-strip-gold: installdirs
9b980aa1
RW
16045 @: $(MAKE); $(unstage)
16046 @r=`${PWD_COMMAND}`; export r; \
16047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16048 $(HOST_EXPORTS) \
a90ef4bf 16049 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
16050 $(MAKE) $(FLAGS_TO_PASS) install-strip)
16051
a90ef4bf 16052@endif gold
9b980aa1 16053
56a8fe78 16054# Other targets (info, dvi, pdf, etc.)
4fa63067 16055
a90ef4bf
JM
16056.PHONY: maybe-info-gold info-gold
16057maybe-info-gold:
16058@if gold
16059maybe-info-gold: info-gold
4fa63067 16060
a90ef4bf
JM
16061info-gold: \
16062 configure-gold
16063 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16064 r=`${PWD_COMMAND}`; export r; \
16065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16066 $(HOST_EXPORTS) \
b813574b 16067 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16069 done; \
22121df0 16070 echo "Doing info in gold"; \
a90ef4bf 16071 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16074 "RANLIB=$${RANLIB}" \
0c24b341 16075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16076 info) \
2a4cbe27
NN
16077 || exit 1
16078
a90ef4bf 16079@endif gold
2a4cbe27 16080
a90ef4bf
JM
16081.PHONY: maybe-dvi-gold dvi-gold
16082maybe-dvi-gold:
16083@if gold
16084maybe-dvi-gold: dvi-gold
2a4cbe27 16085
a90ef4bf
JM
16086dvi-gold: \
16087 configure-gold
16088 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16089 r=`${PWD_COMMAND}`; export r; \
16090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16091 $(HOST_EXPORTS) \
b813574b 16092 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16094 done; \
22121df0 16095 echo "Doing dvi in gold"; \
a90ef4bf 16096 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16099 "RANLIB=$${RANLIB}" \
0c24b341 16100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16101 dvi) \
2a4cbe27
NN
16102 || exit 1
16103
a90ef4bf 16104@endif gold
2a4cbe27 16105
a90ef4bf
JM
16106.PHONY: maybe-pdf-gold pdf-gold
16107maybe-pdf-gold:
16108@if gold
16109maybe-pdf-gold: pdf-gold
56a8fe78 16110
a90ef4bf
JM
16111pdf-gold: \
16112 configure-gold
16113 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
16114 r=`${PWD_COMMAND}`; export r; \
16115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16116 $(HOST_EXPORTS) \
16117 for flag in $(EXTRA_HOST_FLAGS) ; do \
16118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16119 done; \
22121df0 16120 echo "Doing pdf in gold"; \
a90ef4bf 16121 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16124 "RANLIB=$${RANLIB}" \
0c24b341 16125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16126 pdf) \
16127 || exit 1
16128
a90ef4bf 16129@endif gold
56a8fe78 16130
a90ef4bf
JM
16131.PHONY: maybe-html-gold html-gold
16132maybe-html-gold:
16133@if gold
16134maybe-html-gold: html-gold
6d389afc 16135
a90ef4bf
JM
16136html-gold: \
16137 configure-gold
16138 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16139 r=`${PWD_COMMAND}`; export r; \
16140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16141 $(HOST_EXPORTS) \
16142 for flag in $(EXTRA_HOST_FLAGS) ; do \
16143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16144 done; \
22121df0 16145 echo "Doing html in gold"; \
a90ef4bf 16146 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16149 "RANLIB=$${RANLIB}" \
0c24b341 16150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16151 html) \
16152 || exit 1
16153
a90ef4bf 16154@endif gold
6d389afc 16155
a90ef4bf
JM
16156.PHONY: maybe-TAGS-gold TAGS-gold
16157maybe-TAGS-gold:
16158@if gold
16159maybe-TAGS-gold: TAGS-gold
2a4cbe27 16160
a90ef4bf
JM
16161TAGS-gold: \
16162 configure-gold
16163 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16164 r=`${PWD_COMMAND}`; export r; \
16165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16166 $(HOST_EXPORTS) \
b813574b 16167 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16169 done; \
22121df0 16170 echo "Doing TAGS in gold"; \
a90ef4bf 16171 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16174 "RANLIB=$${RANLIB}" \
0c24b341 16175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16176 TAGS) \
2a4cbe27
NN
16177 || exit 1
16178
a90ef4bf 16179@endif gold
2a4cbe27 16180
a90ef4bf
JM
16181.PHONY: maybe-install-info-gold install-info-gold
16182maybe-install-info-gold:
16183@if gold
16184maybe-install-info-gold: install-info-gold
b813574b 16185
a90ef4bf
JM
16186install-info-gold: \
16187 configure-gold \
16188 info-gold
16189 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16190 r=`${PWD_COMMAND}`; export r; \
16191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16192 $(HOST_EXPORTS) \
b813574b 16193 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16195 done; \
22121df0 16196 echo "Doing install-info in gold"; \
a90ef4bf 16197 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16200 "RANLIB=$${RANLIB}" \
0c24b341 16201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16202 install-info) \
2a4cbe27
NN
16203 || exit 1
16204
a90ef4bf 16205@endif gold
2a4cbe27 16206
a90ef4bf
JM
16207.PHONY: maybe-install-pdf-gold install-pdf-gold
16208maybe-install-pdf-gold:
16209@if gold
16210maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16211
a90ef4bf
JM
16212install-pdf-gold: \
16213 configure-gold \
16214 pdf-gold
16215 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16216 r=`${PWD_COMMAND}`; export r; \
16217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16218 $(HOST_EXPORTS) \
16219 for flag in $(EXTRA_HOST_FLAGS) ; do \
16220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16221 done; \
22121df0 16222 echo "Doing install-pdf in gold"; \
a90ef4bf 16223 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16226 "RANLIB=$${RANLIB}" \
0c24b341 16227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16228 install-pdf) \
16229 || exit 1
16230
a90ef4bf 16231@endif gold
a3ca38d2 16232
a90ef4bf
JM
16233.PHONY: maybe-install-html-gold install-html-gold
16234maybe-install-html-gold:
16235@if gold
16236maybe-install-html-gold: install-html-gold
108a6f8e 16237
a90ef4bf
JM
16238install-html-gold: \
16239 configure-gold \
16240 html-gold
16241 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16242 r=`${PWD_COMMAND}`; export r; \
16243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16244 $(HOST_EXPORTS) \
16245 for flag in $(EXTRA_HOST_FLAGS) ; do \
16246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16247 done; \
22121df0 16248 echo "Doing install-html in gold"; \
a90ef4bf 16249 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16252 "RANLIB=$${RANLIB}" \
0c24b341 16253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16254 install-html) \
16255 || exit 1
16256
a90ef4bf 16257@endif gold
108a6f8e 16258
a90ef4bf
JM
16259.PHONY: maybe-installcheck-gold installcheck-gold
16260maybe-installcheck-gold:
16261@if gold
16262maybe-installcheck-gold: installcheck-gold
2a4cbe27 16263
a90ef4bf
JM
16264installcheck-gold: \
16265 configure-gold
16266 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16267 r=`${PWD_COMMAND}`; export r; \
16268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16269 $(HOST_EXPORTS) \
b813574b 16270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16272 done; \
22121df0 16273 echo "Doing installcheck in gold"; \
a90ef4bf 16274 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16277 "RANLIB=$${RANLIB}" \
0c24b341 16278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16279 installcheck) \
2a4cbe27
NN
16280 || exit 1
16281
a90ef4bf 16282@endif gold
2a4cbe27 16283
a90ef4bf
JM
16284.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16285maybe-mostlyclean-gold:
16286@if gold
16287maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16288
a90ef4bf
JM
16289mostlyclean-gold:
16290 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16291 r=`${PWD_COMMAND}`; export r; \
16292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16293 $(HOST_EXPORTS) \
b813574b 16294 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16296 done; \
22121df0 16297 echo "Doing mostlyclean in gold"; \
a90ef4bf 16298 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16301 "RANLIB=$${RANLIB}" \
0c24b341 16302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16303 mostlyclean) \
2a4cbe27
NN
16304 || exit 1
16305
a90ef4bf 16306@endif gold
2a4cbe27 16307
a90ef4bf
JM
16308.PHONY: maybe-clean-gold clean-gold
16309maybe-clean-gold:
16310@if gold
16311maybe-clean-gold: clean-gold
2a4cbe27 16312
a90ef4bf
JM
16313clean-gold:
16314 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16315 r=`${PWD_COMMAND}`; export r; \
16316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16317 $(HOST_EXPORTS) \
b813574b 16318 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16320 done; \
22121df0 16321 echo "Doing clean in gold"; \
a90ef4bf 16322 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16325 "RANLIB=$${RANLIB}" \
0c24b341 16326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16327 clean) \
2a4cbe27
NN
16328 || exit 1
16329
a90ef4bf 16330@endif gold
2a4cbe27 16331
a90ef4bf
JM
16332.PHONY: maybe-distclean-gold distclean-gold
16333maybe-distclean-gold:
16334@if gold
16335maybe-distclean-gold: distclean-gold
2a4cbe27 16336
a90ef4bf
JM
16337distclean-gold:
16338 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16339 r=`${PWD_COMMAND}`; export r; \
16340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16341 $(HOST_EXPORTS) \
b813574b 16342 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16344 done; \
22121df0 16345 echo "Doing distclean in gold"; \
a90ef4bf 16346 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16349 "RANLIB=$${RANLIB}" \
0c24b341 16350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16351 distclean) \
2a4cbe27
NN
16352 || exit 1
16353
a90ef4bf 16354@endif gold
2a4cbe27 16355
a90ef4bf
JM
16356.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16357maybe-maintainer-clean-gold:
16358@if gold
16359maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16360
a90ef4bf
JM
16361maintainer-clean-gold:
16362 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16363 r=`${PWD_COMMAND}`; export r; \
16364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16365 $(HOST_EXPORTS) \
b813574b 16366 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16368 done; \
22121df0 16369 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16370 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16373 "RANLIB=$${RANLIB}" \
0c24b341 16374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16375 maintainer-clean) \
4fa63067
NN
16376 || exit 1
16377
a90ef4bf 16378@endif gold
4fa63067
NN
16379
16380
a7254363 16381
a90ef4bf
JM
16382.PHONY: configure-gprof maybe-configure-gprof
16383maybe-configure-gprof:
4b900473 16384@if gcc-bootstrap
a90ef4bf 16385configure-gprof: stage_current
4b900473 16386@endif gcc-bootstrap
a90ef4bf
JM
16387@if gprof
16388maybe-configure-gprof: configure-gprof
16389configure-gprof:
16390 @: $(MAKE); $(unstage)
4b900473
PB
16391 @r=`${PWD_COMMAND}`; export r; \
16392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16393 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16394 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16395 $(HOST_EXPORTS) \
a90ef4bf
JM
16396 echo Configuring in $(HOST_SUBDIR)/gprof; \
16397 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16398 case $(srcdir) in \
16399 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16400 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16401 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16402 esac; \
1b6c0831
L
16403 module_srcdir=gprof; \
16404 $(SHELL) \
16405 $$s/$$module_srcdir/configure \
16406 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16407 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16408 --target=${target_alias} \
4b900473 16409 || exit 1
a90ef4bf 16410@endif gprof
4b900473
PB
16411
16412
16413
4b900473 16414
a90ef4bf
JM
16415
16416.PHONY: all-gprof maybe-all-gprof
16417maybe-all-gprof:
16418@if gcc-bootstrap
16419all-gprof: stage_current
16420@endif gcc-bootstrap
16421@if gprof
16422TARGET-gprof=all
16423maybe-all-gprof: all-gprof
16424all-gprof: configure-gprof
16425 @: $(MAKE); $(unstage)
4b900473
PB
16426 @r=`${PWD_COMMAND}`; export r; \
16427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16428 $(HOST_EXPORTS) \
a90ef4bf 16429 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16430 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16431 $(TARGET-gprof))
16432@endif gprof
4b900473
PB
16433
16434
4b900473 16435
4b900473 16436
a90ef4bf
JM
16437.PHONY: check-gprof maybe-check-gprof
16438maybe-check-gprof:
16439@if gprof
16440maybe-check-gprof: check-gprof
4b900473 16441
a90ef4bf
JM
16442check-gprof:
16443 @: $(MAKE); $(unstage)
4b900473
PB
16444 @r=`${PWD_COMMAND}`; export r; \
16445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16446 $(HOST_EXPORTS) \
a90ef4bf
JM
16447 (cd $(HOST_SUBDIR)/gprof && \
16448 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16449
a90ef4bf 16450@endif gprof
4b900473 16451
a90ef4bf
JM
16452.PHONY: install-gprof maybe-install-gprof
16453maybe-install-gprof:
16454@if gprof
16455maybe-install-gprof: install-gprof
4b900473 16456
a90ef4bf
JM
16457install-gprof: installdirs
16458 @: $(MAKE); $(unstage)
4b900473
PB
16459 @r=`${PWD_COMMAND}`; export r; \
16460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16461 $(HOST_EXPORTS) \
a90ef4bf
JM
16462 (cd $(HOST_SUBDIR)/gprof && \
16463 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16464
a90ef4bf 16465@endif gprof
4b900473 16466
a90ef4bf
JM
16467.PHONY: install-strip-gprof maybe-install-strip-gprof
16468maybe-install-strip-gprof:
16469@if gprof
16470maybe-install-strip-gprof: install-strip-gprof
4b900473 16471
a90ef4bf 16472install-strip-gprof: installdirs
4b900473
PB
16473 @: $(MAKE); $(unstage)
16474 @r=`${PWD_COMMAND}`; export r; \
16475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16476 $(HOST_EXPORTS) \
a90ef4bf
JM
16477 (cd $(HOST_SUBDIR)/gprof && \
16478 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16479
a90ef4bf 16480@endif gprof
9b980aa1 16481
4b900473
PB
16482# Other targets (info, dvi, pdf, etc.)
16483
a90ef4bf
JM
16484.PHONY: maybe-info-gprof info-gprof
16485maybe-info-gprof:
16486@if gprof
16487maybe-info-gprof: info-gprof
4b900473 16488
a90ef4bf
JM
16489info-gprof: \
16490 configure-gprof
16491 @: $(MAKE); $(unstage)
16492 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16493 r=`${PWD_COMMAND}`; export r; \
16494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16495 $(HOST_EXPORTS) \
16496 for flag in $(EXTRA_HOST_FLAGS) ; do \
16497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16498 done; \
22121df0 16499 echo "Doing info in gprof"; \
a90ef4bf 16500 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16503 "RANLIB=$${RANLIB}" \
0c24b341 16504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16505 info) \
16506 || exit 1
16507
a90ef4bf 16508@endif gprof
4b900473 16509
a90ef4bf
JM
16510.PHONY: maybe-dvi-gprof dvi-gprof
16511maybe-dvi-gprof:
16512@if gprof
16513maybe-dvi-gprof: dvi-gprof
4b900473 16514
a90ef4bf
JM
16515dvi-gprof: \
16516 configure-gprof
16517 @: $(MAKE); $(unstage)
16518 @[ -f ./gprof/Makefile ] || exit 0; \
16519 r=`${PWD_COMMAND}`; export r; \
16520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16521 $(HOST_EXPORTS) \
4b900473
PB
16522 for flag in $(EXTRA_HOST_FLAGS) ; do \
16523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16524 done; \
22121df0 16525 echo "Doing dvi in gprof"; \
a90ef4bf 16526 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16529 "RANLIB=$${RANLIB}" \
0c24b341 16530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16531 dvi) \
16532 || exit 1
16533
a90ef4bf 16534@endif gprof
4b900473 16535
a90ef4bf
JM
16536.PHONY: maybe-pdf-gprof pdf-gprof
16537maybe-pdf-gprof:
16538@if gprof
16539maybe-pdf-gprof: pdf-gprof
4b900473 16540
a90ef4bf
JM
16541pdf-gprof: \
16542 configure-gprof
16543 @: $(MAKE); $(unstage)
16544 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16545 r=`${PWD_COMMAND}`; export r; \
16546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16547 $(HOST_EXPORTS) \
16548 for flag in $(EXTRA_HOST_FLAGS) ; do \
16549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16550 done; \
22121df0 16551 echo "Doing pdf in gprof"; \
a90ef4bf 16552 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16555 "RANLIB=$${RANLIB}" \
0c24b341 16556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16557 pdf) \
16558 || exit 1
16559
a90ef4bf 16560@endif gprof
4b900473 16561
a90ef4bf
JM
16562.PHONY: maybe-html-gprof html-gprof
16563maybe-html-gprof:
16564@if gprof
16565maybe-html-gprof: html-gprof
4b900473 16566
a90ef4bf
JM
16567html-gprof: \
16568 configure-gprof
16569 @: $(MAKE); $(unstage)
16570 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16571 r=`${PWD_COMMAND}`; export r; \
16572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16573 $(HOST_EXPORTS) \
16574 for flag in $(EXTRA_HOST_FLAGS) ; do \
16575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16576 done; \
22121df0 16577 echo "Doing html in gprof"; \
a90ef4bf 16578 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16581 "RANLIB=$${RANLIB}" \
0c24b341 16582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16583 html) \
16584 || exit 1
16585
a90ef4bf 16586@endif gprof
4b900473 16587
a90ef4bf
JM
16588.PHONY: maybe-TAGS-gprof TAGS-gprof
16589maybe-TAGS-gprof:
16590@if gprof
16591maybe-TAGS-gprof: TAGS-gprof
4b900473 16592
a90ef4bf
JM
16593TAGS-gprof: \
16594 configure-gprof
16595 @: $(MAKE); $(unstage)
16596 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16597 r=`${PWD_COMMAND}`; export r; \
16598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16599 $(HOST_EXPORTS) \
16600 for flag in $(EXTRA_HOST_FLAGS) ; do \
16601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16602 done; \
22121df0 16603 echo "Doing TAGS in gprof"; \
a90ef4bf 16604 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16607 "RANLIB=$${RANLIB}" \
0c24b341 16608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16609 TAGS) \
16610 || exit 1
16611
a90ef4bf 16612@endif gprof
4b900473 16613
a90ef4bf
JM
16614.PHONY: maybe-install-info-gprof install-info-gprof
16615maybe-install-info-gprof:
16616@if gprof
16617maybe-install-info-gprof: install-info-gprof
4b900473 16618
a90ef4bf
JM
16619install-info-gprof: \
16620 configure-gprof \
16621 info-gprof
16622 @: $(MAKE); $(unstage)
16623 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16624 r=`${PWD_COMMAND}`; export r; \
16625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16626 $(HOST_EXPORTS) \
16627 for flag in $(EXTRA_HOST_FLAGS) ; do \
16628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16629 done; \
22121df0 16630 echo "Doing install-info in gprof"; \
a90ef4bf 16631 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16634 "RANLIB=$${RANLIB}" \
0c24b341 16635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16636 install-info) \
16637 || exit 1
16638
a90ef4bf 16639@endif gprof
4b900473 16640
a90ef4bf
JM
16641.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16642maybe-install-pdf-gprof:
16643@if gprof
16644maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16645
a90ef4bf
JM
16646install-pdf-gprof: \
16647 configure-gprof \
16648 pdf-gprof
16649 @: $(MAKE); $(unstage)
16650 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16651 r=`${PWD_COMMAND}`; export r; \
16652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16653 $(HOST_EXPORTS) \
16654 for flag in $(EXTRA_HOST_FLAGS) ; do \
16655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16656 done; \
22121df0 16657 echo "Doing install-pdf in gprof"; \
a90ef4bf 16658 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16661 "RANLIB=$${RANLIB}" \
0c24b341 16662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16663 install-pdf) \
16664 || exit 1
16665
a90ef4bf 16666@endif gprof
a3ca38d2 16667
a90ef4bf
JM
16668.PHONY: maybe-install-html-gprof install-html-gprof
16669maybe-install-html-gprof:
16670@if gprof
16671maybe-install-html-gprof: install-html-gprof
4b900473 16672
a90ef4bf
JM
16673install-html-gprof: \
16674 configure-gprof \
16675 html-gprof
16676 @: $(MAKE); $(unstage)
16677 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16678 r=`${PWD_COMMAND}`; export r; \
16679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16680 $(HOST_EXPORTS) \
16681 for flag in $(EXTRA_HOST_FLAGS) ; do \
16682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16683 done; \
22121df0 16684 echo "Doing install-html in gprof"; \
a90ef4bf 16685 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16688 "RANLIB=$${RANLIB}" \
0c24b341 16689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16690 install-html) \
16691 || exit 1
16692
a90ef4bf 16693@endif gprof
4b900473 16694
a90ef4bf
JM
16695.PHONY: maybe-installcheck-gprof installcheck-gprof
16696maybe-installcheck-gprof:
16697@if gprof
16698maybe-installcheck-gprof: installcheck-gprof
4b900473 16699
a90ef4bf
JM
16700installcheck-gprof: \
16701 configure-gprof
16702 @: $(MAKE); $(unstage)
16703 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16704 r=`${PWD_COMMAND}`; export r; \
16705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16706 $(HOST_EXPORTS) \
16707 for flag in $(EXTRA_HOST_FLAGS) ; do \
16708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16709 done; \
22121df0 16710 echo "Doing installcheck in gprof"; \
a90ef4bf 16711 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16714 "RANLIB=$${RANLIB}" \
16715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16716 installcheck) \
16717 || exit 1
16718
a90ef4bf 16719@endif gprof
e28c595f 16720
a90ef4bf
JM
16721.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16722maybe-mostlyclean-gprof:
16723@if gprof
16724maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16725
a90ef4bf
JM
16726mostlyclean-gprof:
16727 @: $(MAKE); $(unstage)
16728 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16729 r=`${PWD_COMMAND}`; export r; \
16730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16731 $(HOST_EXPORTS) \
16732 for flag in $(EXTRA_HOST_FLAGS) ; do \
16733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16734 done; \
22121df0 16735 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16736 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16739 "RANLIB=$${RANLIB}" \
16740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16741 mostlyclean) \
16742 || exit 1
16743
a90ef4bf 16744@endif gprof
e28c595f 16745
a90ef4bf
JM
16746.PHONY: maybe-clean-gprof clean-gprof
16747maybe-clean-gprof:
16748@if gprof
16749maybe-clean-gprof: clean-gprof
e28c595f 16750
a90ef4bf
JM
16751clean-gprof:
16752 @: $(MAKE); $(unstage)
16753 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16754 r=`${PWD_COMMAND}`; export r; \
16755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16756 $(HOST_EXPORTS) \
16757 for flag in $(EXTRA_HOST_FLAGS) ; do \
16758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16759 done; \
22121df0 16760 echo "Doing clean in gprof"; \
a90ef4bf 16761 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16764 "RANLIB=$${RANLIB}" \
16765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16766 clean) \
16767 || exit 1
16768
a90ef4bf 16769@endif gprof
e28c595f 16770
a90ef4bf
JM
16771.PHONY: maybe-distclean-gprof distclean-gprof
16772maybe-distclean-gprof:
16773@if gprof
16774maybe-distclean-gprof: distclean-gprof
e28c595f 16775
a90ef4bf
JM
16776distclean-gprof:
16777 @: $(MAKE); $(unstage)
16778 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16779 r=`${PWD_COMMAND}`; export r; \
16780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16781 $(HOST_EXPORTS) \
16782 for flag in $(EXTRA_HOST_FLAGS) ; do \
16783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16784 done; \
22121df0 16785 echo "Doing distclean in gprof"; \
a90ef4bf 16786 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16789 "RANLIB=$${RANLIB}" \
16790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16791 distclean) \
16792 || exit 1
16793
a90ef4bf 16794@endif gprof
e28c595f 16795
a90ef4bf
JM
16796.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16797maybe-maintainer-clean-gprof:
16798@if gprof
16799maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16800
a90ef4bf
JM
16801maintainer-clean-gprof:
16802 @: $(MAKE); $(unstage)
16803 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16804 r=`${PWD_COMMAND}`; export r; \
16805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16806 $(HOST_EXPORTS) \
16807 for flag in $(EXTRA_HOST_FLAGS) ; do \
16808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16809 done; \
22121df0 16810 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16811 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16814 "RANLIB=$${RANLIB}" \
16815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16816 maintainer-clean) \
16817 || exit 1
16818
a90ef4bf 16819@endif gprof
e28c595f
JM
16820
16821
16822
a90ef4bf
JM
16823.PHONY: configure-intl maybe-configure-intl
16824maybe-configure-intl:
e28c595f 16825@if gcc-bootstrap
a90ef4bf 16826configure-intl: stage_current
e28c595f 16827@endif gcc-bootstrap
a90ef4bf
JM
16828@if intl
16829maybe-configure-intl: configure-intl
16830configure-intl:
e28c595f
JM
16831 @r=`${PWD_COMMAND}`; export r; \
16832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16833 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16834 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16835 $(HOST_EXPORTS) \
a90ef4bf
JM
16836 echo Configuring in $(HOST_SUBDIR)/intl; \
16837 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16838 case $(srcdir) in \
16839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16840 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16842 esac; \
1b6c0831
L
16843 module_srcdir=intl; \
16844 $(SHELL) \
16845 $$s/$$module_srcdir/configure \
16846 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16847 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16848 --target=${target_alias} \
e28c595f 16849 || exit 1
a90ef4bf 16850@endif intl
e28c595f
JM
16851
16852
16853
a90ef4bf
JM
16854.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16855maybe-configure-stage1-intl:
16856@if intl-bootstrap
16857maybe-configure-stage1-intl: configure-stage1-intl
16858configure-stage1-intl:
e28c595f 16859 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16860 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16861 @r=`${PWD_COMMAND}`; export r; \
16862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16863 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16864 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16865 $(HOST_EXPORTS) \
e28c595f 16866 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16867 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16868 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16869 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16870 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16871 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16872 case $(srcdir) in \
16873 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16874 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16875 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16876 esac; \
1b6c0831
L
16877 module_srcdir=intl; \
16878 $(SHELL) $$s/$$module_srcdir/configure \
16879 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16880 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16881 --target=${target_alias} \
16882 \
a90ef4bf
JM
16883 $(STAGE1_CONFIGURE_FLAGS)
16884@endif intl-bootstrap
e28c595f 16885
a90ef4bf
JM
16886.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16887maybe-configure-stage2-intl:
16888@if intl-bootstrap
16889maybe-configure-stage2-intl: configure-stage2-intl
16890configure-stage2-intl:
e28c595f 16891 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16892 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16893 @r=`${PWD_COMMAND}`; export r; \
16894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16895 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16896 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16897 $(HOST_EXPORTS) \
1b05fbbd 16898 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16899 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16900 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16901 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16902 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16903 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16904 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16905 case $(srcdir) in \
16906 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16907 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16908 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16909 esac; \
1b6c0831
L
16910 module_srcdir=intl; \
16911 $(SHELL) $$s/$$module_srcdir/configure \
16912 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16913 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16914 --target=${target_alias} \
22121df0 16915 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16916 $(STAGE2_CONFIGURE_FLAGS)
16917@endif intl-bootstrap
e28c595f 16918
a90ef4bf
JM
16919.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16920maybe-configure-stage3-intl:
16921@if intl-bootstrap
16922maybe-configure-stage3-intl: configure-stage3-intl
16923configure-stage3-intl:
e28c595f 16924 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16925 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16926 @r=`${PWD_COMMAND}`; export r; \
16927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16928 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16929 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16930 $(HOST_EXPORTS) \
1b05fbbd 16931 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16932 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16933 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16934 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16935 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16936 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16937 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16938 case $(srcdir) in \
16939 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16940 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16941 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16942 esac; \
1b6c0831
L
16943 module_srcdir=intl; \
16944 $(SHELL) $$s/$$module_srcdir/configure \
16945 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16946 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16947 --target=${target_alias} \
22121df0 16948 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16949 $(STAGE3_CONFIGURE_FLAGS)
16950@endif intl-bootstrap
e28c595f 16951
a90ef4bf
JM
16952.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16953maybe-configure-stage4-intl:
16954@if intl-bootstrap
16955maybe-configure-stage4-intl: configure-stage4-intl
16956configure-stage4-intl:
e28c595f 16957 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16958 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16959 @r=`${PWD_COMMAND}`; export r; \
16960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16961 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16962 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16963 $(HOST_EXPORTS) \
1b05fbbd 16964 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16965 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16966 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16967 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16968 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
16969 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16970 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16971 case $(srcdir) in \
16972 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16973 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16974 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16975 esac; \
1b6c0831
L
16976 module_srcdir=intl; \
16977 $(SHELL) $$s/$$module_srcdir/configure \
16978 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16979 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16980 --target=${target_alias} \
22121df0 16981 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16982 $(STAGE4_CONFIGURE_FLAGS)
16983@endif intl-bootstrap
e28c595f 16984
a90ef4bf
JM
16985.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16986maybe-configure-stageprofile-intl:
16987@if intl-bootstrap
16988maybe-configure-stageprofile-intl: configure-stageprofile-intl
16989configure-stageprofile-intl:
e28c595f 16990 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16991 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16992 @r=`${PWD_COMMAND}`; export r; \
16993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16994 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16995 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16996 $(HOST_EXPORTS) \
1b05fbbd
AO
16997 $(POSTSTAGE1_HOST_EXPORTS) \
16998 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16999 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
17000 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17001 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
17002 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 17003 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17004 case $(srcdir) in \
17005 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17006 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17007 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17008 esac; \
1b6c0831
L
17009 module_srcdir=intl; \
17010 $(SHELL) $$s/$$module_srcdir/configure \
17011 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 17012 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17013 --target=${target_alias} \
22121df0 17014 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17015 $(STAGEprofile_CONFIGURE_FLAGS)
17016@endif intl-bootstrap
e28c595f 17017
a90ef4bf
JM
17018.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
17019maybe-configure-stagefeedback-intl:
17020@if intl-bootstrap
17021maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
17022configure-stagefeedback-intl:
e28c595f 17023 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 17024 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
17025 @r=`${PWD_COMMAND}`; export r; \
17026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17027 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 17028 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 17029 $(HOST_EXPORTS) \
1b05fbbd
AO
17030 $(POSTSTAGE1_HOST_EXPORTS) \
17031 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17032 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
17033 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17034 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
17035 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 17036 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17037 case $(srcdir) in \
17038 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17039 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17040 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17041 esac; \
1b6c0831
L
17042 module_srcdir=intl; \
17043 $(SHELL) $$s/$$module_srcdir/configure \
17044 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 17045 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17046 --target=${target_alias} \
22121df0 17047 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17048 $(STAGEfeedback_CONFIGURE_FLAGS)
17049@endif intl-bootstrap
e28c595f
JM
17050
17051
17052
17053
17054
a90ef4bf
JM
17055.PHONY: all-intl maybe-all-intl
17056maybe-all-intl:
e28c595f 17057@if gcc-bootstrap
a90ef4bf 17058all-intl: stage_current
e28c595f 17059@endif gcc-bootstrap
a90ef4bf
JM
17060@if intl
17061TARGET-intl=all
17062maybe-all-intl: all-intl
17063all-intl: configure-intl
e28c595f
JM
17064 @r=`${PWD_COMMAND}`; export r; \
17065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 17066 $(HOST_EXPORTS) \
a90ef4bf 17067 (cd $(HOST_SUBDIR)/intl && \
b3676d82 17068 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17069 $(TARGET-intl))
17070@endif intl
e28c595f
JM
17071
17072
17073
a90ef4bf
JM
17074.PHONY: all-stage1-intl maybe-all-stage1-intl
17075.PHONY: clean-stage1-intl maybe-clean-stage1-intl
17076maybe-all-stage1-intl:
17077maybe-clean-stage1-intl:
17078@if intl-bootstrap
17079maybe-all-stage1-intl: all-stage1-intl
17080all-stage1: all-stage1-intl
17081TARGET-stage1-intl = $(TARGET-intl)
17082all-stage1-intl: configure-stage1-intl
e28c595f
JM
17083 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17084 @r=`${PWD_COMMAND}`; export r; \
17085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17086 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 17087 $(HOST_EXPORTS) \
a90ef4bf 17088 cd $(HOST_SUBDIR)/intl && \
05a13254 17089 \
e28c595f 17090 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17091 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 17092 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
17093 LIBCFLAGS="$(LIBCFLAGS)" \
17094 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17095 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17096 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
17097 $(EXTRA_HOST_FLAGS) \
17098 $(STAGE1_FLAGS_TO_PASS) \
05a13254 17099 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 17100 $(TARGET-stage1-intl)
e28c595f 17101
a90ef4bf
JM
17102maybe-clean-stage1-intl: clean-stage1-intl
17103clean-stage1: clean-stage1-intl
17104clean-stage1-intl:
e28c595f 17105 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 17106 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17107 else \
a90ef4bf 17108 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
17109 $(MAKE) stage1-start; \
17110 fi; \
a90ef4bf 17111 cd $(HOST_SUBDIR)/intl && \
e28c595f 17112 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 17113 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17114@endif intl-bootstrap
e28c595f
JM
17115
17116
a90ef4bf
JM
17117.PHONY: all-stage2-intl maybe-all-stage2-intl
17118.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17119maybe-all-stage2-intl:
17120maybe-clean-stage2-intl:
17121@if intl-bootstrap
17122maybe-all-stage2-intl: all-stage2-intl
17123all-stage2: all-stage2-intl
17124TARGET-stage2-intl = $(TARGET-intl)
17125all-stage2-intl: configure-stage2-intl
e28c595f
JM
17126 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17127 @r=`${PWD_COMMAND}`; export r; \
17128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17129 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17130 $(HOST_EXPORTS) \
1f53ca9a 17131 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17132 cd $(HOST_SUBDIR)/intl && \
05a13254 17133 \
e28c595f 17134 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17135 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17136 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17137 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17138 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17139 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17140 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17141 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17142 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17143 $(TARGET-stage2-intl)
e28c595f 17144
a90ef4bf
JM
17145maybe-clean-stage2-intl: clean-stage2-intl
17146clean-stage2: clean-stage2-intl
17147clean-stage2-intl:
e28c595f 17148 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17149 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17150 else \
a90ef4bf 17151 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17152 $(MAKE) stage2-start; \
17153 fi; \
a90ef4bf 17154 cd $(HOST_SUBDIR)/intl && \
b3676d82 17155 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17156@endif intl-bootstrap
e28c595f
JM
17157
17158
a90ef4bf
JM
17159.PHONY: all-stage3-intl maybe-all-stage3-intl
17160.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17161maybe-all-stage3-intl:
17162maybe-clean-stage3-intl:
17163@if intl-bootstrap
17164maybe-all-stage3-intl: all-stage3-intl
17165all-stage3: all-stage3-intl
17166TARGET-stage3-intl = $(TARGET-intl)
17167all-stage3-intl: configure-stage3-intl
e28c595f
JM
17168 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17169 @r=`${PWD_COMMAND}`; export r; \
17170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17171 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17172 $(HOST_EXPORTS) \
1f53ca9a 17173 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17174 cd $(HOST_SUBDIR)/intl && \
05a13254 17175 \
e28c595f 17176 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17177 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17178 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17179 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17180 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17181 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17182 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17183 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17184 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17185 $(TARGET-stage3-intl)
e28c595f 17186
a90ef4bf
JM
17187maybe-clean-stage3-intl: clean-stage3-intl
17188clean-stage3: clean-stage3-intl
17189clean-stage3-intl:
e28c595f 17190 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17191 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17192 else \
a90ef4bf 17193 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17194 $(MAKE) stage3-start; \
17195 fi; \
a90ef4bf 17196 cd $(HOST_SUBDIR)/intl && \
b3676d82 17197 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17198@endif intl-bootstrap
e28c595f
JM
17199
17200
a90ef4bf
JM
17201.PHONY: all-stage4-intl maybe-all-stage4-intl
17202.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17203maybe-all-stage4-intl:
17204maybe-clean-stage4-intl:
17205@if intl-bootstrap
17206maybe-all-stage4-intl: all-stage4-intl
17207all-stage4: all-stage4-intl
17208TARGET-stage4-intl = $(TARGET-intl)
17209all-stage4-intl: configure-stage4-intl
e28c595f
JM
17210 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17211 @r=`${PWD_COMMAND}`; export r; \
17212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17213 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17214 $(HOST_EXPORTS) \
1f53ca9a 17215 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17216 cd $(HOST_SUBDIR)/intl && \
05a13254 17217 \
e28c595f 17218 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17219 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17220 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17221 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17222 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17223 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17224 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17225 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17226 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17227 $(TARGET-stage4-intl)
e28c595f 17228
a90ef4bf
JM
17229maybe-clean-stage4-intl: clean-stage4-intl
17230clean-stage4: clean-stage4-intl
17231clean-stage4-intl:
e28c595f 17232 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17233 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17234 else \
a90ef4bf 17235 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17236 $(MAKE) stage4-start; \
17237 fi; \
a90ef4bf 17238 cd $(HOST_SUBDIR)/intl && \
b3676d82 17239 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17240@endif intl-bootstrap
e28c595f
JM
17241
17242
a90ef4bf
JM
17243.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17244.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17245maybe-all-stageprofile-intl:
17246maybe-clean-stageprofile-intl:
17247@if intl-bootstrap
17248maybe-all-stageprofile-intl: all-stageprofile-intl
17249all-stageprofile: all-stageprofile-intl
17250TARGET-stageprofile-intl = $(TARGET-intl)
17251all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17252 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17253 @r=`${PWD_COMMAND}`; export r; \
17254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17255 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17256 $(HOST_EXPORTS) \
1f53ca9a 17257 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17258 cd $(HOST_SUBDIR)/intl && \
05a13254 17259 \
e28c595f 17260 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17261 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17262 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17263 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17264 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17265 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17266 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17267 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17268 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17269 $(TARGET-stageprofile-intl)
e28c595f 17270
a90ef4bf
JM
17271maybe-clean-stageprofile-intl: clean-stageprofile-intl
17272clean-stageprofile: clean-stageprofile-intl
17273clean-stageprofile-intl:
e28c595f 17274 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17275 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17276 else \
a90ef4bf 17277 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17278 $(MAKE) stageprofile-start; \
17279 fi; \
a90ef4bf 17280 cd $(HOST_SUBDIR)/intl && \
b3676d82 17281 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17282@endif intl-bootstrap
e28c595f
JM
17283
17284
a90ef4bf
JM
17285.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17286.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17287maybe-all-stagefeedback-intl:
17288maybe-clean-stagefeedback-intl:
17289@if intl-bootstrap
17290maybe-all-stagefeedback-intl: all-stagefeedback-intl
17291all-stagefeedback: all-stagefeedback-intl
17292TARGET-stagefeedback-intl = $(TARGET-intl)
17293all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17294 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17295 @r=`${PWD_COMMAND}`; export r; \
17296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17297 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17298 $(HOST_EXPORTS) \
1f53ca9a 17299 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17300 cd $(HOST_SUBDIR)/intl && \
05a13254 17301 \
e28c595f 17302 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17303 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17304 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17305 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17306 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17307 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17308 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17309 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17310 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17311 $(TARGET-stagefeedback-intl)
e28c595f 17312
a90ef4bf
JM
17313maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17314clean-stagefeedback: clean-stagefeedback-intl
17315clean-stagefeedback-intl:
e28c595f 17316 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17317 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17318 else \
a90ef4bf 17319 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17320 $(MAKE) stagefeedback-start; \
17321 fi; \
a90ef4bf 17322 cd $(HOST_SUBDIR)/intl && \
b3676d82 17323 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17324@endif intl-bootstrap
e28c595f
JM
17325
17326
17327
17328
17329
a90ef4bf
JM
17330.PHONY: check-intl maybe-check-intl
17331maybe-check-intl:
17332@if intl
17333maybe-check-intl: check-intl
e28c595f 17334
a90ef4bf 17335check-intl:
e28c595f
JM
17336 @: $(MAKE); $(unstage)
17337 @r=`${PWD_COMMAND}`; export r; \
17338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17339 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17340 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17341 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17342
a90ef4bf 17343@endif intl
e28c595f 17344
a90ef4bf
JM
17345.PHONY: install-intl maybe-install-intl
17346maybe-install-intl:
17347@if intl
17348maybe-install-intl: install-intl
e28c595f 17349
a90ef4bf
JM
17350install-intl: installdirs
17351 @: $(MAKE); $(unstage)
17352 @r=`${PWD_COMMAND}`; export r; \
17353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17354 $(HOST_EXPORTS) \
17355 (cd $(HOST_SUBDIR)/intl && \
17356 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17357
a90ef4bf 17358@endif intl
e28c595f 17359
a90ef4bf
JM
17360.PHONY: install-strip-intl maybe-install-strip-intl
17361maybe-install-strip-intl:
17362@if intl
17363maybe-install-strip-intl: install-strip-intl
9b980aa1 17364
a90ef4bf
JM
17365install-strip-intl: installdirs
17366 @: $(MAKE); $(unstage)
17367 @r=`${PWD_COMMAND}`; export r; \
17368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17369 $(HOST_EXPORTS) \
17370 (cd $(HOST_SUBDIR)/intl && \
17371 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17372
a90ef4bf 17373@endif intl
9b980aa1 17374
e28c595f
JM
17375# Other targets (info, dvi, pdf, etc.)
17376
a90ef4bf
JM
17377.PHONY: maybe-info-intl info-intl
17378maybe-info-intl:
17379@if intl
17380maybe-info-intl: info-intl
e28c595f 17381
a90ef4bf
JM
17382info-intl: \
17383 configure-intl
17384 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17385 r=`${PWD_COMMAND}`; export r; \
17386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17387 $(HOST_EXPORTS) \
17388 for flag in $(EXTRA_HOST_FLAGS) ; do \
17389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17390 done; \
22121df0 17391 echo "Doing info in intl"; \
a90ef4bf 17392 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17395 "RANLIB=$${RANLIB}" \
17396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17397 info) \
17398 || exit 1
17399
a90ef4bf 17400@endif intl
e28c595f 17401
a90ef4bf
JM
17402.PHONY: maybe-dvi-intl dvi-intl
17403maybe-dvi-intl:
17404@if intl
17405maybe-dvi-intl: dvi-intl
e28c595f 17406
a90ef4bf
JM
17407dvi-intl: \
17408 configure-intl
17409 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17410 r=`${PWD_COMMAND}`; export r; \
17411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17412 $(HOST_EXPORTS) \
17413 for flag in $(EXTRA_HOST_FLAGS) ; do \
17414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17415 done; \
22121df0 17416 echo "Doing dvi in intl"; \
a90ef4bf 17417 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17420 "RANLIB=$${RANLIB}" \
17421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17422 dvi) \
17423 || exit 1
17424
a90ef4bf 17425@endif intl
e28c595f 17426
a90ef4bf
JM
17427.PHONY: maybe-pdf-intl pdf-intl
17428maybe-pdf-intl:
17429@if intl
17430maybe-pdf-intl: pdf-intl
e28c595f 17431
a90ef4bf
JM
17432pdf-intl: \
17433 configure-intl
17434 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17435 r=`${PWD_COMMAND}`; export r; \
17436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17437 $(HOST_EXPORTS) \
17438 for flag in $(EXTRA_HOST_FLAGS) ; do \
17439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17440 done; \
22121df0 17441 echo "Doing pdf in intl"; \
a90ef4bf 17442 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17445 "RANLIB=$${RANLIB}" \
17446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17447 pdf) \
17448 || exit 1
17449
a90ef4bf 17450@endif intl
e28c595f 17451
a90ef4bf
JM
17452.PHONY: maybe-html-intl html-intl
17453maybe-html-intl:
17454@if intl
17455maybe-html-intl: html-intl
e28c595f 17456
a90ef4bf
JM
17457html-intl: \
17458 configure-intl
17459 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17460 r=`${PWD_COMMAND}`; export r; \
17461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17462 $(HOST_EXPORTS) \
17463 for flag in $(EXTRA_HOST_FLAGS) ; do \
17464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17465 done; \
22121df0 17466 echo "Doing html in intl"; \
a90ef4bf 17467 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17470 "RANLIB=$${RANLIB}" \
17471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17472 html) \
17473 || exit 1
17474
a90ef4bf 17475@endif intl
e28c595f 17476
a90ef4bf
JM
17477.PHONY: maybe-TAGS-intl TAGS-intl
17478maybe-TAGS-intl:
17479@if intl
17480maybe-TAGS-intl: TAGS-intl
e28c595f 17481
a90ef4bf
JM
17482TAGS-intl: \
17483 configure-intl
17484 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17485 r=`${PWD_COMMAND}`; export r; \
17486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17487 $(HOST_EXPORTS) \
17488 for flag in $(EXTRA_HOST_FLAGS) ; do \
17489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17490 done; \
22121df0 17491 echo "Doing TAGS in intl"; \
a90ef4bf 17492 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17495 "RANLIB=$${RANLIB}" \
17496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17497 TAGS) \
17498 || exit 1
17499
a90ef4bf 17500@endif intl
e28c595f 17501
a90ef4bf
JM
17502.PHONY: maybe-install-info-intl install-info-intl
17503maybe-install-info-intl:
17504@if intl
17505maybe-install-info-intl: install-info-intl
e28c595f 17506
a90ef4bf
JM
17507install-info-intl: \
17508 configure-intl \
17509 info-intl
17510 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17511 r=`${PWD_COMMAND}`; export r; \
17512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17513 $(HOST_EXPORTS) \
17514 for flag in $(EXTRA_HOST_FLAGS) ; do \
17515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17516 done; \
22121df0 17517 echo "Doing install-info in intl"; \
a90ef4bf 17518 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17521 "RANLIB=$${RANLIB}" \
17522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17523 install-info) \
17524 || exit 1
17525
a90ef4bf 17526@endif intl
e28c595f 17527
a90ef4bf
JM
17528.PHONY: maybe-install-pdf-intl install-pdf-intl
17529maybe-install-pdf-intl:
17530@if intl
17531maybe-install-pdf-intl: install-pdf-intl
e28c595f 17532
a90ef4bf
JM
17533install-pdf-intl: \
17534 configure-intl \
17535 pdf-intl
17536 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17537 r=`${PWD_COMMAND}`; export r; \
17538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17539 $(HOST_EXPORTS) \
17540 for flag in $(EXTRA_HOST_FLAGS) ; do \
17541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17542 done; \
22121df0 17543 echo "Doing install-pdf in intl"; \
a90ef4bf 17544 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17547 "RANLIB=$${RANLIB}" \
17548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17549 install-pdf) \
17550 || exit 1
17551
a90ef4bf 17552@endif intl
e28c595f 17553
a90ef4bf
JM
17554.PHONY: maybe-install-html-intl install-html-intl
17555maybe-install-html-intl:
17556@if intl
17557maybe-install-html-intl: install-html-intl
e28c595f 17558
a90ef4bf
JM
17559install-html-intl: \
17560 configure-intl \
17561 html-intl
17562 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17563 r=`${PWD_COMMAND}`; export r; \
17564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17565 $(HOST_EXPORTS) \
17566 for flag in $(EXTRA_HOST_FLAGS) ; do \
17567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17568 done; \
22121df0 17569 echo "Doing install-html in intl"; \
a90ef4bf 17570 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17573 "RANLIB=$${RANLIB}" \
17574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17575 install-html) \
17576 || exit 1
17577
a90ef4bf 17578@endif intl
e28c595f 17579
a90ef4bf
JM
17580.PHONY: maybe-installcheck-intl installcheck-intl
17581maybe-installcheck-intl:
17582@if intl
17583maybe-installcheck-intl: installcheck-intl
e28c595f 17584
a90ef4bf
JM
17585installcheck-intl: \
17586 configure-intl
17587 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17588 r=`${PWD_COMMAND}`; export r; \
17589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17590 $(HOST_EXPORTS) \
17591 for flag in $(EXTRA_HOST_FLAGS) ; do \
17592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17593 done; \
22121df0 17594 echo "Doing installcheck in intl"; \
a90ef4bf 17595 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17598 "RANLIB=$${RANLIB}" \
17599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17600 installcheck) \
17601 || exit 1
17602
a90ef4bf 17603@endif intl
e28c595f 17604
a90ef4bf
JM
17605.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17606maybe-mostlyclean-intl:
17607@if intl
17608maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17609
a90ef4bf
JM
17610mostlyclean-intl:
17611 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17612 r=`${PWD_COMMAND}`; export r; \
17613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17614 $(HOST_EXPORTS) \
17615 for flag in $(EXTRA_HOST_FLAGS) ; do \
17616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17617 done; \
22121df0 17618 echo "Doing mostlyclean in intl"; \
a90ef4bf 17619 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17622 "RANLIB=$${RANLIB}" \
17623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17624 mostlyclean) \
17625 || exit 1
17626
a90ef4bf 17627@endif intl
e28c595f 17628
a90ef4bf
JM
17629.PHONY: maybe-clean-intl clean-intl
17630maybe-clean-intl:
17631@if intl
17632maybe-clean-intl: clean-intl
e28c595f 17633
a90ef4bf
JM
17634clean-intl:
17635 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17636 r=`${PWD_COMMAND}`; export r; \
17637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17638 $(HOST_EXPORTS) \
17639 for flag in $(EXTRA_HOST_FLAGS) ; do \
17640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17641 done; \
22121df0 17642 echo "Doing clean in intl"; \
a90ef4bf 17643 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17646 "RANLIB=$${RANLIB}" \
17647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17648 clean) \
17649 || exit 1
17650
a90ef4bf 17651@endif intl
e28c595f 17652
a90ef4bf
JM
17653.PHONY: maybe-distclean-intl distclean-intl
17654maybe-distclean-intl:
17655@if intl
17656maybe-distclean-intl: distclean-intl
e28c595f 17657
a90ef4bf
JM
17658distclean-intl:
17659 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17660 r=`${PWD_COMMAND}`; export r; \
17661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17662 $(HOST_EXPORTS) \
17663 for flag in $(EXTRA_HOST_FLAGS) ; do \
17664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17665 done; \
22121df0 17666 echo "Doing distclean in intl"; \
a90ef4bf 17667 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17670 "RANLIB=$${RANLIB}" \
17671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17672 distclean) \
17673 || exit 1
17674
a90ef4bf 17675@endif intl
e28c595f 17676
a90ef4bf
JM
17677.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17678maybe-maintainer-clean-intl:
17679@if intl
17680maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17681
a90ef4bf
JM
17682maintainer-clean-intl:
17683 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17684 r=`${PWD_COMMAND}`; export r; \
17685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17686 $(HOST_EXPORTS) \
17687 for flag in $(EXTRA_HOST_FLAGS) ; do \
17688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17689 done; \
22121df0 17690 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17691 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17694 "RANLIB=$${RANLIB}" \
17695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17696 maintainer-clean) \
17697 || exit 1
17698
a90ef4bf 17699@endif intl
e28c595f
JM
17700
17701
17702
a90ef4bf
JM
17703.PHONY: configure-tcl maybe-configure-tcl
17704maybe-configure-tcl:
e8a5fa9c 17705@if gcc-bootstrap
a90ef4bf 17706configure-tcl: stage_current
e8a5fa9c 17707@endif gcc-bootstrap
a90ef4bf
JM
17708@if tcl
17709maybe-configure-tcl: configure-tcl
17710configure-tcl:
17711 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17712 @r=`${PWD_COMMAND}`; export r; \
17713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17714 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17715 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17716 $(HOST_EXPORTS) \
a90ef4bf
JM
17717 echo Configuring in $(HOST_SUBDIR)/tcl; \
17718 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17719 case $(srcdir) in \
17720 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17721 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17722 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17723 esac; \
1b6c0831
L
17724 module_srcdir=tcl; \
17725 $(SHELL) \
17726 $$s/$$module_srcdir/configure \
17727 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17728 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17729 --target=${target_alias} \
e8a5fa9c 17730 || exit 1
a90ef4bf 17731@endif tcl
e8a5fa9c
RW
17732
17733
17734
e8a5fa9c 17735
e8a5fa9c 17736
a90ef4bf
JM
17737.PHONY: all-tcl maybe-all-tcl
17738maybe-all-tcl:
17739@if gcc-bootstrap
17740all-tcl: stage_current
17741@endif gcc-bootstrap
17742@if tcl
17743TARGET-tcl=all
17744maybe-all-tcl: all-tcl
17745all-tcl: configure-tcl
17746 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17747 @r=`${PWD_COMMAND}`; export r; \
17748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17749 $(HOST_EXPORTS) \
17750 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17751 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17752 $(TARGET-tcl))
17753@endif tcl
e8a5fa9c 17754
a90ef4bf
JM
17755
17756
17757
17758.PHONY: check-tcl maybe-check-tcl
17759maybe-check-tcl:
17760@if tcl
17761maybe-check-tcl: check-tcl
17762
17763check-tcl:
17764 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17765 @r=`${PWD_COMMAND}`; export r; \
17766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17767 $(HOST_EXPORTS) \
a90ef4bf
JM
17768 (cd $(HOST_SUBDIR)/tcl && \
17769 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17770
a90ef4bf
JM
17771@endif tcl
17772
17773.PHONY: install-tcl maybe-install-tcl
17774maybe-install-tcl:
17775@if tcl
17776maybe-install-tcl: install-tcl
17777
17778install-tcl: installdirs
17779 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17780 @r=`${PWD_COMMAND}`; export r; \
17781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17782 $(HOST_EXPORTS) \
a90ef4bf
JM
17783 (cd $(HOST_SUBDIR)/tcl && \
17784 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17785
a90ef4bf
JM
17786@endif tcl
17787
17788.PHONY: install-strip-tcl maybe-install-strip-tcl
17789maybe-install-strip-tcl:
17790@if tcl
17791maybe-install-strip-tcl: install-strip-tcl
17792
17793install-strip-tcl: installdirs
17794 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17795 @r=`${PWD_COMMAND}`; export r; \
17796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17797 $(HOST_EXPORTS) \
a90ef4bf
JM
17798 (cd $(HOST_SUBDIR)/tcl && \
17799 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17800
a90ef4bf 17801@endif tcl
e8a5fa9c 17802
a90ef4bf 17803# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17804
a90ef4bf
JM
17805.PHONY: maybe-info-tcl info-tcl
17806maybe-info-tcl:
17807@if tcl
17808maybe-info-tcl: info-tcl
e8a5fa9c 17809
a90ef4bf
JM
17810info-tcl: \
17811 configure-tcl
17812 @: $(MAKE); $(unstage)
17813 @[ -f ./tcl/Makefile ] || exit 0; \
17814 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17816 $(HOST_EXPORTS) \
17817 for flag in $(EXTRA_HOST_FLAGS) ; do \
17818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17819 done; \
22121df0 17820 echo "Doing info in tcl"; \
a90ef4bf
JM
17821 (cd $(HOST_SUBDIR)/tcl && \
17822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17824 "RANLIB=$${RANLIB}" \
17825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17826 info) \
17827 || exit 1
e8a5fa9c 17828
a90ef4bf 17829@endif tcl
e8a5fa9c 17830
a90ef4bf
JM
17831.PHONY: maybe-dvi-tcl dvi-tcl
17832maybe-dvi-tcl:
17833@if tcl
17834maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17835
a90ef4bf
JM
17836dvi-tcl: \
17837 configure-tcl
17838 @: $(MAKE); $(unstage)
17839 @[ -f ./tcl/Makefile ] || exit 0; \
17840 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17842 $(HOST_EXPORTS) \
17843 for flag in $(EXTRA_HOST_FLAGS) ; do \
17844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17845 done; \
22121df0 17846 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17847 (cd $(HOST_SUBDIR)/tcl && \
17848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17850 "RANLIB=$${RANLIB}" \
17851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17852 dvi) \
17853 || exit 1
e8a5fa9c 17854
a90ef4bf 17855@endif tcl
e8a5fa9c 17856
a90ef4bf
JM
17857.PHONY: maybe-pdf-tcl pdf-tcl
17858maybe-pdf-tcl:
17859@if tcl
17860maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17861
a90ef4bf
JM
17862pdf-tcl: \
17863 configure-tcl
17864 @: $(MAKE); $(unstage)
17865 @[ -f ./tcl/Makefile ] || exit 0; \
17866 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17868 $(HOST_EXPORTS) \
a90ef4bf
JM
17869 for flag in $(EXTRA_HOST_FLAGS) ; do \
17870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17871 done; \
22121df0 17872 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17873 (cd $(HOST_SUBDIR)/tcl && \
17874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17876 "RANLIB=$${RANLIB}" \
17877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17878 pdf) \
17879 || exit 1
e8a5fa9c 17880
a90ef4bf 17881@endif tcl
e8a5fa9c 17882
a90ef4bf
JM
17883.PHONY: maybe-html-tcl html-tcl
17884maybe-html-tcl:
17885@if tcl
17886maybe-html-tcl: html-tcl
e8a5fa9c 17887
a90ef4bf
JM
17888html-tcl: \
17889 configure-tcl
17890 @: $(MAKE); $(unstage)
17891 @[ -f ./tcl/Makefile ] || exit 0; \
17892 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17894 $(HOST_EXPORTS) \
a90ef4bf
JM
17895 for flag in $(EXTRA_HOST_FLAGS) ; do \
17896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17897 done; \
22121df0 17898 echo "Doing html in tcl"; \
a90ef4bf
JM
17899 (cd $(HOST_SUBDIR)/tcl && \
17900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17902 "RANLIB=$${RANLIB}" \
17903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17904 html) \
17905 || exit 1
e8a5fa9c 17906
a90ef4bf 17907@endif tcl
e8a5fa9c 17908
a90ef4bf
JM
17909.PHONY: maybe-TAGS-tcl TAGS-tcl
17910maybe-TAGS-tcl:
17911@if tcl
17912maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17913
a90ef4bf
JM
17914TAGS-tcl: \
17915 configure-tcl
17916 @: $(MAKE); $(unstage)
17917 @[ -f ./tcl/Makefile ] || exit 0; \
17918 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17920 $(HOST_EXPORTS) \
a90ef4bf
JM
17921 for flag in $(EXTRA_HOST_FLAGS) ; do \
17922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17923 done; \
22121df0 17924 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17925 (cd $(HOST_SUBDIR)/tcl && \
17926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17928 "RANLIB=$${RANLIB}" \
17929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17930 TAGS) \
17931 || exit 1
e8a5fa9c 17932
a90ef4bf 17933@endif tcl
e8a5fa9c 17934
a90ef4bf
JM
17935.PHONY: maybe-install-info-tcl install-info-tcl
17936maybe-install-info-tcl:
17937@if tcl
17938maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17939
a90ef4bf
JM
17940install-info-tcl: \
17941 configure-tcl \
17942 info-tcl
e8a5fa9c 17943 @: $(MAKE); $(unstage)
a90ef4bf 17944 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17945 r=`${PWD_COMMAND}`; export r; \
17946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17947 $(HOST_EXPORTS) \
17948 for flag in $(EXTRA_HOST_FLAGS) ; do \
17949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17950 done; \
22121df0 17951 echo "Doing install-info in tcl"; \
a90ef4bf 17952 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17955 "RANLIB=$${RANLIB}" \
17956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17957 install-info) \
e8a5fa9c
RW
17958 || exit 1
17959
a90ef4bf 17960@endif tcl
e8a5fa9c 17961
a90ef4bf
JM
17962.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17963maybe-install-pdf-tcl:
17964@if tcl
17965maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17966
a90ef4bf
JM
17967install-pdf-tcl: \
17968 configure-tcl \
17969 pdf-tcl
17970 @: $(MAKE); $(unstage)
17971 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17972 r=`${PWD_COMMAND}`; export r; \
17973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17974 $(HOST_EXPORTS) \
17975 for flag in $(EXTRA_HOST_FLAGS) ; do \
17976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17977 done; \
22121df0 17978 echo "Doing install-pdf in tcl"; \
a90ef4bf 17979 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17982 "RANLIB=$${RANLIB}" \
17983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17984 install-pdf) \
e8a5fa9c
RW
17985 || exit 1
17986
a90ef4bf 17987@endif tcl
e8a5fa9c 17988
a90ef4bf
JM
17989.PHONY: maybe-install-html-tcl install-html-tcl
17990maybe-install-html-tcl:
17991@if tcl
17992maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17993
a90ef4bf
JM
17994install-html-tcl: \
17995 configure-tcl \
17996 html-tcl
17997 @: $(MAKE); $(unstage)
17998 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17999 r=`${PWD_COMMAND}`; export r; \
18000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18001 $(HOST_EXPORTS) \
18002 for flag in $(EXTRA_HOST_FLAGS) ; do \
18003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18004 done; \
22121df0 18005 echo "Doing install-html in tcl"; \
a90ef4bf 18006 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18009 "RANLIB=$${RANLIB}" \
18010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18011 install-html) \
e8a5fa9c
RW
18012 || exit 1
18013
a90ef4bf 18014@endif tcl
e8a5fa9c 18015
a90ef4bf
JM
18016.PHONY: maybe-installcheck-tcl installcheck-tcl
18017maybe-installcheck-tcl:
18018@if tcl
18019maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 18020
a90ef4bf
JM
18021installcheck-tcl: \
18022 configure-tcl
18023 @: $(MAKE); $(unstage)
18024 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18025 r=`${PWD_COMMAND}`; export r; \
18026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18027 $(HOST_EXPORTS) \
18028 for flag in $(EXTRA_HOST_FLAGS) ; do \
18029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18030 done; \
22121df0 18031 echo "Doing installcheck in tcl"; \
a90ef4bf 18032 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18035 "RANLIB=$${RANLIB}" \
18036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18037 installcheck) \
e8a5fa9c
RW
18038 || exit 1
18039
a90ef4bf 18040@endif tcl
e8a5fa9c 18041
a90ef4bf
JM
18042.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
18043maybe-mostlyclean-tcl:
18044@if tcl
18045maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 18046
a90ef4bf
JM
18047# tcl doesn't support mostlyclean.
18048mostlyclean-tcl:
18049
18050@endif tcl
18051
18052.PHONY: maybe-clean-tcl clean-tcl
18053maybe-clean-tcl:
18054@if tcl
18055maybe-clean-tcl: clean-tcl
18056
18057clean-tcl:
18058 @: $(MAKE); $(unstage)
18059 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18060 r=`${PWD_COMMAND}`; export r; \
18061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18062 $(HOST_EXPORTS) \
18063 for flag in $(EXTRA_HOST_FLAGS) ; do \
18064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18065 done; \
22121df0 18066 echo "Doing clean in tcl"; \
a90ef4bf 18067 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18070 "RANLIB=$${RANLIB}" \
18071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18072 clean) \
e8a5fa9c
RW
18073 || exit 1
18074
a90ef4bf 18075@endif tcl
e8a5fa9c 18076
a90ef4bf
JM
18077.PHONY: maybe-distclean-tcl distclean-tcl
18078maybe-distclean-tcl:
18079@if tcl
18080maybe-distclean-tcl: distclean-tcl
e8a5fa9c 18081
a90ef4bf
JM
18082distclean-tcl:
18083 @: $(MAKE); $(unstage)
18084 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18085 r=`${PWD_COMMAND}`; export r; \
18086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18087 $(HOST_EXPORTS) \
18088 for flag in $(EXTRA_HOST_FLAGS) ; do \
18089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18090 done; \
22121df0 18091 echo "Doing distclean in tcl"; \
a90ef4bf 18092 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18095 "RANLIB=$${RANLIB}" \
18096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18097 distclean) \
e8a5fa9c
RW
18098 || exit 1
18099
a90ef4bf 18100@endif tcl
e8a5fa9c 18101
a90ef4bf
JM
18102.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
18103maybe-maintainer-clean-tcl:
18104@if tcl
18105maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 18106
a90ef4bf
JM
18107maintainer-clean-tcl:
18108 @: $(MAKE); $(unstage)
18109 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18110 r=`${PWD_COMMAND}`; export r; \
18111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18112 $(HOST_EXPORTS) \
18113 for flag in $(EXTRA_HOST_FLAGS) ; do \
18114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18115 done; \
22121df0 18116 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 18117 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18120 "RANLIB=$${RANLIB}" \
18121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18122 maintainer-clean) \
e8a5fa9c
RW
18123 || exit 1
18124
a90ef4bf 18125@endif tcl
e8a5fa9c 18126
e8a5fa9c 18127
a90ef4bf
JM
18128
18129.PHONY: configure-itcl maybe-configure-itcl
18130maybe-configure-itcl:
18131@if gcc-bootstrap
18132configure-itcl: stage_current
18133@endif gcc-bootstrap
18134@if itcl
18135maybe-configure-itcl: configure-itcl
18136configure-itcl:
18137 @: $(MAKE); $(unstage)
18138 @r=`${PWD_COMMAND}`; export r; \
18139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18140 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18141 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18142 $(HOST_EXPORTS) \
18143 echo Configuring in $(HOST_SUBDIR)/itcl; \
18144 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18145 case $(srcdir) in \
18146 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18147 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18148 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18149 esac; \
1b6c0831
L
18150 module_srcdir=itcl; \
18151 $(SHELL) \
18152 $$s/$$module_srcdir/configure \
18153 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18154 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18155 --target=${target_alias} \
a90ef4bf
JM
18156 || exit 1
18157@endif itcl
18158
18159
18160
18161
18162
18163.PHONY: all-itcl maybe-all-itcl
18164maybe-all-itcl:
18165@if gcc-bootstrap
18166all-itcl: stage_current
18167@endif gcc-bootstrap
18168@if itcl
18169TARGET-itcl=all
18170maybe-all-itcl: all-itcl
18171all-itcl: configure-itcl
18172 @: $(MAKE); $(unstage)
18173 @r=`${PWD_COMMAND}`; export r; \
18174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18175 $(HOST_EXPORTS) \
18176 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18177 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18178 $(TARGET-itcl))
18179@endif itcl
18180
18181
18182
18183
18184.PHONY: check-itcl maybe-check-itcl
18185maybe-check-itcl:
18186@if itcl
18187maybe-check-itcl: check-itcl
18188
18189check-itcl:
18190 @: $(MAKE); $(unstage)
18191 @r=`${PWD_COMMAND}`; export r; \
18192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18193 $(HOST_EXPORTS) \
a90ef4bf
JM
18194 (cd $(HOST_SUBDIR)/itcl && \
18195 $(MAKE) $(FLAGS_TO_PASS) check)
18196
18197@endif itcl
18198
18199.PHONY: install-itcl maybe-install-itcl
18200maybe-install-itcl:
18201@if itcl
18202maybe-install-itcl: install-itcl
18203
18204install-itcl: installdirs
18205 @: $(MAKE); $(unstage)
18206 @r=`${PWD_COMMAND}`; export r; \
18207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18208 $(HOST_EXPORTS) \
18209 (cd $(HOST_SUBDIR)/itcl && \
18210 $(MAKE) $(FLAGS_TO_PASS) install)
18211
18212@endif itcl
18213
18214.PHONY: install-strip-itcl maybe-install-strip-itcl
18215maybe-install-strip-itcl:
18216@if itcl
18217maybe-install-strip-itcl: install-strip-itcl
18218
18219install-strip-itcl: installdirs
18220 @: $(MAKE); $(unstage)
18221 @r=`${PWD_COMMAND}`; export r; \
18222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18223 $(HOST_EXPORTS) \
18224 (cd $(HOST_SUBDIR)/itcl && \
18225 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18226
18227@endif itcl
18228
18229# Other targets (info, dvi, pdf, etc.)
18230
18231.PHONY: maybe-info-itcl info-itcl
18232maybe-info-itcl:
18233@if itcl
18234maybe-info-itcl: info-itcl
18235
18236info-itcl: \
18237 configure-itcl
18238 @: $(MAKE); $(unstage)
18239 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18240 r=`${PWD_COMMAND}`; export r; \
18241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18242 $(HOST_EXPORTS) \
18243 for flag in $(EXTRA_HOST_FLAGS) ; do \
18244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18245 done; \
22121df0 18246 echo "Doing info in itcl"; \
a90ef4bf 18247 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18250 "RANLIB=$${RANLIB}" \
18251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18252 info) \
e8a5fa9c
RW
18253 || exit 1
18254
a90ef4bf 18255@endif itcl
e8a5fa9c 18256
a90ef4bf
JM
18257.PHONY: maybe-dvi-itcl dvi-itcl
18258maybe-dvi-itcl:
18259@if itcl
18260maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18261
a90ef4bf
JM
18262dvi-itcl: \
18263 configure-itcl
18264 @: $(MAKE); $(unstage)
18265 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18266 r=`${PWD_COMMAND}`; export r; \
18267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18268 $(HOST_EXPORTS) \
18269 for flag in $(EXTRA_HOST_FLAGS) ; do \
18270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18271 done; \
22121df0 18272 echo "Doing dvi in itcl"; \
a90ef4bf 18273 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18276 "RANLIB=$${RANLIB}" \
18277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18278 dvi) \
e8a5fa9c
RW
18279 || exit 1
18280
a90ef4bf 18281@endif itcl
e8a5fa9c 18282
a90ef4bf
JM
18283.PHONY: maybe-pdf-itcl pdf-itcl
18284maybe-pdf-itcl:
18285@if itcl
18286maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18287
a90ef4bf
JM
18288pdf-itcl: \
18289 configure-itcl
18290 @: $(MAKE); $(unstage)
18291 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18292 r=`${PWD_COMMAND}`; export r; \
18293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18294 $(HOST_EXPORTS) \
18295 for flag in $(EXTRA_HOST_FLAGS) ; do \
18296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18297 done; \
22121df0 18298 echo "Doing pdf in itcl"; \
a90ef4bf 18299 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18302 "RANLIB=$${RANLIB}" \
18303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18304 pdf) \
e8a5fa9c
RW
18305 || exit 1
18306
a90ef4bf 18307@endif itcl
e8a5fa9c 18308
a90ef4bf
JM
18309.PHONY: maybe-html-itcl html-itcl
18310maybe-html-itcl:
18311@if itcl
18312maybe-html-itcl: html-itcl
e8a5fa9c 18313
a90ef4bf
JM
18314html-itcl: \
18315 configure-itcl
18316 @: $(MAKE); $(unstage)
18317 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18318 r=`${PWD_COMMAND}`; export r; \
18319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18320 $(HOST_EXPORTS) \
18321 for flag in $(EXTRA_HOST_FLAGS) ; do \
18322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18323 done; \
22121df0 18324 echo "Doing html in itcl"; \
a90ef4bf 18325 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18328 "RANLIB=$${RANLIB}" \
18329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18330 html) \
e8a5fa9c
RW
18331 || exit 1
18332
a90ef4bf 18333@endif itcl
e8a5fa9c 18334
a90ef4bf
JM
18335.PHONY: maybe-TAGS-itcl TAGS-itcl
18336maybe-TAGS-itcl:
18337@if itcl
18338maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18339
a90ef4bf
JM
18340TAGS-itcl: \
18341 configure-itcl
18342 @: $(MAKE); $(unstage)
18343 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18344 r=`${PWD_COMMAND}`; export r; \
18345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18346 $(HOST_EXPORTS) \
18347 for flag in $(EXTRA_HOST_FLAGS) ; do \
18348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18349 done; \
22121df0 18350 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18351 (cd $(HOST_SUBDIR)/itcl && \
18352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18354 "RANLIB=$${RANLIB}" \
18355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18356 TAGS) \
18357 || exit 1
18358
18359@endif itcl
18360
18361.PHONY: maybe-install-info-itcl install-info-itcl
18362maybe-install-info-itcl:
18363@if itcl
18364maybe-install-info-itcl: install-info-itcl
18365
18366install-info-itcl: \
18367 configure-itcl \
18368 info-itcl
18369 @: $(MAKE); $(unstage)
18370 @[ -f ./itcl/Makefile ] || exit 0; \
18371 r=`${PWD_COMMAND}`; export r; \
18372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18373 $(HOST_EXPORTS) \
18374 for flag in $(EXTRA_HOST_FLAGS) ; do \
18375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18376 done; \
22121df0 18377 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18378 (cd $(HOST_SUBDIR)/itcl && \
18379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18381 "RANLIB=$${RANLIB}" \
18382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18383 install-info) \
18384 || exit 1
18385
18386@endif itcl
18387
18388.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18389maybe-install-pdf-itcl:
18390@if itcl
18391maybe-install-pdf-itcl: install-pdf-itcl
18392
18393install-pdf-itcl: \
18394 configure-itcl \
18395 pdf-itcl
18396 @: $(MAKE); $(unstage)
18397 @[ -f ./itcl/Makefile ] || exit 0; \
18398 r=`${PWD_COMMAND}`; export r; \
18399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18400 $(HOST_EXPORTS) \
18401 for flag in $(EXTRA_HOST_FLAGS) ; do \
18402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18403 done; \
22121df0 18404 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18405 (cd $(HOST_SUBDIR)/itcl && \
18406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18408 "RANLIB=$${RANLIB}" \
18409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18410 install-pdf) \
18411 || exit 1
18412
18413@endif itcl
18414
18415.PHONY: maybe-install-html-itcl install-html-itcl
18416maybe-install-html-itcl:
18417@if itcl
18418maybe-install-html-itcl: install-html-itcl
18419
18420install-html-itcl: \
18421 configure-itcl \
18422 html-itcl
18423 @: $(MAKE); $(unstage)
18424 @[ -f ./itcl/Makefile ] || exit 0; \
18425 r=`${PWD_COMMAND}`; export r; \
18426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18427 $(HOST_EXPORTS) \
18428 for flag in $(EXTRA_HOST_FLAGS) ; do \
18429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18430 done; \
22121df0 18431 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18432 (cd $(HOST_SUBDIR)/itcl && \
18433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18435 "RANLIB=$${RANLIB}" \
18436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18437 install-html) \
18438 || exit 1
18439
18440@endif itcl
18441
18442.PHONY: maybe-installcheck-itcl installcheck-itcl
18443maybe-installcheck-itcl:
18444@if itcl
18445maybe-installcheck-itcl: installcheck-itcl
18446
18447installcheck-itcl: \
18448 configure-itcl
18449 @: $(MAKE); $(unstage)
18450 @[ -f ./itcl/Makefile ] || exit 0; \
18451 r=`${PWD_COMMAND}`; export r; \
18452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18453 $(HOST_EXPORTS) \
18454 for flag in $(EXTRA_HOST_FLAGS) ; do \
18455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18456 done; \
22121df0 18457 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18458 (cd $(HOST_SUBDIR)/itcl && \
18459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18461 "RANLIB=$${RANLIB}" \
18462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18463 installcheck) \
18464 || exit 1
18465
18466@endif itcl
18467
18468.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18469maybe-mostlyclean-itcl:
18470@if itcl
18471maybe-mostlyclean-itcl: mostlyclean-itcl
18472
18473mostlyclean-itcl:
18474 @: $(MAKE); $(unstage)
18475 @[ -f ./itcl/Makefile ] || exit 0; \
18476 r=`${PWD_COMMAND}`; export r; \
18477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18478 $(HOST_EXPORTS) \
18479 for flag in $(EXTRA_HOST_FLAGS) ; do \
18480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18481 done; \
22121df0 18482 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18483 (cd $(HOST_SUBDIR)/itcl && \
18484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18486 "RANLIB=$${RANLIB}" \
18487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18488 mostlyclean) \
18489 || exit 1
18490
18491@endif itcl
18492
18493.PHONY: maybe-clean-itcl clean-itcl
18494maybe-clean-itcl:
18495@if itcl
18496maybe-clean-itcl: clean-itcl
18497
18498clean-itcl:
18499 @: $(MAKE); $(unstage)
18500 @[ -f ./itcl/Makefile ] || exit 0; \
18501 r=`${PWD_COMMAND}`; export r; \
18502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18503 $(HOST_EXPORTS) \
18504 for flag in $(EXTRA_HOST_FLAGS) ; do \
18505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18506 done; \
22121df0 18507 echo "Doing clean in itcl"; \
a90ef4bf
JM
18508 (cd $(HOST_SUBDIR)/itcl && \
18509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18511 "RANLIB=$${RANLIB}" \
18512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18513 clean) \
18514 || exit 1
18515
18516@endif itcl
18517
18518.PHONY: maybe-distclean-itcl distclean-itcl
18519maybe-distclean-itcl:
18520@if itcl
18521maybe-distclean-itcl: distclean-itcl
18522
18523distclean-itcl:
18524 @: $(MAKE); $(unstage)
18525 @[ -f ./itcl/Makefile ] || exit 0; \
18526 r=`${PWD_COMMAND}`; export r; \
18527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18528 $(HOST_EXPORTS) \
18529 for flag in $(EXTRA_HOST_FLAGS) ; do \
18530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18531 done; \
22121df0 18532 echo "Doing distclean in itcl"; \
a90ef4bf 18533 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18536 "RANLIB=$${RANLIB}" \
18537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18538 distclean) \
18539 || exit 1
18540
a90ef4bf 18541@endif itcl
e8a5fa9c 18542
a90ef4bf
JM
18543.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18544maybe-maintainer-clean-itcl:
18545@if itcl
18546maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18547
a90ef4bf
JM
18548maintainer-clean-itcl:
18549 @: $(MAKE); $(unstage)
18550 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18551 r=`${PWD_COMMAND}`; export r; \
18552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18553 $(HOST_EXPORTS) \
18554 for flag in $(EXTRA_HOST_FLAGS) ; do \
18555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18556 done; \
22121df0 18557 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18558 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18561 "RANLIB=$${RANLIB}" \
18562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18563 maintainer-clean) \
18564 || exit 1
18565
a90ef4bf 18566@endif itcl
e8a5fa9c
RW
18567
18568
18569
a90ef4bf
JM
18570.PHONY: configure-ld maybe-configure-ld
18571maybe-configure-ld:
e28c595f 18572@if gcc-bootstrap
a90ef4bf 18573configure-ld: stage_current
e28c595f 18574@endif gcc-bootstrap
a90ef4bf
JM
18575@if ld
18576maybe-configure-ld: configure-ld
18577configure-ld:
e28c595f
JM
18578 @r=`${PWD_COMMAND}`; export r; \
18579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18580 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18581 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18582 $(HOST_EXPORTS) \
a90ef4bf
JM
18583 echo Configuring in $(HOST_SUBDIR)/ld; \
18584 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18585 case $(srcdir) in \
18586 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18587 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18588 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18589 esac; \
1b6c0831
L
18590 module_srcdir=ld; \
18591 $(SHELL) \
18592 $$s/$$module_srcdir/configure \
18593 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18594 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18595 --target=${target_alias} \
e28c595f 18596 || exit 1
a90ef4bf 18597@endif ld
e28c595f
JM
18598
18599
18600
a90ef4bf
JM
18601.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18602maybe-configure-stage1-ld:
18603@if ld-bootstrap
18604maybe-configure-stage1-ld: configure-stage1-ld
18605configure-stage1-ld:
e28c595f 18606 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18607 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18608 @r=`${PWD_COMMAND}`; export r; \
18609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18610 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18611 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18612 $(HOST_EXPORTS) \
e28c595f 18613 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18614 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18615 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18616 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18617 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18618 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18619 case $(srcdir) in \
18620 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18621 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18622 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18623 esac; \
1b6c0831
L
18624 module_srcdir=ld; \
18625 $(SHELL) $$s/$$module_srcdir/configure \
18626 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18627 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18628 --target=${target_alias} \
18629 \
a90ef4bf
JM
18630 $(STAGE1_CONFIGURE_FLAGS)
18631@endif ld-bootstrap
e28c595f 18632
a90ef4bf
JM
18633.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18634maybe-configure-stage2-ld:
18635@if ld-bootstrap
18636maybe-configure-stage2-ld: configure-stage2-ld
18637configure-stage2-ld:
e28c595f 18638 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18639 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18640 @r=`${PWD_COMMAND}`; export r; \
18641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18642 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18643 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18644 $(HOST_EXPORTS) \
1b05fbbd 18645 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18646 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18647 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18648 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18649 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18650 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18651 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18652 case $(srcdir) in \
18653 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18654 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18655 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18656 esac; \
1b6c0831
L
18657 module_srcdir=ld; \
18658 $(SHELL) $$s/$$module_srcdir/configure \
18659 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18660 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18661 --target=${target_alias} \
22121df0 18662 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18663 $(STAGE2_CONFIGURE_FLAGS)
18664@endif ld-bootstrap
e28c595f 18665
a90ef4bf
JM
18666.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18667maybe-configure-stage3-ld:
18668@if ld-bootstrap
18669maybe-configure-stage3-ld: configure-stage3-ld
18670configure-stage3-ld:
e28c595f 18671 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18672 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18673 @r=`${PWD_COMMAND}`; export r; \
18674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18675 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18676 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18677 $(HOST_EXPORTS) \
1b05fbbd 18678 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18679 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18680 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18681 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18682 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18683 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18684 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18685 case $(srcdir) in \
18686 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18687 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18688 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18689 esac; \
1b6c0831
L
18690 module_srcdir=ld; \
18691 $(SHELL) $$s/$$module_srcdir/configure \
18692 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18693 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18694 --target=${target_alias} \
22121df0 18695 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18696 $(STAGE3_CONFIGURE_FLAGS)
18697@endif ld-bootstrap
e28c595f 18698
a90ef4bf
JM
18699.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18700maybe-configure-stage4-ld:
18701@if ld-bootstrap
18702maybe-configure-stage4-ld: configure-stage4-ld
18703configure-stage4-ld:
e28c595f 18704 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18705 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18706 @r=`${PWD_COMMAND}`; export r; \
18707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18708 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18709 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18710 $(HOST_EXPORTS) \
1b05fbbd 18711 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18712 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18713 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18714 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18715 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18716 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18717 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18718 case $(srcdir) in \
18719 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18720 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18721 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18722 esac; \
1b6c0831
L
18723 module_srcdir=ld; \
18724 $(SHELL) $$s/$$module_srcdir/configure \
18725 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18726 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18727 --target=${target_alias} \
22121df0 18728 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18729 $(STAGE4_CONFIGURE_FLAGS)
18730@endif ld-bootstrap
e28c595f 18731
a90ef4bf
JM
18732.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18733maybe-configure-stageprofile-ld:
18734@if ld-bootstrap
18735maybe-configure-stageprofile-ld: configure-stageprofile-ld
18736configure-stageprofile-ld:
e28c595f 18737 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18738 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18739 @r=`${PWD_COMMAND}`; export r; \
18740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18741 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18742 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18743 $(HOST_EXPORTS) \
1b05fbbd
AO
18744 $(POSTSTAGE1_HOST_EXPORTS) \
18745 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18746 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18747 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18748 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18749 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18750 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18751 case $(srcdir) in \
18752 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18753 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18754 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18755 esac; \
1b6c0831
L
18756 module_srcdir=ld; \
18757 $(SHELL) $$s/$$module_srcdir/configure \
18758 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18759 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18760 --target=${target_alias} \
22121df0 18761 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18762 $(STAGEprofile_CONFIGURE_FLAGS)
18763@endif ld-bootstrap
e28c595f 18764
a90ef4bf
JM
18765.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18766maybe-configure-stagefeedback-ld:
18767@if ld-bootstrap
18768maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18769configure-stagefeedback-ld:
e28c595f 18770 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18771 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18772 @r=`${PWD_COMMAND}`; export r; \
18773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18774 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18775 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18776 $(HOST_EXPORTS) \
1b05fbbd
AO
18777 $(POSTSTAGE1_HOST_EXPORTS) \
18778 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18779 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18780 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18781 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18782 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18783 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18784 case $(srcdir) in \
18785 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18786 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18787 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18788 esac; \
1b6c0831
L
18789 module_srcdir=ld; \
18790 $(SHELL) $$s/$$module_srcdir/configure \
18791 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18792 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18793 --target=${target_alias} \
22121df0 18794 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18795 $(STAGEfeedback_CONFIGURE_FLAGS)
18796@endif ld-bootstrap
e28c595f
JM
18797
18798
18799
18800
18801
a90ef4bf
JM
18802.PHONY: all-ld maybe-all-ld
18803maybe-all-ld:
e28c595f 18804@if gcc-bootstrap
a90ef4bf 18805all-ld: stage_current
e28c595f 18806@endif gcc-bootstrap
a90ef4bf
JM
18807@if ld
18808TARGET-ld=all
18809maybe-all-ld: all-ld
18810all-ld: configure-ld
e28c595f
JM
18811 @r=`${PWD_COMMAND}`; export r; \
18812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18813 $(HOST_EXPORTS) \
a90ef4bf 18814 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18815 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18816 $(TARGET-ld))
18817@endif ld
e28c595f
JM
18818
18819
18820
a90ef4bf
JM
18821.PHONY: all-stage1-ld maybe-all-stage1-ld
18822.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18823maybe-all-stage1-ld:
18824maybe-clean-stage1-ld:
18825@if ld-bootstrap
18826maybe-all-stage1-ld: all-stage1-ld
18827all-stage1: all-stage1-ld
18828TARGET-stage1-ld = $(TARGET-ld)
18829all-stage1-ld: configure-stage1-ld
e28c595f
JM
18830 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18831 @r=`${PWD_COMMAND}`; export r; \
18832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18833 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18834 $(HOST_EXPORTS) \
a90ef4bf 18835 cd $(HOST_SUBDIR)/ld && \
05a13254 18836 \
e28c595f 18837 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18838 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18839 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18840 LIBCFLAGS="$(LIBCFLAGS)" \
18841 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18842 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18843 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18844 $(EXTRA_HOST_FLAGS) \
18845 $(STAGE1_FLAGS_TO_PASS) \
05a13254 18846 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18847 $(TARGET-stage1-ld)
e28c595f 18848
a90ef4bf
JM
18849maybe-clean-stage1-ld: clean-stage1-ld
18850clean-stage1: clean-stage1-ld
18851clean-stage1-ld:
e28c595f 18852 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18853 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18854 else \
a90ef4bf 18855 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18856 $(MAKE) stage1-start; \
18857 fi; \
a90ef4bf 18858 cd $(HOST_SUBDIR)/ld && \
e28c595f 18859 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18860 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18861@endif ld-bootstrap
e28c595f
JM
18862
18863
a90ef4bf
JM
18864.PHONY: all-stage2-ld maybe-all-stage2-ld
18865.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18866maybe-all-stage2-ld:
18867maybe-clean-stage2-ld:
18868@if ld-bootstrap
18869maybe-all-stage2-ld: all-stage2-ld
18870all-stage2: all-stage2-ld
18871TARGET-stage2-ld = $(TARGET-ld)
18872all-stage2-ld: configure-stage2-ld
e28c595f
JM
18873 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18874 @r=`${PWD_COMMAND}`; export r; \
18875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18876 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18877 $(HOST_EXPORTS) \
1f53ca9a 18878 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18879 cd $(HOST_SUBDIR)/ld && \
05a13254 18880 \
e28c595f 18881 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18882 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18883 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18884 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18885 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18886 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18887 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18888 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18889 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18890 $(TARGET-stage2-ld)
e28c595f 18891
a90ef4bf
JM
18892maybe-clean-stage2-ld: clean-stage2-ld
18893clean-stage2: clean-stage2-ld
18894clean-stage2-ld:
e28c595f 18895 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18896 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18897 else \
a90ef4bf 18898 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18899 $(MAKE) stage2-start; \
18900 fi; \
a90ef4bf 18901 cd $(HOST_SUBDIR)/ld && \
b3676d82 18902 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18903@endif ld-bootstrap
e28c595f
JM
18904
18905
a90ef4bf
JM
18906.PHONY: all-stage3-ld maybe-all-stage3-ld
18907.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18908maybe-all-stage3-ld:
18909maybe-clean-stage3-ld:
18910@if ld-bootstrap
18911maybe-all-stage3-ld: all-stage3-ld
18912all-stage3: all-stage3-ld
18913TARGET-stage3-ld = $(TARGET-ld)
18914all-stage3-ld: configure-stage3-ld
e28c595f
JM
18915 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18916 @r=`${PWD_COMMAND}`; export r; \
18917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18918 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18919 $(HOST_EXPORTS) \
1f53ca9a 18920 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18921 cd $(HOST_SUBDIR)/ld && \
05a13254 18922 \
e28c595f 18923 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18924 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18925 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18926 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18927 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18928 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18929 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18930 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18931 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18932 $(TARGET-stage3-ld)
e28c595f 18933
a90ef4bf
JM
18934maybe-clean-stage3-ld: clean-stage3-ld
18935clean-stage3: clean-stage3-ld
18936clean-stage3-ld:
e28c595f 18937 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18938 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18939 else \
a90ef4bf 18940 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18941 $(MAKE) stage3-start; \
18942 fi; \
a90ef4bf 18943 cd $(HOST_SUBDIR)/ld && \
b3676d82 18944 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18945@endif ld-bootstrap
e28c595f
JM
18946
18947
a90ef4bf
JM
18948.PHONY: all-stage4-ld maybe-all-stage4-ld
18949.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18950maybe-all-stage4-ld:
18951maybe-clean-stage4-ld:
18952@if ld-bootstrap
18953maybe-all-stage4-ld: all-stage4-ld
18954all-stage4: all-stage4-ld
18955TARGET-stage4-ld = $(TARGET-ld)
18956all-stage4-ld: configure-stage4-ld
e28c595f
JM
18957 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18958 @r=`${PWD_COMMAND}`; export r; \
18959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18960 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18961 $(HOST_EXPORTS) \
1f53ca9a 18962 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18963 cd $(HOST_SUBDIR)/ld && \
05a13254 18964 \
e28c595f 18965 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18966 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18967 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18968 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18969 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18970 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18971 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18972 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18973 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18974 $(TARGET-stage4-ld)
e28c595f 18975
a90ef4bf
JM
18976maybe-clean-stage4-ld: clean-stage4-ld
18977clean-stage4: clean-stage4-ld
18978clean-stage4-ld:
e28c595f 18979 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18980 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18981 else \
a90ef4bf 18982 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18983 $(MAKE) stage4-start; \
18984 fi; \
a90ef4bf 18985 cd $(HOST_SUBDIR)/ld && \
b3676d82 18986 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18987@endif ld-bootstrap
e28c595f
JM
18988
18989
a90ef4bf
JM
18990.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18991.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18992maybe-all-stageprofile-ld:
18993maybe-clean-stageprofile-ld:
18994@if ld-bootstrap
18995maybe-all-stageprofile-ld: all-stageprofile-ld
18996all-stageprofile: all-stageprofile-ld
18997TARGET-stageprofile-ld = $(TARGET-ld)
18998all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18999 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19000 @r=`${PWD_COMMAND}`; export r; \
19001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19002 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 19003 $(HOST_EXPORTS) \
1f53ca9a 19004 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19005 cd $(HOST_SUBDIR)/ld && \
05a13254 19006 \
e28c595f 19007 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19008 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 19009 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
19010 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19011 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19012 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19013 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19014 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19015 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 19016 $(TARGET-stageprofile-ld)
e28c595f 19017
a90ef4bf
JM
19018maybe-clean-stageprofile-ld: clean-stageprofile-ld
19019clean-stageprofile: clean-stageprofile-ld
19020clean-stageprofile-ld:
e28c595f 19021 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 19022 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19023 else \
a90ef4bf 19024 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
19025 $(MAKE) stageprofile-start; \
19026 fi; \
a90ef4bf 19027 cd $(HOST_SUBDIR)/ld && \
b3676d82 19028 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19029@endif ld-bootstrap
e28c595f
JM
19030
19031
a90ef4bf
JM
19032.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
19033.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
19034maybe-all-stagefeedback-ld:
19035maybe-clean-stagefeedback-ld:
19036@if ld-bootstrap
19037maybe-all-stagefeedback-ld: all-stagefeedback-ld
19038all-stagefeedback: all-stagefeedback-ld
19039TARGET-stagefeedback-ld = $(TARGET-ld)
19040all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
19041 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19042 @r=`${PWD_COMMAND}`; export r; \
19043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19044 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 19045 $(HOST_EXPORTS) \
1f53ca9a 19046 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19047 cd $(HOST_SUBDIR)/ld && \
05a13254 19048 \
e28c595f 19049 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19050 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 19051 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
19052 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19053 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19054 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19055 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19056 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19057 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 19058 $(TARGET-stagefeedback-ld)
e28c595f 19059
a90ef4bf
JM
19060maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
19061clean-stagefeedback: clean-stagefeedback-ld
19062clean-stagefeedback-ld:
e28c595f 19063 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 19064 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19065 else \
a90ef4bf 19066 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
19067 $(MAKE) stagefeedback-start; \
19068 fi; \
a90ef4bf 19069 cd $(HOST_SUBDIR)/ld && \
b3676d82 19070 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19071@endif ld-bootstrap
e28c595f
JM
19072
19073
19074
19075
19076
a90ef4bf
JM
19077.PHONY: check-ld maybe-check-ld
19078maybe-check-ld:
19079@if ld
19080maybe-check-ld: check-ld
e28c595f 19081
a90ef4bf 19082check-ld:
e28c595f
JM
19083 @: $(MAKE); $(unstage)
19084 @r=`${PWD_COMMAND}`; export r; \
19085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19086 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 19087 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 19088 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 19089
a90ef4bf 19090@endif ld
e28c595f 19091
a90ef4bf
JM
19092.PHONY: install-ld maybe-install-ld
19093maybe-install-ld:
19094@if ld
19095maybe-install-ld: install-ld
e28c595f 19096
a90ef4bf
JM
19097install-ld: installdirs
19098 @: $(MAKE); $(unstage)
19099 @r=`${PWD_COMMAND}`; export r; \
19100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19101 $(HOST_EXPORTS) \
19102 (cd $(HOST_SUBDIR)/ld && \
19103 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 19104
a90ef4bf 19105@endif ld
e28c595f 19106
a90ef4bf
JM
19107.PHONY: install-strip-ld maybe-install-strip-ld
19108maybe-install-strip-ld:
19109@if ld
19110maybe-install-strip-ld: install-strip-ld
9b980aa1 19111
a90ef4bf
JM
19112install-strip-ld: installdirs
19113 @: $(MAKE); $(unstage)
19114 @r=`${PWD_COMMAND}`; export r; \
19115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19116 $(HOST_EXPORTS) \
19117 (cd $(HOST_SUBDIR)/ld && \
19118 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 19119
a90ef4bf 19120@endif ld
9b980aa1 19121
e28c595f
JM
19122# Other targets (info, dvi, pdf, etc.)
19123
a90ef4bf
JM
19124.PHONY: maybe-info-ld info-ld
19125maybe-info-ld:
19126@if ld
19127maybe-info-ld: info-ld
e28c595f 19128
a90ef4bf
JM
19129info-ld: \
19130 configure-ld
19131 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19132 r=`${PWD_COMMAND}`; export r; \
19133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19134 $(HOST_EXPORTS) \
19135 for flag in $(EXTRA_HOST_FLAGS) ; do \
19136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19137 done; \
22121df0 19138 echo "Doing info in ld"; \
a90ef4bf 19139 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19142 "RANLIB=$${RANLIB}" \
19143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19144 info) \
19145 || exit 1
19146
a90ef4bf 19147@endif ld
e28c595f 19148
a90ef4bf
JM
19149.PHONY: maybe-dvi-ld dvi-ld
19150maybe-dvi-ld:
19151@if ld
19152maybe-dvi-ld: dvi-ld
e28c595f 19153
a90ef4bf
JM
19154dvi-ld: \
19155 configure-ld
19156 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19157 r=`${PWD_COMMAND}`; export r; \
19158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19159 $(HOST_EXPORTS) \
19160 for flag in $(EXTRA_HOST_FLAGS) ; do \
19161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19162 done; \
22121df0 19163 echo "Doing dvi in ld"; \
a90ef4bf 19164 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19167 "RANLIB=$${RANLIB}" \
19168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19169 dvi) \
19170 || exit 1
19171
a90ef4bf 19172@endif ld
e28c595f 19173
a90ef4bf
JM
19174.PHONY: maybe-pdf-ld pdf-ld
19175maybe-pdf-ld:
19176@if ld
19177maybe-pdf-ld: pdf-ld
e28c595f 19178
a90ef4bf
JM
19179pdf-ld: \
19180 configure-ld
19181 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19182 r=`${PWD_COMMAND}`; export r; \
19183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19184 $(HOST_EXPORTS) \
19185 for flag in $(EXTRA_HOST_FLAGS) ; do \
19186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19187 done; \
22121df0 19188 echo "Doing pdf in ld"; \
a90ef4bf 19189 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19192 "RANLIB=$${RANLIB}" \
19193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19194 pdf) \
19195 || exit 1
19196
a90ef4bf 19197@endif ld
e28c595f 19198
a90ef4bf
JM
19199.PHONY: maybe-html-ld html-ld
19200maybe-html-ld:
19201@if ld
19202maybe-html-ld: html-ld
e28c595f 19203
a90ef4bf
JM
19204html-ld: \
19205 configure-ld
19206 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19207 r=`${PWD_COMMAND}`; export r; \
19208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19209 $(HOST_EXPORTS) \
19210 for flag in $(EXTRA_HOST_FLAGS) ; do \
19211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19212 done; \
22121df0 19213 echo "Doing html in ld"; \
a90ef4bf 19214 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19217 "RANLIB=$${RANLIB}" \
19218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19219 html) \
19220 || exit 1
19221
a90ef4bf 19222@endif ld
e28c595f 19223
a90ef4bf
JM
19224.PHONY: maybe-TAGS-ld TAGS-ld
19225maybe-TAGS-ld:
19226@if ld
19227maybe-TAGS-ld: TAGS-ld
e28c595f 19228
a90ef4bf
JM
19229TAGS-ld: \
19230 configure-ld
19231 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19232 r=`${PWD_COMMAND}`; export r; \
19233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19234 $(HOST_EXPORTS) \
19235 for flag in $(EXTRA_HOST_FLAGS) ; do \
19236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19237 done; \
22121df0 19238 echo "Doing TAGS in ld"; \
a90ef4bf 19239 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19242 "RANLIB=$${RANLIB}" \
19243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19244 TAGS) \
19245 || exit 1
19246
a90ef4bf 19247@endif ld
e28c595f 19248
a90ef4bf
JM
19249.PHONY: maybe-install-info-ld install-info-ld
19250maybe-install-info-ld:
19251@if ld
19252maybe-install-info-ld: install-info-ld
e28c595f 19253
a90ef4bf
JM
19254install-info-ld: \
19255 configure-ld \
19256 info-ld
19257 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19258 r=`${PWD_COMMAND}`; export r; \
19259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19260 $(HOST_EXPORTS) \
19261 for flag in $(EXTRA_HOST_FLAGS) ; do \
19262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19263 done; \
22121df0 19264 echo "Doing install-info in ld"; \
a90ef4bf 19265 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19268 "RANLIB=$${RANLIB}" \
19269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19270 install-info) \
19271 || exit 1
19272
a90ef4bf 19273@endif ld
e28c595f 19274
a90ef4bf
JM
19275.PHONY: maybe-install-pdf-ld install-pdf-ld
19276maybe-install-pdf-ld:
19277@if ld
19278maybe-install-pdf-ld: install-pdf-ld
e28c595f 19279
a90ef4bf
JM
19280install-pdf-ld: \
19281 configure-ld \
19282 pdf-ld
19283 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19284 r=`${PWD_COMMAND}`; export r; \
19285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19286 $(HOST_EXPORTS) \
19287 for flag in $(EXTRA_HOST_FLAGS) ; do \
19288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19289 done; \
22121df0 19290 echo "Doing install-pdf in ld"; \
a90ef4bf 19291 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19294 "RANLIB=$${RANLIB}" \
19295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19296 install-pdf) \
19297 || exit 1
19298
a90ef4bf 19299@endif ld
e28c595f 19300
a90ef4bf
JM
19301.PHONY: maybe-install-html-ld install-html-ld
19302maybe-install-html-ld:
19303@if ld
19304maybe-install-html-ld: install-html-ld
e28c595f 19305
a90ef4bf
JM
19306install-html-ld: \
19307 configure-ld \
19308 html-ld
19309 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19310 r=`${PWD_COMMAND}`; export r; \
19311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19312 $(HOST_EXPORTS) \
19313 for flag in $(EXTRA_HOST_FLAGS) ; do \
19314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19315 done; \
22121df0 19316 echo "Doing install-html in ld"; \
a90ef4bf 19317 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19320 "RANLIB=$${RANLIB}" \
19321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19322 install-html) \
19323 || exit 1
19324
a90ef4bf 19325@endif ld
e28c595f 19326
a90ef4bf
JM
19327.PHONY: maybe-installcheck-ld installcheck-ld
19328maybe-installcheck-ld:
19329@if ld
19330maybe-installcheck-ld: installcheck-ld
e28c595f 19331
a90ef4bf
JM
19332installcheck-ld: \
19333 configure-ld
19334 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19335 r=`${PWD_COMMAND}`; export r; \
19336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19337 $(HOST_EXPORTS) \
19338 for flag in $(EXTRA_HOST_FLAGS) ; do \
19339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19340 done; \
22121df0 19341 echo "Doing installcheck in ld"; \
a90ef4bf 19342 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19345 "RANLIB=$${RANLIB}" \
0c24b341 19346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19347 installcheck) \
19348 || exit 1
19349
a90ef4bf 19350@endif ld
4b900473 19351
a90ef4bf
JM
19352.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19353maybe-mostlyclean-ld:
19354@if ld
19355maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19356
a90ef4bf
JM
19357mostlyclean-ld:
19358 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19359 r=`${PWD_COMMAND}`; export r; \
19360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19361 $(HOST_EXPORTS) \
19362 for flag in $(EXTRA_HOST_FLAGS) ; do \
19363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19364 done; \
22121df0 19365 echo "Doing mostlyclean in ld"; \
a90ef4bf 19366 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19369 "RANLIB=$${RANLIB}" \
0c24b341 19370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19371 mostlyclean) \
19372 || exit 1
19373
a90ef4bf 19374@endif ld
4b900473 19375
a90ef4bf
JM
19376.PHONY: maybe-clean-ld clean-ld
19377maybe-clean-ld:
19378@if ld
19379maybe-clean-ld: clean-ld
4b900473 19380
a90ef4bf
JM
19381clean-ld:
19382 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19383 r=`${PWD_COMMAND}`; export r; \
19384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19385 $(HOST_EXPORTS) \
19386 for flag in $(EXTRA_HOST_FLAGS) ; do \
19387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19388 done; \
22121df0 19389 echo "Doing clean in ld"; \
a90ef4bf 19390 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19393 "RANLIB=$${RANLIB}" \
0c24b341 19394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19395 clean) \
19396 || exit 1
19397
a90ef4bf 19398@endif ld
4b900473 19399
a90ef4bf
JM
19400.PHONY: maybe-distclean-ld distclean-ld
19401maybe-distclean-ld:
19402@if ld
19403maybe-distclean-ld: distclean-ld
4b900473 19404
a90ef4bf
JM
19405distclean-ld:
19406 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19407 r=`${PWD_COMMAND}`; export r; \
19408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19409 $(HOST_EXPORTS) \
19410 for flag in $(EXTRA_HOST_FLAGS) ; do \
19411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19412 done; \
22121df0 19413 echo "Doing distclean in ld"; \
a90ef4bf 19414 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19417 "RANLIB=$${RANLIB}" \
0c24b341 19418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19419 distclean) \
19420 || exit 1
19421
a90ef4bf 19422@endif ld
4b900473 19423
a90ef4bf
JM
19424.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19425maybe-maintainer-clean-ld:
19426@if ld
19427maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19428
a90ef4bf
JM
19429maintainer-clean-ld:
19430 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19431 r=`${PWD_COMMAND}`; export r; \
19432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19433 $(HOST_EXPORTS) \
19434 for flag in $(EXTRA_HOST_FLAGS) ; do \
19435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19436 done; \
22121df0 19437 echo "Doing maintainer-clean in ld"; \
a90ef4bf 19438 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19441 "RANLIB=$${RANLIB}" \
0c24b341 19442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19443 maintainer-clean) \
19444 || exit 1
19445
a90ef4bf 19446@endif ld
4b900473
PB
19447
19448
19449
2bf680c4
ILT
19450.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19451maybe-configure-libbacktrace:
19452@if gcc-bootstrap
19453configure-libbacktrace: stage_current
19454@endif gcc-bootstrap
19455@if libbacktrace
19456maybe-configure-libbacktrace: configure-libbacktrace
19457configure-libbacktrace:
19458 @r=`${PWD_COMMAND}`; export r; \
19459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19460 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19461 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19462 $(HOST_EXPORTS) \
19463 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19464 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19465 case $(srcdir) in \
19466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19467 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19469 esac; \
1b6c0831
L
19470 module_srcdir=libbacktrace; \
19471 $(SHELL) \
19472 $$s/$$module_srcdir/configure \
19473 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19474 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19475 --target=${target_alias} \
2bf680c4
ILT
19476 || exit 1
19477@endif libbacktrace
19478
19479
19480
19481.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19482maybe-configure-stage1-libbacktrace:
19483@if libbacktrace-bootstrap
19484maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19485configure-stage1-libbacktrace:
19486 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19487 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19488 @r=`${PWD_COMMAND}`; export r; \
19489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19490 TFLAGS="$(STAGE1_TFLAGS)"; \
19491 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19492 $(HOST_EXPORTS) \
19493 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19494 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19495 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19496 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19497 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19498 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19499 case $(srcdir) in \
19500 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19501 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19502 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19503 esac; \
1b6c0831
L
19504 module_srcdir=libbacktrace; \
19505 $(SHELL) $$s/$$module_srcdir/configure \
19506 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19507 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19508 --target=${target_alias} \
19509 \
2bf680c4
ILT
19510 $(STAGE1_CONFIGURE_FLAGS)
19511@endif libbacktrace-bootstrap
19512
19513.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19514maybe-configure-stage2-libbacktrace:
19515@if libbacktrace-bootstrap
19516maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19517configure-stage2-libbacktrace:
19518 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19519 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19520 @r=`${PWD_COMMAND}`; export r; \
19521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19522 TFLAGS="$(STAGE2_TFLAGS)"; \
19523 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19524 $(HOST_EXPORTS) \
19525 $(POSTSTAGE1_HOST_EXPORTS) \
19526 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19527 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19528 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19529 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19530 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19531 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19532 case $(srcdir) in \
19533 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19534 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19535 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19536 esac; \
1b6c0831
L
19537 module_srcdir=libbacktrace; \
19538 $(SHELL) $$s/$$module_srcdir/configure \
19539 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19540 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19541 --target=${target_alias} \
22121df0 19542 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19543 $(STAGE2_CONFIGURE_FLAGS)
19544@endif libbacktrace-bootstrap
19545
19546.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19547maybe-configure-stage3-libbacktrace:
19548@if libbacktrace-bootstrap
19549maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19550configure-stage3-libbacktrace:
19551 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19552 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19553 @r=`${PWD_COMMAND}`; export r; \
19554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19555 TFLAGS="$(STAGE3_TFLAGS)"; \
19556 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19557 $(HOST_EXPORTS) \
19558 $(POSTSTAGE1_HOST_EXPORTS) \
19559 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19560 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19561 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19562 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19563 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19564 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19565 case $(srcdir) in \
19566 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19567 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19568 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19569 esac; \
1b6c0831
L
19570 module_srcdir=libbacktrace; \
19571 $(SHELL) $$s/$$module_srcdir/configure \
19572 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19573 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19574 --target=${target_alias} \
22121df0 19575 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19576 $(STAGE3_CONFIGURE_FLAGS)
19577@endif libbacktrace-bootstrap
19578
19579.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19580maybe-configure-stage4-libbacktrace:
19581@if libbacktrace-bootstrap
19582maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19583configure-stage4-libbacktrace:
19584 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19585 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19586 @r=`${PWD_COMMAND}`; export r; \
19587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19588 TFLAGS="$(STAGE4_TFLAGS)"; \
19589 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19590 $(HOST_EXPORTS) \
19591 $(POSTSTAGE1_HOST_EXPORTS) \
19592 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19593 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19594 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19595 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19596 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19597 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19598 case $(srcdir) in \
19599 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19600 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19601 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19602 esac; \
1b6c0831
L
19603 module_srcdir=libbacktrace; \
19604 $(SHELL) $$s/$$module_srcdir/configure \
19605 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19606 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19607 --target=${target_alias} \
22121df0 19608 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19609 $(STAGE4_CONFIGURE_FLAGS)
19610@endif libbacktrace-bootstrap
19611
19612.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19613maybe-configure-stageprofile-libbacktrace:
19614@if libbacktrace-bootstrap
19615maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19616configure-stageprofile-libbacktrace:
19617 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19618 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19619 @r=`${PWD_COMMAND}`; export r; \
19620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19621 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19622 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19623 $(HOST_EXPORTS) \
19624 $(POSTSTAGE1_HOST_EXPORTS) \
19625 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19626 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19627 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19628 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19629 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19630 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19631 case $(srcdir) in \
19632 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19633 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19634 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19635 esac; \
1b6c0831
L
19636 module_srcdir=libbacktrace; \
19637 $(SHELL) $$s/$$module_srcdir/configure \
19638 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19639 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19640 --target=${target_alias} \
22121df0 19641 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19642 $(STAGEprofile_CONFIGURE_FLAGS)
19643@endif libbacktrace-bootstrap
19644
19645.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19646maybe-configure-stagefeedback-libbacktrace:
19647@if libbacktrace-bootstrap
19648maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19649configure-stagefeedback-libbacktrace:
19650 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19651 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19652 @r=`${PWD_COMMAND}`; export r; \
19653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19654 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19655 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19656 $(HOST_EXPORTS) \
19657 $(POSTSTAGE1_HOST_EXPORTS) \
19658 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19659 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19660 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19661 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19662 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19663 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19664 case $(srcdir) in \
19665 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19666 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19667 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19668 esac; \
1b6c0831
L
19669 module_srcdir=libbacktrace; \
19670 $(SHELL) $$s/$$module_srcdir/configure \
19671 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19672 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19673 --target=${target_alias} \
22121df0 19674 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19675 $(STAGEfeedback_CONFIGURE_FLAGS)
19676@endif libbacktrace-bootstrap
19677
19678
19679
19680
19681
19682.PHONY: all-libbacktrace maybe-all-libbacktrace
19683maybe-all-libbacktrace:
19684@if gcc-bootstrap
19685all-libbacktrace: stage_current
19686@endif gcc-bootstrap
19687@if libbacktrace
19688TARGET-libbacktrace=all
19689maybe-all-libbacktrace: all-libbacktrace
19690all-libbacktrace: configure-libbacktrace
19691 @r=`${PWD_COMMAND}`; export r; \
19692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19693 $(HOST_EXPORTS) \
19694 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19695 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19696 $(TARGET-libbacktrace))
19697@endif libbacktrace
19698
19699
19700
19701.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19702.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19703maybe-all-stage1-libbacktrace:
19704maybe-clean-stage1-libbacktrace:
19705@if libbacktrace-bootstrap
19706maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19707all-stage1: all-stage1-libbacktrace
19708TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19709all-stage1-libbacktrace: configure-stage1-libbacktrace
19710 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19711 @r=`${PWD_COMMAND}`; export r; \
19712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19713 TFLAGS="$(STAGE1_TFLAGS)"; \
19714 $(HOST_EXPORTS) \
19715 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19716 \
2bf680c4
ILT
19717 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19718 CFLAGS="$(STAGE1_CFLAGS)" \
19719 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19720 LIBCFLAGS="$(LIBCFLAGS)" \
19721 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19722 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19723 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19724 $(EXTRA_HOST_FLAGS) \
19725 $(STAGE1_FLAGS_TO_PASS) \
05a13254 19726 TFLAGS="$(STAGE1_TFLAGS)" \
2bf680c4
ILT
19727 $(TARGET-stage1-libbacktrace)
19728
19729maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19730clean-stage1: clean-stage1-libbacktrace
19731clean-stage1-libbacktrace:
19732 @if [ $(current_stage) = stage1 ]; then \
19733 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19734 else \
19735 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19736 $(MAKE) stage1-start; \
19737 fi; \
19738 cd $(HOST_SUBDIR)/libbacktrace && \
19739 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19740 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19741@endif libbacktrace-bootstrap
19742
19743
19744.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19745.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19746maybe-all-stage2-libbacktrace:
19747maybe-clean-stage2-libbacktrace:
19748@if libbacktrace-bootstrap
19749maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19750all-stage2: all-stage2-libbacktrace
19751TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19752all-stage2-libbacktrace: configure-stage2-libbacktrace
19753 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19754 @r=`${PWD_COMMAND}`; export r; \
19755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19756 TFLAGS="$(STAGE2_TFLAGS)"; \
19757 $(HOST_EXPORTS) \
19758 $(POSTSTAGE1_HOST_EXPORTS) \
19759 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19760 \
2bf680c4
ILT
19761 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19762 CFLAGS="$(STAGE2_CFLAGS)" \
19763 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19764 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19765 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19766 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19767 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19768 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19769 TFLAGS="$(STAGE2_TFLAGS)" \
2bf680c4
ILT
19770 $(TARGET-stage2-libbacktrace)
19771
19772maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19773clean-stage2: clean-stage2-libbacktrace
19774clean-stage2-libbacktrace:
19775 @if [ $(current_stage) = stage2 ]; then \
19776 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19777 else \
19778 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19779 $(MAKE) stage2-start; \
19780 fi; \
19781 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19782 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19783@endif libbacktrace-bootstrap
19784
19785
19786.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19787.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19788maybe-all-stage3-libbacktrace:
19789maybe-clean-stage3-libbacktrace:
19790@if libbacktrace-bootstrap
19791maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19792all-stage3: all-stage3-libbacktrace
19793TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19794all-stage3-libbacktrace: configure-stage3-libbacktrace
19795 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19796 @r=`${PWD_COMMAND}`; export r; \
19797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19798 TFLAGS="$(STAGE3_TFLAGS)"; \
19799 $(HOST_EXPORTS) \
19800 $(POSTSTAGE1_HOST_EXPORTS) \
19801 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19802 \
2bf680c4
ILT
19803 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19804 CFLAGS="$(STAGE3_CFLAGS)" \
19805 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19806 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19807 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19808 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19809 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19810 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19811 TFLAGS="$(STAGE3_TFLAGS)" \
2bf680c4
ILT
19812 $(TARGET-stage3-libbacktrace)
19813
19814maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19815clean-stage3: clean-stage3-libbacktrace
19816clean-stage3-libbacktrace:
19817 @if [ $(current_stage) = stage3 ]; then \
19818 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19819 else \
19820 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19821 $(MAKE) stage3-start; \
19822 fi; \
19823 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19824 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19825@endif libbacktrace-bootstrap
19826
19827
19828.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19829.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19830maybe-all-stage4-libbacktrace:
19831maybe-clean-stage4-libbacktrace:
19832@if libbacktrace-bootstrap
19833maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19834all-stage4: all-stage4-libbacktrace
19835TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19836all-stage4-libbacktrace: configure-stage4-libbacktrace
19837 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19838 @r=`${PWD_COMMAND}`; export r; \
19839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19840 TFLAGS="$(STAGE4_TFLAGS)"; \
19841 $(HOST_EXPORTS) \
19842 $(POSTSTAGE1_HOST_EXPORTS) \
19843 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19844 \
2bf680c4
ILT
19845 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19846 CFLAGS="$(STAGE4_CFLAGS)" \
19847 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19848 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19849 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19850 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19851 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19852 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19853 TFLAGS="$(STAGE4_TFLAGS)" \
2bf680c4
ILT
19854 $(TARGET-stage4-libbacktrace)
19855
19856maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19857clean-stage4: clean-stage4-libbacktrace
19858clean-stage4-libbacktrace:
19859 @if [ $(current_stage) = stage4 ]; then \
19860 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19861 else \
19862 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19863 $(MAKE) stage4-start; \
19864 fi; \
19865 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19866 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19867@endif libbacktrace-bootstrap
19868
19869
19870.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19871.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19872maybe-all-stageprofile-libbacktrace:
19873maybe-clean-stageprofile-libbacktrace:
19874@if libbacktrace-bootstrap
19875maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19876all-stageprofile: all-stageprofile-libbacktrace
19877TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19878all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19879 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19880 @r=`${PWD_COMMAND}`; export r; \
19881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19882 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19883 $(HOST_EXPORTS) \
19884 $(POSTSTAGE1_HOST_EXPORTS) \
19885 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19886 \
2bf680c4
ILT
19887 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19888 CFLAGS="$(STAGEprofile_CFLAGS)" \
19889 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19890 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19891 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19892 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19893 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19894 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19895 TFLAGS="$(STAGEprofile_TFLAGS)" \
2bf680c4
ILT
19896 $(TARGET-stageprofile-libbacktrace)
19897
19898maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19899clean-stageprofile: clean-stageprofile-libbacktrace
19900clean-stageprofile-libbacktrace:
19901 @if [ $(current_stage) = stageprofile ]; then \
19902 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19903 else \
19904 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19905 $(MAKE) stageprofile-start; \
19906 fi; \
19907 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19908 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19909@endif libbacktrace-bootstrap
19910
19911
19912.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19913.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19914maybe-all-stagefeedback-libbacktrace:
19915maybe-clean-stagefeedback-libbacktrace:
19916@if libbacktrace-bootstrap
19917maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19918all-stagefeedback: all-stagefeedback-libbacktrace
19919TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19920all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19921 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19922 @r=`${PWD_COMMAND}`; export r; \
19923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19924 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19925 $(HOST_EXPORTS) \
19926 $(POSTSTAGE1_HOST_EXPORTS) \
19927 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19928 \
2bf680c4
ILT
19929 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19930 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19931 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19932 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19933 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19934 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19935 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19936 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19937 TFLAGS="$(STAGEfeedback_TFLAGS)" \
2bf680c4
ILT
19938 $(TARGET-stagefeedback-libbacktrace)
19939
19940maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19941clean-stagefeedback: clean-stagefeedback-libbacktrace
19942clean-stagefeedback-libbacktrace:
19943 @if [ $(current_stage) = stagefeedback ]; then \
19944 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19945 else \
19946 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19947 $(MAKE) stagefeedback-start; \
19948 fi; \
19949 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19950 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19951@endif libbacktrace-bootstrap
19952
19953
19954
19955
19956
19957.PHONY: check-libbacktrace maybe-check-libbacktrace
19958maybe-check-libbacktrace:
19959@if libbacktrace
19960maybe-check-libbacktrace: check-libbacktrace
19961
19962check-libbacktrace:
19963 @: $(MAKE); $(unstage)
19964 @r=`${PWD_COMMAND}`; export r; \
19965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19966 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19967 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19968 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19969
19970@endif libbacktrace
19971
19972.PHONY: install-libbacktrace maybe-install-libbacktrace
19973maybe-install-libbacktrace:
19974@if libbacktrace
19975maybe-install-libbacktrace: install-libbacktrace
19976
19977install-libbacktrace: installdirs
19978 @: $(MAKE); $(unstage)
19979 @r=`${PWD_COMMAND}`; export r; \
19980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19981 $(HOST_EXPORTS) \
19982 (cd $(HOST_SUBDIR)/libbacktrace && \
19983 $(MAKE) $(FLAGS_TO_PASS) install)
19984
19985@endif libbacktrace
19986
19987.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19988maybe-install-strip-libbacktrace:
19989@if libbacktrace
19990maybe-install-strip-libbacktrace: install-strip-libbacktrace
19991
19992install-strip-libbacktrace: installdirs
19993 @: $(MAKE); $(unstage)
19994 @r=`${PWD_COMMAND}`; export r; \
19995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19996 $(HOST_EXPORTS) \
19997 (cd $(HOST_SUBDIR)/libbacktrace && \
19998 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19999
20000@endif libbacktrace
20001
20002# Other targets (info, dvi, pdf, etc.)
20003
20004.PHONY: maybe-info-libbacktrace info-libbacktrace
20005maybe-info-libbacktrace:
20006@if libbacktrace
20007maybe-info-libbacktrace: info-libbacktrace
20008
20009info-libbacktrace: \
20010 configure-libbacktrace
20011 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20012 r=`${PWD_COMMAND}`; export r; \
20013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20014 $(HOST_EXPORTS) \
20015 for flag in $(EXTRA_HOST_FLAGS) ; do \
20016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20017 done; \
22121df0 20018 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
20019 (cd $(HOST_SUBDIR)/libbacktrace && \
20020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20022 "RANLIB=$${RANLIB}" \
20023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20024 info) \
20025 || exit 1
20026
20027@endif libbacktrace
20028
20029.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
20030maybe-dvi-libbacktrace:
20031@if libbacktrace
20032maybe-dvi-libbacktrace: dvi-libbacktrace
20033
20034dvi-libbacktrace: \
20035 configure-libbacktrace
20036 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20037 r=`${PWD_COMMAND}`; export r; \
20038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20039 $(HOST_EXPORTS) \
20040 for flag in $(EXTRA_HOST_FLAGS) ; do \
20041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20042 done; \
22121df0 20043 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
20044 (cd $(HOST_SUBDIR)/libbacktrace && \
20045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20047 "RANLIB=$${RANLIB}" \
20048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20049 dvi) \
20050 || exit 1
20051
20052@endif libbacktrace
20053
20054.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
20055maybe-pdf-libbacktrace:
20056@if libbacktrace
20057maybe-pdf-libbacktrace: pdf-libbacktrace
20058
20059pdf-libbacktrace: \
20060 configure-libbacktrace
20061 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20062 r=`${PWD_COMMAND}`; export r; \
20063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20064 $(HOST_EXPORTS) \
20065 for flag in $(EXTRA_HOST_FLAGS) ; do \
20066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20067 done; \
22121df0 20068 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
20069 (cd $(HOST_SUBDIR)/libbacktrace && \
20070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20072 "RANLIB=$${RANLIB}" \
20073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20074 pdf) \
20075 || exit 1
20076
20077@endif libbacktrace
20078
20079.PHONY: maybe-html-libbacktrace html-libbacktrace
20080maybe-html-libbacktrace:
20081@if libbacktrace
20082maybe-html-libbacktrace: html-libbacktrace
20083
20084html-libbacktrace: \
20085 configure-libbacktrace
20086 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20087 r=`${PWD_COMMAND}`; export r; \
20088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20089 $(HOST_EXPORTS) \
20090 for flag in $(EXTRA_HOST_FLAGS) ; do \
20091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20092 done; \
22121df0 20093 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
20094 (cd $(HOST_SUBDIR)/libbacktrace && \
20095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20097 "RANLIB=$${RANLIB}" \
20098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20099 html) \
20100 || exit 1
20101
20102@endif libbacktrace
20103
20104.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
20105maybe-TAGS-libbacktrace:
20106@if libbacktrace
20107maybe-TAGS-libbacktrace: TAGS-libbacktrace
20108
20109TAGS-libbacktrace: \
20110 configure-libbacktrace
20111 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20112 r=`${PWD_COMMAND}`; export r; \
20113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20114 $(HOST_EXPORTS) \
20115 for flag in $(EXTRA_HOST_FLAGS) ; do \
20116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20117 done; \
22121df0 20118 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
20119 (cd $(HOST_SUBDIR)/libbacktrace && \
20120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20122 "RANLIB=$${RANLIB}" \
20123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20124 TAGS) \
20125 || exit 1
20126
20127@endif libbacktrace
20128
20129.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
20130maybe-install-info-libbacktrace:
20131@if libbacktrace
20132maybe-install-info-libbacktrace: install-info-libbacktrace
20133
20134install-info-libbacktrace: \
20135 configure-libbacktrace \
20136 info-libbacktrace
20137 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20138 r=`${PWD_COMMAND}`; export r; \
20139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20140 $(HOST_EXPORTS) \
20141 for flag in $(EXTRA_HOST_FLAGS) ; do \
20142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20143 done; \
22121df0 20144 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
20145 (cd $(HOST_SUBDIR)/libbacktrace && \
20146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20148 "RANLIB=$${RANLIB}" \
20149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20150 install-info) \
20151 || exit 1
20152
20153@endif libbacktrace
20154
20155.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20156maybe-install-pdf-libbacktrace:
20157@if libbacktrace
20158maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20159
20160install-pdf-libbacktrace: \
20161 configure-libbacktrace \
20162 pdf-libbacktrace
20163 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20164 r=`${PWD_COMMAND}`; export r; \
20165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20166 $(HOST_EXPORTS) \
20167 for flag in $(EXTRA_HOST_FLAGS) ; do \
20168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20169 done; \
22121df0 20170 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20171 (cd $(HOST_SUBDIR)/libbacktrace && \
20172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20174 "RANLIB=$${RANLIB}" \
20175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20176 install-pdf) \
20177 || exit 1
20178
20179@endif libbacktrace
20180
20181.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20182maybe-install-html-libbacktrace:
20183@if libbacktrace
20184maybe-install-html-libbacktrace: install-html-libbacktrace
20185
20186install-html-libbacktrace: \
20187 configure-libbacktrace \
20188 html-libbacktrace
20189 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20190 r=`${PWD_COMMAND}`; export r; \
20191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20192 $(HOST_EXPORTS) \
20193 for flag in $(EXTRA_HOST_FLAGS) ; do \
20194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20195 done; \
22121df0 20196 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
20197 (cd $(HOST_SUBDIR)/libbacktrace && \
20198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20200 "RANLIB=$${RANLIB}" \
20201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20202 install-html) \
20203 || exit 1
20204
20205@endif libbacktrace
20206
20207.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20208maybe-installcheck-libbacktrace:
20209@if libbacktrace
20210maybe-installcheck-libbacktrace: installcheck-libbacktrace
20211
20212installcheck-libbacktrace: \
20213 configure-libbacktrace
20214 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20215 r=`${PWD_COMMAND}`; export r; \
20216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20217 $(HOST_EXPORTS) \
20218 for flag in $(EXTRA_HOST_FLAGS) ; do \
20219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20220 done; \
22121df0 20221 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20222 (cd $(HOST_SUBDIR)/libbacktrace && \
20223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20225 "RANLIB=$${RANLIB}" \
20226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20227 installcheck) \
20228 || exit 1
20229
20230@endif libbacktrace
20231
20232.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20233maybe-mostlyclean-libbacktrace:
20234@if libbacktrace
20235maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20236
20237mostlyclean-libbacktrace:
20238 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20239 r=`${PWD_COMMAND}`; export r; \
20240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20241 $(HOST_EXPORTS) \
20242 for flag in $(EXTRA_HOST_FLAGS) ; do \
20243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20244 done; \
22121df0 20245 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20246 (cd $(HOST_SUBDIR)/libbacktrace && \
20247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20249 "RANLIB=$${RANLIB}" \
20250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20251 mostlyclean) \
20252 || exit 1
20253
20254@endif libbacktrace
20255
20256.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20257maybe-clean-libbacktrace:
20258@if libbacktrace
20259maybe-clean-libbacktrace: clean-libbacktrace
20260
20261clean-libbacktrace:
20262 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20263 r=`${PWD_COMMAND}`; export r; \
20264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20265 $(HOST_EXPORTS) \
20266 for flag in $(EXTRA_HOST_FLAGS) ; do \
20267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20268 done; \
22121df0 20269 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20270 (cd $(HOST_SUBDIR)/libbacktrace && \
20271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20273 "RANLIB=$${RANLIB}" \
20274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20275 clean) \
20276 || exit 1
20277
20278@endif libbacktrace
20279
20280.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20281maybe-distclean-libbacktrace:
20282@if libbacktrace
20283maybe-distclean-libbacktrace: distclean-libbacktrace
20284
20285distclean-libbacktrace:
20286 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20287 r=`${PWD_COMMAND}`; export r; \
20288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20289 $(HOST_EXPORTS) \
20290 for flag in $(EXTRA_HOST_FLAGS) ; do \
20291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20292 done; \
22121df0 20293 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20294 (cd $(HOST_SUBDIR)/libbacktrace && \
20295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20297 "RANLIB=$${RANLIB}" \
20298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20299 distclean) \
20300 || exit 1
20301
20302@endif libbacktrace
20303
20304.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20305maybe-maintainer-clean-libbacktrace:
20306@if libbacktrace
20307maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20308
20309maintainer-clean-libbacktrace:
20310 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20311 r=`${PWD_COMMAND}`; export r; \
20312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20313 $(HOST_EXPORTS) \
20314 for flag in $(EXTRA_HOST_FLAGS) ; do \
20315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20316 done; \
22121df0 20317 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20318 (cd $(HOST_SUBDIR)/libbacktrace && \
20319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20321 "RANLIB=$${RANLIB}" \
20322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20323 maintainer-clean) \
20324 || exit 1
20325
20326@endif libbacktrace
20327
20328
20329
a90ef4bf
JM
20330.PHONY: configure-libcpp maybe-configure-libcpp
20331maybe-configure-libcpp:
4b900473 20332@if gcc-bootstrap
a90ef4bf 20333configure-libcpp: stage_current
4b900473 20334@endif gcc-bootstrap
a90ef4bf
JM
20335@if libcpp
20336maybe-configure-libcpp: configure-libcpp
20337configure-libcpp:
4b900473
PB
20338 @r=`${PWD_COMMAND}`; export r; \
20339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20340 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20341 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20342 $(HOST_EXPORTS) \
20343 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20344 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20345 case $(srcdir) in \
20346 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20347 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20348 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20349 esac; \
1b6c0831
L
20350 module_srcdir=libcpp; \
20351 $(SHELL) \
20352 $$s/$$module_srcdir/configure \
20353 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20354 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20355 --target=${target_alias} \
4b900473 20356 || exit 1
a90ef4bf 20357@endif libcpp
4b900473
PB
20358
20359
20360
a90ef4bf
JM
20361.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20362maybe-configure-stage1-libcpp:
20363@if libcpp-bootstrap
20364maybe-configure-stage1-libcpp: configure-stage1-libcpp
20365configure-stage1-libcpp:
4b900473 20366 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20367 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20368 @r=`${PWD_COMMAND}`; export r; \
20369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20370 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20371 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20372 $(HOST_EXPORTS) \
8ee82aff 20373 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20374 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20375 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20376 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20377 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20378 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20379 case $(srcdir) in \
20380 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20381 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20382 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20383 esac; \
1b6c0831
L
20384 module_srcdir=libcpp; \
20385 $(SHELL) $$s/$$module_srcdir/configure \
20386 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20387 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20388 --target=${target_alias} \
20389 \
a90ef4bf
JM
20390 $(STAGE1_CONFIGURE_FLAGS)
20391@endif libcpp-bootstrap
e28c595f 20392
a90ef4bf
JM
20393.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20394maybe-configure-stage2-libcpp:
20395@if libcpp-bootstrap
20396maybe-configure-stage2-libcpp: configure-stage2-libcpp
20397configure-stage2-libcpp:
4b900473 20398 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20399 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20400 @r=`${PWD_COMMAND}`; export r; \
20401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20402 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20403 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20404 $(HOST_EXPORTS) \
1b05fbbd 20405 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20406 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20407 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20408 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20409 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20410 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20411 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20412 case $(srcdir) in \
20413 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20414 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20415 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20416 esac; \
1b6c0831
L
20417 module_srcdir=libcpp; \
20418 $(SHELL) $$s/$$module_srcdir/configure \
20419 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20420 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20421 --target=${target_alias} \
22121df0 20422 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20423 $(STAGE2_CONFIGURE_FLAGS)
20424@endif libcpp-bootstrap
e28c595f 20425
a90ef4bf
JM
20426.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20427maybe-configure-stage3-libcpp:
20428@if libcpp-bootstrap
20429maybe-configure-stage3-libcpp: configure-stage3-libcpp
20430configure-stage3-libcpp:
4b900473 20431 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20432 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20433 @r=`${PWD_COMMAND}`; export r; \
20434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20435 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20436 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20437 $(HOST_EXPORTS) \
1b05fbbd 20438 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20439 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20440 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20441 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20442 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20443 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20444 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20445 case $(srcdir) in \
20446 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20447 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20448 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20449 esac; \
1b6c0831
L
20450 module_srcdir=libcpp; \
20451 $(SHELL) $$s/$$module_srcdir/configure \
20452 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20453 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20454 --target=${target_alias} \
22121df0 20455 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20456 $(STAGE3_CONFIGURE_FLAGS)
20457@endif libcpp-bootstrap
e28c595f 20458
a90ef4bf
JM
20459.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20460maybe-configure-stage4-libcpp:
20461@if libcpp-bootstrap
20462maybe-configure-stage4-libcpp: configure-stage4-libcpp
20463configure-stage4-libcpp:
4b900473 20464 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20465 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20466 @r=`${PWD_COMMAND}`; export r; \
20467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20468 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20469 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20470 $(HOST_EXPORTS) \
1b05fbbd 20471 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20472 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20473 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20474 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20475 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20476 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20477 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20478 case $(srcdir) in \
20479 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20480 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20481 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20482 esac; \
1b6c0831
L
20483 module_srcdir=libcpp; \
20484 $(SHELL) $$s/$$module_srcdir/configure \
20485 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20486 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20487 --target=${target_alias} \
22121df0 20488 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20489 $(STAGE4_CONFIGURE_FLAGS)
20490@endif libcpp-bootstrap
e28c595f 20491
a90ef4bf
JM
20492.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20493maybe-configure-stageprofile-libcpp:
20494@if libcpp-bootstrap
20495maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20496configure-stageprofile-libcpp:
4b900473 20497 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20498 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20499 @r=`${PWD_COMMAND}`; export r; \
20500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20501 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20502 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20503 $(HOST_EXPORTS) \
1b05fbbd
AO
20504 $(POSTSTAGE1_HOST_EXPORTS) \
20505 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20506 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20507 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20508 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20509 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20510 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20511 case $(srcdir) in \
20512 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20513 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20514 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20515 esac; \
1b6c0831
L
20516 module_srcdir=libcpp; \
20517 $(SHELL) $$s/$$module_srcdir/configure \
20518 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20519 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20520 --target=${target_alias} \
22121df0 20521 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20522 $(STAGEprofile_CONFIGURE_FLAGS)
20523@endif libcpp-bootstrap
e28c595f 20524
a90ef4bf
JM
20525.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20526maybe-configure-stagefeedback-libcpp:
20527@if libcpp-bootstrap
20528maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20529configure-stagefeedback-libcpp:
4b900473 20530 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20531 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20532 @r=`${PWD_COMMAND}`; export r; \
20533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20534 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20535 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20536 $(HOST_EXPORTS) \
1b05fbbd
AO
20537 $(POSTSTAGE1_HOST_EXPORTS) \
20538 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20539 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20540 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20541 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20542 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20543 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20544 case $(srcdir) in \
20545 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20546 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20547 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20548 esac; \
1b6c0831
L
20549 module_srcdir=libcpp; \
20550 $(SHELL) $$s/$$module_srcdir/configure \
20551 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20552 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20553 --target=${target_alias} \
22121df0 20554 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20555 $(STAGEfeedback_CONFIGURE_FLAGS)
20556@endif libcpp-bootstrap
4b900473
PB
20557
20558
20559
20560
20561
a90ef4bf
JM
20562.PHONY: all-libcpp maybe-all-libcpp
20563maybe-all-libcpp:
4b900473 20564@if gcc-bootstrap
a90ef4bf 20565all-libcpp: stage_current
4b900473 20566@endif gcc-bootstrap
a90ef4bf
JM
20567@if libcpp
20568TARGET-libcpp=all
20569maybe-all-libcpp: all-libcpp
20570all-libcpp: configure-libcpp
4b900473
PB
20571 @r=`${PWD_COMMAND}`; export r; \
20572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20573 $(HOST_EXPORTS) \
20574 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20575 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20576 $(TARGET-libcpp))
20577@endif libcpp
4b900473
PB
20578
20579
20580
a90ef4bf
JM
20581.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20582.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20583maybe-all-stage1-libcpp:
20584maybe-clean-stage1-libcpp:
20585@if libcpp-bootstrap
20586maybe-all-stage1-libcpp: all-stage1-libcpp
20587all-stage1: all-stage1-libcpp
20588TARGET-stage1-libcpp = $(TARGET-libcpp)
20589all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20590 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20591 @r=`${PWD_COMMAND}`; export r; \
20592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20593 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20594 $(HOST_EXPORTS) \
20595 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20596 \
7f6ef0c0 20597 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20598 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20599 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20600 LIBCFLAGS="$(LIBCFLAGS)" \
20601 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20602 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20603 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20604 $(EXTRA_HOST_FLAGS) \
20605 $(STAGE1_FLAGS_TO_PASS) \
05a13254 20606 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20607 $(TARGET-stage1-libcpp)
4b900473 20608
a90ef4bf
JM
20609maybe-clean-stage1-libcpp: clean-stage1-libcpp
20610clean-stage1: clean-stage1-libcpp
20611clean-stage1-libcpp:
4b900473 20612 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20613 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20614 else \
a90ef4bf 20615 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20616 $(MAKE) stage1-start; \
20617 fi; \
a90ef4bf 20618 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20619 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20620 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20621@endif libcpp-bootstrap
e28c595f
JM
20622
20623
a90ef4bf
JM
20624.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20625.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20626maybe-all-stage2-libcpp:
20627maybe-clean-stage2-libcpp:
20628@if libcpp-bootstrap
20629maybe-all-stage2-libcpp: all-stage2-libcpp
20630all-stage2: all-stage2-libcpp
20631TARGET-stage2-libcpp = $(TARGET-libcpp)
20632all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20633 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20634 @r=`${PWD_COMMAND}`; export r; \
20635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20636 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20637 $(HOST_EXPORTS) \
a90ef4bf
JM
20638 $(POSTSTAGE1_HOST_EXPORTS) \
20639 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20640 \
7f6ef0c0 20641 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20642 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20643 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20644 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20645 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20646 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20647 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20648 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20649 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20650 $(TARGET-stage2-libcpp)
4b900473 20651
a90ef4bf
JM
20652maybe-clean-stage2-libcpp: clean-stage2-libcpp
20653clean-stage2: clean-stage2-libcpp
20654clean-stage2-libcpp:
4b900473 20655 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20656 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20657 else \
a90ef4bf 20658 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20659 $(MAKE) stage2-start; \
20660 fi; \
a90ef4bf 20661 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20662 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20663@endif libcpp-bootstrap
e28c595f
JM
20664
20665
a90ef4bf
JM
20666.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20667.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20668maybe-all-stage3-libcpp:
20669maybe-clean-stage3-libcpp:
20670@if libcpp-bootstrap
20671maybe-all-stage3-libcpp: all-stage3-libcpp
20672all-stage3: all-stage3-libcpp
20673TARGET-stage3-libcpp = $(TARGET-libcpp)
20674all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20675 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20676 @r=`${PWD_COMMAND}`; export r; \
20677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20678 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20679 $(HOST_EXPORTS) \
a90ef4bf
JM
20680 $(POSTSTAGE1_HOST_EXPORTS) \
20681 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20682 \
7f6ef0c0 20683 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20684 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20685 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20686 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20687 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20688 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20689 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20690 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20691 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20692 $(TARGET-stage3-libcpp)
4b900473 20693
a90ef4bf
JM
20694maybe-clean-stage3-libcpp: clean-stage3-libcpp
20695clean-stage3: clean-stage3-libcpp
20696clean-stage3-libcpp:
4b900473 20697 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20698 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20699 else \
a90ef4bf 20700 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20701 $(MAKE) stage3-start; \
20702 fi; \
a90ef4bf 20703 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20704 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20705@endif libcpp-bootstrap
e28c595f
JM
20706
20707
a90ef4bf
JM
20708.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20709.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20710maybe-all-stage4-libcpp:
20711maybe-clean-stage4-libcpp:
20712@if libcpp-bootstrap
20713maybe-all-stage4-libcpp: all-stage4-libcpp
20714all-stage4: all-stage4-libcpp
20715TARGET-stage4-libcpp = $(TARGET-libcpp)
20716all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20717 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20718 @r=`${PWD_COMMAND}`; export r; \
20719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20720 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20721 $(HOST_EXPORTS) \
a90ef4bf
JM
20722 $(POSTSTAGE1_HOST_EXPORTS) \
20723 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20724 \
7f6ef0c0 20725 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20726 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20727 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20728 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20729 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20730 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20731 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20732 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20733 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20734 $(TARGET-stage4-libcpp)
4b900473 20735
a90ef4bf
JM
20736maybe-clean-stage4-libcpp: clean-stage4-libcpp
20737clean-stage4: clean-stage4-libcpp
20738clean-stage4-libcpp:
4b900473 20739 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20740 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20741 else \
a90ef4bf 20742 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20743 $(MAKE) stage4-start; \
20744 fi; \
a90ef4bf 20745 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20746 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20747@endif libcpp-bootstrap
e28c595f
JM
20748
20749
a90ef4bf
JM
20750.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20751.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20752maybe-all-stageprofile-libcpp:
20753maybe-clean-stageprofile-libcpp:
20754@if libcpp-bootstrap
20755maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20756all-stageprofile: all-stageprofile-libcpp
20757TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20758all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20759 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20760 @r=`${PWD_COMMAND}`; export r; \
20761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20762 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20763 $(HOST_EXPORTS) \
a90ef4bf
JM
20764 $(POSTSTAGE1_HOST_EXPORTS) \
20765 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20766 \
7f6ef0c0 20767 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20768 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20769 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20770 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20771 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20772 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20773 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20774 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20775 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20776 $(TARGET-stageprofile-libcpp)
4b900473 20777
a90ef4bf
JM
20778maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20779clean-stageprofile: clean-stageprofile-libcpp
20780clean-stageprofile-libcpp:
4b900473 20781 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20782 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20783 else \
a90ef4bf 20784 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20785 $(MAKE) stageprofile-start; \
20786 fi; \
a90ef4bf 20787 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20788 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20789@endif libcpp-bootstrap
e28c595f
JM
20790
20791
a90ef4bf
JM
20792.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20793.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20794maybe-all-stagefeedback-libcpp:
20795maybe-clean-stagefeedback-libcpp:
20796@if libcpp-bootstrap
20797maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20798all-stagefeedback: all-stagefeedback-libcpp
20799TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20800all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20801 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20802 @r=`${PWD_COMMAND}`; export r; \
20803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20804 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20805 $(HOST_EXPORTS) \
a90ef4bf
JM
20806 $(POSTSTAGE1_HOST_EXPORTS) \
20807 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20808 \
7f6ef0c0 20809 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20810 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20811 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20812 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20813 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20814 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20815 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20816 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20817 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20818 $(TARGET-stagefeedback-libcpp)
4b900473 20819
a90ef4bf
JM
20820maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20821clean-stagefeedback: clean-stagefeedback-libcpp
20822clean-stagefeedback-libcpp:
4b900473 20823 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20824 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20825 else \
a90ef4bf 20826 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20827 $(MAKE) stagefeedback-start; \
20828 fi; \
a90ef4bf 20829 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20830 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20831@endif libcpp-bootstrap
4b900473
PB
20832
20833
20834
20835
20836
a90ef4bf
JM
20837.PHONY: check-libcpp maybe-check-libcpp
20838maybe-check-libcpp:
20839@if libcpp
20840maybe-check-libcpp: check-libcpp
4b900473 20841
a90ef4bf 20842check-libcpp:
4b900473
PB
20843 @: $(MAKE); $(unstage)
20844 @r=`${PWD_COMMAND}`; export r; \
20845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20846 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20847 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20848 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20849
a90ef4bf 20850@endif libcpp
4b900473 20851
a90ef4bf
JM
20852.PHONY: install-libcpp maybe-install-libcpp
20853maybe-install-libcpp:
20854@if libcpp
20855maybe-install-libcpp: install-libcpp
4b900473 20856
a90ef4bf
JM
20857install-libcpp: installdirs
20858 @: $(MAKE); $(unstage)
20859 @r=`${PWD_COMMAND}`; export r; \
20860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20861 $(HOST_EXPORTS) \
20862 (cd $(HOST_SUBDIR)/libcpp && \
20863 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20864
a90ef4bf 20865@endif libcpp
4b900473 20866
a90ef4bf
JM
20867.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20868maybe-install-strip-libcpp:
20869@if libcpp
20870maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20871
a90ef4bf
JM
20872install-strip-libcpp: installdirs
20873 @: $(MAKE); $(unstage)
20874 @r=`${PWD_COMMAND}`; export r; \
20875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20876 $(HOST_EXPORTS) \
20877 (cd $(HOST_SUBDIR)/libcpp && \
20878 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20879
a90ef4bf 20880@endif libcpp
9b980aa1 20881
4b900473
PB
20882# Other targets (info, dvi, pdf, etc.)
20883
a90ef4bf
JM
20884.PHONY: maybe-info-libcpp info-libcpp
20885maybe-info-libcpp:
20886@if libcpp
20887maybe-info-libcpp: info-libcpp
4b900473 20888
a90ef4bf
JM
20889info-libcpp: \
20890 configure-libcpp
20891 @[ -f ./libcpp/Makefile ] || exit 0; \
20892 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20894 $(HOST_EXPORTS) \
a90ef4bf 20895 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20897 done; \
22121df0 20898 echo "Doing info in libcpp"; \
a90ef4bf 20899 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20902 "RANLIB=$${RANLIB}" \
0c24b341 20903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20904 info) \
20905 || exit 1
20906
a90ef4bf 20907@endif libcpp
4b900473 20908
a90ef4bf
JM
20909.PHONY: maybe-dvi-libcpp dvi-libcpp
20910maybe-dvi-libcpp:
20911@if libcpp
20912maybe-dvi-libcpp: dvi-libcpp
4b900473 20913
a90ef4bf
JM
20914dvi-libcpp: \
20915 configure-libcpp
20916 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20917 r=`${PWD_COMMAND}`; export r; \
20918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20919 $(HOST_EXPORTS) \
a90ef4bf 20920 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20922 done; \
22121df0 20923 echo "Doing dvi in libcpp"; \
a90ef4bf 20924 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20927 "RANLIB=$${RANLIB}" \
0c24b341 20928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20929 dvi) \
20930 || exit 1
20931
a90ef4bf 20932@endif libcpp
4b900473 20933
a90ef4bf
JM
20934.PHONY: maybe-pdf-libcpp pdf-libcpp
20935maybe-pdf-libcpp:
20936@if libcpp
20937maybe-pdf-libcpp: pdf-libcpp
4b900473 20938
a90ef4bf
JM
20939pdf-libcpp: \
20940 configure-libcpp
20941 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20942 r=`${PWD_COMMAND}`; export r; \
20943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20944 $(HOST_EXPORTS) \
a90ef4bf 20945 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20947 done; \
22121df0 20948 echo "Doing pdf in libcpp"; \
a90ef4bf 20949 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20952 "RANLIB=$${RANLIB}" \
0c24b341 20953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20954 pdf) \
20955 || exit 1
20956
a90ef4bf 20957@endif libcpp
4b900473 20958
a90ef4bf
JM
20959.PHONY: maybe-html-libcpp html-libcpp
20960maybe-html-libcpp:
20961@if libcpp
20962maybe-html-libcpp: html-libcpp
4b900473 20963
a90ef4bf
JM
20964html-libcpp: \
20965 configure-libcpp
20966 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20967 r=`${PWD_COMMAND}`; export r; \
20968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20969 $(HOST_EXPORTS) \
a90ef4bf 20970 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20972 done; \
22121df0 20973 echo "Doing html in libcpp"; \
a90ef4bf 20974 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20977 "RANLIB=$${RANLIB}" \
0c24b341 20978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20979 html) \
20980 || exit 1
20981
a90ef4bf 20982@endif libcpp
4b900473 20983
a90ef4bf
JM
20984.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20985maybe-TAGS-libcpp:
20986@if libcpp
20987maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20988
a90ef4bf
JM
20989TAGS-libcpp: \
20990 configure-libcpp
20991 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20992 r=`${PWD_COMMAND}`; export r; \
20993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20994 $(HOST_EXPORTS) \
a90ef4bf 20995 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20997 done; \
22121df0 20998 echo "Doing TAGS in libcpp"; \
a90ef4bf 20999 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21002 "RANLIB=$${RANLIB}" \
0c24b341 21003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21004 TAGS) \
21005 || exit 1
21006
a90ef4bf 21007@endif libcpp
4b900473 21008
a90ef4bf
JM
21009.PHONY: maybe-install-info-libcpp install-info-libcpp
21010maybe-install-info-libcpp:
21011@if libcpp
21012maybe-install-info-libcpp: install-info-libcpp
4b900473 21013
a90ef4bf
JM
21014install-info-libcpp: \
21015 configure-libcpp \
21016 info-libcpp
21017 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21018 r=`${PWD_COMMAND}`; export r; \
21019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21020 $(HOST_EXPORTS) \
a90ef4bf 21021 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21023 done; \
22121df0 21024 echo "Doing install-info in libcpp"; \
a90ef4bf 21025 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21028 "RANLIB=$${RANLIB}" \
0c24b341 21029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21030 install-info) \
21031 || exit 1
21032
a90ef4bf 21033@endif libcpp
4b900473 21034
a90ef4bf
JM
21035.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
21036maybe-install-pdf-libcpp:
21037@if libcpp
21038maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 21039
a90ef4bf
JM
21040install-pdf-libcpp: \
21041 configure-libcpp \
21042 pdf-libcpp
21043 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
21044 r=`${PWD_COMMAND}`; export r; \
21045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21046 $(HOST_EXPORTS) \
a90ef4bf 21047 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
21048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21049 done; \
22121df0 21050 echo "Doing install-pdf in libcpp"; \
a90ef4bf 21051 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
21052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21054 "RANLIB=$${RANLIB}" \
0c24b341 21055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
21056 install-pdf) \
21057 || exit 1
21058
a90ef4bf 21059@endif libcpp
a3ca38d2 21060
a90ef4bf
JM
21061.PHONY: maybe-install-html-libcpp install-html-libcpp
21062maybe-install-html-libcpp:
21063@if libcpp
21064maybe-install-html-libcpp: install-html-libcpp
4b900473 21065
a90ef4bf
JM
21066install-html-libcpp: \
21067 configure-libcpp \
21068 html-libcpp
21069 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21070 r=`${PWD_COMMAND}`; export r; \
21071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21072 $(HOST_EXPORTS) \
a90ef4bf 21073 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21075 done; \
22121df0 21076 echo "Doing install-html in libcpp"; \
a90ef4bf 21077 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21080 "RANLIB=$${RANLIB}" \
0c24b341 21081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21082 install-html) \
21083 || exit 1
21084
a90ef4bf 21085@endif libcpp
4b900473 21086
a90ef4bf
JM
21087.PHONY: maybe-installcheck-libcpp installcheck-libcpp
21088maybe-installcheck-libcpp:
21089@if libcpp
21090maybe-installcheck-libcpp: installcheck-libcpp
4b900473 21091
a90ef4bf
JM
21092installcheck-libcpp: \
21093 configure-libcpp
21094 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21095 r=`${PWD_COMMAND}`; export r; \
21096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21097 $(HOST_EXPORTS) \
a90ef4bf 21098 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21100 done; \
22121df0 21101 echo "Doing installcheck in libcpp"; \
a90ef4bf 21102 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21105 "RANLIB=$${RANLIB}" \
0c24b341 21106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21107 installcheck) \
21108 || exit 1
21109
a90ef4bf 21110@endif libcpp
4b900473 21111
a90ef4bf
JM
21112.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
21113maybe-mostlyclean-libcpp:
21114@if libcpp
21115maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 21116
a90ef4bf
JM
21117mostlyclean-libcpp:
21118 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21119 r=`${PWD_COMMAND}`; export r; \
21120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21121 $(HOST_EXPORTS) \
a90ef4bf 21122 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21124 done; \
22121df0 21125 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 21126 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21129 "RANLIB=$${RANLIB}" \
0c24b341 21130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21131 mostlyclean) \
21132 || exit 1
21133
a90ef4bf 21134@endif libcpp
4b900473 21135
a90ef4bf
JM
21136.PHONY: maybe-clean-libcpp clean-libcpp
21137maybe-clean-libcpp:
21138@if libcpp
21139maybe-clean-libcpp: clean-libcpp
4b900473 21140
a90ef4bf
JM
21141clean-libcpp:
21142 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21143 r=`${PWD_COMMAND}`; export r; \
21144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21145 $(HOST_EXPORTS) \
a90ef4bf 21146 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21148 done; \
22121df0 21149 echo "Doing clean in libcpp"; \
a90ef4bf 21150 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21153 "RANLIB=$${RANLIB}" \
0c24b341 21154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21155 clean) \
21156 || exit 1
21157
a90ef4bf 21158@endif libcpp
4b900473 21159
a90ef4bf
JM
21160.PHONY: maybe-distclean-libcpp distclean-libcpp
21161maybe-distclean-libcpp:
21162@if libcpp
21163maybe-distclean-libcpp: distclean-libcpp
4b900473 21164
a90ef4bf
JM
21165distclean-libcpp:
21166 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21167 r=`${PWD_COMMAND}`; export r; \
21168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21169 $(HOST_EXPORTS) \
a90ef4bf 21170 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21172 done; \
22121df0 21173 echo "Doing distclean in libcpp"; \
a90ef4bf 21174 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21177 "RANLIB=$${RANLIB}" \
0c24b341 21178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21179 distclean) \
21180 || exit 1
21181
a90ef4bf 21182@endif libcpp
4b900473 21183
a90ef4bf
JM
21184.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21185maybe-maintainer-clean-libcpp:
21186@if libcpp
21187maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21188
a90ef4bf
JM
21189maintainer-clean-libcpp:
21190 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21191 r=`${PWD_COMMAND}`; export r; \
21192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21193 $(HOST_EXPORTS) \
a90ef4bf 21194 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21196 done; \
22121df0 21197 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21198 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21201 "RANLIB=$${RANLIB}" \
0c24b341 21202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21203 maintainer-clean) \
21204 || exit 1
21205
a90ef4bf 21206@endif libcpp
4b900473
PB
21207
21208
21209
a90ef4bf
JM
21210.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21211maybe-configure-libdecnumber:
1f53ca9a 21212@if gcc-bootstrap
a90ef4bf 21213configure-libdecnumber: stage_current
1f53ca9a 21214@endif gcc-bootstrap
a90ef4bf
JM
21215@if libdecnumber
21216maybe-configure-libdecnumber: configure-libdecnumber
21217configure-libdecnumber:
1f53ca9a
AO
21218 @r=`${PWD_COMMAND}`; export r; \
21219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21220 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21221 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21222 $(HOST_EXPORTS) \
a90ef4bf
JM
21223 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21224 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21225 case $(srcdir) in \
21226 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21227 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21228 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21229 esac; \
1b6c0831
L
21230 module_srcdir=libdecnumber; \
21231 $(SHELL) \
21232 $$s/$$module_srcdir/configure \
21233 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21234 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21235 --target=${target_alias} \
1f53ca9a 21236 || exit 1
a90ef4bf 21237@endif libdecnumber
1f53ca9a
AO
21238
21239
21240
a90ef4bf
JM
21241.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21242maybe-configure-stage1-libdecnumber:
21243@if libdecnumber-bootstrap
21244maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21245configure-stage1-libdecnumber:
1f53ca9a 21246 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21247 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21248 @r=`${PWD_COMMAND}`; export r; \
21249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21250 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21251 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21252 $(HOST_EXPORTS) \
21253 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21254 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21255 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21256 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21257 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21258 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21259 case $(srcdir) in \
21260 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21261 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21262 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21263 esac; \
1b6c0831
L
21264 module_srcdir=libdecnumber; \
21265 $(SHELL) $$s/$$module_srcdir/configure \
21266 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21267 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21268 --target=${target_alias} \
21269 \
a90ef4bf
JM
21270 $(STAGE1_CONFIGURE_FLAGS)
21271@endif libdecnumber-bootstrap
1f53ca9a 21272
a90ef4bf
JM
21273.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21274maybe-configure-stage2-libdecnumber:
21275@if libdecnumber-bootstrap
21276maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21277configure-stage2-libdecnumber:
1f53ca9a 21278 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21279 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21280 @r=`${PWD_COMMAND}`; export r; \
21281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21282 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21283 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21284 $(HOST_EXPORTS) \
21285 $(POSTSTAGE1_HOST_EXPORTS) \
21286 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21287 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21288 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21289 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21290 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21291 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21292 case $(srcdir) in \
21293 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21294 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21295 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21296 esac; \
1b6c0831
L
21297 module_srcdir=libdecnumber; \
21298 $(SHELL) $$s/$$module_srcdir/configure \
21299 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21300 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21301 --target=${target_alias} \
22121df0 21302 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21303 $(STAGE2_CONFIGURE_FLAGS)
21304@endif libdecnumber-bootstrap
1f53ca9a 21305
a90ef4bf
JM
21306.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21307maybe-configure-stage3-libdecnumber:
21308@if libdecnumber-bootstrap
21309maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21310configure-stage3-libdecnumber:
1f53ca9a 21311 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21312 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21313 @r=`${PWD_COMMAND}`; export r; \
21314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21315 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21316 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21317 $(HOST_EXPORTS) \
21318 $(POSTSTAGE1_HOST_EXPORTS) \
21319 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21320 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21321 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21322 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21323 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21324 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21325 case $(srcdir) in \
21326 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21327 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21328 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21329 esac; \
1b6c0831
L
21330 module_srcdir=libdecnumber; \
21331 $(SHELL) $$s/$$module_srcdir/configure \
21332 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21333 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21334 --target=${target_alias} \
22121df0 21335 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21336 $(STAGE3_CONFIGURE_FLAGS)
21337@endif libdecnumber-bootstrap
1f53ca9a 21338
a90ef4bf
JM
21339.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21340maybe-configure-stage4-libdecnumber:
21341@if libdecnumber-bootstrap
21342maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21343configure-stage4-libdecnumber:
1f53ca9a 21344 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21345 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21346 @r=`${PWD_COMMAND}`; export r; \
21347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21348 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21349 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21350 $(HOST_EXPORTS) \
21351 $(POSTSTAGE1_HOST_EXPORTS) \
21352 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21353 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21354 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21355 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21356 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21357 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21358 case $(srcdir) in \
21359 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21360 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21361 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21362 esac; \
1b6c0831
L
21363 module_srcdir=libdecnumber; \
21364 $(SHELL) $$s/$$module_srcdir/configure \
21365 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21366 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21367 --target=${target_alias} \
22121df0 21368 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21369 $(STAGE4_CONFIGURE_FLAGS)
21370@endif libdecnumber-bootstrap
1f53ca9a 21371
a90ef4bf
JM
21372.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21373maybe-configure-stageprofile-libdecnumber:
21374@if libdecnumber-bootstrap
21375maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21376configure-stageprofile-libdecnumber:
1f53ca9a 21377 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21378 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21379 @r=`${PWD_COMMAND}`; export r; \
21380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21381 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21382 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21383 $(HOST_EXPORTS) \
21384 $(POSTSTAGE1_HOST_EXPORTS) \
21385 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21386 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21387 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21388 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21389 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21390 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21391 case $(srcdir) in \
21392 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21393 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21394 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21395 esac; \
1b6c0831
L
21396 module_srcdir=libdecnumber; \
21397 $(SHELL) $$s/$$module_srcdir/configure \
21398 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21399 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21400 --target=${target_alias} \
22121df0 21401 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21402 $(STAGEprofile_CONFIGURE_FLAGS)
21403@endif libdecnumber-bootstrap
1f53ca9a 21404
a90ef4bf
JM
21405.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21406maybe-configure-stagefeedback-libdecnumber:
21407@if libdecnumber-bootstrap
21408maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21409configure-stagefeedback-libdecnumber:
1f53ca9a 21410 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21411 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21412 @r=`${PWD_COMMAND}`; export r; \
21413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21414 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21415 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21416 $(HOST_EXPORTS) \
21417 $(POSTSTAGE1_HOST_EXPORTS) \
21418 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21419 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21420 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21421 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21422 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21423 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21424 case $(srcdir) in \
21425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21426 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21428 esac; \
1b6c0831
L
21429 module_srcdir=libdecnumber; \
21430 $(SHELL) $$s/$$module_srcdir/configure \
21431 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21432 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21433 --target=${target_alias} \
22121df0 21434 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21435 $(STAGEfeedback_CONFIGURE_FLAGS)
21436@endif libdecnumber-bootstrap
1f53ca9a
AO
21437
21438
21439
21440
21441
a90ef4bf
JM
21442.PHONY: all-libdecnumber maybe-all-libdecnumber
21443maybe-all-libdecnumber:
1f53ca9a 21444@if gcc-bootstrap
a90ef4bf 21445all-libdecnumber: stage_current
1f53ca9a 21446@endif gcc-bootstrap
a90ef4bf
JM
21447@if libdecnumber
21448TARGET-libdecnumber=all
21449maybe-all-libdecnumber: all-libdecnumber
21450all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21451 @r=`${PWD_COMMAND}`; export r; \
21452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21453 $(HOST_EXPORTS) \
a90ef4bf 21454 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21455 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21456 $(TARGET-libdecnumber))
21457@endif libdecnumber
1f53ca9a
AO
21458
21459
21460
a90ef4bf
JM
21461.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21462.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21463maybe-all-stage1-libdecnumber:
21464maybe-clean-stage1-libdecnumber:
21465@if libdecnumber-bootstrap
21466maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21467all-stage1: all-stage1-libdecnumber
21468TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21469all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21470 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21471 @r=`${PWD_COMMAND}`; export r; \
21472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21473 TFLAGS="$(STAGE1_TFLAGS)"; \
21474 $(HOST_EXPORTS) \
a90ef4bf 21475 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21476 \
1f53ca9a
AO
21477 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21478 CFLAGS="$(STAGE1_CFLAGS)" \
21479 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21480 LIBCFLAGS="$(LIBCFLAGS)" \
21481 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21482 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21483 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21484 $(EXTRA_HOST_FLAGS) \
21485 $(STAGE1_FLAGS_TO_PASS) \
05a13254 21486 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21487 $(TARGET-stage1-libdecnumber)
1f53ca9a 21488
a90ef4bf
JM
21489maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21490clean-stage1: clean-stage1-libdecnumber
21491clean-stage1-libdecnumber:
1f53ca9a 21492 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21493 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21494 else \
a90ef4bf 21495 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21496 $(MAKE) stage1-start; \
21497 fi; \
a90ef4bf 21498 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21499 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21500 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21501@endif libdecnumber-bootstrap
1f53ca9a
AO
21502
21503
a90ef4bf
JM
21504.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21505.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21506maybe-all-stage2-libdecnumber:
21507maybe-clean-stage2-libdecnumber:
21508@if libdecnumber-bootstrap
21509maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21510all-stage2: all-stage2-libdecnumber
21511TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21512all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21513 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21514 @r=`${PWD_COMMAND}`; export r; \
21515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21516 TFLAGS="$(STAGE2_TFLAGS)"; \
21517 $(HOST_EXPORTS) \
21518 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21519 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21520 \
1f53ca9a
AO
21521 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21522 CFLAGS="$(STAGE2_CFLAGS)" \
21523 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21524 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21525 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21526 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21527 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21528 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21529 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21530 $(TARGET-stage2-libdecnumber)
1f53ca9a 21531
a90ef4bf
JM
21532maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21533clean-stage2: clean-stage2-libdecnumber
21534clean-stage2-libdecnumber:
1f53ca9a 21535 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21536 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21537 else \
a90ef4bf 21538 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21539 $(MAKE) stage2-start; \
21540 fi; \
a90ef4bf 21541 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21542 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21543@endif libdecnumber-bootstrap
1f53ca9a
AO
21544
21545
a90ef4bf
JM
21546.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21547.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21548maybe-all-stage3-libdecnumber:
21549maybe-clean-stage3-libdecnumber:
21550@if libdecnumber-bootstrap
21551maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21552all-stage3: all-stage3-libdecnumber
21553TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21554all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21555 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21556 @r=`${PWD_COMMAND}`; export r; \
21557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21558 TFLAGS="$(STAGE3_TFLAGS)"; \
21559 $(HOST_EXPORTS) \
21560 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21561 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21562 \
1f53ca9a
AO
21563 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21564 CFLAGS="$(STAGE3_CFLAGS)" \
21565 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21566 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21567 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21568 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21569 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21570 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21571 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21572 $(TARGET-stage3-libdecnumber)
1f53ca9a 21573
a90ef4bf
JM
21574maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21575clean-stage3: clean-stage3-libdecnumber
21576clean-stage3-libdecnumber:
1f53ca9a 21577 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21578 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21579 else \
a90ef4bf 21580 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21581 $(MAKE) stage3-start; \
21582 fi; \
a90ef4bf 21583 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21584 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21585@endif libdecnumber-bootstrap
1f53ca9a
AO
21586
21587
a90ef4bf
JM
21588.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21589.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21590maybe-all-stage4-libdecnumber:
21591maybe-clean-stage4-libdecnumber:
21592@if libdecnumber-bootstrap
21593maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21594all-stage4: all-stage4-libdecnumber
21595TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21596all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21597 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21598 @r=`${PWD_COMMAND}`; export r; \
21599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21600 TFLAGS="$(STAGE4_TFLAGS)"; \
21601 $(HOST_EXPORTS) \
21602 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21603 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21604 \
1f53ca9a
AO
21605 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21606 CFLAGS="$(STAGE4_CFLAGS)" \
21607 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21608 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21609 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21610 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21611 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21612 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21613 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21614 $(TARGET-stage4-libdecnumber)
1f53ca9a 21615
a90ef4bf
JM
21616maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21617clean-stage4: clean-stage4-libdecnumber
21618clean-stage4-libdecnumber:
1f53ca9a 21619 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21620 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21621 else \
a90ef4bf 21622 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21623 $(MAKE) stage4-start; \
21624 fi; \
a90ef4bf 21625 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21626 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21627@endif libdecnumber-bootstrap
1f53ca9a
AO
21628
21629
a90ef4bf
JM
21630.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21631.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21632maybe-all-stageprofile-libdecnumber:
21633maybe-clean-stageprofile-libdecnumber:
21634@if libdecnumber-bootstrap
21635maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21636all-stageprofile: all-stageprofile-libdecnumber
21637TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21638all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21639 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21640 @r=`${PWD_COMMAND}`; export r; \
21641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21642 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21643 $(HOST_EXPORTS) \
21644 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21645 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21646 \
1f53ca9a
AO
21647 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21648 CFLAGS="$(STAGEprofile_CFLAGS)" \
21649 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21650 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21651 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21652 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21653 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21654 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21655 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21656 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21657
a90ef4bf
JM
21658maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21659clean-stageprofile: clean-stageprofile-libdecnumber
21660clean-stageprofile-libdecnumber:
1f53ca9a 21661 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21662 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21663 else \
a90ef4bf 21664 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21665 $(MAKE) stageprofile-start; \
21666 fi; \
a90ef4bf 21667 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21668 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21669@endif libdecnumber-bootstrap
1f53ca9a
AO
21670
21671
a90ef4bf
JM
21672.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21673.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21674maybe-all-stagefeedback-libdecnumber:
21675maybe-clean-stagefeedback-libdecnumber:
21676@if libdecnumber-bootstrap
21677maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21678all-stagefeedback: all-stagefeedback-libdecnumber
21679TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21680all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21681 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21682 @r=`${PWD_COMMAND}`; export r; \
21683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21684 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21685 $(HOST_EXPORTS) \
21686 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21687 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21688 \
1f53ca9a
AO
21689 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21690 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21691 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21692 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21693 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21694 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21695 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21696 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21697 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21698 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21699
a90ef4bf
JM
21700maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21701clean-stagefeedback: clean-stagefeedback-libdecnumber
21702clean-stagefeedback-libdecnumber:
1f53ca9a 21703 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21704 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21705 else \
a90ef4bf 21706 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21707 $(MAKE) stagefeedback-start; \
21708 fi; \
a90ef4bf 21709 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21710 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21711@endif libdecnumber-bootstrap
1f53ca9a
AO
21712
21713
21714
21715
21716
a90ef4bf
JM
21717.PHONY: check-libdecnumber maybe-check-libdecnumber
21718maybe-check-libdecnumber:
21719@if libdecnumber
21720maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21721
a90ef4bf 21722check-libdecnumber:
1f53ca9a
AO
21723 @: $(MAKE); $(unstage)
21724 @r=`${PWD_COMMAND}`; export r; \
21725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21726 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21727 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21728 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21729
a90ef4bf 21730@endif libdecnumber
1f53ca9a 21731
a90ef4bf
JM
21732.PHONY: install-libdecnumber maybe-install-libdecnumber
21733maybe-install-libdecnumber:
21734@if libdecnumber
21735maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21736
a90ef4bf
JM
21737install-libdecnumber: installdirs
21738 @: $(MAKE); $(unstage)
21739 @r=`${PWD_COMMAND}`; export r; \
21740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21741 $(HOST_EXPORTS) \
21742 (cd $(HOST_SUBDIR)/libdecnumber && \
21743 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21744
a90ef4bf 21745@endif libdecnumber
1f53ca9a 21746
a90ef4bf
JM
21747.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21748maybe-install-strip-libdecnumber:
21749@if libdecnumber
21750maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21751
a90ef4bf
JM
21752install-strip-libdecnumber: installdirs
21753 @: $(MAKE); $(unstage)
21754 @r=`${PWD_COMMAND}`; export r; \
21755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21756 $(HOST_EXPORTS) \
21757 (cd $(HOST_SUBDIR)/libdecnumber && \
21758 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21759
a90ef4bf 21760@endif libdecnumber
9b980aa1 21761
1f53ca9a
AO
21762# Other targets (info, dvi, pdf, etc.)
21763
a90ef4bf
JM
21764.PHONY: maybe-info-libdecnumber info-libdecnumber
21765maybe-info-libdecnumber:
21766@if libdecnumber
21767maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21768
a90ef4bf
JM
21769info-libdecnumber: \
21770 configure-libdecnumber
21771 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21772 r=`${PWD_COMMAND}`; export r; \
21773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21774 $(HOST_EXPORTS) \
21775 for flag in $(EXTRA_HOST_FLAGS) ; do \
21776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21777 done; \
22121df0 21778 echo "Doing info in libdecnumber"; \
a90ef4bf 21779 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21782 "RANLIB=$${RANLIB}" \
21783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21784 info) \
21785 || exit 1
21786
a90ef4bf 21787@endif libdecnumber
1f53ca9a 21788
a90ef4bf
JM
21789.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21790maybe-dvi-libdecnumber:
21791@if libdecnumber
21792maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21793
a90ef4bf
JM
21794dvi-libdecnumber: \
21795 configure-libdecnumber
21796 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21797 r=`${PWD_COMMAND}`; export r; \
21798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21799 $(HOST_EXPORTS) \
21800 for flag in $(EXTRA_HOST_FLAGS) ; do \
21801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21802 done; \
22121df0 21803 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21804 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21807 "RANLIB=$${RANLIB}" \
21808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21809 dvi) \
21810 || exit 1
21811
a90ef4bf 21812@endif libdecnumber
1f53ca9a 21813
a90ef4bf
JM
21814.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21815maybe-pdf-libdecnumber:
21816@if libdecnumber
21817maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21818
a90ef4bf
JM
21819pdf-libdecnumber: \
21820 configure-libdecnumber
21821 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21822 r=`${PWD_COMMAND}`; export r; \
21823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21824 $(HOST_EXPORTS) \
21825 for flag in $(EXTRA_HOST_FLAGS) ; do \
21826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21827 done; \
22121df0 21828 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21829 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21832 "RANLIB=$${RANLIB}" \
21833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21834 pdf) \
21835 || exit 1
21836
a90ef4bf 21837@endif libdecnumber
1f53ca9a 21838
a90ef4bf
JM
21839.PHONY: maybe-html-libdecnumber html-libdecnumber
21840maybe-html-libdecnumber:
21841@if libdecnumber
21842maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21843
a90ef4bf
JM
21844html-libdecnumber: \
21845 configure-libdecnumber
21846 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21847 r=`${PWD_COMMAND}`; export r; \
21848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21849 $(HOST_EXPORTS) \
21850 for flag in $(EXTRA_HOST_FLAGS) ; do \
21851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21852 done; \
22121df0 21853 echo "Doing html in libdecnumber"; \
a90ef4bf 21854 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21857 "RANLIB=$${RANLIB}" \
21858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21859 html) \
21860 || exit 1
21861
a90ef4bf 21862@endif libdecnumber
1f53ca9a 21863
a90ef4bf
JM
21864.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21865maybe-TAGS-libdecnumber:
21866@if libdecnumber
21867maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21868
a90ef4bf
JM
21869TAGS-libdecnumber: \
21870 configure-libdecnumber
21871 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21872 r=`${PWD_COMMAND}`; export r; \
21873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21874 $(HOST_EXPORTS) \
21875 for flag in $(EXTRA_HOST_FLAGS) ; do \
21876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21877 done; \
22121df0 21878 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21879 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21882 "RANLIB=$${RANLIB}" \
21883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21884 TAGS) \
21885 || exit 1
21886
a90ef4bf 21887@endif libdecnumber
1f53ca9a 21888
a90ef4bf
JM
21889.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21890maybe-install-info-libdecnumber:
21891@if libdecnumber
21892maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21893
a90ef4bf
JM
21894install-info-libdecnumber: \
21895 configure-libdecnumber \
21896 info-libdecnumber
21897 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21898 r=`${PWD_COMMAND}`; export r; \
21899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21900 $(HOST_EXPORTS) \
21901 for flag in $(EXTRA_HOST_FLAGS) ; do \
21902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21903 done; \
22121df0 21904 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21905 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21908 "RANLIB=$${RANLIB}" \
21909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21910 install-info) \
21911 || exit 1
21912
a90ef4bf 21913@endif libdecnumber
1f53ca9a 21914
a90ef4bf
JM
21915.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21916maybe-install-pdf-libdecnumber:
21917@if libdecnumber
21918maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21919
a90ef4bf
JM
21920install-pdf-libdecnumber: \
21921 configure-libdecnumber \
21922 pdf-libdecnumber
21923 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21924 r=`${PWD_COMMAND}`; export r; \
21925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21926 $(HOST_EXPORTS) \
21927 for flag in $(EXTRA_HOST_FLAGS) ; do \
21928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21929 done; \
22121df0 21930 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21931 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21934 "RANLIB=$${RANLIB}" \
21935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21936 install-pdf) \
21937 || exit 1
21938
a90ef4bf 21939@endif libdecnumber
1f53ca9a 21940
a90ef4bf
JM
21941.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21942maybe-install-html-libdecnumber:
21943@if libdecnumber
21944maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21945
a90ef4bf
JM
21946install-html-libdecnumber: \
21947 configure-libdecnumber \
21948 html-libdecnumber
21949 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21950 r=`${PWD_COMMAND}`; export r; \
21951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21952 $(HOST_EXPORTS) \
21953 for flag in $(EXTRA_HOST_FLAGS) ; do \
21954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21955 done; \
22121df0 21956 echo "Doing install-html in libdecnumber"; \
a90ef4bf 21957 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21960 "RANLIB=$${RANLIB}" \
21961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21962 install-html) \
21963 || exit 1
21964
a90ef4bf 21965@endif libdecnumber
1f53ca9a 21966
a90ef4bf
JM
21967.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21968maybe-installcheck-libdecnumber:
21969@if libdecnumber
21970maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21971
a90ef4bf
JM
21972installcheck-libdecnumber: \
21973 configure-libdecnumber
21974 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21975 r=`${PWD_COMMAND}`; export r; \
21976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21977 $(HOST_EXPORTS) \
21978 for flag in $(EXTRA_HOST_FLAGS) ; do \
21979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21980 done; \
22121df0 21981 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 21982 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21985 "RANLIB=$${RANLIB}" \
21986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21987 installcheck) \
21988 || exit 1
21989
a90ef4bf 21990@endif libdecnumber
1f53ca9a 21991
a90ef4bf
JM
21992.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21993maybe-mostlyclean-libdecnumber:
21994@if libdecnumber
21995maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21996
a90ef4bf
JM
21997mostlyclean-libdecnumber:
21998 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21999 r=`${PWD_COMMAND}`; export r; \
22000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22001 $(HOST_EXPORTS) \
22002 for flag in $(EXTRA_HOST_FLAGS) ; do \
22003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22004 done; \
22121df0 22005 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 22006 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22009 "RANLIB=$${RANLIB}" \
22010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22011 mostlyclean) \
22012 || exit 1
22013
a90ef4bf 22014@endif libdecnumber
1f53ca9a 22015
a90ef4bf
JM
22016.PHONY: maybe-clean-libdecnumber clean-libdecnumber
22017maybe-clean-libdecnumber:
22018@if libdecnumber
22019maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 22020
a90ef4bf
JM
22021clean-libdecnumber:
22022 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22023 r=`${PWD_COMMAND}`; export r; \
22024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22025 $(HOST_EXPORTS) \
22026 for flag in $(EXTRA_HOST_FLAGS) ; do \
22027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22028 done; \
22121df0 22029 echo "Doing clean in libdecnumber"; \
a90ef4bf 22030 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22033 "RANLIB=$${RANLIB}" \
22034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22035 clean) \
22036 || exit 1
22037
a90ef4bf 22038@endif libdecnumber
1f53ca9a 22039
a90ef4bf
JM
22040.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
22041maybe-distclean-libdecnumber:
22042@if libdecnumber
22043maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 22044
a90ef4bf
JM
22045distclean-libdecnumber:
22046 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22047 r=`${PWD_COMMAND}`; export r; \
22048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22049 $(HOST_EXPORTS) \
22050 for flag in $(EXTRA_HOST_FLAGS) ; do \
22051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22052 done; \
22121df0 22053 echo "Doing distclean in libdecnumber"; \
a90ef4bf 22054 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22057 "RANLIB=$${RANLIB}" \
22058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22059 distclean) \
22060 || exit 1
22061
a90ef4bf 22062@endif libdecnumber
1f53ca9a 22063
a90ef4bf
JM
22064.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
22065maybe-maintainer-clean-libdecnumber:
22066@if libdecnumber
22067maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 22068
a90ef4bf
JM
22069maintainer-clean-libdecnumber:
22070 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22071 r=`${PWD_COMMAND}`; export r; \
22072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22073 $(HOST_EXPORTS) \
22074 for flag in $(EXTRA_HOST_FLAGS) ; do \
22075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22076 done; \
22121df0 22077 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 22078 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22081 "RANLIB=$${RANLIB}" \
22082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22083 maintainer-clean) \
22084 || exit 1
22085
a90ef4bf 22086@endif libdecnumber
1f53ca9a
AO
22087
22088
22089
a90ef4bf
JM
22090.PHONY: configure-libgui maybe-configure-libgui
22091maybe-configure-libgui:
4f0ef2d8 22092@if gcc-bootstrap
a90ef4bf 22093configure-libgui: stage_current
4f0ef2d8 22094@endif gcc-bootstrap
a90ef4bf
JM
22095@if libgui
22096maybe-configure-libgui: configure-libgui
22097configure-libgui:
0aed8855 22098 @: $(MAKE); $(unstage)
c52c6897 22099 @r=`${PWD_COMMAND}`; export r; \
4fa63067 22100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22101 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 22102 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 22103 $(HOST_EXPORTS) \
a90ef4bf
JM
22104 echo Configuring in $(HOST_SUBDIR)/libgui; \
22105 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 22106 case $(srcdir) in \
b00612cc 22107 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22108 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 22109 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 22110 esac; \
1b6c0831
L
22111 module_srcdir=libgui; \
22112 $(SHELL) \
22113 $$s/$$module_srcdir/configure \
22114 --srcdir=$${topdir}/$$module_srcdir \
4b900473 22115 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22116 --target=${target_alias} \
2a4cbe27 22117 || exit 1
a90ef4bf 22118@endif libgui
2a4cbe27 22119
a7254363
PB
22120
22121
d545f33b
PB
22122
22123
a90ef4bf
JM
22124.PHONY: all-libgui maybe-all-libgui
22125maybe-all-libgui:
4f0ef2d8 22126@if gcc-bootstrap
a90ef4bf 22127all-libgui: stage_current
4f0ef2d8 22128@endif gcc-bootstrap
a90ef4bf
JM
22129@if libgui
22130TARGET-libgui=all
22131maybe-all-libgui: all-libgui
22132all-libgui: configure-libgui
0aed8855 22133 @: $(MAKE); $(unstage)
4fa63067
NN
22134 @r=`${PWD_COMMAND}`; export r; \
22135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22136 $(HOST_EXPORTS) \
a90ef4bf 22137 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 22138 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22139 $(TARGET-libgui))
22140@endif libgui
2a4cbe27 22141
a7254363 22142
d545f33b
PB
22143
22144
a90ef4bf
JM
22145.PHONY: check-libgui maybe-check-libgui
22146maybe-check-libgui:
22147@if libgui
22148maybe-check-libgui: check-libgui
2a4cbe27 22149
a90ef4bf 22150check-libgui:
0aed8855 22151 @: $(MAKE); $(unstage)
4fa63067 22152 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22154 $(HOST_EXPORTS) \
a90ef4bf 22155 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22156 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22157
a90ef4bf 22158@endif libgui
2a4cbe27 22159
a90ef4bf
JM
22160.PHONY: install-libgui maybe-install-libgui
22161maybe-install-libgui:
22162@if libgui
22163maybe-install-libgui: install-libgui
2a4cbe27 22164
a90ef4bf 22165install-libgui: installdirs
0aed8855 22166 @: $(MAKE); $(unstage)
4fa63067 22167 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22169 $(HOST_EXPORTS) \
a90ef4bf 22170 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22171 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22172
a90ef4bf 22173@endif libgui
2a4cbe27 22174
a90ef4bf
JM
22175.PHONY: install-strip-libgui maybe-install-strip-libgui
22176maybe-install-strip-libgui:
22177@if libgui
22178maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22179
a90ef4bf 22180install-strip-libgui: installdirs
9b980aa1
RW
22181 @: $(MAKE); $(unstage)
22182 @r=`${PWD_COMMAND}`; export r; \
22183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22184 $(HOST_EXPORTS) \
a90ef4bf 22185 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22186 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22187
a90ef4bf 22188@endif libgui
9b980aa1 22189
56a8fe78 22190# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22191
a90ef4bf
JM
22192.PHONY: maybe-info-libgui info-libgui
22193maybe-info-libgui:
22194@if libgui
22195maybe-info-libgui: info-libgui
4fa63067 22196
a90ef4bf
JM
22197info-libgui: \
22198 configure-libgui
0aed8855 22199 @: $(MAKE); $(unstage)
a90ef4bf 22200 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22201 r=`${PWD_COMMAND}`; export r; \
22202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22203 $(HOST_EXPORTS) \
b813574b 22204 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22206 done; \
22121df0 22207 echo "Doing info in libgui"; \
a90ef4bf 22208 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22211 "RANLIB=$${RANLIB}" \
0c24b341 22212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22213 info) \
2a4cbe27
NN
22214 || exit 1
22215
a90ef4bf 22216@endif libgui
2a4cbe27 22217
a90ef4bf
JM
22218.PHONY: maybe-dvi-libgui dvi-libgui
22219maybe-dvi-libgui:
22220@if libgui
22221maybe-dvi-libgui: dvi-libgui
2a4cbe27 22222
a90ef4bf
JM
22223dvi-libgui: \
22224 configure-libgui
0aed8855 22225 @: $(MAKE); $(unstage)
a90ef4bf 22226 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22227 r=`${PWD_COMMAND}`; export r; \
22228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22229 $(HOST_EXPORTS) \
b813574b 22230 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22232 done; \
22121df0 22233 echo "Doing dvi in libgui"; \
a90ef4bf 22234 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22237 "RANLIB=$${RANLIB}" \
0c24b341 22238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22239 dvi) \
2a4cbe27
NN
22240 || exit 1
22241
a90ef4bf 22242@endif libgui
2a4cbe27 22243
a90ef4bf
JM
22244.PHONY: maybe-pdf-libgui pdf-libgui
22245maybe-pdf-libgui:
22246@if libgui
22247maybe-pdf-libgui: pdf-libgui
56a8fe78 22248
a90ef4bf
JM
22249pdf-libgui: \
22250 configure-libgui
56a8fe78 22251 @: $(MAKE); $(unstage)
a90ef4bf 22252 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22253 r=`${PWD_COMMAND}`; export r; \
22254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22255 $(HOST_EXPORTS) \
22256 for flag in $(EXTRA_HOST_FLAGS) ; do \
22257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22258 done; \
22121df0 22259 echo "Doing pdf in libgui"; \
a90ef4bf 22260 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22263 "RANLIB=$${RANLIB}" \
0c24b341 22264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22265 pdf) \
22266 || exit 1
22267
a90ef4bf 22268@endif libgui
56a8fe78 22269
a90ef4bf
JM
22270.PHONY: maybe-html-libgui html-libgui
22271maybe-html-libgui:
22272@if libgui
22273maybe-html-libgui: html-libgui
6d389afc 22274
a90ef4bf
JM
22275html-libgui: \
22276 configure-libgui
0aed8855 22277 @: $(MAKE); $(unstage)
a90ef4bf 22278 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22279 r=`${PWD_COMMAND}`; export r; \
22280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22281 $(HOST_EXPORTS) \
22282 for flag in $(EXTRA_HOST_FLAGS) ; do \
22283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22284 done; \
22121df0 22285 echo "Doing html in libgui"; \
a90ef4bf 22286 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22289 "RANLIB=$${RANLIB}" \
0c24b341 22290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22291 html) \
22292 || exit 1
22293
a90ef4bf 22294@endif libgui
6d389afc 22295
a90ef4bf
JM
22296.PHONY: maybe-TAGS-libgui TAGS-libgui
22297maybe-TAGS-libgui:
22298@if libgui
22299maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22300
a90ef4bf
JM
22301TAGS-libgui: \
22302 configure-libgui
0aed8855 22303 @: $(MAKE); $(unstage)
a90ef4bf 22304 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22305 r=`${PWD_COMMAND}`; export r; \
22306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22307 $(HOST_EXPORTS) \
b813574b 22308 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22310 done; \
22121df0 22311 echo "Doing TAGS in libgui"; \
a90ef4bf 22312 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22315 "RANLIB=$${RANLIB}" \
0c24b341 22316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22317 TAGS) \
2a4cbe27
NN
22318 || exit 1
22319
a90ef4bf 22320@endif libgui
2a4cbe27 22321
a90ef4bf
JM
22322.PHONY: maybe-install-info-libgui install-info-libgui
22323maybe-install-info-libgui:
22324@if libgui
22325maybe-install-info-libgui: install-info-libgui
2a4cbe27 22326
a90ef4bf
JM
22327install-info-libgui: \
22328 configure-libgui \
22329 info-libgui
0aed8855 22330 @: $(MAKE); $(unstage)
a90ef4bf 22331 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22332 r=`${PWD_COMMAND}`; export r; \
22333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22334 $(HOST_EXPORTS) \
b813574b 22335 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22337 done; \
22121df0 22338 echo "Doing install-info in libgui"; \
a90ef4bf 22339 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22342 "RANLIB=$${RANLIB}" \
0c24b341 22343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22344 install-info) \
2a4cbe27
NN
22345 || exit 1
22346
a90ef4bf 22347@endif libgui
2a4cbe27 22348
a90ef4bf
JM
22349.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22350maybe-install-pdf-libgui:
22351@if libgui
22352maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22353
a90ef4bf
JM
22354install-pdf-libgui: \
22355 configure-libgui \
22356 pdf-libgui
a3ca38d2 22357 @: $(MAKE); $(unstage)
a90ef4bf 22358 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22359 r=`${PWD_COMMAND}`; export r; \
22360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22361 $(HOST_EXPORTS) \
22362 for flag in $(EXTRA_HOST_FLAGS) ; do \
22363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22364 done; \
22121df0 22365 echo "Doing install-pdf in libgui"; \
a90ef4bf 22366 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22369 "RANLIB=$${RANLIB}" \
0c24b341 22370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22371 install-pdf) \
22372 || exit 1
22373
a90ef4bf 22374@endif libgui
a3ca38d2 22375
a90ef4bf
JM
22376.PHONY: maybe-install-html-libgui install-html-libgui
22377maybe-install-html-libgui:
22378@if libgui
22379maybe-install-html-libgui: install-html-libgui
108a6f8e 22380
a90ef4bf
JM
22381install-html-libgui: \
22382 configure-libgui \
22383 html-libgui
108a6f8e 22384 @: $(MAKE); $(unstage)
a90ef4bf 22385 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22386 r=`${PWD_COMMAND}`; export r; \
22387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22388 $(HOST_EXPORTS) \
22389 for flag in $(EXTRA_HOST_FLAGS) ; do \
22390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22391 done; \
22121df0 22392 echo "Doing install-html in libgui"; \
a90ef4bf 22393 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22396 "RANLIB=$${RANLIB}" \
0c24b341 22397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22398 install-html) \
22399 || exit 1
22400
a90ef4bf 22401@endif libgui
108a6f8e 22402
a90ef4bf
JM
22403.PHONY: maybe-installcheck-libgui installcheck-libgui
22404maybe-installcheck-libgui:
22405@if libgui
22406maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22407
a90ef4bf
JM
22408installcheck-libgui: \
22409 configure-libgui
0aed8855 22410 @: $(MAKE); $(unstage)
a90ef4bf 22411 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22412 r=`${PWD_COMMAND}`; export r; \
22413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22414 $(HOST_EXPORTS) \
b813574b 22415 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22417 done; \
22121df0 22418 echo "Doing installcheck in libgui"; \
a90ef4bf 22419 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22422 "RANLIB=$${RANLIB}" \
0c24b341 22423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22424 installcheck) \
2a4cbe27
NN
22425 || exit 1
22426
a90ef4bf 22427@endif libgui
2a4cbe27 22428
a90ef4bf
JM
22429.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22430maybe-mostlyclean-libgui:
22431@if libgui
22432maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22433
a90ef4bf 22434mostlyclean-libgui:
0aed8855 22435 @: $(MAKE); $(unstage)
a90ef4bf 22436 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22437 r=`${PWD_COMMAND}`; export r; \
22438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22439 $(HOST_EXPORTS) \
b813574b 22440 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22442 done; \
22121df0 22443 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22444 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22447 "RANLIB=$${RANLIB}" \
0c24b341 22448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22449 mostlyclean) \
2a4cbe27
NN
22450 || exit 1
22451
a90ef4bf 22452@endif libgui
2a4cbe27 22453
a90ef4bf
JM
22454.PHONY: maybe-clean-libgui clean-libgui
22455maybe-clean-libgui:
22456@if libgui
22457maybe-clean-libgui: clean-libgui
2a4cbe27 22458
a90ef4bf 22459clean-libgui:
0aed8855 22460 @: $(MAKE); $(unstage)
a90ef4bf 22461 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22462 r=`${PWD_COMMAND}`; export r; \
22463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22464 $(HOST_EXPORTS) \
b813574b 22465 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22467 done; \
22121df0 22468 echo "Doing clean in libgui"; \
a90ef4bf 22469 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22472 "RANLIB=$${RANLIB}" \
0c24b341 22473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22474 clean) \
2a4cbe27
NN
22475 || exit 1
22476
a90ef4bf 22477@endif libgui
2a4cbe27 22478
a90ef4bf
JM
22479.PHONY: maybe-distclean-libgui distclean-libgui
22480maybe-distclean-libgui:
22481@if libgui
22482maybe-distclean-libgui: distclean-libgui
2a4cbe27 22483
a90ef4bf 22484distclean-libgui:
0aed8855 22485 @: $(MAKE); $(unstage)
a90ef4bf 22486 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22487 r=`${PWD_COMMAND}`; export r; \
22488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22489 $(HOST_EXPORTS) \
b813574b 22490 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22492 done; \
22121df0 22493 echo "Doing distclean in libgui"; \
a90ef4bf 22494 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22497 "RANLIB=$${RANLIB}" \
0c24b341 22498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22499 distclean) \
2a4cbe27
NN
22500 || exit 1
22501
a90ef4bf 22502@endif libgui
2a4cbe27 22503
a90ef4bf
JM
22504.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22505maybe-maintainer-clean-libgui:
22506@if libgui
22507maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22508
a90ef4bf 22509maintainer-clean-libgui:
0aed8855 22510 @: $(MAKE); $(unstage)
a90ef4bf 22511 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22512 r=`${PWD_COMMAND}`; export r; \
22513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22514 $(HOST_EXPORTS) \
b813574b 22515 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22517 done; \
22121df0 22518 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22519 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22522 "RANLIB=$${RANLIB}" \
0c24b341 22523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22524 maintainer-clean) \
2a4cbe27
NN
22525 || exit 1
22526
a90ef4bf 22527@endif libgui
2a4cbe27 22528
2a4cbe27 22529
a7254363 22530
a90ef4bf
JM
22531.PHONY: configure-libiberty maybe-configure-libiberty
22532maybe-configure-libiberty:
93f9b408 22533@if gcc-bootstrap
a90ef4bf 22534configure-libiberty: stage_current
93f9b408 22535@endif gcc-bootstrap
a90ef4bf
JM
22536@if libiberty
22537maybe-configure-libiberty: configure-libiberty
22538configure-libiberty:
93f9b408
ILT
22539 @r=`${PWD_COMMAND}`; export r; \
22540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22541 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22542 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22543 $(HOST_EXPORTS) \
a90ef4bf
JM
22544 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22545 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22546 case $(srcdir) in \
22547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22548 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22550 esac; \
1b6c0831
L
22551 module_srcdir=libiberty; \
22552 $(SHELL) \
22553 $$s/$$module_srcdir/configure \
22554 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22555 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22556 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22557 || exit 1
a90ef4bf 22558@endif libiberty
93f9b408
ILT
22559
22560
22561
a90ef4bf
JM
22562.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22563maybe-configure-stage1-libiberty:
22564@if libiberty-bootstrap
22565maybe-configure-stage1-libiberty: configure-stage1-libiberty
22566configure-stage1-libiberty:
93f9b408 22567 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22568 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22569 @r=`${PWD_COMMAND}`; export r; \
22570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22571 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22572 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22573 $(HOST_EXPORTS) \
93f9b408 22574 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22575 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22576 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22577 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22578 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22579 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22580 case $(srcdir) in \
22581 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22582 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22583 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22584 esac; \
1b6c0831
L
22585 module_srcdir=libiberty; \
22586 $(SHELL) $$s/$$module_srcdir/configure \
22587 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22588 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22589 --target=${target_alias} \
22590 \
a90ef4bf
JM
22591 $(STAGE1_CONFIGURE_FLAGS) \
22592 @extra_host_libiberty_configure_flags@
22593@endif libiberty-bootstrap
93f9b408 22594
a90ef4bf
JM
22595.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22596maybe-configure-stage2-libiberty:
22597@if libiberty-bootstrap
22598maybe-configure-stage2-libiberty: configure-stage2-libiberty
22599configure-stage2-libiberty:
93f9b408 22600 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22601 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22602 @r=`${PWD_COMMAND}`; export r; \
22603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22604 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22605 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22606 $(HOST_EXPORTS) \
1b05fbbd 22607 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22608 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22609 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22610 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22611 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22612 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22613 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22614 case $(srcdir) in \
22615 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22616 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22617 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22618 esac; \
1b6c0831
L
22619 module_srcdir=libiberty; \
22620 $(SHELL) $$s/$$module_srcdir/configure \
22621 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22622 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22623 --target=${target_alias} \
22121df0 22624 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22625 $(STAGE2_CONFIGURE_FLAGS) \
22626 @extra_host_libiberty_configure_flags@
22627@endif libiberty-bootstrap
93f9b408 22628
a90ef4bf
JM
22629.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22630maybe-configure-stage3-libiberty:
22631@if libiberty-bootstrap
22632maybe-configure-stage3-libiberty: configure-stage3-libiberty
22633configure-stage3-libiberty:
93f9b408 22634 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22635 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22636 @r=`${PWD_COMMAND}`; export r; \
22637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22638 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22639 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22640 $(HOST_EXPORTS) \
1b05fbbd 22641 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22642 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22643 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22644 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22645 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22646 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22647 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22648 case $(srcdir) in \
22649 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22650 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22651 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22652 esac; \
1b6c0831
L
22653 module_srcdir=libiberty; \
22654 $(SHELL) $$s/$$module_srcdir/configure \
22655 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22656 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22657 --target=${target_alias} \
22121df0 22658 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22659 $(STAGE3_CONFIGURE_FLAGS) \
22660 @extra_host_libiberty_configure_flags@
22661@endif libiberty-bootstrap
93f9b408 22662
a90ef4bf
JM
22663.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22664maybe-configure-stage4-libiberty:
22665@if libiberty-bootstrap
22666maybe-configure-stage4-libiberty: configure-stage4-libiberty
22667configure-stage4-libiberty:
93f9b408 22668 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22669 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22670 @r=`${PWD_COMMAND}`; export r; \
22671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22672 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22673 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22674 $(HOST_EXPORTS) \
1b05fbbd 22675 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22676 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22677 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22678 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22679 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22680 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22681 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22682 case $(srcdir) in \
22683 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22684 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22685 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22686 esac; \
1b6c0831
L
22687 module_srcdir=libiberty; \
22688 $(SHELL) $$s/$$module_srcdir/configure \
22689 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22690 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22691 --target=${target_alias} \
22121df0 22692 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22693 $(STAGE4_CONFIGURE_FLAGS) \
22694 @extra_host_libiberty_configure_flags@
22695@endif libiberty-bootstrap
93f9b408 22696
a90ef4bf
JM
22697.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22698maybe-configure-stageprofile-libiberty:
22699@if libiberty-bootstrap
22700maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22701configure-stageprofile-libiberty:
93f9b408 22702 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22703 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22704 @r=`${PWD_COMMAND}`; export r; \
22705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22706 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22707 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22708 $(HOST_EXPORTS) \
1b05fbbd
AO
22709 $(POSTSTAGE1_HOST_EXPORTS) \
22710 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22711 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22712 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22713 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22714 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22715 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22716 case $(srcdir) in \
22717 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22718 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22719 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22720 esac; \
1b6c0831
L
22721 module_srcdir=libiberty; \
22722 $(SHELL) $$s/$$module_srcdir/configure \
22723 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22724 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22725 --target=${target_alias} \
22121df0 22726 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22727 $(STAGEprofile_CONFIGURE_FLAGS) \
22728 @extra_host_libiberty_configure_flags@
22729@endif libiberty-bootstrap
93f9b408 22730
a90ef4bf
JM
22731.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22732maybe-configure-stagefeedback-libiberty:
22733@if libiberty-bootstrap
22734maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22735configure-stagefeedback-libiberty:
93f9b408 22736 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22737 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22738 @r=`${PWD_COMMAND}`; export r; \
22739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22740 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22741 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22742 $(HOST_EXPORTS) \
1b05fbbd
AO
22743 $(POSTSTAGE1_HOST_EXPORTS) \
22744 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22745 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22746 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22747 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22748 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22749 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22750 case $(srcdir) in \
22751 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22752 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22753 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22754 esac; \
1b6c0831
L
22755 module_srcdir=libiberty; \
22756 $(SHELL) $$s/$$module_srcdir/configure \
22757 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22758 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22759 --target=${target_alias} \
22121df0 22760 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22761 $(STAGEfeedback_CONFIGURE_FLAGS) \
22762 @extra_host_libiberty_configure_flags@
22763@endif libiberty-bootstrap
93f9b408
ILT
22764
22765
22766
22767
22768
a90ef4bf
JM
22769.PHONY: all-libiberty maybe-all-libiberty
22770maybe-all-libiberty:
93f9b408 22771@if gcc-bootstrap
a90ef4bf 22772all-libiberty: stage_current
93f9b408 22773@endif gcc-bootstrap
a90ef4bf
JM
22774@if libiberty
22775TARGET-libiberty=all
22776maybe-all-libiberty: all-libiberty
22777all-libiberty: configure-libiberty
93f9b408
ILT
22778 @r=`${PWD_COMMAND}`; export r; \
22779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22780 $(HOST_EXPORTS) \
a90ef4bf 22781 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22782 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22783 $(TARGET-libiberty))
22784@endif libiberty
93f9b408
ILT
22785
22786
22787
a90ef4bf
JM
22788.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22789.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22790maybe-all-stage1-libiberty:
22791maybe-clean-stage1-libiberty:
22792@if libiberty-bootstrap
22793maybe-all-stage1-libiberty: all-stage1-libiberty
22794all-stage1: all-stage1-libiberty
22795TARGET-stage1-libiberty = $(TARGET-libiberty)
22796all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22797 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22798 @r=`${PWD_COMMAND}`; export r; \
22799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22800 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22801 $(HOST_EXPORTS) \
a90ef4bf 22802 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22803 \
93f9b408 22804 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22805 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22806 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22807 LIBCFLAGS="$(LIBCFLAGS)" \
22808 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22809 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22810 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22811 $(EXTRA_HOST_FLAGS) \
22812 $(STAGE1_FLAGS_TO_PASS) \
05a13254 22813 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22814 $(TARGET-stage1-libiberty)
93f9b408 22815
a90ef4bf
JM
22816maybe-clean-stage1-libiberty: clean-stage1-libiberty
22817clean-stage1: clean-stage1-libiberty
22818clean-stage1-libiberty:
93f9b408 22819 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22820 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22821 else \
a90ef4bf 22822 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22823 $(MAKE) stage1-start; \
22824 fi; \
a90ef4bf 22825 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22826 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22827 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22828@endif libiberty-bootstrap
93f9b408
ILT
22829
22830
a90ef4bf
JM
22831.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22832.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22833maybe-all-stage2-libiberty:
22834maybe-clean-stage2-libiberty:
22835@if libiberty-bootstrap
22836maybe-all-stage2-libiberty: all-stage2-libiberty
22837all-stage2: all-stage2-libiberty
22838TARGET-stage2-libiberty = $(TARGET-libiberty)
22839all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22840 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22841 @r=`${PWD_COMMAND}`; export r; \
22842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22843 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22844 $(HOST_EXPORTS) \
1f53ca9a 22845 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22846 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22847 \
93f9b408 22848 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22849 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22850 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22851 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22852 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22853 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22854 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22855 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22856 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22857 $(TARGET-stage2-libiberty)
93f9b408 22858
a90ef4bf
JM
22859maybe-clean-stage2-libiberty: clean-stage2-libiberty
22860clean-stage2: clean-stage2-libiberty
22861clean-stage2-libiberty:
93f9b408 22862 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22863 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22864 else \
a90ef4bf 22865 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22866 $(MAKE) stage2-start; \
22867 fi; \
a90ef4bf 22868 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22869 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22870@endif libiberty-bootstrap
93f9b408
ILT
22871
22872
a90ef4bf
JM
22873.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22874.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22875maybe-all-stage3-libiberty:
22876maybe-clean-stage3-libiberty:
22877@if libiberty-bootstrap
22878maybe-all-stage3-libiberty: all-stage3-libiberty
22879all-stage3: all-stage3-libiberty
22880TARGET-stage3-libiberty = $(TARGET-libiberty)
22881all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22882 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22883 @r=`${PWD_COMMAND}`; export r; \
22884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22885 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22886 $(HOST_EXPORTS) \
1f53ca9a 22887 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22888 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22889 \
93f9b408 22890 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22891 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22892 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22893 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22894 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22895 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22896 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22897 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22898 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22899 $(TARGET-stage3-libiberty)
93f9b408 22900
a90ef4bf
JM
22901maybe-clean-stage3-libiberty: clean-stage3-libiberty
22902clean-stage3: clean-stage3-libiberty
22903clean-stage3-libiberty:
93f9b408 22904 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22905 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22906 else \
a90ef4bf 22907 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22908 $(MAKE) stage3-start; \
22909 fi; \
a90ef4bf 22910 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22911 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22912@endif libiberty-bootstrap
93f9b408
ILT
22913
22914
a90ef4bf
JM
22915.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22916.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22917maybe-all-stage4-libiberty:
22918maybe-clean-stage4-libiberty:
22919@if libiberty-bootstrap
22920maybe-all-stage4-libiberty: all-stage4-libiberty
22921all-stage4: all-stage4-libiberty
22922TARGET-stage4-libiberty = $(TARGET-libiberty)
22923all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22924 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22925 @r=`${PWD_COMMAND}`; export r; \
22926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22927 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22928 $(HOST_EXPORTS) \
1f53ca9a 22929 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22930 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22931 \
93f9b408 22932 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22933 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22934 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22935 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22936 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22937 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22938 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22939 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22940 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22941 $(TARGET-stage4-libiberty)
93f9b408 22942
a90ef4bf
JM
22943maybe-clean-stage4-libiberty: clean-stage4-libiberty
22944clean-stage4: clean-stage4-libiberty
22945clean-stage4-libiberty:
93f9b408 22946 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22947 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22948 else \
a90ef4bf 22949 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22950 $(MAKE) stage4-start; \
22951 fi; \
a90ef4bf 22952 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22953 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22954@endif libiberty-bootstrap
93f9b408
ILT
22955
22956
a90ef4bf
JM
22957.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22958.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22959maybe-all-stageprofile-libiberty:
22960maybe-clean-stageprofile-libiberty:
22961@if libiberty-bootstrap
22962maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22963all-stageprofile: all-stageprofile-libiberty
22964TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22965all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22966 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22967 @r=`${PWD_COMMAND}`; export r; \
22968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22969 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22970 $(HOST_EXPORTS) \
1f53ca9a 22971 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22972 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22973 \
93f9b408 22974 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22975 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22976 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22977 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22978 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22979 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22980 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22981 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22982 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22983 $(TARGET-stageprofile-libiberty)
93f9b408 22984
a90ef4bf
JM
22985maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22986clean-stageprofile: clean-stageprofile-libiberty
22987clean-stageprofile-libiberty:
93f9b408 22988 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22989 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22990 else \
a90ef4bf 22991 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22992 $(MAKE) stageprofile-start; \
22993 fi; \
a90ef4bf 22994 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22995 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22996@endif libiberty-bootstrap
93f9b408
ILT
22997
22998
a90ef4bf
JM
22999.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
23000.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
23001maybe-all-stagefeedback-libiberty:
23002maybe-clean-stagefeedback-libiberty:
23003@if libiberty-bootstrap
23004maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
23005all-stagefeedback: all-stagefeedback-libiberty
23006TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
23007all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
23008 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23009 @r=`${PWD_COMMAND}`; export r; \
23010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 23011 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 23012 $(HOST_EXPORTS) \
1f53ca9a 23013 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 23014 cd $(HOST_SUBDIR)/libiberty && \
05a13254 23015 \
93f9b408 23016 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 23017 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 23018 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
23019 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23020 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23021 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23022 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23023 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 23024 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 23025 $(TARGET-stagefeedback-libiberty)
93f9b408 23026
a90ef4bf
JM
23027maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
23028clean-stagefeedback: clean-stagefeedback-libiberty
23029clean-stagefeedback-libiberty:
93f9b408 23030 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 23031 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 23032 else \
a90ef4bf 23033 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23034 $(MAKE) stagefeedback-start; \
23035 fi; \
a90ef4bf 23036 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 23037 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 23038@endif libiberty-bootstrap
93f9b408
ILT
23039
23040
23041
23042
23043
a90ef4bf
JM
23044.PHONY: check-libiberty maybe-check-libiberty
23045maybe-check-libiberty:
23046@if libiberty
23047maybe-check-libiberty: check-libiberty
93f9b408 23048
a90ef4bf 23049check-libiberty:
93f9b408
ILT
23050 @: $(MAKE); $(unstage)
23051 @r=`${PWD_COMMAND}`; export r; \
23052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23053 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 23054 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 23055 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 23056
a90ef4bf 23057@endif libiberty
93f9b408 23058
a90ef4bf
JM
23059.PHONY: install-libiberty maybe-install-libiberty
23060maybe-install-libiberty:
23061@if libiberty
23062maybe-install-libiberty: install-libiberty
93f9b408 23063
a90ef4bf 23064install-libiberty: installdirs
93f9b408
ILT
23065 @: $(MAKE); $(unstage)
23066 @r=`${PWD_COMMAND}`; export r; \
23067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23068 $(HOST_EXPORTS) \
a90ef4bf 23069 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23070 $(MAKE) $(FLAGS_TO_PASS) install)
23071
a90ef4bf 23072@endif libiberty
93f9b408 23073
a90ef4bf
JM
23074.PHONY: install-strip-libiberty maybe-install-strip-libiberty
23075maybe-install-strip-libiberty:
23076@if libiberty
23077maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 23078
a90ef4bf 23079install-strip-libiberty: installdirs
9b980aa1
RW
23080 @: $(MAKE); $(unstage)
23081 @r=`${PWD_COMMAND}`; export r; \
23082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23083 $(HOST_EXPORTS) \
a90ef4bf 23084 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
23085 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23086
a90ef4bf 23087@endif libiberty
9b980aa1 23088
93f9b408
ILT
23089# Other targets (info, dvi, pdf, etc.)
23090
a90ef4bf
JM
23091.PHONY: maybe-info-libiberty info-libiberty
23092maybe-info-libiberty:
23093@if libiberty
23094maybe-info-libiberty: info-libiberty
93f9b408 23095
a90ef4bf
JM
23096info-libiberty: \
23097 configure-libiberty
23098 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23099 r=`${PWD_COMMAND}`; export r; \
23100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23101 $(HOST_EXPORTS) \
23102 for flag in $(EXTRA_HOST_FLAGS) ; do \
23103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23104 done; \
22121df0 23105 echo "Doing info in libiberty"; \
a90ef4bf 23106 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23109 "RANLIB=$${RANLIB}" \
23110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23111 info) \
23112 || exit 1
23113
a90ef4bf 23114@endif libiberty
93f9b408 23115
a90ef4bf
JM
23116.PHONY: maybe-dvi-libiberty dvi-libiberty
23117maybe-dvi-libiberty:
23118@if libiberty
23119maybe-dvi-libiberty: dvi-libiberty
93f9b408 23120
a90ef4bf
JM
23121dvi-libiberty: \
23122 configure-libiberty
23123 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23124 r=`${PWD_COMMAND}`; export r; \
23125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23126 $(HOST_EXPORTS) \
23127 for flag in $(EXTRA_HOST_FLAGS) ; do \
23128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23129 done; \
22121df0 23130 echo "Doing dvi in libiberty"; \
a90ef4bf 23131 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23134 "RANLIB=$${RANLIB}" \
23135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23136 dvi) \
23137 || exit 1
23138
a90ef4bf 23139@endif libiberty
93f9b408 23140
a90ef4bf
JM
23141.PHONY: maybe-pdf-libiberty pdf-libiberty
23142maybe-pdf-libiberty:
23143@if libiberty
23144maybe-pdf-libiberty: pdf-libiberty
93f9b408 23145
a90ef4bf
JM
23146pdf-libiberty: \
23147 configure-libiberty
23148 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23149 r=`${PWD_COMMAND}`; export r; \
23150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23151 $(HOST_EXPORTS) \
23152 for flag in $(EXTRA_HOST_FLAGS) ; do \
23153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23154 done; \
22121df0 23155 echo "Doing pdf in libiberty"; \
a90ef4bf 23156 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23159 "RANLIB=$${RANLIB}" \
23160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23161 pdf) \
23162 || exit 1
23163
a90ef4bf 23164@endif libiberty
93f9b408 23165
a90ef4bf
JM
23166.PHONY: maybe-html-libiberty html-libiberty
23167maybe-html-libiberty:
23168@if libiberty
23169maybe-html-libiberty: html-libiberty
93f9b408 23170
a90ef4bf
JM
23171html-libiberty: \
23172 configure-libiberty
23173 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23174 r=`${PWD_COMMAND}`; export r; \
23175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23176 $(HOST_EXPORTS) \
23177 for flag in $(EXTRA_HOST_FLAGS) ; do \
23178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23179 done; \
22121df0 23180 echo "Doing html in libiberty"; \
a90ef4bf 23181 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23184 "RANLIB=$${RANLIB}" \
23185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23186 html) \
23187 || exit 1
23188
a90ef4bf 23189@endif libiberty
93f9b408 23190
a90ef4bf
JM
23191.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23192maybe-TAGS-libiberty:
23193@if libiberty
23194maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23195
a90ef4bf
JM
23196TAGS-libiberty: \
23197 configure-libiberty
23198 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23199 r=`${PWD_COMMAND}`; export r; \
23200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23201 $(HOST_EXPORTS) \
23202 for flag in $(EXTRA_HOST_FLAGS) ; do \
23203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23204 done; \
22121df0 23205 echo "Doing TAGS in libiberty"; \
a90ef4bf 23206 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23209 "RANLIB=$${RANLIB}" \
23210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23211 TAGS) \
23212 || exit 1
23213
a90ef4bf 23214@endif libiberty
93f9b408 23215
a90ef4bf
JM
23216.PHONY: maybe-install-info-libiberty install-info-libiberty
23217maybe-install-info-libiberty:
23218@if libiberty
23219maybe-install-info-libiberty: install-info-libiberty
93f9b408 23220
a90ef4bf
JM
23221install-info-libiberty: \
23222 configure-libiberty \
23223 info-libiberty
23224 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23225 r=`${PWD_COMMAND}`; export r; \
23226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23227 $(HOST_EXPORTS) \
23228 for flag in $(EXTRA_HOST_FLAGS) ; do \
23229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23230 done; \
22121df0 23231 echo "Doing install-info in libiberty"; \
a90ef4bf 23232 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23235 "RANLIB=$${RANLIB}" \
23236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23237 install-info) \
23238 || exit 1
23239
a90ef4bf 23240@endif libiberty
93f9b408 23241
a90ef4bf
JM
23242.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23243maybe-install-pdf-libiberty:
23244@if libiberty
23245maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23246
a90ef4bf
JM
23247install-pdf-libiberty: \
23248 configure-libiberty \
23249 pdf-libiberty
23250 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23251 r=`${PWD_COMMAND}`; export r; \
23252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23253 $(HOST_EXPORTS) \
23254 for flag in $(EXTRA_HOST_FLAGS) ; do \
23255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23256 done; \
22121df0 23257 echo "Doing install-pdf in libiberty"; \
a90ef4bf 23258 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23261 "RANLIB=$${RANLIB}" \
23262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23263 install-pdf) \
23264 || exit 1
23265
a90ef4bf 23266@endif libiberty
93f9b408 23267
a90ef4bf
JM
23268.PHONY: maybe-install-html-libiberty install-html-libiberty
23269maybe-install-html-libiberty:
23270@if libiberty
23271maybe-install-html-libiberty: install-html-libiberty
93f9b408 23272
a90ef4bf
JM
23273install-html-libiberty: \
23274 configure-libiberty \
23275 html-libiberty
23276 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23277 r=`${PWD_COMMAND}`; export r; \
23278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23279 $(HOST_EXPORTS) \
23280 for flag in $(EXTRA_HOST_FLAGS) ; do \
23281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23282 done; \
22121df0 23283 echo "Doing install-html in libiberty"; \
a90ef4bf 23284 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23287 "RANLIB=$${RANLIB}" \
23288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23289 install-html) \
23290 || exit 1
23291
a90ef4bf 23292@endif libiberty
93f9b408 23293
a90ef4bf
JM
23294.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23295maybe-installcheck-libiberty:
23296@if libiberty
23297maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23298
a90ef4bf
JM
23299installcheck-libiberty: \
23300 configure-libiberty
23301 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23302 r=`${PWD_COMMAND}`; export r; \
23303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23304 $(HOST_EXPORTS) \
23305 for flag in $(EXTRA_HOST_FLAGS) ; do \
23306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23307 done; \
22121df0 23308 echo "Doing installcheck in libiberty"; \
a90ef4bf 23309 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23312 "RANLIB=$${RANLIB}" \
23313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23314 installcheck) \
23315 || exit 1
23316
a90ef4bf 23317@endif libiberty
93f9b408 23318
a90ef4bf
JM
23319.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23320maybe-mostlyclean-libiberty:
23321@if libiberty
23322maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23323
a90ef4bf
JM
23324mostlyclean-libiberty:
23325 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23326 r=`${PWD_COMMAND}`; export r; \
23327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23328 $(HOST_EXPORTS) \
23329 for flag in $(EXTRA_HOST_FLAGS) ; do \
23330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23331 done; \
22121df0 23332 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23333 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23336 "RANLIB=$${RANLIB}" \
23337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23338 mostlyclean) \
23339 || exit 1
23340
a90ef4bf 23341@endif libiberty
93f9b408 23342
a90ef4bf
JM
23343.PHONY: maybe-clean-libiberty clean-libiberty
23344maybe-clean-libiberty:
23345@if libiberty
23346maybe-clean-libiberty: clean-libiberty
93f9b408 23347
a90ef4bf
JM
23348clean-libiberty:
23349 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23350 r=`${PWD_COMMAND}`; export r; \
23351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23352 $(HOST_EXPORTS) \
23353 for flag in $(EXTRA_HOST_FLAGS) ; do \
23354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23355 done; \
22121df0 23356 echo "Doing clean in libiberty"; \
a90ef4bf 23357 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23360 "RANLIB=$${RANLIB}" \
23361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23362 clean) \
23363 || exit 1
23364
a90ef4bf 23365@endif libiberty
93f9b408 23366
a90ef4bf
JM
23367.PHONY: maybe-distclean-libiberty distclean-libiberty
23368maybe-distclean-libiberty:
23369@if libiberty
23370maybe-distclean-libiberty: distclean-libiberty
93f9b408 23371
a90ef4bf
JM
23372distclean-libiberty:
23373 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23374 r=`${PWD_COMMAND}`; export r; \
23375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23376 $(HOST_EXPORTS) \
23377 for flag in $(EXTRA_HOST_FLAGS) ; do \
23378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23379 done; \
22121df0 23380 echo "Doing distclean in libiberty"; \
a90ef4bf 23381 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23384 "RANLIB=$${RANLIB}" \
23385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23386 distclean) \
23387 || exit 1
23388
a90ef4bf 23389@endif libiberty
93f9b408 23390
a90ef4bf
JM
23391.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23392maybe-maintainer-clean-libiberty:
23393@if libiberty
23394maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23395
a90ef4bf
JM
23396maintainer-clean-libiberty:
23397 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23398 r=`${PWD_COMMAND}`; export r; \
23399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23400 $(HOST_EXPORTS) \
23401 for flag in $(EXTRA_HOST_FLAGS) ; do \
23402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23403 done; \
22121df0 23404 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23405 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23408 "RANLIB=$${RANLIB}" \
23409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23410 maintainer-clean) \
23411 || exit 1
23412
a90ef4bf 23413@endif libiberty
93f9b408
ILT
23414
23415
23416
1b6c0831
L
23417.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23418maybe-configure-libiberty-linker-plugin:
23419@if gcc-bootstrap
23420configure-libiberty-linker-plugin: stage_current
23421@endif gcc-bootstrap
23422@if libiberty-linker-plugin
23423maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23424configure-libiberty-linker-plugin:
23425 @r=`${PWD_COMMAND}`; export r; \
23426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23427 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23428 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23429 $(HOST_EXPORTS) \
23430 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23431 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23432 case $(srcdir) in \
23433 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23434 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23435 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23436 esac; \
23437 module_srcdir=libiberty; \
23438 $(SHELL) \
23439 $$s/$$module_srcdir/configure \
23440 --srcdir=$${topdir}/$$module_srcdir \
23441 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23442 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23443 || exit 1
23444@endif libiberty-linker-plugin
23445
23446
23447
23448.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23449maybe-configure-stage1-libiberty-linker-plugin:
23450@if libiberty-linker-plugin-bootstrap
23451maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23452configure-stage1-libiberty-linker-plugin:
23453 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23454 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23455 @r=`${PWD_COMMAND}`; export r; \
23456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23457 TFLAGS="$(STAGE1_TFLAGS)"; \
23458 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23459 $(HOST_EXPORTS) \
23460 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23461 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23462 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23463 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23464 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23465 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23466 case $(srcdir) in \
23467 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23468 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23469 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23470 esac; \
23471 module_srcdir=libiberty; \
23472 $(SHELL) $$s/$$module_srcdir/configure \
23473 --srcdir=$${topdir}/$$module_srcdir \
23474 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23475 --target=${target_alias} \
23476 \
23477 $(STAGE1_CONFIGURE_FLAGS) \
23478 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23479@endif libiberty-linker-plugin-bootstrap
23480
23481.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23482maybe-configure-stage2-libiberty-linker-plugin:
23483@if libiberty-linker-plugin-bootstrap
23484maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23485configure-stage2-libiberty-linker-plugin:
23486 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23487 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23488 @r=`${PWD_COMMAND}`; export r; \
23489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23490 TFLAGS="$(STAGE2_TFLAGS)"; \
23491 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23492 $(HOST_EXPORTS) \
23493 $(POSTSTAGE1_HOST_EXPORTS) \
23494 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23495 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23496 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23497 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23498 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23499 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23500 case $(srcdir) in \
23501 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23502 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23503 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23504 esac; \
23505 module_srcdir=libiberty; \
23506 $(SHELL) $$s/$$module_srcdir/configure \
23507 --srcdir=$${topdir}/$$module_srcdir \
23508 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23509 --target=${target_alias} \
22121df0 23510 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23511 $(STAGE2_CONFIGURE_FLAGS) \
23512 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23513@endif libiberty-linker-plugin-bootstrap
23514
23515.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23516maybe-configure-stage3-libiberty-linker-plugin:
23517@if libiberty-linker-plugin-bootstrap
23518maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23519configure-stage3-libiberty-linker-plugin:
23520 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23521 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23522 @r=`${PWD_COMMAND}`; export r; \
23523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23524 TFLAGS="$(STAGE3_TFLAGS)"; \
23525 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23526 $(HOST_EXPORTS) \
23527 $(POSTSTAGE1_HOST_EXPORTS) \
23528 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23529 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23530 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23531 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23532 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23533 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23534 case $(srcdir) in \
23535 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23536 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23537 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23538 esac; \
23539 module_srcdir=libiberty; \
23540 $(SHELL) $$s/$$module_srcdir/configure \
23541 --srcdir=$${topdir}/$$module_srcdir \
23542 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23543 --target=${target_alias} \
22121df0 23544 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23545 $(STAGE3_CONFIGURE_FLAGS) \
23546 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23547@endif libiberty-linker-plugin-bootstrap
23548
23549.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23550maybe-configure-stage4-libiberty-linker-plugin:
23551@if libiberty-linker-plugin-bootstrap
23552maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23553configure-stage4-libiberty-linker-plugin:
23554 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23555 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23556 @r=`${PWD_COMMAND}`; export r; \
23557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23558 TFLAGS="$(STAGE4_TFLAGS)"; \
23559 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23560 $(HOST_EXPORTS) \
23561 $(POSTSTAGE1_HOST_EXPORTS) \
23562 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23563 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23564 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23565 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23566 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23567 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23568 case $(srcdir) in \
23569 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23570 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23571 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23572 esac; \
23573 module_srcdir=libiberty; \
23574 $(SHELL) $$s/$$module_srcdir/configure \
23575 --srcdir=$${topdir}/$$module_srcdir \
23576 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23577 --target=${target_alias} \
22121df0 23578 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23579 $(STAGE4_CONFIGURE_FLAGS) \
23580 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23581@endif libiberty-linker-plugin-bootstrap
23582
23583.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23584maybe-configure-stageprofile-libiberty-linker-plugin:
23585@if libiberty-linker-plugin-bootstrap
23586maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23587configure-stageprofile-libiberty-linker-plugin:
23588 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23589 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23590 @r=`${PWD_COMMAND}`; export r; \
23591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23592 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23593 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23594 $(HOST_EXPORTS) \
23595 $(POSTSTAGE1_HOST_EXPORTS) \
23596 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23597 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23598 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23599 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23600 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23601 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23602 case $(srcdir) in \
23603 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23604 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23605 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23606 esac; \
23607 module_srcdir=libiberty; \
23608 $(SHELL) $$s/$$module_srcdir/configure \
23609 --srcdir=$${topdir}/$$module_srcdir \
23610 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23611 --target=${target_alias} \
22121df0 23612 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23613 $(STAGEprofile_CONFIGURE_FLAGS) \
23614 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23615@endif libiberty-linker-plugin-bootstrap
23616
23617.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23618maybe-configure-stagefeedback-libiberty-linker-plugin:
23619@if libiberty-linker-plugin-bootstrap
23620maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23621configure-stagefeedback-libiberty-linker-plugin:
23622 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23623 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23624 @r=`${PWD_COMMAND}`; export r; \
23625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23626 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23627 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23628 $(HOST_EXPORTS) \
23629 $(POSTSTAGE1_HOST_EXPORTS) \
23630 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23631 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23632 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23633 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23634 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23635 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23636 case $(srcdir) in \
23637 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23638 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23639 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23640 esac; \
23641 module_srcdir=libiberty; \
23642 $(SHELL) $$s/$$module_srcdir/configure \
23643 --srcdir=$${topdir}/$$module_srcdir \
23644 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23645 --target=${target_alias} \
22121df0 23646 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23647 $(STAGEfeedback_CONFIGURE_FLAGS) \
23648 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23649@endif libiberty-linker-plugin-bootstrap
23650
23651
23652
23653
23654
23655.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23656maybe-all-libiberty-linker-plugin:
23657@if gcc-bootstrap
23658all-libiberty-linker-plugin: stage_current
23659@endif gcc-bootstrap
23660@if libiberty-linker-plugin
23661TARGET-libiberty-linker-plugin=all
23662maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23663all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23664 @r=`${PWD_COMMAND}`; export r; \
23665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23666 $(HOST_EXPORTS) \
23667 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23668 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23669 $(TARGET-libiberty-linker-plugin))
23670@endif libiberty-linker-plugin
23671
23672
23673
23674.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23675.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23676maybe-all-stage1-libiberty-linker-plugin:
23677maybe-clean-stage1-libiberty-linker-plugin:
23678@if libiberty-linker-plugin-bootstrap
23679maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23680all-stage1: all-stage1-libiberty-linker-plugin
23681TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23682all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23683 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23684 @r=`${PWD_COMMAND}`; export r; \
23685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23686 TFLAGS="$(STAGE1_TFLAGS)"; \
23687 $(HOST_EXPORTS) \
23688 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23689 \
1b6c0831
L
23690 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23691 CFLAGS="$(STAGE1_CFLAGS)" \
23692 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23693 LIBCFLAGS="$(LIBCFLAGS)" \
23694 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23695 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23696 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23697 $(EXTRA_HOST_FLAGS) \
23698 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23699 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
23700 $(TARGET-stage1-libiberty-linker-plugin)
23701
23702maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23703clean-stage1: clean-stage1-libiberty-linker-plugin
23704clean-stage1-libiberty-linker-plugin:
23705 @if [ $(current_stage) = stage1 ]; then \
23706 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23707 else \
23708 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23709 $(MAKE) stage1-start; \
23710 fi; \
23711 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23712 $(MAKE) $(EXTRA_HOST_FLAGS) \
23713 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23714@endif libiberty-linker-plugin-bootstrap
23715
23716
23717.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23718.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23719maybe-all-stage2-libiberty-linker-plugin:
23720maybe-clean-stage2-libiberty-linker-plugin:
23721@if libiberty-linker-plugin-bootstrap
23722maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23723all-stage2: all-stage2-libiberty-linker-plugin
23724TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23725all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23726 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23727 @r=`${PWD_COMMAND}`; export r; \
23728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23729 TFLAGS="$(STAGE2_TFLAGS)"; \
23730 $(HOST_EXPORTS) \
23731 $(POSTSTAGE1_HOST_EXPORTS) \
23732 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23733 \
1b6c0831
L
23734 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23735 CFLAGS="$(STAGE2_CFLAGS)" \
23736 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23737 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23738 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23739 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23740 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23741 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23742 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
23743 $(TARGET-stage2-libiberty-linker-plugin)
23744
23745maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23746clean-stage2: clean-stage2-libiberty-linker-plugin
23747clean-stage2-libiberty-linker-plugin:
23748 @if [ $(current_stage) = stage2 ]; then \
23749 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23750 else \
23751 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23752 $(MAKE) stage2-start; \
23753 fi; \
23754 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23755 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23756@endif libiberty-linker-plugin-bootstrap
23757
23758
23759.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23760.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23761maybe-all-stage3-libiberty-linker-plugin:
23762maybe-clean-stage3-libiberty-linker-plugin:
23763@if libiberty-linker-plugin-bootstrap
23764maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23765all-stage3: all-stage3-libiberty-linker-plugin
23766TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23767all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23768 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23769 @r=`${PWD_COMMAND}`; export r; \
23770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23771 TFLAGS="$(STAGE3_TFLAGS)"; \
23772 $(HOST_EXPORTS) \
23773 $(POSTSTAGE1_HOST_EXPORTS) \
23774 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23775 \
1b6c0831
L
23776 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23777 CFLAGS="$(STAGE3_CFLAGS)" \
23778 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23779 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23780 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23781 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23782 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23783 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23784 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
23785 $(TARGET-stage3-libiberty-linker-plugin)
23786
23787maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23788clean-stage3: clean-stage3-libiberty-linker-plugin
23789clean-stage3-libiberty-linker-plugin:
23790 @if [ $(current_stage) = stage3 ]; then \
23791 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23792 else \
23793 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23794 $(MAKE) stage3-start; \
23795 fi; \
23796 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23797 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23798@endif libiberty-linker-plugin-bootstrap
23799
23800
23801.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23802.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23803maybe-all-stage4-libiberty-linker-plugin:
23804maybe-clean-stage4-libiberty-linker-plugin:
23805@if libiberty-linker-plugin-bootstrap
23806maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23807all-stage4: all-stage4-libiberty-linker-plugin
23808TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23809all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23810 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23811 @r=`${PWD_COMMAND}`; export r; \
23812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23813 TFLAGS="$(STAGE4_TFLAGS)"; \
23814 $(HOST_EXPORTS) \
23815 $(POSTSTAGE1_HOST_EXPORTS) \
23816 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23817 \
1b6c0831
L
23818 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23819 CFLAGS="$(STAGE4_CFLAGS)" \
23820 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23821 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23822 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23823 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23824 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23825 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23826 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
23827 $(TARGET-stage4-libiberty-linker-plugin)
23828
23829maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23830clean-stage4: clean-stage4-libiberty-linker-plugin
23831clean-stage4-libiberty-linker-plugin:
23832 @if [ $(current_stage) = stage4 ]; then \
23833 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23834 else \
23835 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23836 $(MAKE) stage4-start; \
23837 fi; \
23838 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23839 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23840@endif libiberty-linker-plugin-bootstrap
23841
23842
23843.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23844.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23845maybe-all-stageprofile-libiberty-linker-plugin:
23846maybe-clean-stageprofile-libiberty-linker-plugin:
23847@if libiberty-linker-plugin-bootstrap
23848maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23849all-stageprofile: all-stageprofile-libiberty-linker-plugin
23850TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23851all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23852 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23853 @r=`${PWD_COMMAND}`; export r; \
23854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23855 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23856 $(HOST_EXPORTS) \
23857 $(POSTSTAGE1_HOST_EXPORTS) \
23858 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23859 \
1b6c0831
L
23860 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23861 CFLAGS="$(STAGEprofile_CFLAGS)" \
23862 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23863 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23864 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23865 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23866 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23867 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23868 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
23869 $(TARGET-stageprofile-libiberty-linker-plugin)
23870
23871maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23872clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23873clean-stageprofile-libiberty-linker-plugin:
23874 @if [ $(current_stage) = stageprofile ]; then \
23875 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23876 else \
23877 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23878 $(MAKE) stageprofile-start; \
23879 fi; \
23880 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23881 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23882@endif libiberty-linker-plugin-bootstrap
23883
23884
23885.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23886.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23887maybe-all-stagefeedback-libiberty-linker-plugin:
23888maybe-clean-stagefeedback-libiberty-linker-plugin:
23889@if libiberty-linker-plugin-bootstrap
23890maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23891all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23892TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23893all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23894 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23895 @r=`${PWD_COMMAND}`; export r; \
23896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23897 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23898 $(HOST_EXPORTS) \
23899 $(POSTSTAGE1_HOST_EXPORTS) \
23900 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23901 \
1b6c0831
L
23902 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23903 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23904 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23905 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23906 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23907 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23908 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23909 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23910 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
23911 $(TARGET-stagefeedback-libiberty-linker-plugin)
23912
23913maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23914clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23915clean-stagefeedback-libiberty-linker-plugin:
23916 @if [ $(current_stage) = stagefeedback ]; then \
23917 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23918 else \
23919 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23920 $(MAKE) stagefeedback-start; \
23921 fi; \
23922 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23923 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23924@endif libiberty-linker-plugin-bootstrap
23925
23926
23927
23928
23929
23930.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23931maybe-check-libiberty-linker-plugin:
23932@if libiberty-linker-plugin
23933maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23934
23935check-libiberty-linker-plugin:
23936 @: $(MAKE); $(unstage)
23937 @r=`${PWD_COMMAND}`; export r; \
23938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23939 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23940 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23941 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23942
23943@endif libiberty-linker-plugin
23944
23945.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23946maybe-install-libiberty-linker-plugin:
23947@if libiberty-linker-plugin
23948maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23949
23950install-libiberty-linker-plugin: installdirs
23951 @: $(MAKE); $(unstage)
23952 @r=`${PWD_COMMAND}`; export r; \
23953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23954 $(HOST_EXPORTS) \
23955 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23956 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23957
23958@endif libiberty-linker-plugin
23959
23960.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23961maybe-install-strip-libiberty-linker-plugin:
23962@if libiberty-linker-plugin
23963maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23964
23965install-strip-libiberty-linker-plugin: installdirs
23966 @: $(MAKE); $(unstage)
23967 @r=`${PWD_COMMAND}`; export r; \
23968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23969 $(HOST_EXPORTS) \
23970 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23971 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23972
23973@endif libiberty-linker-plugin
23974
23975# Other targets (info, dvi, pdf, etc.)
23976
23977.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23978maybe-info-libiberty-linker-plugin:
23979@if libiberty-linker-plugin
23980maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23981
23982info-libiberty-linker-plugin: \
23983 configure-libiberty-linker-plugin
23984 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23985 r=`${PWD_COMMAND}`; export r; \
23986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23987 $(HOST_EXPORTS) \
23988 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23990 done; \
22121df0 23991 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
23992 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23995 "RANLIB=$${RANLIB}" \
23996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23997 info) \
23998 || exit 1
23999
24000@endif libiberty-linker-plugin
24001
24002.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
24003maybe-dvi-libiberty-linker-plugin:
24004@if libiberty-linker-plugin
24005maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
24006
24007dvi-libiberty-linker-plugin: \
24008 configure-libiberty-linker-plugin
24009 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24010 r=`${PWD_COMMAND}`; export r; \
24011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24012 $(HOST_EXPORTS) \
24013 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24015 done; \
22121df0 24016 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
24017 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24020 "RANLIB=$${RANLIB}" \
24021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24022 dvi) \
24023 || exit 1
24024
24025@endif libiberty-linker-plugin
24026
24027.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
24028maybe-pdf-libiberty-linker-plugin:
24029@if libiberty-linker-plugin
24030maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
24031
24032pdf-libiberty-linker-plugin: \
24033 configure-libiberty-linker-plugin
24034 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24035 r=`${PWD_COMMAND}`; export r; \
24036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24037 $(HOST_EXPORTS) \
24038 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24040 done; \
22121df0 24041 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
24042 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24045 "RANLIB=$${RANLIB}" \
24046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24047 pdf) \
24048 || exit 1
24049
24050@endif libiberty-linker-plugin
24051
24052.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
24053maybe-html-libiberty-linker-plugin:
24054@if libiberty-linker-plugin
24055maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
24056
24057html-libiberty-linker-plugin: \
24058 configure-libiberty-linker-plugin
24059 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24060 r=`${PWD_COMMAND}`; export r; \
24061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24062 $(HOST_EXPORTS) \
24063 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24065 done; \
22121df0 24066 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
24067 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24070 "RANLIB=$${RANLIB}" \
24071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24072 html) \
24073 || exit 1
24074
24075@endif libiberty-linker-plugin
24076
24077.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
24078maybe-TAGS-libiberty-linker-plugin:
24079@if libiberty-linker-plugin
24080maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
24081
24082TAGS-libiberty-linker-plugin: \
24083 configure-libiberty-linker-plugin
24084 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24085 r=`${PWD_COMMAND}`; export r; \
24086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24087 $(HOST_EXPORTS) \
24088 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24090 done; \
22121df0 24091 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
24092 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24095 "RANLIB=$${RANLIB}" \
24096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24097 TAGS) \
24098 || exit 1
24099
24100@endif libiberty-linker-plugin
24101
24102.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
24103maybe-install-info-libiberty-linker-plugin:
24104@if libiberty-linker-plugin
24105maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
24106
24107install-info-libiberty-linker-plugin: \
24108 configure-libiberty-linker-plugin \
24109 info-libiberty-linker-plugin
24110 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24111 r=`${PWD_COMMAND}`; export r; \
24112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24113 $(HOST_EXPORTS) \
24114 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24116 done; \
22121df0 24117 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
24118 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24121 "RANLIB=$${RANLIB}" \
24122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24123 install-info) \
24124 || exit 1
24125
24126@endif libiberty-linker-plugin
24127
24128.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
24129maybe-install-pdf-libiberty-linker-plugin:
24130@if libiberty-linker-plugin
24131maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
24132
24133install-pdf-libiberty-linker-plugin: \
24134 configure-libiberty-linker-plugin \
24135 pdf-libiberty-linker-plugin
24136 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24137 r=`${PWD_COMMAND}`; export r; \
24138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24139 $(HOST_EXPORTS) \
24140 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24142 done; \
22121df0 24143 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
24144 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24147 "RANLIB=$${RANLIB}" \
24148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24149 install-pdf) \
24150 || exit 1
24151
24152@endif libiberty-linker-plugin
24153
24154.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
24155maybe-install-html-libiberty-linker-plugin:
24156@if libiberty-linker-plugin
24157maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
24158
24159install-html-libiberty-linker-plugin: \
24160 configure-libiberty-linker-plugin \
24161 html-libiberty-linker-plugin
24162 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24163 r=`${PWD_COMMAND}`; export r; \
24164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24165 $(HOST_EXPORTS) \
24166 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24168 done; \
22121df0 24169 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
24170 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24173 "RANLIB=$${RANLIB}" \
24174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24175 install-html) \
24176 || exit 1
24177
24178@endif libiberty-linker-plugin
24179
24180.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24181maybe-installcheck-libiberty-linker-plugin:
24182@if libiberty-linker-plugin
24183maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24184
24185installcheck-libiberty-linker-plugin: \
24186 configure-libiberty-linker-plugin
24187 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24188 r=`${PWD_COMMAND}`; export r; \
24189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24190 $(HOST_EXPORTS) \
24191 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24193 done; \
22121df0 24194 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24195 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24198 "RANLIB=$${RANLIB}" \
24199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24200 installcheck) \
24201 || exit 1
24202
24203@endif libiberty-linker-plugin
24204
24205.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24206maybe-mostlyclean-libiberty-linker-plugin:
24207@if libiberty-linker-plugin
24208maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24209
24210mostlyclean-libiberty-linker-plugin:
24211 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24212 r=`${PWD_COMMAND}`; export r; \
24213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24214 $(HOST_EXPORTS) \
24215 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24217 done; \
22121df0 24218 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24219 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24222 "RANLIB=$${RANLIB}" \
24223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24224 mostlyclean) \
24225 || exit 1
24226
24227@endif libiberty-linker-plugin
24228
24229.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24230maybe-clean-libiberty-linker-plugin:
24231@if libiberty-linker-plugin
24232maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24233
24234clean-libiberty-linker-plugin:
24235 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24236 r=`${PWD_COMMAND}`; export r; \
24237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24238 $(HOST_EXPORTS) \
24239 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24241 done; \
22121df0 24242 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24243 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24246 "RANLIB=$${RANLIB}" \
24247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24248 clean) \
24249 || exit 1
24250
24251@endif libiberty-linker-plugin
24252
24253.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24254maybe-distclean-libiberty-linker-plugin:
24255@if libiberty-linker-plugin
24256maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24257
24258distclean-libiberty-linker-plugin:
24259 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24260 r=`${PWD_COMMAND}`; export r; \
24261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24262 $(HOST_EXPORTS) \
24263 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24265 done; \
22121df0 24266 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24267 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24270 "RANLIB=$${RANLIB}" \
24271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24272 distclean) \
24273 || exit 1
24274
24275@endif libiberty-linker-plugin
24276
24277.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24278maybe-maintainer-clean-libiberty-linker-plugin:
24279@if libiberty-linker-plugin
24280maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24281
24282maintainer-clean-libiberty-linker-plugin:
24283 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24284 r=`${PWD_COMMAND}`; export r; \
24285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24286 $(HOST_EXPORTS) \
24287 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24289 done; \
22121df0 24290 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24291 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24294 "RANLIB=$${RANLIB}" \
24295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24296 maintainer-clean) \
24297 || exit 1
24298
24299@endif libiberty-linker-plugin
24300
24301
24302
a90ef4bf
JM
24303.PHONY: configure-libiconv maybe-configure-libiconv
24304maybe-configure-libiconv:
4f0ef2d8 24305@if gcc-bootstrap
a90ef4bf 24306configure-libiconv: stage_current
4f0ef2d8 24307@endif gcc-bootstrap
a90ef4bf
JM
24308@if libiconv
24309maybe-configure-libiconv: configure-libiconv
24310configure-libiconv:
c52c6897 24311 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24313 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24314 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24315 $(HOST_EXPORTS) \
a90ef4bf
JM
24316 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24317 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24318 case $(srcdir) in \
b00612cc 24319 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24320 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24321 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24322 esac; \
1b6c0831
L
24323 module_srcdir=libiconv; \
24324 $(SHELL) \
24325 $$s/$$module_srcdir/configure \
24326 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24327 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24328 --target=${target_alias} --disable-shared \
2a4cbe27 24329 || exit 1
a90ef4bf 24330@endif libiconv
2a4cbe27 24331
a7254363
PB
24332
24333
016a3251
DD
24334.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24335maybe-configure-stage1-libiconv:
24336@if libiconv-bootstrap
24337maybe-configure-stage1-libiconv: configure-stage1-libiconv
24338configure-stage1-libiconv:
24339 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24340 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24341 @r=`${PWD_COMMAND}`; export r; \
24342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24343 TFLAGS="$(STAGE1_TFLAGS)"; \
24344 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24345 $(HOST_EXPORTS) \
24346 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24347 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24348 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24349 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24350 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24351 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24352 case $(srcdir) in \
24353 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24354 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24355 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24356 esac; \
24357 module_srcdir=libiconv; \
24358 $(SHELL) $$s/$$module_srcdir/configure \
24359 --srcdir=$${topdir}/$$module_srcdir \
24360 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24361 --target=${target_alias} \
24362 \
24363 $(STAGE1_CONFIGURE_FLAGS) \
24364 --disable-shared
24365@endif libiconv-bootstrap
24366
24367.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24368maybe-configure-stage2-libiconv:
24369@if libiconv-bootstrap
24370maybe-configure-stage2-libiconv: configure-stage2-libiconv
24371configure-stage2-libiconv:
24372 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24373 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24374 @r=`${PWD_COMMAND}`; export r; \
24375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24376 TFLAGS="$(STAGE2_TFLAGS)"; \
24377 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24378 $(HOST_EXPORTS) \
24379 $(POSTSTAGE1_HOST_EXPORTS) \
24380 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24381 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24382 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24383 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24384 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24385 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24386 case $(srcdir) in \
24387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24388 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24390 esac; \
24391 module_srcdir=libiconv; \
24392 $(SHELL) $$s/$$module_srcdir/configure \
24393 --srcdir=$${topdir}/$$module_srcdir \
24394 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24395 --target=${target_alias} \
24396 --with-build-libsubdir=$(HOST_SUBDIR) \
24397 $(STAGE2_CONFIGURE_FLAGS) \
24398 --disable-shared
24399@endif libiconv-bootstrap
24400
24401.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24402maybe-configure-stage3-libiconv:
24403@if libiconv-bootstrap
24404maybe-configure-stage3-libiconv: configure-stage3-libiconv
24405configure-stage3-libiconv:
24406 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24407 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24408 @r=`${PWD_COMMAND}`; export r; \
24409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24410 TFLAGS="$(STAGE3_TFLAGS)"; \
24411 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24412 $(HOST_EXPORTS) \
24413 $(POSTSTAGE1_HOST_EXPORTS) \
24414 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24415 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24416 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24417 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24418 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24419 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24420 case $(srcdir) in \
24421 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24422 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24423 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24424 esac; \
24425 module_srcdir=libiconv; \
24426 $(SHELL) $$s/$$module_srcdir/configure \
24427 --srcdir=$${topdir}/$$module_srcdir \
24428 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24429 --target=${target_alias} \
24430 --with-build-libsubdir=$(HOST_SUBDIR) \
24431 $(STAGE3_CONFIGURE_FLAGS) \
24432 --disable-shared
24433@endif libiconv-bootstrap
24434
24435.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24436maybe-configure-stage4-libiconv:
24437@if libiconv-bootstrap
24438maybe-configure-stage4-libiconv: configure-stage4-libiconv
24439configure-stage4-libiconv:
24440 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24441 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24442 @r=`${PWD_COMMAND}`; export r; \
24443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24444 TFLAGS="$(STAGE4_TFLAGS)"; \
24445 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24446 $(HOST_EXPORTS) \
24447 $(POSTSTAGE1_HOST_EXPORTS) \
24448 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24449 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24450 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24451 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24452 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24453 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24454 case $(srcdir) in \
24455 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24456 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24457 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24458 esac; \
24459 module_srcdir=libiconv; \
24460 $(SHELL) $$s/$$module_srcdir/configure \
24461 --srcdir=$${topdir}/$$module_srcdir \
24462 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24463 --target=${target_alias} \
24464 --with-build-libsubdir=$(HOST_SUBDIR) \
24465 $(STAGE4_CONFIGURE_FLAGS) \
24466 --disable-shared
24467@endif libiconv-bootstrap
24468
24469.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24470maybe-configure-stageprofile-libiconv:
24471@if libiconv-bootstrap
24472maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24473configure-stageprofile-libiconv:
24474 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24475 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24476 @r=`${PWD_COMMAND}`; export r; \
24477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24478 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24479 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24480 $(HOST_EXPORTS) \
24481 $(POSTSTAGE1_HOST_EXPORTS) \
24482 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24483 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24484 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24485 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24486 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24487 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24488 case $(srcdir) in \
24489 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24490 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24491 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24492 esac; \
24493 module_srcdir=libiconv; \
24494 $(SHELL) $$s/$$module_srcdir/configure \
24495 --srcdir=$${topdir}/$$module_srcdir \
24496 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24497 --target=${target_alias} \
24498 --with-build-libsubdir=$(HOST_SUBDIR) \
24499 $(STAGEprofile_CONFIGURE_FLAGS) \
24500 --disable-shared
24501@endif libiconv-bootstrap
24502
24503.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24504maybe-configure-stagefeedback-libiconv:
24505@if libiconv-bootstrap
24506maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24507configure-stagefeedback-libiconv:
24508 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24509 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24510 @r=`${PWD_COMMAND}`; export r; \
24511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24512 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24513 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24514 $(HOST_EXPORTS) \
24515 $(POSTSTAGE1_HOST_EXPORTS) \
24516 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24517 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24518 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24519 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24520 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24521 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24522 case $(srcdir) in \
24523 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24524 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24525 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24526 esac; \
24527 module_srcdir=libiconv; \
24528 $(SHELL) $$s/$$module_srcdir/configure \
24529 --srcdir=$${topdir}/$$module_srcdir \
24530 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24531 --target=${target_alias} \
24532 --with-build-libsubdir=$(HOST_SUBDIR) \
24533 $(STAGEfeedback_CONFIGURE_FLAGS) \
24534 --disable-shared
24535@endif libiconv-bootstrap
24536
24537
24538
d545f33b
PB
24539
24540
a90ef4bf
JM
24541.PHONY: all-libiconv maybe-all-libiconv
24542maybe-all-libiconv:
4f0ef2d8 24543@if gcc-bootstrap
a90ef4bf 24544all-libiconv: stage_current
4f0ef2d8 24545@endif gcc-bootstrap
a90ef4bf
JM
24546@if libiconv
24547TARGET-libiconv=all
24548maybe-all-libiconv: all-libiconv
24549all-libiconv: configure-libiconv
4fa63067
NN
24550 @r=`${PWD_COMMAND}`; export r; \
24551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24552 $(HOST_EXPORTS) \
a90ef4bf 24553 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24554 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24555 $(TARGET-libiconv))
24556@endif libiconv
2a4cbe27 24557
a7254363 24558
d545f33b 24559
016a3251
DD
24560.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24561.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24562maybe-all-stage1-libiconv:
24563maybe-clean-stage1-libiconv:
24564@if libiconv-bootstrap
24565maybe-all-stage1-libiconv: all-stage1-libiconv
24566all-stage1: all-stage1-libiconv
24567TARGET-stage1-libiconv = $(TARGET-libiconv)
24568all-stage1-libiconv: configure-stage1-libiconv
24569 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24570 @r=`${PWD_COMMAND}`; export r; \
24571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24572 TFLAGS="$(STAGE1_TFLAGS)"; \
24573 $(HOST_EXPORTS) \
24574 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24575 \
016a3251
DD
24576 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24577 CFLAGS="$(STAGE1_CFLAGS)" \
24578 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24579 LIBCFLAGS="$(LIBCFLAGS)" \
24580 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24581 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24582 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24583 $(EXTRA_HOST_FLAGS) \
24584 $(STAGE1_FLAGS_TO_PASS) \
05a13254 24585 TFLAGS="$(STAGE1_TFLAGS)" \
016a3251
DD
24586 $(TARGET-stage1-libiconv)
24587
24588maybe-clean-stage1-libiconv: clean-stage1-libiconv
24589clean-stage1: clean-stage1-libiconv
24590clean-stage1-libiconv:
24591 @if [ $(current_stage) = stage1 ]; then \
24592 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24593 else \
24594 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24595 $(MAKE) stage1-start; \
24596 fi; \
24597 cd $(HOST_SUBDIR)/libiconv && \
24598 $(MAKE) $(EXTRA_HOST_FLAGS) \
24599 $(STAGE1_FLAGS_TO_PASS) clean
24600@endif libiconv-bootstrap
24601
24602
24603.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24604.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24605maybe-all-stage2-libiconv:
24606maybe-clean-stage2-libiconv:
24607@if libiconv-bootstrap
24608maybe-all-stage2-libiconv: all-stage2-libiconv
24609all-stage2: all-stage2-libiconv
24610TARGET-stage2-libiconv = $(TARGET-libiconv)
24611all-stage2-libiconv: configure-stage2-libiconv
24612 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24613 @r=`${PWD_COMMAND}`; export r; \
24614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24615 TFLAGS="$(STAGE2_TFLAGS)"; \
24616 $(HOST_EXPORTS) \
24617 $(POSTSTAGE1_HOST_EXPORTS) \
24618 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24619 \
016a3251
DD
24620 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24621 CFLAGS="$(STAGE2_CFLAGS)" \
24622 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24623 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24624 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24625 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24626 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24627 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24628 TFLAGS="$(STAGE2_TFLAGS)" \
016a3251
DD
24629 $(TARGET-stage2-libiconv)
24630
24631maybe-clean-stage2-libiconv: clean-stage2-libiconv
24632clean-stage2: clean-stage2-libiconv
24633clean-stage2-libiconv:
24634 @if [ $(current_stage) = stage2 ]; then \
24635 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24636 else \
24637 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24638 $(MAKE) stage2-start; \
24639 fi; \
24640 cd $(HOST_SUBDIR)/libiconv && \
24641 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24642@endif libiconv-bootstrap
24643
24644
24645.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24646.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24647maybe-all-stage3-libiconv:
24648maybe-clean-stage3-libiconv:
24649@if libiconv-bootstrap
24650maybe-all-stage3-libiconv: all-stage3-libiconv
24651all-stage3: all-stage3-libiconv
24652TARGET-stage3-libiconv = $(TARGET-libiconv)
24653all-stage3-libiconv: configure-stage3-libiconv
24654 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24655 @r=`${PWD_COMMAND}`; export r; \
24656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24657 TFLAGS="$(STAGE3_TFLAGS)"; \
24658 $(HOST_EXPORTS) \
24659 $(POSTSTAGE1_HOST_EXPORTS) \
24660 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24661 \
016a3251
DD
24662 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24663 CFLAGS="$(STAGE3_CFLAGS)" \
24664 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24665 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24666 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24667 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24668 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24669 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24670 TFLAGS="$(STAGE3_TFLAGS)" \
016a3251
DD
24671 $(TARGET-stage3-libiconv)
24672
24673maybe-clean-stage3-libiconv: clean-stage3-libiconv
24674clean-stage3: clean-stage3-libiconv
24675clean-stage3-libiconv:
24676 @if [ $(current_stage) = stage3 ]; then \
24677 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24678 else \
24679 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24680 $(MAKE) stage3-start; \
24681 fi; \
24682 cd $(HOST_SUBDIR)/libiconv && \
24683 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24684@endif libiconv-bootstrap
24685
24686
24687.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24688.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24689maybe-all-stage4-libiconv:
24690maybe-clean-stage4-libiconv:
24691@if libiconv-bootstrap
24692maybe-all-stage4-libiconv: all-stage4-libiconv
24693all-stage4: all-stage4-libiconv
24694TARGET-stage4-libiconv = $(TARGET-libiconv)
24695all-stage4-libiconv: configure-stage4-libiconv
24696 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24697 @r=`${PWD_COMMAND}`; export r; \
24698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24699 TFLAGS="$(STAGE4_TFLAGS)"; \
24700 $(HOST_EXPORTS) \
24701 $(POSTSTAGE1_HOST_EXPORTS) \
24702 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24703 \
016a3251
DD
24704 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24705 CFLAGS="$(STAGE4_CFLAGS)" \
24706 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24707 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24708 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24709 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24710 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24711 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24712 TFLAGS="$(STAGE4_TFLAGS)" \
016a3251
DD
24713 $(TARGET-stage4-libiconv)
24714
24715maybe-clean-stage4-libiconv: clean-stage4-libiconv
24716clean-stage4: clean-stage4-libiconv
24717clean-stage4-libiconv:
24718 @if [ $(current_stage) = stage4 ]; then \
24719 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24720 else \
24721 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24722 $(MAKE) stage4-start; \
24723 fi; \
24724 cd $(HOST_SUBDIR)/libiconv && \
24725 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24726@endif libiconv-bootstrap
24727
24728
24729.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24730.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24731maybe-all-stageprofile-libiconv:
24732maybe-clean-stageprofile-libiconv:
24733@if libiconv-bootstrap
24734maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24735all-stageprofile: all-stageprofile-libiconv
24736TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24737all-stageprofile-libiconv: configure-stageprofile-libiconv
24738 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24739 @r=`${PWD_COMMAND}`; export r; \
24740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24741 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24742 $(HOST_EXPORTS) \
24743 $(POSTSTAGE1_HOST_EXPORTS) \
24744 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24745 \
016a3251
DD
24746 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24747 CFLAGS="$(STAGEprofile_CFLAGS)" \
24748 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24749 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24750 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24751 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24752 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24753 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24754 TFLAGS="$(STAGEprofile_TFLAGS)" \
016a3251
DD
24755 $(TARGET-stageprofile-libiconv)
24756
24757maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24758clean-stageprofile: clean-stageprofile-libiconv
24759clean-stageprofile-libiconv:
24760 @if [ $(current_stage) = stageprofile ]; then \
24761 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24762 else \
24763 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24764 $(MAKE) stageprofile-start; \
24765 fi; \
24766 cd $(HOST_SUBDIR)/libiconv && \
24767 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24768@endif libiconv-bootstrap
24769
24770
24771.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24772.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24773maybe-all-stagefeedback-libiconv:
24774maybe-clean-stagefeedback-libiconv:
24775@if libiconv-bootstrap
24776maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24777all-stagefeedback: all-stagefeedback-libiconv
24778TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24779all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24780 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24781 @r=`${PWD_COMMAND}`; export r; \
24782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24783 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24784 $(HOST_EXPORTS) \
24785 $(POSTSTAGE1_HOST_EXPORTS) \
24786 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24787 \
016a3251
DD
24788 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24789 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24790 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24791 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24792 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24793 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24794 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24795 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24796 TFLAGS="$(STAGEfeedback_TFLAGS)" \
016a3251
DD
24797 $(TARGET-stagefeedback-libiconv)
24798
24799maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24800clean-stagefeedback: clean-stagefeedback-libiconv
24801clean-stagefeedback-libiconv:
24802 @if [ $(current_stage) = stagefeedback ]; then \
24803 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24804 else \
24805 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24806 $(MAKE) stagefeedback-start; \
24807 fi; \
24808 cd $(HOST_SUBDIR)/libiconv && \
24809 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24810@endif libiconv-bootstrap
24811
24812
24813
24814
d545f33b 24815
a90ef4bf
JM
24816.PHONY: check-libiconv maybe-check-libiconv
24817maybe-check-libiconv:
24818@if libiconv
24819maybe-check-libiconv: check-libiconv
2a4cbe27 24820
a90ef4bf 24821check-libiconv:
0aed8855 24822 @: $(MAKE); $(unstage)
4fa63067 24823 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24825 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24826 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24827 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24828
a90ef4bf 24829@endif libiconv
4fa63067 24830
a90ef4bf
JM
24831.PHONY: install-libiconv maybe-install-libiconv
24832maybe-install-libiconv:
24833@if libiconv
24834maybe-install-libiconv: install-libiconv
2a4cbe27 24835
a90ef4bf 24836install-libiconv:
2a4cbe27 24837
a90ef4bf 24838@endif libiconv
9b980aa1 24839
a90ef4bf
JM
24840.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24841maybe-install-strip-libiconv:
24842@if libiconv
24843maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24844
a90ef4bf
JM
24845install-strip-libiconv:
24846
24847@endif libiconv
9b980aa1 24848
56a8fe78 24849# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24850
a90ef4bf
JM
24851.PHONY: maybe-info-libiconv info-libiconv
24852maybe-info-libiconv:
24853@if libiconv
24854maybe-info-libiconv: info-libiconv
4fa63067 24855
016a3251
DD
24856# libiconv doesn't support info.
24857info-libiconv:
2a4cbe27 24858
a90ef4bf 24859@endif libiconv
2a4cbe27 24860
a90ef4bf
JM
24861.PHONY: maybe-dvi-libiconv dvi-libiconv
24862maybe-dvi-libiconv:
24863@if libiconv
24864maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24865
a90ef4bf
JM
24866dvi-libiconv: \
24867 configure-libiconv
a90ef4bf 24868 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24869 r=`${PWD_COMMAND}`; export r; \
24870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24871 $(HOST_EXPORTS) \
b813574b 24872 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24874 done; \
22121df0 24875 echo "Doing dvi in libiconv"; \
a90ef4bf 24876 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24879 "RANLIB=$${RANLIB}" \
0c24b341 24880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24881 dvi) \
2a4cbe27
NN
24882 || exit 1
24883
a90ef4bf 24884@endif libiconv
2a4cbe27 24885
a90ef4bf
JM
24886.PHONY: maybe-pdf-libiconv pdf-libiconv
24887maybe-pdf-libiconv:
24888@if libiconv
24889maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24890
016a3251
DD
24891# libiconv doesn't support pdf.
24892pdf-libiconv:
56a8fe78 24893
a90ef4bf 24894@endif libiconv
56a8fe78 24895
a90ef4bf
JM
24896.PHONY: maybe-html-libiconv html-libiconv
24897maybe-html-libiconv:
24898@if libiconv
24899maybe-html-libiconv: html-libiconv
6d389afc 24900
016a3251
DD
24901# libiconv doesn't support html.
24902html-libiconv:
6d389afc 24903
a90ef4bf 24904@endif libiconv
6d389afc 24905
a90ef4bf
JM
24906.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24907maybe-TAGS-libiconv:
24908@if libiconv
24909maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24910
a90ef4bf
JM
24911TAGS-libiconv: \
24912 configure-libiconv
a90ef4bf 24913 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24914 r=`${PWD_COMMAND}`; export r; \
24915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24916 $(HOST_EXPORTS) \
b813574b 24917 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24919 done; \
22121df0 24920 echo "Doing TAGS in libiconv"; \
a90ef4bf 24921 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24924 "RANLIB=$${RANLIB}" \
0c24b341 24925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24926 TAGS) \
2a4cbe27
NN
24927 || exit 1
24928
a90ef4bf 24929@endif libiconv
2a4cbe27 24930
a90ef4bf
JM
24931.PHONY: maybe-install-info-libiconv install-info-libiconv
24932maybe-install-info-libiconv:
24933@if libiconv
24934maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24935
a90ef4bf
JM
24936# libiconv doesn't support install-info.
24937install-info-libiconv:
2a4cbe27 24938
a90ef4bf 24939@endif libiconv
2a4cbe27 24940
a90ef4bf
JM
24941.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24942maybe-install-pdf-libiconv:
24943@if libiconv
24944maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24945
a90ef4bf
JM
24946# libiconv doesn't support install-pdf.
24947install-pdf-libiconv:
a3ca38d2 24948
a90ef4bf 24949@endif libiconv
a3ca38d2 24950
a90ef4bf
JM
24951.PHONY: maybe-install-html-libiconv install-html-libiconv
24952maybe-install-html-libiconv:
24953@if libiconv
24954maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24955
a90ef4bf
JM
24956# libiconv doesn't support install-html.
24957install-html-libiconv:
108a6f8e 24958
a90ef4bf 24959@endif libiconv
108a6f8e 24960
a90ef4bf
JM
24961.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24962maybe-installcheck-libiconv:
24963@if libiconv
24964maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24965
a90ef4bf
JM
24966installcheck-libiconv: \
24967 configure-libiconv
a90ef4bf 24968 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24969 r=`${PWD_COMMAND}`; export r; \
24970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24971 $(HOST_EXPORTS) \
b813574b 24972 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24974 done; \
22121df0 24975 echo "Doing installcheck in libiconv"; \
a90ef4bf 24976 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24979 "RANLIB=$${RANLIB}" \
0c24b341 24980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24981 installcheck) \
2a4cbe27
NN
24982 || exit 1
24983
a90ef4bf 24984@endif libiconv
2a4cbe27 24985
a90ef4bf
JM
24986.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24987maybe-mostlyclean-libiconv:
24988@if libiconv
24989maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24990
a90ef4bf 24991mostlyclean-libiconv:
a90ef4bf 24992 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24993 r=`${PWD_COMMAND}`; export r; \
24994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24995 $(HOST_EXPORTS) \
b813574b 24996 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24998 done; \
22121df0 24999 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 25000 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25003 "RANLIB=$${RANLIB}" \
0c24b341 25004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25005 mostlyclean) \
2a4cbe27
NN
25006 || exit 1
25007
a90ef4bf 25008@endif libiconv
2a4cbe27 25009
a90ef4bf
JM
25010.PHONY: maybe-clean-libiconv clean-libiconv
25011maybe-clean-libiconv:
25012@if libiconv
25013maybe-clean-libiconv: clean-libiconv
2a4cbe27 25014
a90ef4bf 25015clean-libiconv:
a90ef4bf 25016 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25017 r=`${PWD_COMMAND}`; export r; \
25018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25019 $(HOST_EXPORTS) \
b813574b 25020 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25022 done; \
22121df0 25023 echo "Doing clean in libiconv"; \
a90ef4bf 25024 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25027 "RANLIB=$${RANLIB}" \
0c24b341 25028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25029 clean) \
2a4cbe27
NN
25030 || exit 1
25031
a90ef4bf 25032@endif libiconv
2a4cbe27 25033
a90ef4bf
JM
25034.PHONY: maybe-distclean-libiconv distclean-libiconv
25035maybe-distclean-libiconv:
25036@if libiconv
25037maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 25038
a90ef4bf 25039distclean-libiconv:
a90ef4bf 25040 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25041 r=`${PWD_COMMAND}`; export r; \
25042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25043 $(HOST_EXPORTS) \
b813574b 25044 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25046 done; \
22121df0 25047 echo "Doing distclean in libiconv"; \
a90ef4bf 25048 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25051 "RANLIB=$${RANLIB}" \
0c24b341 25052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25053 distclean) \
2a4cbe27
NN
25054 || exit 1
25055
a90ef4bf 25056@endif libiconv
2a4cbe27 25057
a90ef4bf
JM
25058.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
25059maybe-maintainer-clean-libiconv:
25060@if libiconv
25061maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 25062
a90ef4bf 25063maintainer-clean-libiconv:
a90ef4bf 25064 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25065 r=`${PWD_COMMAND}`; export r; \
25066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25067 $(HOST_EXPORTS) \
b813574b 25068 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25070 done; \
22121df0 25071 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 25072 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25075 "RANLIB=$${RANLIB}" \
0c24b341 25076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25077 maintainer-clean) \
2a4cbe27
NN
25078 || exit 1
25079
a90ef4bf 25080@endif libiconv
2a4cbe27 25081
2a4cbe27 25082
a7254363 25083
a90ef4bf
JM
25084.PHONY: configure-m4 maybe-configure-m4
25085maybe-configure-m4:
4f0ef2d8 25086@if gcc-bootstrap
a90ef4bf 25087configure-m4: stage_current
4f0ef2d8 25088@endif gcc-bootstrap
a90ef4bf
JM
25089@if m4
25090maybe-configure-m4: configure-m4
25091configure-m4:
0aed8855 25092 @: $(MAKE); $(unstage)
c52c6897 25093 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25095 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 25096 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 25097 $(HOST_EXPORTS) \
a90ef4bf
JM
25098 echo Configuring in $(HOST_SUBDIR)/m4; \
25099 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 25100 case $(srcdir) in \
b00612cc 25101 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25102 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 25103 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25104 esac; \
1b6c0831
L
25105 module_srcdir=m4; \
25106 $(SHELL) \
25107 $$s/$$module_srcdir/configure \
25108 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25109 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25110 --target=${target_alias} \
2a4cbe27 25111 || exit 1
a90ef4bf 25112@endif m4
2a4cbe27 25113
a7254363
PB
25114
25115
d545f33b
PB
25116
25117
a90ef4bf
JM
25118.PHONY: all-m4 maybe-all-m4
25119maybe-all-m4:
4f0ef2d8 25120@if gcc-bootstrap
a90ef4bf 25121all-m4: stage_current
4f0ef2d8 25122@endif gcc-bootstrap
a90ef4bf
JM
25123@if m4
25124TARGET-m4=all
25125maybe-all-m4: all-m4
25126all-m4: configure-m4
0aed8855 25127 @: $(MAKE); $(unstage)
4fa63067
NN
25128 @r=`${PWD_COMMAND}`; export r; \
25129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25130 $(HOST_EXPORTS) \
a90ef4bf 25131 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 25132 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25133 $(TARGET-m4))
25134@endif m4
2a4cbe27 25135
a7254363 25136
d545f33b
PB
25137
25138
a90ef4bf
JM
25139.PHONY: check-m4 maybe-check-m4
25140maybe-check-m4:
25141@if m4
25142maybe-check-m4: check-m4
2a4cbe27 25143
a90ef4bf 25144check-m4:
0aed8855 25145 @: $(MAKE); $(unstage)
4fa63067 25146 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25148 $(HOST_EXPORTS) \
a90ef4bf 25149 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 25150 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25151
a90ef4bf 25152@endif m4
2a4cbe27 25153
a90ef4bf
JM
25154.PHONY: install-m4 maybe-install-m4
25155maybe-install-m4:
25156@if m4
25157maybe-install-m4: install-m4
2a4cbe27 25158
a90ef4bf 25159install-m4: installdirs
0aed8855 25160 @: $(MAKE); $(unstage)
4fa63067 25161 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25163 $(HOST_EXPORTS) \
a90ef4bf 25164 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 25165 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25166
a90ef4bf 25167@endif m4
2a4cbe27 25168
a90ef4bf
JM
25169.PHONY: install-strip-m4 maybe-install-strip-m4
25170maybe-install-strip-m4:
25171@if m4
25172maybe-install-strip-m4: install-strip-m4
9b980aa1 25173
a90ef4bf 25174install-strip-m4: installdirs
9b980aa1
RW
25175 @: $(MAKE); $(unstage)
25176 @r=`${PWD_COMMAND}`; export r; \
25177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25178 $(HOST_EXPORTS) \
a90ef4bf 25179 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25180 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25181
a90ef4bf 25182@endif m4
9b980aa1 25183
56a8fe78 25184# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25185
a90ef4bf
JM
25186.PHONY: maybe-info-m4 info-m4
25187maybe-info-m4:
25188@if m4
25189maybe-info-m4: info-m4
4fa63067 25190
a90ef4bf
JM
25191info-m4: \
25192 configure-m4
0aed8855 25193 @: $(MAKE); $(unstage)
a90ef4bf 25194 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25195 r=`${PWD_COMMAND}`; export r; \
25196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25197 $(HOST_EXPORTS) \
b813574b 25198 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25200 done; \
22121df0 25201 echo "Doing info in m4"; \
a90ef4bf 25202 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25205 "RANLIB=$${RANLIB}" \
0c24b341 25206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25207 info) \
2a4cbe27
NN
25208 || exit 1
25209
a90ef4bf 25210@endif m4
2a4cbe27 25211
a90ef4bf
JM
25212.PHONY: maybe-dvi-m4 dvi-m4
25213maybe-dvi-m4:
25214@if m4
25215maybe-dvi-m4: dvi-m4
2a4cbe27 25216
a90ef4bf
JM
25217dvi-m4: \
25218 configure-m4
0aed8855 25219 @: $(MAKE); $(unstage)
a90ef4bf 25220 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25221 r=`${PWD_COMMAND}`; export r; \
25222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25223 $(HOST_EXPORTS) \
b813574b 25224 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25226 done; \
22121df0 25227 echo "Doing dvi in m4"; \
a90ef4bf 25228 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25231 "RANLIB=$${RANLIB}" \
0c24b341 25232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25233 dvi) \
2a4cbe27
NN
25234 || exit 1
25235
a90ef4bf 25236@endif m4
2a4cbe27 25237
a90ef4bf
JM
25238.PHONY: maybe-pdf-m4 pdf-m4
25239maybe-pdf-m4:
25240@if m4
25241maybe-pdf-m4: pdf-m4
56a8fe78 25242
a90ef4bf
JM
25243pdf-m4: \
25244 configure-m4
56a8fe78 25245 @: $(MAKE); $(unstage)
a90ef4bf 25246 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25247 r=`${PWD_COMMAND}`; export r; \
25248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25249 $(HOST_EXPORTS) \
25250 for flag in $(EXTRA_HOST_FLAGS) ; do \
25251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25252 done; \
22121df0 25253 echo "Doing pdf in m4"; \
a90ef4bf 25254 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25257 "RANLIB=$${RANLIB}" \
0c24b341 25258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25259 pdf) \
25260 || exit 1
25261
a90ef4bf 25262@endif m4
56a8fe78 25263
a90ef4bf
JM
25264.PHONY: maybe-html-m4 html-m4
25265maybe-html-m4:
25266@if m4
25267maybe-html-m4: html-m4
6d389afc 25268
a90ef4bf
JM
25269html-m4: \
25270 configure-m4
0aed8855 25271 @: $(MAKE); $(unstage)
a90ef4bf 25272 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25273 r=`${PWD_COMMAND}`; export r; \
25274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25275 $(HOST_EXPORTS) \
25276 for flag in $(EXTRA_HOST_FLAGS) ; do \
25277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25278 done; \
22121df0 25279 echo "Doing html in m4"; \
a90ef4bf 25280 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25283 "RANLIB=$${RANLIB}" \
0c24b341 25284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25285 html) \
25286 || exit 1
25287
a90ef4bf 25288@endif m4
6d389afc 25289
a90ef4bf
JM
25290.PHONY: maybe-TAGS-m4 TAGS-m4
25291maybe-TAGS-m4:
25292@if m4
25293maybe-TAGS-m4: TAGS-m4
2a4cbe27 25294
a90ef4bf
JM
25295TAGS-m4: \
25296 configure-m4
0aed8855 25297 @: $(MAKE); $(unstage)
a90ef4bf 25298 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25299 r=`${PWD_COMMAND}`; export r; \
25300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25301 $(HOST_EXPORTS) \
b813574b 25302 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25304 done; \
22121df0 25305 echo "Doing TAGS in m4"; \
a90ef4bf 25306 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25309 "RANLIB=$${RANLIB}" \
0c24b341 25310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25311 TAGS) \
2a4cbe27
NN
25312 || exit 1
25313
a90ef4bf 25314@endif m4
2a4cbe27 25315
a90ef4bf
JM
25316.PHONY: maybe-install-info-m4 install-info-m4
25317maybe-install-info-m4:
25318@if m4
25319maybe-install-info-m4: install-info-m4
2a4cbe27 25320
a90ef4bf
JM
25321install-info-m4: \
25322 configure-m4 \
25323 info-m4
0aed8855 25324 @: $(MAKE); $(unstage)
a90ef4bf 25325 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25326 r=`${PWD_COMMAND}`; export r; \
25327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25328 $(HOST_EXPORTS) \
b813574b 25329 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25331 done; \
22121df0 25332 echo "Doing install-info in m4"; \
a90ef4bf 25333 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25336 "RANLIB=$${RANLIB}" \
0c24b341 25337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25338 install-info) \
2a4cbe27
NN
25339 || exit 1
25340
a90ef4bf 25341@endif m4
2a4cbe27 25342
a90ef4bf
JM
25343.PHONY: maybe-install-pdf-m4 install-pdf-m4
25344maybe-install-pdf-m4:
25345@if m4
25346maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25347
a90ef4bf
JM
25348install-pdf-m4: \
25349 configure-m4 \
25350 pdf-m4
a3ca38d2 25351 @: $(MAKE); $(unstage)
a90ef4bf 25352 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25353 r=`${PWD_COMMAND}`; export r; \
25354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25355 $(HOST_EXPORTS) \
25356 for flag in $(EXTRA_HOST_FLAGS) ; do \
25357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25358 done; \
22121df0 25359 echo "Doing install-pdf in m4"; \
a90ef4bf 25360 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25363 "RANLIB=$${RANLIB}" \
0c24b341 25364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25365 install-pdf) \
25366 || exit 1
25367
a90ef4bf 25368@endif m4
a3ca38d2 25369
a90ef4bf
JM
25370.PHONY: maybe-install-html-m4 install-html-m4
25371maybe-install-html-m4:
25372@if m4
25373maybe-install-html-m4: install-html-m4
108a6f8e 25374
a90ef4bf
JM
25375install-html-m4: \
25376 configure-m4 \
25377 html-m4
108a6f8e 25378 @: $(MAKE); $(unstage)
a90ef4bf 25379 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25380 r=`${PWD_COMMAND}`; export r; \
25381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25382 $(HOST_EXPORTS) \
25383 for flag in $(EXTRA_HOST_FLAGS) ; do \
25384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25385 done; \
22121df0 25386 echo "Doing install-html in m4"; \
a90ef4bf 25387 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25390 "RANLIB=$${RANLIB}" \
0c24b341 25391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25392 install-html) \
25393 || exit 1
25394
a90ef4bf 25395@endif m4
108a6f8e 25396
a90ef4bf
JM
25397.PHONY: maybe-installcheck-m4 installcheck-m4
25398maybe-installcheck-m4:
25399@if m4
25400maybe-installcheck-m4: installcheck-m4
2a4cbe27 25401
a90ef4bf
JM
25402installcheck-m4: \
25403 configure-m4
0aed8855 25404 @: $(MAKE); $(unstage)
a90ef4bf 25405 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25406 r=`${PWD_COMMAND}`; export r; \
25407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25408 $(HOST_EXPORTS) \
b813574b 25409 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25411 done; \
22121df0 25412 echo "Doing installcheck in m4"; \
a90ef4bf 25413 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25416 "RANLIB=$${RANLIB}" \
0c24b341 25417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25418 installcheck) \
2a4cbe27
NN
25419 || exit 1
25420
a90ef4bf 25421@endif m4
2a4cbe27 25422
a90ef4bf
JM
25423.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25424maybe-mostlyclean-m4:
25425@if m4
25426maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25427
a90ef4bf 25428mostlyclean-m4:
0aed8855 25429 @: $(MAKE); $(unstage)
a90ef4bf 25430 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25431 r=`${PWD_COMMAND}`; export r; \
25432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25433 $(HOST_EXPORTS) \
b813574b 25434 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25436 done; \
22121df0 25437 echo "Doing mostlyclean in m4"; \
a90ef4bf 25438 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25441 "RANLIB=$${RANLIB}" \
0c24b341 25442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25443 mostlyclean) \
2a4cbe27
NN
25444 || exit 1
25445
a90ef4bf 25446@endif m4
2a4cbe27 25447
a90ef4bf
JM
25448.PHONY: maybe-clean-m4 clean-m4
25449maybe-clean-m4:
25450@if m4
25451maybe-clean-m4: clean-m4
2a4cbe27 25452
a90ef4bf 25453clean-m4:
0aed8855 25454 @: $(MAKE); $(unstage)
a90ef4bf 25455 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25456 r=`${PWD_COMMAND}`; export r; \
25457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25458 $(HOST_EXPORTS) \
b813574b 25459 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25461 done; \
22121df0 25462 echo "Doing clean in m4"; \
a90ef4bf 25463 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25466 "RANLIB=$${RANLIB}" \
0c24b341 25467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25468 clean) \
2a4cbe27
NN
25469 || exit 1
25470
a90ef4bf 25471@endif m4
2a4cbe27 25472
a90ef4bf
JM
25473.PHONY: maybe-distclean-m4 distclean-m4
25474maybe-distclean-m4:
25475@if m4
25476maybe-distclean-m4: distclean-m4
2a4cbe27 25477
a90ef4bf 25478distclean-m4:
0aed8855 25479 @: $(MAKE); $(unstage)
a90ef4bf 25480 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25481 r=`${PWD_COMMAND}`; export r; \
25482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25483 $(HOST_EXPORTS) \
b813574b 25484 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25486 done; \
22121df0 25487 echo "Doing distclean in m4"; \
a90ef4bf 25488 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25491 "RANLIB=$${RANLIB}" \
0c24b341 25492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25493 distclean) \
2a4cbe27
NN
25494 || exit 1
25495
a90ef4bf 25496@endif m4
2a4cbe27 25497
a90ef4bf
JM
25498.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25499maybe-maintainer-clean-m4:
25500@if m4
25501maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25502
a90ef4bf 25503maintainer-clean-m4:
0aed8855 25504 @: $(MAKE); $(unstage)
a90ef4bf 25505 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25506 r=`${PWD_COMMAND}`; export r; \
25507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25508 $(HOST_EXPORTS) \
b813574b 25509 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25511 done; \
22121df0 25512 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25513 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25516 "RANLIB=$${RANLIB}" \
0c24b341 25517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25518 maintainer-clean) \
2a4cbe27
NN
25519 || exit 1
25520
a90ef4bf 25521@endif m4
2a4cbe27 25522
2a4cbe27 25523
a7254363 25524
a90ef4bf
JM
25525.PHONY: configure-readline maybe-configure-readline
25526maybe-configure-readline:
4f0ef2d8 25527@if gcc-bootstrap
a90ef4bf 25528configure-readline: stage_current
4f0ef2d8 25529@endif gcc-bootstrap
a90ef4bf
JM
25530@if readline
25531maybe-configure-readline: configure-readline
25532configure-readline:
0aed8855 25533 @: $(MAKE); $(unstage)
c52c6897 25534 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25536 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25537 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25538 $(HOST_EXPORTS) \
a90ef4bf
JM
25539 echo Configuring in $(HOST_SUBDIR)/readline; \
25540 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25541 case $(srcdir) in \
b00612cc 25542 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25543 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25544 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25545 esac; \
1b6c0831
L
25546 module_srcdir=readline; \
25547 $(SHELL) \
25548 $$s/$$module_srcdir/configure \
25549 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25550 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25551 --target=${target_alias} \
2a4cbe27 25552 || exit 1
a90ef4bf 25553@endif readline
2a4cbe27 25554
a7254363
PB
25555
25556
d545f33b
PB
25557
25558
a90ef4bf
JM
25559.PHONY: all-readline maybe-all-readline
25560maybe-all-readline:
4f0ef2d8 25561@if gcc-bootstrap
a90ef4bf 25562all-readline: stage_current
4f0ef2d8 25563@endif gcc-bootstrap
a90ef4bf
JM
25564@if readline
25565TARGET-readline=all
25566maybe-all-readline: all-readline
25567all-readline: configure-readline
0aed8855 25568 @: $(MAKE); $(unstage)
4fa63067
NN
25569 @r=`${PWD_COMMAND}`; export r; \
25570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25571 $(HOST_EXPORTS) \
a90ef4bf 25572 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25573 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25574 $(TARGET-readline))
25575@endif readline
2a4cbe27 25576
a7254363 25577
d545f33b
PB
25578
25579
a90ef4bf
JM
25580.PHONY: check-readline maybe-check-readline
25581maybe-check-readline:
25582@if readline
25583maybe-check-readline: check-readline
2a4cbe27 25584
a90ef4bf 25585check-readline:
0aed8855 25586 @: $(MAKE); $(unstage)
4fa63067 25587 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25589 $(HOST_EXPORTS) \
a90ef4bf 25590 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25591 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25592
a90ef4bf 25593@endif readline
2a4cbe27 25594
a90ef4bf
JM
25595.PHONY: install-readline maybe-install-readline
25596maybe-install-readline:
25597@if readline
25598maybe-install-readline: install-readline
2a4cbe27 25599
a90ef4bf 25600install-readline: installdirs
0aed8855 25601 @: $(MAKE); $(unstage)
4fa63067
NN
25602 @r=`${PWD_COMMAND}`; export r; \
25603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25604 $(HOST_EXPORTS) \
a90ef4bf 25605 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25606 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25607
a90ef4bf 25608@endif readline
9b980aa1 25609
a90ef4bf
JM
25610.PHONY: install-strip-readline maybe-install-strip-readline
25611maybe-install-strip-readline:
25612@if readline
25613maybe-install-strip-readline: install-strip-readline
25614
25615install-strip-readline: installdirs
9b980aa1
RW
25616 @: $(MAKE); $(unstage)
25617 @r=`${PWD_COMMAND}`; export r; \
25618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25619 $(HOST_EXPORTS) \
a90ef4bf 25620 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25621 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25622
a90ef4bf 25623@endif readline
9b980aa1 25624
56a8fe78 25625# Other targets (info, dvi, pdf, etc.)
4fa63067 25626
a90ef4bf
JM
25627.PHONY: maybe-info-readline info-readline
25628maybe-info-readline:
25629@if readline
25630maybe-info-readline: info-readline
4fa63067 25631
a90ef4bf
JM
25632info-readline: \
25633 configure-readline
0aed8855 25634 @: $(MAKE); $(unstage)
a90ef4bf 25635 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25636 r=`${PWD_COMMAND}`; export r; \
25637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25638 $(HOST_EXPORTS) \
b813574b 25639 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25641 done; \
22121df0 25642 echo "Doing info in readline"; \
a90ef4bf 25643 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25646 "RANLIB=$${RANLIB}" \
0c24b341 25647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25648 info) \
2a4cbe27
NN
25649 || exit 1
25650
a90ef4bf 25651@endif readline
2a4cbe27 25652
a90ef4bf
JM
25653.PHONY: maybe-dvi-readline dvi-readline
25654maybe-dvi-readline:
25655@if readline
25656maybe-dvi-readline: dvi-readline
2a4cbe27 25657
a90ef4bf
JM
25658dvi-readline: \
25659 configure-readline
0aed8855 25660 @: $(MAKE); $(unstage)
a90ef4bf 25661 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25662 r=`${PWD_COMMAND}`; export r; \
25663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25664 $(HOST_EXPORTS) \
b813574b 25665 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25667 done; \
22121df0 25668 echo "Doing dvi in readline"; \
a90ef4bf 25669 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25672 "RANLIB=$${RANLIB}" \
0c24b341 25673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25674 dvi) \
2a4cbe27
NN
25675 || exit 1
25676
a90ef4bf 25677@endif readline
2a4cbe27 25678
a90ef4bf
JM
25679.PHONY: maybe-pdf-readline pdf-readline
25680maybe-pdf-readline:
25681@if readline
25682maybe-pdf-readline: pdf-readline
56a8fe78 25683
a90ef4bf
JM
25684pdf-readline: \
25685 configure-readline
56a8fe78 25686 @: $(MAKE); $(unstage)
a90ef4bf 25687 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25688 r=`${PWD_COMMAND}`; export r; \
25689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25690 $(HOST_EXPORTS) \
25691 for flag in $(EXTRA_HOST_FLAGS) ; do \
25692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25693 done; \
22121df0 25694 echo "Doing pdf in readline"; \
a90ef4bf 25695 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25698 "RANLIB=$${RANLIB}" \
0c24b341 25699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25700 pdf) \
25701 || exit 1
25702
a90ef4bf 25703@endif readline
56a8fe78 25704
a90ef4bf
JM
25705.PHONY: maybe-html-readline html-readline
25706maybe-html-readline:
25707@if readline
25708maybe-html-readline: html-readline
6d389afc 25709
a90ef4bf
JM
25710html-readline: \
25711 configure-readline
0aed8855 25712 @: $(MAKE); $(unstage)
a90ef4bf 25713 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25714 r=`${PWD_COMMAND}`; export r; \
25715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25716 $(HOST_EXPORTS) \
25717 for flag in $(EXTRA_HOST_FLAGS) ; do \
25718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25719 done; \
22121df0 25720 echo "Doing html in readline"; \
a90ef4bf 25721 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25724 "RANLIB=$${RANLIB}" \
0c24b341 25725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25726 html) \
25727 || exit 1
25728
a90ef4bf 25729@endif readline
6d389afc 25730
a90ef4bf
JM
25731.PHONY: maybe-TAGS-readline TAGS-readline
25732maybe-TAGS-readline:
25733@if readline
25734maybe-TAGS-readline: TAGS-readline
2a4cbe27 25735
a90ef4bf
JM
25736TAGS-readline: \
25737 configure-readline
0aed8855 25738 @: $(MAKE); $(unstage)
a90ef4bf 25739 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25740 r=`${PWD_COMMAND}`; export r; \
25741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25742 $(HOST_EXPORTS) \
b813574b 25743 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25745 done; \
22121df0 25746 echo "Doing TAGS in readline"; \
a90ef4bf 25747 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25750 "RANLIB=$${RANLIB}" \
0c24b341 25751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25752 TAGS) \
2a4cbe27
NN
25753 || exit 1
25754
a90ef4bf 25755@endif readline
2a4cbe27 25756
a90ef4bf
JM
25757.PHONY: maybe-install-info-readline install-info-readline
25758maybe-install-info-readline:
25759@if readline
25760maybe-install-info-readline: install-info-readline
2a4cbe27 25761
a90ef4bf
JM
25762install-info-readline: \
25763 configure-readline \
25764 info-readline
0aed8855 25765 @: $(MAKE); $(unstage)
a90ef4bf 25766 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25767 r=`${PWD_COMMAND}`; export r; \
25768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25769 $(HOST_EXPORTS) \
b813574b 25770 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25772 done; \
22121df0 25773 echo "Doing install-info in readline"; \
a90ef4bf 25774 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25777 "RANLIB=$${RANLIB}" \
0c24b341 25778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25779 install-info) \
2a4cbe27
NN
25780 || exit 1
25781
a90ef4bf 25782@endif readline
2a4cbe27 25783
a90ef4bf
JM
25784.PHONY: maybe-install-pdf-readline install-pdf-readline
25785maybe-install-pdf-readline:
25786@if readline
25787maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25788
a90ef4bf
JM
25789install-pdf-readline: \
25790 configure-readline \
25791 pdf-readline
a3ca38d2 25792 @: $(MAKE); $(unstage)
a90ef4bf 25793 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25794 r=`${PWD_COMMAND}`; export r; \
25795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25796 $(HOST_EXPORTS) \
25797 for flag in $(EXTRA_HOST_FLAGS) ; do \
25798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25799 done; \
22121df0 25800 echo "Doing install-pdf in readline"; \
a90ef4bf 25801 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25804 "RANLIB=$${RANLIB}" \
0c24b341 25805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25806 install-pdf) \
25807 || exit 1
25808
a90ef4bf 25809@endif readline
a3ca38d2 25810
a90ef4bf
JM
25811.PHONY: maybe-install-html-readline install-html-readline
25812maybe-install-html-readline:
25813@if readline
25814maybe-install-html-readline: install-html-readline
108a6f8e 25815
a90ef4bf
JM
25816install-html-readline: \
25817 configure-readline \
25818 html-readline
108a6f8e 25819 @: $(MAKE); $(unstage)
a90ef4bf 25820 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25821 r=`${PWD_COMMAND}`; export r; \
25822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25823 $(HOST_EXPORTS) \
25824 for flag in $(EXTRA_HOST_FLAGS) ; do \
25825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25826 done; \
22121df0 25827 echo "Doing install-html in readline"; \
a90ef4bf 25828 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25831 "RANLIB=$${RANLIB}" \
0c24b341 25832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25833 install-html) \
25834 || exit 1
25835
a90ef4bf 25836@endif readline
108a6f8e 25837
a90ef4bf
JM
25838.PHONY: maybe-installcheck-readline installcheck-readline
25839maybe-installcheck-readline:
25840@if readline
25841maybe-installcheck-readline: installcheck-readline
2a4cbe27 25842
a90ef4bf
JM
25843installcheck-readline: \
25844 configure-readline
0aed8855 25845 @: $(MAKE); $(unstage)
a90ef4bf 25846 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25847 r=`${PWD_COMMAND}`; export r; \
25848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25849 $(HOST_EXPORTS) \
b813574b 25850 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25852 done; \
22121df0 25853 echo "Doing installcheck in readline"; \
a90ef4bf 25854 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25857 "RANLIB=$${RANLIB}" \
0c24b341 25858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25859 installcheck) \
2a4cbe27
NN
25860 || exit 1
25861
a90ef4bf 25862@endif readline
2a4cbe27 25863
a90ef4bf
JM
25864.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25865maybe-mostlyclean-readline:
25866@if readline
25867maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25868
a90ef4bf 25869mostlyclean-readline:
0aed8855 25870 @: $(MAKE); $(unstage)
a90ef4bf 25871 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25872 r=`${PWD_COMMAND}`; export r; \
25873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25874 $(HOST_EXPORTS) \
b813574b 25875 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25877 done; \
22121df0 25878 echo "Doing mostlyclean in readline"; \
a90ef4bf 25879 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25882 "RANLIB=$${RANLIB}" \
0c24b341 25883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25884 mostlyclean) \
2a4cbe27
NN
25885 || exit 1
25886
a90ef4bf 25887@endif readline
2a4cbe27 25888
a90ef4bf
JM
25889.PHONY: maybe-clean-readline clean-readline
25890maybe-clean-readline:
25891@if readline
25892maybe-clean-readline: clean-readline
2a4cbe27 25893
a90ef4bf 25894clean-readline:
0aed8855 25895 @: $(MAKE); $(unstage)
a90ef4bf 25896 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25897 r=`${PWD_COMMAND}`; export r; \
25898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25899 $(HOST_EXPORTS) \
b813574b 25900 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25902 done; \
22121df0 25903 echo "Doing clean in readline"; \
a90ef4bf 25904 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25907 "RANLIB=$${RANLIB}" \
0c24b341 25908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25909 clean) \
2a4cbe27
NN
25910 || exit 1
25911
a90ef4bf 25912@endif readline
2a4cbe27 25913
a90ef4bf
JM
25914.PHONY: maybe-distclean-readline distclean-readline
25915maybe-distclean-readline:
25916@if readline
25917maybe-distclean-readline: distclean-readline
2a4cbe27 25918
a90ef4bf 25919distclean-readline:
0aed8855 25920 @: $(MAKE); $(unstage)
a90ef4bf 25921 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25922 r=`${PWD_COMMAND}`; export r; \
25923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25924 $(HOST_EXPORTS) \
b813574b 25925 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25927 done; \
22121df0 25928 echo "Doing distclean in readline"; \
a90ef4bf 25929 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25932 "RANLIB=$${RANLIB}" \
0c24b341 25933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25934 distclean) \
2a4cbe27
NN
25935 || exit 1
25936
a90ef4bf 25937@endif readline
2a4cbe27 25938
a90ef4bf
JM
25939.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25940maybe-maintainer-clean-readline:
25941@if readline
25942maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25943
a90ef4bf 25944maintainer-clean-readline:
0aed8855 25945 @: $(MAKE); $(unstage)
a90ef4bf 25946 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25947 r=`${PWD_COMMAND}`; export r; \
25948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25949 $(HOST_EXPORTS) \
b813574b 25950 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25952 done; \
22121df0 25953 echo "Doing maintainer-clean in readline"; \
a90ef4bf 25954 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25957 "RANLIB=$${RANLIB}" \
0c24b341 25958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25959 maintainer-clean) \
2a4cbe27
NN
25960 || exit 1
25961
a90ef4bf 25962@endif readline
2a4cbe27 25963
2a4cbe27 25964
a7254363 25965
a90ef4bf
JM
25966.PHONY: configure-sid maybe-configure-sid
25967maybe-configure-sid:
4f0ef2d8 25968@if gcc-bootstrap
a90ef4bf 25969configure-sid: stage_current
4f0ef2d8 25970@endif gcc-bootstrap
a90ef4bf
JM
25971@if sid
25972maybe-configure-sid: configure-sid
25973configure-sid:
0aed8855 25974 @: $(MAKE); $(unstage)
c52c6897 25975 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25977 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 25978 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 25979 $(HOST_EXPORTS) \
a90ef4bf
JM
25980 echo Configuring in $(HOST_SUBDIR)/sid; \
25981 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25982 case $(srcdir) in \
b00612cc 25983 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25984 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25985 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25986 esac; \
1b6c0831
L
25987 module_srcdir=sid; \
25988 $(SHELL) \
25989 $$s/$$module_srcdir/configure \
25990 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25991 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25992 --target=${target_alias} \
4fa63067 25993 || exit 1
a90ef4bf 25994@endif sid
2a4cbe27 25995
a7254363
PB
25996
25997
d545f33b
PB
25998
25999
a90ef4bf
JM
26000.PHONY: all-sid maybe-all-sid
26001maybe-all-sid:
4f0ef2d8 26002@if gcc-bootstrap
a90ef4bf 26003all-sid: stage_current
4f0ef2d8 26004@endif gcc-bootstrap
a90ef4bf
JM
26005@if sid
26006TARGET-sid=all
26007maybe-all-sid: all-sid
26008all-sid: configure-sid
0aed8855 26009 @: $(MAKE); $(unstage)
4fa63067
NN
26010 @r=`${PWD_COMMAND}`; export r; \
26011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26012 $(HOST_EXPORTS) \
a90ef4bf 26013 (cd $(HOST_SUBDIR)/sid && \
b3676d82 26014 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26015 $(TARGET-sid))
26016@endif sid
2a4cbe27 26017
a7254363 26018
d545f33b
PB
26019
26020
a90ef4bf
JM
26021.PHONY: check-sid maybe-check-sid
26022maybe-check-sid:
26023@if sid
26024maybe-check-sid: check-sid
2a4cbe27 26025
a90ef4bf 26026check-sid:
0aed8855 26027 @: $(MAKE); $(unstage)
4fa63067 26028 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26030 $(HOST_EXPORTS) \
a90ef4bf 26031 (cd $(HOST_SUBDIR)/sid && \
b00612cc 26032 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26033
a90ef4bf 26034@endif sid
2a4cbe27 26035
a90ef4bf
JM
26036.PHONY: install-sid maybe-install-sid
26037maybe-install-sid:
26038@if sid
26039maybe-install-sid: install-sid
2a4cbe27 26040
a90ef4bf 26041install-sid: installdirs
0aed8855 26042 @: $(MAKE); $(unstage)
4fa63067 26043 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26045 $(HOST_EXPORTS) \
a90ef4bf 26046 (cd $(HOST_SUBDIR)/sid && \
2da12f12 26047 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 26048
a90ef4bf 26049@endif sid
2a4cbe27 26050
a90ef4bf
JM
26051.PHONY: install-strip-sid maybe-install-strip-sid
26052maybe-install-strip-sid:
26053@if sid
26054maybe-install-strip-sid: install-strip-sid
9b980aa1 26055
a90ef4bf 26056install-strip-sid: installdirs
9b980aa1
RW
26057 @: $(MAKE); $(unstage)
26058 @r=`${PWD_COMMAND}`; export r; \
26059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26060 $(HOST_EXPORTS) \
a90ef4bf 26061 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
26062 $(MAKE) $(FLAGS_TO_PASS) install-strip)
26063
a90ef4bf 26064@endif sid
9b980aa1 26065
56a8fe78 26066# Other targets (info, dvi, pdf, etc.)
2a4cbe27 26067
a90ef4bf
JM
26068.PHONY: maybe-info-sid info-sid
26069maybe-info-sid:
26070@if sid
26071maybe-info-sid: info-sid
4fa63067 26072
a90ef4bf
JM
26073info-sid: \
26074 configure-sid
0aed8855 26075 @: $(MAKE); $(unstage)
a90ef4bf 26076 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26077 r=`${PWD_COMMAND}`; export r; \
26078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26079 $(HOST_EXPORTS) \
b813574b 26080 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26082 done; \
22121df0 26083 echo "Doing info in sid"; \
a90ef4bf 26084 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26087 "RANLIB=$${RANLIB}" \
0c24b341 26088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26089 info) \
2a4cbe27
NN
26090 || exit 1
26091
a90ef4bf 26092@endif sid
2a4cbe27 26093
a90ef4bf
JM
26094.PHONY: maybe-dvi-sid dvi-sid
26095maybe-dvi-sid:
26096@if sid
26097maybe-dvi-sid: dvi-sid
2a4cbe27 26098
a90ef4bf
JM
26099dvi-sid: \
26100 configure-sid
0aed8855 26101 @: $(MAKE); $(unstage)
a90ef4bf 26102 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26103 r=`${PWD_COMMAND}`; export r; \
26104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26105 $(HOST_EXPORTS) \
b813574b 26106 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26108 done; \
22121df0 26109 echo "Doing dvi in sid"; \
a90ef4bf 26110 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26113 "RANLIB=$${RANLIB}" \
0c24b341 26114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26115 dvi) \
2a4cbe27
NN
26116 || exit 1
26117
a90ef4bf 26118@endif sid
2a4cbe27 26119
a90ef4bf
JM
26120.PHONY: maybe-pdf-sid pdf-sid
26121maybe-pdf-sid:
26122@if sid
26123maybe-pdf-sid: pdf-sid
56a8fe78 26124
a90ef4bf
JM
26125pdf-sid: \
26126 configure-sid
56a8fe78 26127 @: $(MAKE); $(unstage)
a90ef4bf 26128 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
26129 r=`${PWD_COMMAND}`; export r; \
26130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26131 $(HOST_EXPORTS) \
26132 for flag in $(EXTRA_HOST_FLAGS) ; do \
26133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26134 done; \
22121df0 26135 echo "Doing pdf in sid"; \
a90ef4bf 26136 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
26137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26139 "RANLIB=$${RANLIB}" \
0c24b341 26140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26141 pdf) \
26142 || exit 1
26143
a90ef4bf 26144@endif sid
56a8fe78 26145
a90ef4bf
JM
26146.PHONY: maybe-html-sid html-sid
26147maybe-html-sid:
26148@if sid
26149maybe-html-sid: html-sid
6d389afc 26150
a90ef4bf
JM
26151html-sid: \
26152 configure-sid
0aed8855 26153 @: $(MAKE); $(unstage)
a90ef4bf 26154 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
26155 r=`${PWD_COMMAND}`; export r; \
26156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26157 $(HOST_EXPORTS) \
26158 for flag in $(EXTRA_HOST_FLAGS) ; do \
26159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26160 done; \
22121df0 26161 echo "Doing html in sid"; \
a90ef4bf 26162 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
26163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26165 "RANLIB=$${RANLIB}" \
0c24b341 26166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26167 html) \
26168 || exit 1
26169
a90ef4bf 26170@endif sid
6d389afc 26171
a90ef4bf
JM
26172.PHONY: maybe-TAGS-sid TAGS-sid
26173maybe-TAGS-sid:
26174@if sid
26175maybe-TAGS-sid: TAGS-sid
2a4cbe27 26176
a90ef4bf
JM
26177TAGS-sid: \
26178 configure-sid
0aed8855 26179 @: $(MAKE); $(unstage)
a90ef4bf 26180 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26181 r=`${PWD_COMMAND}`; export r; \
26182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26183 $(HOST_EXPORTS) \
b813574b 26184 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26186 done; \
22121df0 26187 echo "Doing TAGS in sid"; \
a90ef4bf 26188 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26191 "RANLIB=$${RANLIB}" \
0c24b341 26192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26193 TAGS) \
2a4cbe27
NN
26194 || exit 1
26195
a90ef4bf 26196@endif sid
2a4cbe27 26197
a90ef4bf
JM
26198.PHONY: maybe-install-info-sid install-info-sid
26199maybe-install-info-sid:
26200@if sid
26201maybe-install-info-sid: install-info-sid
2a4cbe27 26202
a90ef4bf
JM
26203install-info-sid: \
26204 configure-sid \
26205 info-sid
0aed8855 26206 @: $(MAKE); $(unstage)
a90ef4bf 26207 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26208 r=`${PWD_COMMAND}`; export r; \
26209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26210 $(HOST_EXPORTS) \
b813574b 26211 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26213 done; \
22121df0 26214 echo "Doing install-info in sid"; \
a90ef4bf 26215 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26218 "RANLIB=$${RANLIB}" \
0c24b341 26219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26220 install-info) \
2a4cbe27
NN
26221 || exit 1
26222
a90ef4bf 26223@endif sid
2a4cbe27 26224
a90ef4bf
JM
26225.PHONY: maybe-install-pdf-sid install-pdf-sid
26226maybe-install-pdf-sid:
26227@if sid
26228maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26229
a90ef4bf
JM
26230install-pdf-sid: \
26231 configure-sid \
26232 pdf-sid
a3ca38d2 26233 @: $(MAKE); $(unstage)
a90ef4bf 26234 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26235 r=`${PWD_COMMAND}`; export r; \
26236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26237 $(HOST_EXPORTS) \
26238 for flag in $(EXTRA_HOST_FLAGS) ; do \
26239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26240 done; \
22121df0 26241 echo "Doing install-pdf in sid"; \
a90ef4bf 26242 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26245 "RANLIB=$${RANLIB}" \
0c24b341 26246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26247 install-pdf) \
26248 || exit 1
26249
a90ef4bf 26250@endif sid
a3ca38d2 26251
a90ef4bf
JM
26252.PHONY: maybe-install-html-sid install-html-sid
26253maybe-install-html-sid:
26254@if sid
26255maybe-install-html-sid: install-html-sid
108a6f8e 26256
a90ef4bf
JM
26257install-html-sid: \
26258 configure-sid \
26259 html-sid
108a6f8e 26260 @: $(MAKE); $(unstage)
a90ef4bf 26261 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26262 r=`${PWD_COMMAND}`; export r; \
26263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26264 $(HOST_EXPORTS) \
26265 for flag in $(EXTRA_HOST_FLAGS) ; do \
26266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26267 done; \
22121df0 26268 echo "Doing install-html in sid"; \
a90ef4bf 26269 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26272 "RANLIB=$${RANLIB}" \
0c24b341 26273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26274 install-html) \
26275 || exit 1
26276
a90ef4bf 26277@endif sid
108a6f8e 26278
a90ef4bf
JM
26279.PHONY: maybe-installcheck-sid installcheck-sid
26280maybe-installcheck-sid:
26281@if sid
26282maybe-installcheck-sid: installcheck-sid
2a4cbe27 26283
a90ef4bf
JM
26284installcheck-sid: \
26285 configure-sid
0aed8855 26286 @: $(MAKE); $(unstage)
a90ef4bf 26287 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26288 r=`${PWD_COMMAND}`; export r; \
26289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26290 $(HOST_EXPORTS) \
b813574b 26291 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26293 done; \
22121df0 26294 echo "Doing installcheck in sid"; \
a90ef4bf 26295 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26298 "RANLIB=$${RANLIB}" \
0c24b341 26299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26300 installcheck) \
2a4cbe27
NN
26301 || exit 1
26302
a90ef4bf 26303@endif sid
2a4cbe27 26304
a90ef4bf
JM
26305.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26306maybe-mostlyclean-sid:
26307@if sid
26308maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26309
a90ef4bf 26310mostlyclean-sid:
0aed8855 26311 @: $(MAKE); $(unstage)
a90ef4bf 26312 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26313 r=`${PWD_COMMAND}`; export r; \
26314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26315 $(HOST_EXPORTS) \
b813574b 26316 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26318 done; \
22121df0 26319 echo "Doing mostlyclean in sid"; \
a90ef4bf 26320 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26323 "RANLIB=$${RANLIB}" \
0c24b341 26324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26325 mostlyclean) \
2a4cbe27
NN
26326 || exit 1
26327
a90ef4bf 26328@endif sid
2a4cbe27 26329
a90ef4bf
JM
26330.PHONY: maybe-clean-sid clean-sid
26331maybe-clean-sid:
26332@if sid
26333maybe-clean-sid: clean-sid
2a4cbe27 26334
a90ef4bf 26335clean-sid:
0aed8855 26336 @: $(MAKE); $(unstage)
a90ef4bf 26337 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26338 r=`${PWD_COMMAND}`; export r; \
26339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26340 $(HOST_EXPORTS) \
b813574b 26341 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26343 done; \
22121df0 26344 echo "Doing clean in sid"; \
a90ef4bf 26345 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26348 "RANLIB=$${RANLIB}" \
0c24b341 26349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26350 clean) \
2a4cbe27
NN
26351 || exit 1
26352
a90ef4bf 26353@endif sid
2a4cbe27 26354
a90ef4bf
JM
26355.PHONY: maybe-distclean-sid distclean-sid
26356maybe-distclean-sid:
26357@if sid
26358maybe-distclean-sid: distclean-sid
2a4cbe27 26359
a90ef4bf 26360distclean-sid:
0aed8855 26361 @: $(MAKE); $(unstage)
a90ef4bf 26362 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26363 r=`${PWD_COMMAND}`; export r; \
26364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26365 $(HOST_EXPORTS) \
b813574b 26366 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26368 done; \
22121df0 26369 echo "Doing distclean in sid"; \
a90ef4bf 26370 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26373 "RANLIB=$${RANLIB}" \
0c24b341 26374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26375 distclean) \
2a4cbe27
NN
26376 || exit 1
26377
a90ef4bf 26378@endif sid
2a4cbe27 26379
a90ef4bf
JM
26380.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26381maybe-maintainer-clean-sid:
26382@if sid
26383maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26384
a90ef4bf 26385maintainer-clean-sid:
0aed8855 26386 @: $(MAKE); $(unstage)
a90ef4bf 26387 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26388 r=`${PWD_COMMAND}`; export r; \
26389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26390 $(HOST_EXPORTS) \
b813574b 26391 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26393 done; \
22121df0 26394 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26395 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26398 "RANLIB=$${RANLIB}" \
0c24b341 26399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26400 maintainer-clean) \
2a4cbe27
NN
26401 || exit 1
26402
a90ef4bf 26403@endif sid
2a4cbe27 26404
a2592b1b 26405
a7254363 26406
a90ef4bf
JM
26407.PHONY: configure-sim maybe-configure-sim
26408maybe-configure-sim:
4f0ef2d8 26409@if gcc-bootstrap
a90ef4bf 26410configure-sim: stage_current
4f0ef2d8 26411@endif gcc-bootstrap
a90ef4bf
JM
26412@if sim
26413maybe-configure-sim: configure-sim
26414configure-sim:
26415 @: $(MAKE); $(unstage)
c52c6897
PB
26416 @r=`${PWD_COMMAND}`; export r; \
26417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26418 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26419 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26420 $(HOST_EXPORTS) \
a90ef4bf
JM
26421 echo Configuring in $(HOST_SUBDIR)/sim; \
26422 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26423 case $(srcdir) in \
b00612cc 26424 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26425 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26426 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26427 esac; \
1b6c0831
L
26428 module_srcdir=sim; \
26429 $(SHELL) \
26430 $$s/$$module_srcdir/configure \
26431 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26432 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26433 --target=${target_alias} \
a2592b1b 26434 || exit 1
a90ef4bf 26435@endif sim
a2592b1b 26436
a7254363
PB
26437
26438
a90ef4bf
JM
26439
26440
26441.PHONY: all-sim maybe-all-sim
26442maybe-all-sim:
26443@if gcc-bootstrap
26444all-sim: stage_current
26445@endif gcc-bootstrap
26446@if sim
26447TARGET-sim=all
26448maybe-all-sim: all-sim
26449all-sim: configure-sim
26450 @: $(MAKE); $(unstage)
c52c6897
PB
26451 @r=`${PWD_COMMAND}`; export r; \
26452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26453 $(HOST_EXPORTS) \
26454 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26455 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26456 $(TARGET-sim))
26457@endif sim
d545f33b 26458
a90ef4bf
JM
26459
26460
26461
26462.PHONY: check-sim maybe-check-sim
26463maybe-check-sim:
26464@if sim
26465maybe-check-sim: check-sim
26466
26467check-sim:
26468 @: $(MAKE); $(unstage)
c52c6897
PB
26469 @r=`${PWD_COMMAND}`; export r; \
26470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26471 $(HOST_EXPORTS) \
a90ef4bf
JM
26472 (cd $(HOST_SUBDIR)/sim && \
26473 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26474
a90ef4bf
JM
26475@endif sim
26476
26477.PHONY: install-sim maybe-install-sim
26478maybe-install-sim:
26479@if sim
26480maybe-install-sim: install-sim
26481
26482install-sim: installdirs
26483 @: $(MAKE); $(unstage)
c52c6897
PB
26484 @r=`${PWD_COMMAND}`; export r; \
26485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26486 $(HOST_EXPORTS) \
a90ef4bf
JM
26487 (cd $(HOST_SUBDIR)/sim && \
26488 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26489
a90ef4bf
JM
26490@endif sim
26491
26492.PHONY: install-strip-sim maybe-install-strip-sim
26493maybe-install-strip-sim:
26494@if sim
26495maybe-install-strip-sim: install-strip-sim
26496
26497install-strip-sim: installdirs
26498 @: $(MAKE); $(unstage)
c52c6897
PB
26499 @r=`${PWD_COMMAND}`; export r; \
26500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26501 $(HOST_EXPORTS) \
a90ef4bf
JM
26502 (cd $(HOST_SUBDIR)/sim && \
26503 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26504
a90ef4bf 26505@endif sim
9b980aa1 26506
56a8fe78 26507# Other targets (info, dvi, pdf, etc.)
4fa63067 26508
a90ef4bf
JM
26509.PHONY: maybe-info-sim info-sim
26510maybe-info-sim:
26511@if sim
26512maybe-info-sim: info-sim
4fa63067 26513
a90ef4bf
JM
26514info-sim: \
26515 configure-sim
26516 @: $(MAKE); $(unstage)
26517 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26518 r=`${PWD_COMMAND}`; export r; \
26519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26520 $(HOST_EXPORTS) \
b813574b 26521 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26523 done; \
22121df0 26524 echo "Doing info in sim"; \
a90ef4bf 26525 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26528 "RANLIB=$${RANLIB}" \
0c24b341 26529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26530 info) \
2a4cbe27
NN
26531 || exit 1
26532
a90ef4bf 26533@endif sim
2a4cbe27 26534
a90ef4bf
JM
26535.PHONY: maybe-dvi-sim dvi-sim
26536maybe-dvi-sim:
26537@if sim
26538maybe-dvi-sim: dvi-sim
2a4cbe27 26539
a90ef4bf
JM
26540dvi-sim: \
26541 configure-sim
26542 @: $(MAKE); $(unstage)
26543 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26544 r=`${PWD_COMMAND}`; export r; \
b40e3958 26545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26546 $(HOST_EXPORTS) \
b813574b 26547 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26549 done; \
22121df0 26550 echo "Doing dvi in sim"; \
a90ef4bf 26551 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26554 "RANLIB=$${RANLIB}" \
0c24b341 26555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26556 dvi) \
2a4cbe27
NN
26557 || exit 1
26558
a90ef4bf 26559@endif sim
2a4cbe27 26560
a90ef4bf
JM
26561.PHONY: maybe-pdf-sim pdf-sim
26562maybe-pdf-sim:
26563@if sim
26564maybe-pdf-sim: pdf-sim
56a8fe78 26565
a90ef4bf
JM
26566pdf-sim: \
26567 configure-sim
26568 @: $(MAKE); $(unstage)
26569 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26570 r=`${PWD_COMMAND}`; export r; \
26571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26572 $(HOST_EXPORTS) \
26573 for flag in $(EXTRA_HOST_FLAGS) ; do \
26574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26575 done; \
22121df0 26576 echo "Doing pdf in sim"; \
a90ef4bf 26577 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26580 "RANLIB=$${RANLIB}" \
0c24b341 26581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26582 pdf) \
26583 || exit 1
26584
a90ef4bf 26585@endif sim
56a8fe78 26586
a90ef4bf
JM
26587.PHONY: maybe-html-sim html-sim
26588maybe-html-sim:
26589@if sim
26590maybe-html-sim: html-sim
6d389afc 26591
a90ef4bf
JM
26592html-sim: \
26593 configure-sim
26594 @: $(MAKE); $(unstage)
26595 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26596 r=`${PWD_COMMAND}`; export r; \
26597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26598 $(HOST_EXPORTS) \
26599 for flag in $(EXTRA_HOST_FLAGS) ; do \
26600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26601 done; \
22121df0 26602 echo "Doing html in sim"; \
a90ef4bf 26603 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26606 "RANLIB=$${RANLIB}" \
0c24b341 26607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26608 html) \
26609 || exit 1
26610
a90ef4bf 26611@endif sim
6d389afc 26612
a90ef4bf
JM
26613.PHONY: maybe-TAGS-sim TAGS-sim
26614maybe-TAGS-sim:
26615@if sim
26616maybe-TAGS-sim: TAGS-sim
2a4cbe27 26617
a90ef4bf
JM
26618TAGS-sim: \
26619 configure-sim
26620 @: $(MAKE); $(unstage)
26621 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26622 r=`${PWD_COMMAND}`; export r; \
26623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26624 $(HOST_EXPORTS) \
b813574b 26625 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26627 done; \
22121df0 26628 echo "Doing TAGS in sim"; \
a90ef4bf 26629 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26632 "RANLIB=$${RANLIB}" \
0c24b341 26633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26634 TAGS) \
2a4cbe27
NN
26635 || exit 1
26636
a90ef4bf 26637@endif sim
2a4cbe27 26638
a90ef4bf
JM
26639.PHONY: maybe-install-info-sim install-info-sim
26640maybe-install-info-sim:
26641@if sim
26642maybe-install-info-sim: install-info-sim
2a4cbe27 26643
a90ef4bf
JM
26644install-info-sim: \
26645 configure-sim \
26646 info-sim
26647 @: $(MAKE); $(unstage)
26648 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26649 r=`${PWD_COMMAND}`; export r; \
26650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26651 $(HOST_EXPORTS) \
b813574b 26652 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26654 done; \
22121df0 26655 echo "Doing install-info in sim"; \
a90ef4bf
JM
26656 (cd $(HOST_SUBDIR)/sim && \
26657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26659 "RANLIB=$${RANLIB}" \
0c24b341 26660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26661 install-info) \
2a4cbe27
NN
26662 || exit 1
26663
a90ef4bf 26664@endif sim
2a4cbe27 26665
a90ef4bf
JM
26666.PHONY: maybe-install-pdf-sim install-pdf-sim
26667maybe-install-pdf-sim:
26668@if sim
26669maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26670
a90ef4bf
JM
26671install-pdf-sim: \
26672 configure-sim \
26673 pdf-sim
26674 @: $(MAKE); $(unstage)
26675 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26676 r=`${PWD_COMMAND}`; export r; \
26677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26678 $(HOST_EXPORTS) \
26679 for flag in $(EXTRA_HOST_FLAGS) ; do \
26680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26681 done; \
22121df0 26682 echo "Doing install-pdf in sim"; \
a90ef4bf 26683 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26686 "RANLIB=$${RANLIB}" \
0c24b341 26687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26688 install-pdf) \
26689 || exit 1
26690
a90ef4bf 26691@endif sim
a3ca38d2 26692
a90ef4bf
JM
26693.PHONY: maybe-install-html-sim install-html-sim
26694maybe-install-html-sim:
26695@if sim
26696maybe-install-html-sim: install-html-sim
108a6f8e 26697
a90ef4bf
JM
26698install-html-sim: \
26699 configure-sim \
26700 html-sim
26701 @: $(MAKE); $(unstage)
26702 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26703 r=`${PWD_COMMAND}`; export r; \
26704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26705 $(HOST_EXPORTS) \
26706 for flag in $(EXTRA_HOST_FLAGS) ; do \
26707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26708 done; \
22121df0 26709 echo "Doing install-html in sim"; \
a90ef4bf 26710 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26713 "RANLIB=$${RANLIB}" \
0c24b341 26714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26715 install-html) \
26716 || exit 1
26717
a90ef4bf 26718@endif sim
108a6f8e 26719
a90ef4bf
JM
26720.PHONY: maybe-installcheck-sim installcheck-sim
26721maybe-installcheck-sim:
26722@if sim
26723maybe-installcheck-sim: installcheck-sim
2a4cbe27 26724
a90ef4bf
JM
26725installcheck-sim: \
26726 configure-sim
26727 @: $(MAKE); $(unstage)
26728 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26729 r=`${PWD_COMMAND}`; export r; \
26730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26731 $(HOST_EXPORTS) \
b813574b 26732 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26734 done; \
22121df0 26735 echo "Doing installcheck in sim"; \
a90ef4bf 26736 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26739 "RANLIB=$${RANLIB}" \
0c24b341 26740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26741 installcheck) \
2a4cbe27
NN
26742 || exit 1
26743
a90ef4bf 26744@endif sim
2a4cbe27 26745
a90ef4bf
JM
26746.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26747maybe-mostlyclean-sim:
26748@if sim
26749maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26750
a90ef4bf
JM
26751mostlyclean-sim:
26752 @: $(MAKE); $(unstage)
26753 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26754 r=`${PWD_COMMAND}`; export r; \
26755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26756 $(HOST_EXPORTS) \
26757 for flag in $(EXTRA_HOST_FLAGS) ; do \
26758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26759 done; \
22121df0 26760 echo "Doing mostlyclean in sim"; \
a90ef4bf 26761 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26764 "RANLIB=$${RANLIB}" \
0c24b341 26765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26766 mostlyclean) \
26767 || exit 1
4fa63067 26768
a90ef4bf 26769@endif sim
4fa63067 26770
a90ef4bf
JM
26771.PHONY: maybe-clean-sim clean-sim
26772maybe-clean-sim:
26773@if sim
26774maybe-clean-sim: clean-sim
4fa63067 26775
a90ef4bf
JM
26776clean-sim:
26777 @: $(MAKE); $(unstage)
26778 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26779 r=`${PWD_COMMAND}`; export r; \
26780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26781 $(HOST_EXPORTS) \
b813574b 26782 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26784 done; \
22121df0 26785 echo "Doing clean in sim"; \
a90ef4bf 26786 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26789 "RANLIB=$${RANLIB}" \
0c24b341 26790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26791 clean) \
2a4cbe27
NN
26792 || exit 1
26793
a90ef4bf 26794@endif sim
2a4cbe27 26795
a90ef4bf
JM
26796.PHONY: maybe-distclean-sim distclean-sim
26797maybe-distclean-sim:
26798@if sim
26799maybe-distclean-sim: distclean-sim
2a4cbe27 26800
a90ef4bf
JM
26801distclean-sim:
26802 @: $(MAKE); $(unstage)
26803 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26804 r=`${PWD_COMMAND}`; export r; \
26805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26806 $(HOST_EXPORTS) \
b813574b 26807 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26809 done; \
22121df0 26810 echo "Doing distclean in sim"; \
a90ef4bf 26811 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26814 "RANLIB=$${RANLIB}" \
0c24b341 26815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26816 distclean) \
2a4cbe27
NN
26817 || exit 1
26818
a90ef4bf 26819@endif sim
2a4cbe27 26820
a90ef4bf
JM
26821.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26822maybe-maintainer-clean-sim:
26823@if sim
26824maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26825
a90ef4bf
JM
26826maintainer-clean-sim:
26827 @: $(MAKE); $(unstage)
26828 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26829 r=`${PWD_COMMAND}`; export r; \
26830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26831 $(HOST_EXPORTS) \
b813574b 26832 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26834 done; \
22121df0 26835 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26836 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26839 "RANLIB=$${RANLIB}" \
0c24b341 26840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26841 maintainer-clean) \
2a4cbe27
NN
26842 || exit 1
26843
a90ef4bf 26844@endif sim
2a4cbe27 26845
2a4cbe27 26846
a7254363 26847
a90ef4bf
JM
26848.PHONY: configure-texinfo maybe-configure-texinfo
26849maybe-configure-texinfo:
4f0ef2d8 26850@if gcc-bootstrap
a90ef4bf 26851configure-texinfo: stage_current
4f0ef2d8 26852@endif gcc-bootstrap
a90ef4bf
JM
26853@if texinfo
26854maybe-configure-texinfo: configure-texinfo
26855configure-texinfo:
0aed8855 26856 @: $(MAKE); $(unstage)
c52c6897 26857 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26859 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26860 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26861 $(HOST_EXPORTS) \
a90ef4bf
JM
26862 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26863 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26864 case $(srcdir) in \
b00612cc 26865 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26866 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26867 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26868 esac; \
1b6c0831
L
26869 module_srcdir=texinfo; \
26870 $(SHELL) \
26871 $$s/$$module_srcdir/configure \
26872 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26873 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26874 --target=${target_alias} \
2a4cbe27 26875 || exit 1
a90ef4bf 26876@endif texinfo
2a4cbe27 26877
a7254363
PB
26878
26879
d545f33b
PB
26880
26881
a90ef4bf
JM
26882.PHONY: all-texinfo maybe-all-texinfo
26883maybe-all-texinfo:
4f0ef2d8 26884@if gcc-bootstrap
a90ef4bf 26885all-texinfo: stage_current
4f0ef2d8 26886@endif gcc-bootstrap
a90ef4bf
JM
26887@if texinfo
26888TARGET-texinfo=all
26889maybe-all-texinfo: all-texinfo
26890all-texinfo: configure-texinfo
0aed8855 26891 @: $(MAKE); $(unstage)
4fa63067
NN
26892 @r=`${PWD_COMMAND}`; export r; \
26893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26894 $(HOST_EXPORTS) \
a90ef4bf 26895 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26896 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26897 $(TARGET-texinfo))
26898@endif texinfo
4fa63067 26899
a7254363 26900
d545f33b
PB
26901
26902
a90ef4bf
JM
26903.PHONY: check-texinfo maybe-check-texinfo
26904maybe-check-texinfo:
26905@if texinfo
26906maybe-check-texinfo: check-texinfo
2a4cbe27 26907
a90ef4bf 26908check-texinfo:
0aed8855 26909 @: $(MAKE); $(unstage)
4fa63067
NN
26910 @r=`${PWD_COMMAND}`; export r; \
26911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26912 $(HOST_EXPORTS) \
a90ef4bf 26913 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26914 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26915
a90ef4bf 26916@endif texinfo
4fa63067 26917
a90ef4bf
JM
26918.PHONY: install-texinfo maybe-install-texinfo
26919maybe-install-texinfo:
26920@if texinfo
26921maybe-install-texinfo: install-texinfo
4fa63067 26922
a90ef4bf 26923install-texinfo:
4fa63067 26924
a90ef4bf 26925@endif texinfo
4fa63067 26926
a90ef4bf
JM
26927.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26928maybe-install-strip-texinfo:
26929@if texinfo
26930maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26931
a90ef4bf 26932install-strip-texinfo:
9b980aa1 26933
a90ef4bf 26934@endif texinfo
9b980aa1 26935
56a8fe78 26936# Other targets (info, dvi, pdf, etc.)
4fa63067 26937
a90ef4bf
JM
26938.PHONY: maybe-info-texinfo info-texinfo
26939maybe-info-texinfo:
26940@if texinfo
26941maybe-info-texinfo: info-texinfo
4fa63067 26942
a90ef4bf
JM
26943info-texinfo: \
26944 configure-texinfo
0aed8855 26945 @: $(MAKE); $(unstage)
a90ef4bf 26946 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26947 r=`${PWD_COMMAND}`; export r; \
26948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26949 $(HOST_EXPORTS) \
b813574b 26950 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26952 done; \
22121df0 26953 echo "Doing info in texinfo"; \
a90ef4bf 26954 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26957 "RANLIB=$${RANLIB}" \
0c24b341 26958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26959 info) \
2a4cbe27
NN
26960 || exit 1
26961
a90ef4bf 26962@endif texinfo
2a4cbe27 26963
a90ef4bf
JM
26964.PHONY: maybe-dvi-texinfo dvi-texinfo
26965maybe-dvi-texinfo:
26966@if texinfo
26967maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26968
a90ef4bf
JM
26969dvi-texinfo: \
26970 configure-texinfo
0aed8855 26971 @: $(MAKE); $(unstage)
a90ef4bf 26972 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26973 r=`${PWD_COMMAND}`; export r; \
26974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26975 $(HOST_EXPORTS) \
b813574b 26976 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26978 done; \
22121df0 26979 echo "Doing dvi in texinfo"; \
a90ef4bf 26980 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26983 "RANLIB=$${RANLIB}" \
0c24b341 26984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26985 dvi) \
2a4cbe27
NN
26986 || exit 1
26987
a90ef4bf 26988@endif texinfo
2a4cbe27 26989
a90ef4bf
JM
26990.PHONY: maybe-pdf-texinfo pdf-texinfo
26991maybe-pdf-texinfo:
26992@if texinfo
26993maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26994
a90ef4bf
JM
26995pdf-texinfo: \
26996 configure-texinfo
56a8fe78 26997 @: $(MAKE); $(unstage)
a90ef4bf 26998 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26999 r=`${PWD_COMMAND}`; export r; \
27000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27001 $(HOST_EXPORTS) \
27002 for flag in $(EXTRA_HOST_FLAGS) ; do \
27003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27004 done; \
22121df0 27005 echo "Doing pdf in texinfo"; \
a90ef4bf 27006 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
27007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27009 "RANLIB=$${RANLIB}" \
0c24b341 27010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27011 pdf) \
27012 || exit 1
27013
a90ef4bf 27014@endif texinfo
56a8fe78 27015
a90ef4bf
JM
27016.PHONY: maybe-html-texinfo html-texinfo
27017maybe-html-texinfo:
27018@if texinfo
27019maybe-html-texinfo: html-texinfo
6d389afc 27020
a90ef4bf
JM
27021html-texinfo: \
27022 configure-texinfo
0aed8855 27023 @: $(MAKE); $(unstage)
a90ef4bf 27024 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
27025 r=`${PWD_COMMAND}`; export r; \
27026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27027 $(HOST_EXPORTS) \
27028 for flag in $(EXTRA_HOST_FLAGS) ; do \
27029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27030 done; \
22121df0 27031 echo "Doing html in texinfo"; \
a90ef4bf 27032 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
27033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27035 "RANLIB=$${RANLIB}" \
0c24b341 27036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27037 html) \
27038 || exit 1
27039
a90ef4bf 27040@endif texinfo
6d389afc 27041
a90ef4bf
JM
27042.PHONY: maybe-TAGS-texinfo TAGS-texinfo
27043maybe-TAGS-texinfo:
27044@if texinfo
27045maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 27046
a90ef4bf
JM
27047TAGS-texinfo: \
27048 configure-texinfo
0aed8855 27049 @: $(MAKE); $(unstage)
a90ef4bf 27050 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27051 r=`${PWD_COMMAND}`; export r; \
27052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27053 $(HOST_EXPORTS) \
b813574b 27054 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27056 done; \
22121df0 27057 echo "Doing TAGS in texinfo"; \
a90ef4bf 27058 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27061 "RANLIB=$${RANLIB}" \
0c24b341 27062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27063 TAGS) \
2a4cbe27
NN
27064 || exit 1
27065
a90ef4bf 27066@endif texinfo
2a4cbe27 27067
a90ef4bf
JM
27068.PHONY: maybe-install-info-texinfo install-info-texinfo
27069maybe-install-info-texinfo:
27070@if texinfo
27071maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 27072
a90ef4bf
JM
27073install-info-texinfo: \
27074 configure-texinfo \
27075 info-texinfo
0aed8855 27076 @: $(MAKE); $(unstage)
a90ef4bf 27077 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27078 r=`${PWD_COMMAND}`; export r; \
27079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27080 $(HOST_EXPORTS) \
b813574b 27081 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27083 done; \
22121df0 27084 echo "Doing install-info in texinfo"; \
a90ef4bf 27085 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27088 "RANLIB=$${RANLIB}" \
0c24b341 27089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27090 install-info) \
2a4cbe27
NN
27091 || exit 1
27092
a90ef4bf 27093@endif texinfo
2a4cbe27 27094
a90ef4bf
JM
27095.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
27096maybe-install-pdf-texinfo:
27097@if texinfo
27098maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 27099
a90ef4bf
JM
27100install-pdf-texinfo: \
27101 configure-texinfo \
27102 pdf-texinfo
a3ca38d2 27103 @: $(MAKE); $(unstage)
a90ef4bf 27104 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
27105 r=`${PWD_COMMAND}`; export r; \
27106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27107 $(HOST_EXPORTS) \
27108 for flag in $(EXTRA_HOST_FLAGS) ; do \
27109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27110 done; \
22121df0 27111 echo "Doing install-pdf in texinfo"; \
a90ef4bf 27112 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
27113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27115 "RANLIB=$${RANLIB}" \
0c24b341 27116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27117 install-pdf) \
27118 || exit 1
27119
a90ef4bf 27120@endif texinfo
a3ca38d2 27121
a90ef4bf
JM
27122.PHONY: maybe-install-html-texinfo install-html-texinfo
27123maybe-install-html-texinfo:
27124@if texinfo
27125maybe-install-html-texinfo: install-html-texinfo
108a6f8e 27126
a90ef4bf
JM
27127install-html-texinfo: \
27128 configure-texinfo \
27129 html-texinfo
108a6f8e 27130 @: $(MAKE); $(unstage)
a90ef4bf 27131 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
27132 r=`${PWD_COMMAND}`; export r; \
27133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27134 $(HOST_EXPORTS) \
27135 for flag in $(EXTRA_HOST_FLAGS) ; do \
27136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27137 done; \
22121df0 27138 echo "Doing install-html in texinfo"; \
a90ef4bf 27139 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
27140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27142 "RANLIB=$${RANLIB}" \
0c24b341 27143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27144 install-html) \
27145 || exit 1
27146
a90ef4bf 27147@endif texinfo
108a6f8e 27148
a90ef4bf
JM
27149.PHONY: maybe-installcheck-texinfo installcheck-texinfo
27150maybe-installcheck-texinfo:
27151@if texinfo
27152maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 27153
a90ef4bf
JM
27154installcheck-texinfo: \
27155 configure-texinfo
0aed8855 27156 @: $(MAKE); $(unstage)
a90ef4bf 27157 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27158 r=`${PWD_COMMAND}`; export r; \
27159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27160 $(HOST_EXPORTS) \
b813574b 27161 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27163 done; \
22121df0 27164 echo "Doing installcheck in texinfo"; \
a90ef4bf 27165 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27168 "RANLIB=$${RANLIB}" \
0c24b341 27169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27170 installcheck) \
2a4cbe27
NN
27171 || exit 1
27172
a90ef4bf 27173@endif texinfo
2a4cbe27 27174
a90ef4bf
JM
27175.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27176maybe-mostlyclean-texinfo:
27177@if texinfo
27178maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27179
a90ef4bf 27180mostlyclean-texinfo:
0aed8855 27181 @: $(MAKE); $(unstage)
a90ef4bf 27182 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27183 r=`${PWD_COMMAND}`; export r; \
27184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27185 $(HOST_EXPORTS) \
b813574b 27186 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27188 done; \
22121df0 27189 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27190 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27193 "RANLIB=$${RANLIB}" \
0c24b341 27194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27195 mostlyclean) \
2a4cbe27
NN
27196 || exit 1
27197
a90ef4bf 27198@endif texinfo
2a4cbe27 27199
a90ef4bf
JM
27200.PHONY: maybe-clean-texinfo clean-texinfo
27201maybe-clean-texinfo:
27202@if texinfo
27203maybe-clean-texinfo: clean-texinfo
2a4cbe27 27204
a90ef4bf 27205clean-texinfo:
0aed8855 27206 @: $(MAKE); $(unstage)
a90ef4bf 27207 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27208 r=`${PWD_COMMAND}`; export r; \
27209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27210 $(HOST_EXPORTS) \
b813574b 27211 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27213 done; \
22121df0 27214 echo "Doing clean in texinfo"; \
a90ef4bf 27215 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27218 "RANLIB=$${RANLIB}" \
0c24b341 27219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27220 clean) \
2a4cbe27
NN
27221 || exit 1
27222
a90ef4bf 27223@endif texinfo
2a4cbe27 27224
a90ef4bf
JM
27225.PHONY: maybe-distclean-texinfo distclean-texinfo
27226maybe-distclean-texinfo:
27227@if texinfo
27228maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27229
a90ef4bf 27230distclean-texinfo:
0aed8855 27231 @: $(MAKE); $(unstage)
a90ef4bf 27232 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27233 r=`${PWD_COMMAND}`; export r; \
27234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27235 $(HOST_EXPORTS) \
b813574b 27236 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27238 done; \
22121df0 27239 echo "Doing distclean in texinfo"; \
a90ef4bf 27240 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27243 "RANLIB=$${RANLIB}" \
0c24b341 27244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27245 distclean) \
2a4cbe27
NN
27246 || exit 1
27247
a90ef4bf 27248@endif texinfo
2a4cbe27 27249
a90ef4bf
JM
27250.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27251maybe-maintainer-clean-texinfo:
27252@if texinfo
27253maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27254
a90ef4bf 27255maintainer-clean-texinfo:
0aed8855 27256 @: $(MAKE); $(unstage)
a90ef4bf 27257 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27258 r=`${PWD_COMMAND}`; export r; \
27259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27260 $(HOST_EXPORTS) \
b813574b 27261 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27263 done; \
22121df0 27264 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27265 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27268 "RANLIB=$${RANLIB}" \
0c24b341 27269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27270 maintainer-clean) \
2a4cbe27
NN
27271 || exit 1
27272
a90ef4bf 27273@endif texinfo
2a4cbe27 27274
2a4cbe27 27275
a7254363 27276
a90ef4bf
JM
27277.PHONY: configure-zlib maybe-configure-zlib
27278maybe-configure-zlib:
4f0ef2d8 27279@if gcc-bootstrap
a90ef4bf 27280configure-zlib: stage_current
4f0ef2d8 27281@endif gcc-bootstrap
a90ef4bf
JM
27282@if zlib
27283maybe-configure-zlib: configure-zlib
27284configure-zlib:
c52c6897
PB
27285 @r=`${PWD_COMMAND}`; export r; \
27286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27287 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27288 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27289 $(HOST_EXPORTS) \
a90ef4bf
JM
27290 echo Configuring in $(HOST_SUBDIR)/zlib; \
27291 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27292 case $(srcdir) in \
b00612cc 27293 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27294 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27295 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27296 esac; \
1b6c0831
L
27297 module_srcdir=zlib; \
27298 $(SHELL) \
27299 $$s/$$module_srcdir/configure \
27300 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27301 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27302 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27303 || exit 1
a90ef4bf 27304@endif zlib
04cf1b77 27305
a7254363
PB
27306
27307
a90ef4bf
JM
27308.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27309maybe-configure-stage1-zlib:
27310@if zlib-bootstrap
27311maybe-configure-stage1-zlib: configure-stage1-zlib
27312configure-stage1-zlib:
c52c6897 27313 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27314 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27315 @r=`${PWD_COMMAND}`; export r; \
27316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27317 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27318 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27319 $(HOST_EXPORTS) \
8ee82aff 27320 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27321 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27322 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27323 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27324 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27325 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27326 case $(srcdir) in \
27327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27328 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27330 esac; \
1b6c0831
L
27331 module_srcdir=zlib; \
27332 $(SHELL) $$s/$$module_srcdir/configure \
27333 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27334 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27335 --target=${target_alias} \
27336 \
e81d5d05
L
27337 $(STAGE1_CONFIGURE_FLAGS) \
27338 @extra_host_zlib_configure_flags@
a90ef4bf 27339@endif zlib-bootstrap
d545f33b 27340
a90ef4bf
JM
27341.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27342maybe-configure-stage2-zlib:
27343@if zlib-bootstrap
27344maybe-configure-stage2-zlib: configure-stage2-zlib
27345configure-stage2-zlib:
c52c6897 27346 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27347 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27348 @r=`${PWD_COMMAND}`; export r; \
27349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27350 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27351 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27352 $(HOST_EXPORTS) \
1b05fbbd 27353 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27354 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27355 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27356 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27357 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27358 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27359 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27360 case $(srcdir) in \
27361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27362 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27364 esac; \
1b6c0831
L
27365 module_srcdir=zlib; \
27366 $(SHELL) $$s/$$module_srcdir/configure \
27367 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27368 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27369 --target=${target_alias} \
22121df0 27370 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27371 $(STAGE2_CONFIGURE_FLAGS) \
27372 @extra_host_zlib_configure_flags@
a90ef4bf 27373@endif zlib-bootstrap
8520c408 27374
a90ef4bf
JM
27375.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27376maybe-configure-stage3-zlib:
27377@if zlib-bootstrap
27378maybe-configure-stage3-zlib: configure-stage3-zlib
27379configure-stage3-zlib:
c52c6897 27380 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27381 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27382 @r=`${PWD_COMMAND}`; export r; \
27383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27384 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27385 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27386 $(HOST_EXPORTS) \
1b05fbbd 27387 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27388 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27389 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27390 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27391 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27392 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27393 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27394 case $(srcdir) in \
27395 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27396 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27397 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27398 esac; \
1b6c0831
L
27399 module_srcdir=zlib; \
27400 $(SHELL) $$s/$$module_srcdir/configure \
27401 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27402 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27403 --target=${target_alias} \
22121df0 27404 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27405 $(STAGE3_CONFIGURE_FLAGS) \
27406 @extra_host_zlib_configure_flags@
a90ef4bf 27407@endif zlib-bootstrap
8520c408 27408
a90ef4bf
JM
27409.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27410maybe-configure-stage4-zlib:
27411@if zlib-bootstrap
27412maybe-configure-stage4-zlib: configure-stage4-zlib
27413configure-stage4-zlib:
c52c6897 27414 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27415 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27416 @r=`${PWD_COMMAND}`; export r; \
27417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27418 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27419 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27420 $(HOST_EXPORTS) \
1b05fbbd 27421 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27422 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27423 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27424 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27425 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27427 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27428 case $(srcdir) in \
27429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27430 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27432 esac; \
1b6c0831
L
27433 module_srcdir=zlib; \
27434 $(SHELL) $$s/$$module_srcdir/configure \
27435 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27437 --target=${target_alias} \
22121df0 27438 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27439 $(STAGE4_CONFIGURE_FLAGS) \
27440 @extra_host_zlib_configure_flags@
a90ef4bf 27441@endif zlib-bootstrap
d545f33b 27442
a90ef4bf
JM
27443.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27444maybe-configure-stageprofile-zlib:
27445@if zlib-bootstrap
27446maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27447configure-stageprofile-zlib:
c52c6897 27448 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27449 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27450 @r=`${PWD_COMMAND}`; export r; \
27451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27452 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27453 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27454 $(HOST_EXPORTS) \
1b05fbbd
AO
27455 $(POSTSTAGE1_HOST_EXPORTS) \
27456 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27457 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27458 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27459 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27460 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27461 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27462 case $(srcdir) in \
27463 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27464 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27465 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27466 esac; \
1b6c0831
L
27467 module_srcdir=zlib; \
27468 $(SHELL) $$s/$$module_srcdir/configure \
27469 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27470 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27471 --target=${target_alias} \
22121df0 27472 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27473 $(STAGEprofile_CONFIGURE_FLAGS) \
27474 @extra_host_zlib_configure_flags@
a90ef4bf 27475@endif zlib-bootstrap
d545f33b 27476
a90ef4bf
JM
27477.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27478maybe-configure-stagefeedback-zlib:
27479@if zlib-bootstrap
27480maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27481configure-stagefeedback-zlib:
c52c6897 27482 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27483 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27484 @r=`${PWD_COMMAND}`; export r; \
27485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27486 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27487 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27488 $(HOST_EXPORTS) \
1b05fbbd
AO
27489 $(POSTSTAGE1_HOST_EXPORTS) \
27490 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27491 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27492 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27493 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27494 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27495 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27496 case $(srcdir) in \
27497 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27498 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27499 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27500 esac; \
1b6c0831
L
27501 module_srcdir=zlib; \
27502 $(SHELL) $$s/$$module_srcdir/configure \
27503 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27504 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27505 --target=${target_alias} \
22121df0 27506 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27507 $(STAGEfeedback_CONFIGURE_FLAGS) \
27508 @extra_host_zlib_configure_flags@
a90ef4bf 27509@endif zlib-bootstrap
d545f33b
PB
27510
27511
27512
27513
27514
a90ef4bf
JM
27515.PHONY: all-zlib maybe-all-zlib
27516maybe-all-zlib:
4f0ef2d8 27517@if gcc-bootstrap
a90ef4bf 27518all-zlib: stage_current
4f0ef2d8 27519@endif gcc-bootstrap
a90ef4bf
JM
27520@if zlib
27521TARGET-zlib=all
27522maybe-all-zlib: all-zlib
27523all-zlib: configure-zlib
c52c6897 27524 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27526 $(HOST_EXPORTS) \
a90ef4bf 27527 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27528 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27529 $(TARGET-zlib))
27530@endif zlib
04cf1b77 27531
a7254363 27532
d545f33b 27533
a90ef4bf
JM
27534.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27535.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27536maybe-all-stage1-zlib:
27537maybe-clean-stage1-zlib:
27538@if zlib-bootstrap
27539maybe-all-stage1-zlib: all-stage1-zlib
27540all-stage1: all-stage1-zlib
27541TARGET-stage1-zlib = $(TARGET-zlib)
27542all-stage1-zlib: configure-stage1-zlib
c52c6897 27543 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27544 @r=`${PWD_COMMAND}`; export r; \
27545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27546 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27547 $(HOST_EXPORTS) \
a90ef4bf 27548 cd $(HOST_SUBDIR)/zlib && \
05a13254 27549 \
7f6ef0c0 27550 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27551 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27552 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27553 LIBCFLAGS="$(LIBCFLAGS)" \
27554 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27555 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27556 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27557 $(EXTRA_HOST_FLAGS) \
27558 $(STAGE1_FLAGS_TO_PASS) \
05a13254 27559 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27560 $(TARGET-stage1-zlib)
d545f33b 27561
a90ef4bf
JM
27562maybe-clean-stage1-zlib: clean-stage1-zlib
27563clean-stage1: clean-stage1-zlib
27564clean-stage1-zlib:
9dbaa842 27565 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27566 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27567 else \
a90ef4bf 27568 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27569 $(MAKE) stage1-start; \
27570 fi; \
a90ef4bf 27571 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27572 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27573 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27574@endif zlib-bootstrap
d545f33b
PB
27575
27576
a90ef4bf
JM
27577.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27578.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27579maybe-all-stage2-zlib:
27580maybe-clean-stage2-zlib:
27581@if zlib-bootstrap
27582maybe-all-stage2-zlib: all-stage2-zlib
27583all-stage2: all-stage2-zlib
27584TARGET-stage2-zlib = $(TARGET-zlib)
27585all-stage2-zlib: configure-stage2-zlib
c52c6897 27586 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27587 @r=`${PWD_COMMAND}`; export r; \
27588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27589 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27590 $(HOST_EXPORTS) \
1f53ca9a 27591 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27592 cd $(HOST_SUBDIR)/zlib && \
05a13254 27593 \
7f6ef0c0 27594 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27595 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27596 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27597 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27598 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27599 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27600 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27601 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27602 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27603 $(TARGET-stage2-zlib)
d545f33b 27604
a90ef4bf
JM
27605maybe-clean-stage2-zlib: clean-stage2-zlib
27606clean-stage2: clean-stage2-zlib
27607clean-stage2-zlib:
9dbaa842 27608 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27609 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27610 else \
a90ef4bf 27611 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27612 $(MAKE) stage2-start; \
27613 fi; \
a90ef4bf 27614 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27615 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27616@endif zlib-bootstrap
d545f33b
PB
27617
27618
a90ef4bf
JM
27619.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27620.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27621maybe-all-stage3-zlib:
27622maybe-clean-stage3-zlib:
27623@if zlib-bootstrap
27624maybe-all-stage3-zlib: all-stage3-zlib
27625all-stage3: all-stage3-zlib
27626TARGET-stage3-zlib = $(TARGET-zlib)
27627all-stage3-zlib: configure-stage3-zlib
c52c6897 27628 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27629 @r=`${PWD_COMMAND}`; export r; \
27630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27631 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27632 $(HOST_EXPORTS) \
1f53ca9a 27633 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27634 cd $(HOST_SUBDIR)/zlib && \
05a13254 27635 \
7f6ef0c0 27636 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27637 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27638 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27639 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27640 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27641 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27642 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27643 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27644 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27645 $(TARGET-stage3-zlib)
d545f33b 27646
a90ef4bf
JM
27647maybe-clean-stage3-zlib: clean-stage3-zlib
27648clean-stage3: clean-stage3-zlib
27649clean-stage3-zlib:
9dbaa842 27650 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27651 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27652 else \
a90ef4bf 27653 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27654 $(MAKE) stage3-start; \
27655 fi; \
a90ef4bf 27656 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27657 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27658@endif zlib-bootstrap
d545f33b
PB
27659
27660
a90ef4bf
JM
27661.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27662.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27663maybe-all-stage4-zlib:
27664maybe-clean-stage4-zlib:
27665@if zlib-bootstrap
27666maybe-all-stage4-zlib: all-stage4-zlib
27667all-stage4: all-stage4-zlib
27668TARGET-stage4-zlib = $(TARGET-zlib)
27669all-stage4-zlib: configure-stage4-zlib
c52c6897 27670 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27671 @r=`${PWD_COMMAND}`; export r; \
27672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27673 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27674 $(HOST_EXPORTS) \
1f53ca9a 27675 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27676 cd $(HOST_SUBDIR)/zlib && \
05a13254 27677 \
7f6ef0c0 27678 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27679 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27680 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27681 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27682 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27683 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27684 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27685 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27686 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27687 $(TARGET-stage4-zlib)
d545f33b 27688
a90ef4bf
JM
27689maybe-clean-stage4-zlib: clean-stage4-zlib
27690clean-stage4: clean-stage4-zlib
27691clean-stage4-zlib:
9dbaa842 27692 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27693 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27694 else \
a90ef4bf 27695 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27696 $(MAKE) stage4-start; \
27697 fi; \
a90ef4bf 27698 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27699 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27700@endif zlib-bootstrap
d545f33b
PB
27701
27702
a90ef4bf
JM
27703.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27704.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27705maybe-all-stageprofile-zlib:
27706maybe-clean-stageprofile-zlib:
27707@if zlib-bootstrap
27708maybe-all-stageprofile-zlib: all-stageprofile-zlib
27709all-stageprofile: all-stageprofile-zlib
27710TARGET-stageprofile-zlib = $(TARGET-zlib)
27711all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27712 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27713 @r=`${PWD_COMMAND}`; export r; \
27714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27715 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27716 $(HOST_EXPORTS) \
1f53ca9a 27717 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27718 cd $(HOST_SUBDIR)/zlib && \
05a13254 27719 \
7f6ef0c0 27720 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27721 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27722 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27723 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27724 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27725 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27726 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27727 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27728 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27729 $(TARGET-stageprofile-zlib)
d545f33b 27730
a90ef4bf
JM
27731maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27732clean-stageprofile: clean-stageprofile-zlib
27733clean-stageprofile-zlib:
9dbaa842 27734 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27735 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27736 else \
a90ef4bf 27737 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27738 $(MAKE) stageprofile-start; \
27739 fi; \
a90ef4bf 27740 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27741 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27742@endif zlib-bootstrap
d545f33b
PB
27743
27744
a90ef4bf
JM
27745.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27746.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27747maybe-all-stagefeedback-zlib:
27748maybe-clean-stagefeedback-zlib:
27749@if zlib-bootstrap
27750maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27751all-stagefeedback: all-stagefeedback-zlib
27752TARGET-stagefeedback-zlib = $(TARGET-zlib)
27753all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27754 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27755 @r=`${PWD_COMMAND}`; export r; \
27756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27757 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27758 $(HOST_EXPORTS) \
1f53ca9a 27759 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27760 cd $(HOST_SUBDIR)/zlib && \
05a13254 27761 \
7f6ef0c0 27762 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27763 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27764 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27765 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27766 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27767 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27768 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27769 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27770 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27771 $(TARGET-stagefeedback-zlib)
d545f33b 27772
a90ef4bf
JM
27773maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27774clean-stagefeedback: clean-stagefeedback-zlib
27775clean-stagefeedback-zlib:
9dbaa842 27776 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27777 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27778 else \
a90ef4bf 27779 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27780 $(MAKE) stagefeedback-start; \
27781 fi; \
a90ef4bf 27782 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27783 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27784@endif zlib-bootstrap
d545f33b
PB
27785
27786
27787
27788
27789
a90ef4bf
JM
27790.PHONY: check-zlib maybe-check-zlib
27791maybe-check-zlib:
27792@if zlib
27793maybe-check-zlib: check-zlib
04cf1b77 27794
a90ef4bf 27795check-zlib:
04cf1b77 27796
a90ef4bf 27797@endif zlib
04cf1b77 27798
a90ef4bf
JM
27799.PHONY: install-zlib maybe-install-zlib
27800maybe-install-zlib:
27801@if zlib
27802maybe-install-zlib: install-zlib
04cf1b77 27803
a90ef4bf 27804install-zlib:
04cf1b77 27805
a90ef4bf 27806@endif zlib
04cf1b77 27807
a90ef4bf
JM
27808.PHONY: install-strip-zlib maybe-install-strip-zlib
27809maybe-install-strip-zlib:
27810@if zlib
27811maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27812
a90ef4bf 27813install-strip-zlib:
9b980aa1 27814
a90ef4bf 27815@endif zlib
9b980aa1 27816
56a8fe78 27817# Other targets (info, dvi, pdf, etc.)
04cf1b77 27818
a90ef4bf
JM
27819.PHONY: maybe-info-zlib info-zlib
27820maybe-info-zlib:
27821@if zlib
27822maybe-info-zlib: info-zlib
04cf1b77 27823
a90ef4bf
JM
27824info-zlib: \
27825 configure-zlib
27826 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27827 r=`${PWD_COMMAND}`; export r; \
27828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27829 $(HOST_EXPORTS) \
b813574b 27830 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27832 done; \
22121df0 27833 echo "Doing info in zlib"; \
a90ef4bf 27834 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27837 "RANLIB=$${RANLIB}" \
0c24b341 27838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27839 info) \
04cf1b77
PB
27840 || exit 1
27841
a90ef4bf 27842@endif zlib
04cf1b77 27843
a90ef4bf
JM
27844.PHONY: maybe-dvi-zlib dvi-zlib
27845maybe-dvi-zlib:
27846@if zlib
27847maybe-dvi-zlib: dvi-zlib
04cf1b77 27848
a90ef4bf
JM
27849dvi-zlib: \
27850 configure-zlib
27851 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27852 r=`${PWD_COMMAND}`; export r; \
27853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27854 $(HOST_EXPORTS) \
b813574b 27855 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27857 done; \
22121df0 27858 echo "Doing dvi in zlib"; \
a90ef4bf 27859 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27862 "RANLIB=$${RANLIB}" \
0c24b341 27863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27864 dvi) \
04cf1b77
PB
27865 || exit 1
27866
a90ef4bf 27867@endif zlib
04cf1b77 27868
a90ef4bf
JM
27869.PHONY: maybe-pdf-zlib pdf-zlib
27870maybe-pdf-zlib:
27871@if zlib
27872maybe-pdf-zlib: pdf-zlib
56a8fe78 27873
a90ef4bf
JM
27874pdf-zlib: \
27875 configure-zlib
27876 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27877 r=`${PWD_COMMAND}`; export r; \
27878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27879 $(HOST_EXPORTS) \
27880 for flag in $(EXTRA_HOST_FLAGS) ; do \
27881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27882 done; \
22121df0 27883 echo "Doing pdf in zlib"; \
a90ef4bf 27884 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27887 "RANLIB=$${RANLIB}" \
0c24b341 27888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27889 pdf) \
27890 || exit 1
27891
a90ef4bf 27892@endif zlib
56a8fe78 27893
a90ef4bf
JM
27894.PHONY: maybe-html-zlib html-zlib
27895maybe-html-zlib:
27896@if zlib
27897maybe-html-zlib: html-zlib
6d389afc 27898
a90ef4bf
JM
27899html-zlib: \
27900 configure-zlib
27901 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27902 r=`${PWD_COMMAND}`; export r; \
27903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27904 $(HOST_EXPORTS) \
27905 for flag in $(EXTRA_HOST_FLAGS) ; do \
27906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27907 done; \
22121df0 27908 echo "Doing html in zlib"; \
a90ef4bf 27909 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27912 "RANLIB=$${RANLIB}" \
0c24b341 27913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27914 html) \
27915 || exit 1
27916
a90ef4bf 27917@endif zlib
6d389afc 27918
a90ef4bf
JM
27919.PHONY: maybe-TAGS-zlib TAGS-zlib
27920maybe-TAGS-zlib:
27921@if zlib
27922maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27923
a90ef4bf
JM
27924TAGS-zlib: \
27925 configure-zlib
27926 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27927 r=`${PWD_COMMAND}`; export r; \
27928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27929 $(HOST_EXPORTS) \
b813574b 27930 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27932 done; \
22121df0 27933 echo "Doing TAGS in zlib"; \
a90ef4bf 27934 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27937 "RANLIB=$${RANLIB}" \
0c24b341 27938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27939 TAGS) \
04cf1b77
PB
27940 || exit 1
27941
a90ef4bf 27942@endif zlib
04cf1b77 27943
a90ef4bf
JM
27944.PHONY: maybe-install-info-zlib install-info-zlib
27945maybe-install-info-zlib:
27946@if zlib
27947maybe-install-info-zlib: install-info-zlib
04cf1b77 27948
a90ef4bf
JM
27949install-info-zlib: \
27950 configure-zlib \
27951 info-zlib
27952 @[ -f ./zlib/Makefile ] || exit 0; \
27953 r=`${PWD_COMMAND}`; export r; \
27954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27955 $(HOST_EXPORTS) \
b813574b 27956 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27958 done; \
22121df0 27959 echo "Doing install-info in zlib"; \
a90ef4bf 27960 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27963 "RANLIB=$${RANLIB}" \
0c24b341 27964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27965 install-info) \
04cf1b77
PB
27966 || exit 1
27967
a90ef4bf 27968@endif zlib
04cf1b77 27969
a90ef4bf
JM
27970.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27971maybe-install-pdf-zlib:
27972@if zlib
27973maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27974
a90ef4bf
JM
27975install-pdf-zlib: \
27976 configure-zlib \
27977 pdf-zlib
27978 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27979 r=`${PWD_COMMAND}`; export r; \
27980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27981 $(HOST_EXPORTS) \
27982 for flag in $(EXTRA_HOST_FLAGS) ; do \
27983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27984 done; \
22121df0 27985 echo "Doing install-pdf in zlib"; \
a90ef4bf 27986 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27989 "RANLIB=$${RANLIB}" \
0c24b341 27990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27991 install-pdf) \
27992 || exit 1
27993
a90ef4bf 27994@endif zlib
a3ca38d2 27995
a90ef4bf
JM
27996.PHONY: maybe-install-html-zlib install-html-zlib
27997maybe-install-html-zlib:
27998@if zlib
27999maybe-install-html-zlib: install-html-zlib
108a6f8e 28000
a90ef4bf
JM
28001install-html-zlib: \
28002 configure-zlib \
28003 html-zlib
28004 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
28005 r=`${PWD_COMMAND}`; export r; \
28006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28007 $(HOST_EXPORTS) \
28008 for flag in $(EXTRA_HOST_FLAGS) ; do \
28009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28010 done; \
22121df0 28011 echo "Doing install-html in zlib"; \
a90ef4bf 28012 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
28013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28015 "RANLIB=$${RANLIB}" \
0c24b341 28016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28017 install-html) \
28018 || exit 1
28019
a90ef4bf 28020@endif zlib
108a6f8e 28021
a90ef4bf
JM
28022.PHONY: maybe-installcheck-zlib installcheck-zlib
28023maybe-installcheck-zlib:
28024@if zlib
28025maybe-installcheck-zlib: installcheck-zlib
04cf1b77 28026
a90ef4bf
JM
28027installcheck-zlib: \
28028 configure-zlib
28029 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28030 r=`${PWD_COMMAND}`; export r; \
28031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28032 $(HOST_EXPORTS) \
b813574b 28033 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28035 done; \
22121df0 28036 echo "Doing installcheck in zlib"; \
a90ef4bf 28037 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28040 "RANLIB=$${RANLIB}" \
0c24b341 28041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28042 installcheck) \
04cf1b77
PB
28043 || exit 1
28044
a90ef4bf 28045@endif zlib
04cf1b77 28046
a90ef4bf
JM
28047.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
28048maybe-mostlyclean-zlib:
28049@if zlib
28050maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 28051
a90ef4bf
JM
28052mostlyclean-zlib:
28053 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28054 r=`${PWD_COMMAND}`; export r; \
28055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28056 $(HOST_EXPORTS) \
b813574b 28057 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28059 done; \
22121df0 28060 echo "Doing mostlyclean in zlib"; \
a90ef4bf 28061 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28064 "RANLIB=$${RANLIB}" \
0c24b341 28065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28066 mostlyclean) \
04cf1b77
PB
28067 || exit 1
28068
a90ef4bf 28069@endif zlib
04cf1b77 28070
a90ef4bf
JM
28071.PHONY: maybe-clean-zlib clean-zlib
28072maybe-clean-zlib:
28073@if zlib
28074maybe-clean-zlib: clean-zlib
04cf1b77 28075
a90ef4bf
JM
28076clean-zlib:
28077 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28078 r=`${PWD_COMMAND}`; export r; \
28079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28080 $(HOST_EXPORTS) \
b813574b 28081 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28083 done; \
22121df0 28084 echo "Doing clean in zlib"; \
a90ef4bf 28085 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28088 "RANLIB=$${RANLIB}" \
0c24b341 28089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28090 clean) \
04cf1b77
PB
28091 || exit 1
28092
a90ef4bf 28093@endif zlib
04cf1b77 28094
a90ef4bf
JM
28095.PHONY: maybe-distclean-zlib distclean-zlib
28096maybe-distclean-zlib:
28097@if zlib
28098maybe-distclean-zlib: distclean-zlib
04cf1b77 28099
a90ef4bf
JM
28100distclean-zlib:
28101 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28102 r=`${PWD_COMMAND}`; export r; \
28103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28104 $(HOST_EXPORTS) \
b813574b 28105 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28107 done; \
22121df0 28108 echo "Doing distclean in zlib"; \
a90ef4bf 28109 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28112 "RANLIB=$${RANLIB}" \
0c24b341 28113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28114 distclean) \
04cf1b77
PB
28115 || exit 1
28116
a90ef4bf 28117@endif zlib
04cf1b77 28118
a90ef4bf
JM
28119.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
28120maybe-maintainer-clean-zlib:
28121@if zlib
28122maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 28123
a90ef4bf
JM
28124maintainer-clean-zlib:
28125 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28126 r=`${PWD_COMMAND}`; export r; \
28127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28128 $(HOST_EXPORTS) \
b813574b 28129 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28131 done; \
22121df0 28132 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 28133 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28136 "RANLIB=$${RANLIB}" \
0c24b341 28137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28138 maintainer-clean) \
04cf1b77
PB
28139 || exit 1
28140
a90ef4bf 28141@endif zlib
04cf1b77
PB
28142
28143
a7254363 28144
73cc7272
TT
28145.PHONY: configure-gnulib maybe-configure-gnulib
28146maybe-configure-gnulib:
28147@if gcc-bootstrap
28148configure-gnulib: stage_current
28149@endif gcc-bootstrap
28150@if gnulib
28151maybe-configure-gnulib: configure-gnulib
28152configure-gnulib:
28153 @: $(MAKE); $(unstage)
28154 @r=`${PWD_COMMAND}`; export r; \
28155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28156 test ! -f $(HOST_SUBDIR)/gnulib/Makefile || exit 0; \
28157 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnulib; \
28158 $(HOST_EXPORTS) \
28159 echo Configuring in $(HOST_SUBDIR)/gnulib; \
28160 cd "$(HOST_SUBDIR)/gnulib" || exit 1; \
28161 case $(srcdir) in \
28162 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28163 *) topdir=`echo $(HOST_SUBDIR)/gnulib/ | \
28164 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28165 esac; \
28166 module_srcdir=gnulib; \
28167 $(SHELL) \
28168 $$s/$$module_srcdir/configure \
28169 --srcdir=$${topdir}/$$module_srcdir \
28170 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28171 --target=${target_alias} \
28172 || exit 1
28173@endif gnulib
28174
28175
28176
28177
28178
28179.PHONY: all-gnulib maybe-all-gnulib
28180maybe-all-gnulib:
28181@if gcc-bootstrap
28182all-gnulib: stage_current
28183@endif gcc-bootstrap
28184@if gnulib
28185TARGET-gnulib=all
28186maybe-all-gnulib: all-gnulib
28187all-gnulib: configure-gnulib
28188 @: $(MAKE); $(unstage)
28189 @r=`${PWD_COMMAND}`; export r; \
28190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28191 $(HOST_EXPORTS) \
28192 (cd $(HOST_SUBDIR)/gnulib && \
28193 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
28194 $(TARGET-gnulib))
28195@endif gnulib
28196
28197
28198
28199
28200.PHONY: check-gnulib maybe-check-gnulib
28201maybe-check-gnulib:
28202@if gnulib
28203maybe-check-gnulib: check-gnulib
28204
28205check-gnulib:
28206 @: $(MAKE); $(unstage)
28207 @r=`${PWD_COMMAND}`; export r; \
28208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28209 $(HOST_EXPORTS) \
28210 (cd $(HOST_SUBDIR)/gnulib && \
28211 $(MAKE) $(FLAGS_TO_PASS) check)
28212
28213@endif gnulib
28214
28215.PHONY: install-gnulib maybe-install-gnulib
28216maybe-install-gnulib:
28217@if gnulib
28218maybe-install-gnulib: install-gnulib
28219
28220install-gnulib: installdirs
28221 @: $(MAKE); $(unstage)
28222 @r=`${PWD_COMMAND}`; export r; \
28223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28224 $(HOST_EXPORTS) \
28225 (cd $(HOST_SUBDIR)/gnulib && \
28226 $(MAKE) $(FLAGS_TO_PASS) install)
28227
28228@endif gnulib
28229
28230.PHONY: install-strip-gnulib maybe-install-strip-gnulib
28231maybe-install-strip-gnulib:
28232@if gnulib
28233maybe-install-strip-gnulib: install-strip-gnulib
28234
28235install-strip-gnulib: installdirs
28236 @: $(MAKE); $(unstage)
28237 @r=`${PWD_COMMAND}`; export r; \
28238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28239 $(HOST_EXPORTS) \
28240 (cd $(HOST_SUBDIR)/gnulib && \
28241 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28242
28243@endif gnulib
28244
28245# Other targets (info, dvi, pdf, etc.)
28246
28247.PHONY: maybe-info-gnulib info-gnulib
28248maybe-info-gnulib:
28249@if gnulib
28250maybe-info-gnulib: info-gnulib
28251
28252info-gnulib: \
28253 configure-gnulib
28254 @: $(MAKE); $(unstage)
28255 @[ -f ./gnulib/Makefile ] || exit 0; \
28256 r=`${PWD_COMMAND}`; export r; \
28257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28258 $(HOST_EXPORTS) \
28259 for flag in $(EXTRA_HOST_FLAGS) ; do \
28260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28261 done; \
28262 echo "Doing info in gnulib"; \
28263 (cd $(HOST_SUBDIR)/gnulib && \
28264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28266 "RANLIB=$${RANLIB}" \
28267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28268 info) \
28269 || exit 1
28270
28271@endif gnulib
28272
28273.PHONY: maybe-dvi-gnulib dvi-gnulib
28274maybe-dvi-gnulib:
28275@if gnulib
28276maybe-dvi-gnulib: dvi-gnulib
28277
28278dvi-gnulib: \
28279 configure-gnulib
28280 @: $(MAKE); $(unstage)
28281 @[ -f ./gnulib/Makefile ] || exit 0; \
28282 r=`${PWD_COMMAND}`; export r; \
28283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28284 $(HOST_EXPORTS) \
28285 for flag in $(EXTRA_HOST_FLAGS) ; do \
28286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28287 done; \
28288 echo "Doing dvi in gnulib"; \
28289 (cd $(HOST_SUBDIR)/gnulib && \
28290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28292 "RANLIB=$${RANLIB}" \
28293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28294 dvi) \
28295 || exit 1
28296
28297@endif gnulib
28298
28299.PHONY: maybe-pdf-gnulib pdf-gnulib
28300maybe-pdf-gnulib:
28301@if gnulib
28302maybe-pdf-gnulib: pdf-gnulib
28303
28304pdf-gnulib: \
28305 configure-gnulib
28306 @: $(MAKE); $(unstage)
28307 @[ -f ./gnulib/Makefile ] || exit 0; \
28308 r=`${PWD_COMMAND}`; export r; \
28309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28310 $(HOST_EXPORTS) \
28311 for flag in $(EXTRA_HOST_FLAGS) ; do \
28312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28313 done; \
28314 echo "Doing pdf in gnulib"; \
28315 (cd $(HOST_SUBDIR)/gnulib && \
28316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28318 "RANLIB=$${RANLIB}" \
28319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28320 pdf) \
28321 || exit 1
28322
28323@endif gnulib
28324
28325.PHONY: maybe-html-gnulib html-gnulib
28326maybe-html-gnulib:
28327@if gnulib
28328maybe-html-gnulib: html-gnulib
28329
28330html-gnulib: \
28331 configure-gnulib
28332 @: $(MAKE); $(unstage)
28333 @[ -f ./gnulib/Makefile ] || exit 0; \
28334 r=`${PWD_COMMAND}`; export r; \
28335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28336 $(HOST_EXPORTS) \
28337 for flag in $(EXTRA_HOST_FLAGS) ; do \
28338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28339 done; \
28340 echo "Doing html in gnulib"; \
28341 (cd $(HOST_SUBDIR)/gnulib && \
28342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28344 "RANLIB=$${RANLIB}" \
28345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28346 html) \
28347 || exit 1
28348
28349@endif gnulib
28350
28351.PHONY: maybe-TAGS-gnulib TAGS-gnulib
28352maybe-TAGS-gnulib:
28353@if gnulib
28354maybe-TAGS-gnulib: TAGS-gnulib
28355
28356TAGS-gnulib: \
28357 configure-gnulib
28358 @: $(MAKE); $(unstage)
28359 @[ -f ./gnulib/Makefile ] || exit 0; \
28360 r=`${PWD_COMMAND}`; export r; \
28361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28362 $(HOST_EXPORTS) \
28363 for flag in $(EXTRA_HOST_FLAGS) ; do \
28364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28365 done; \
28366 echo "Doing TAGS in gnulib"; \
28367 (cd $(HOST_SUBDIR)/gnulib && \
28368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28370 "RANLIB=$${RANLIB}" \
28371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28372 TAGS) \
28373 || exit 1
28374
28375@endif gnulib
28376
28377.PHONY: maybe-install-info-gnulib install-info-gnulib
28378maybe-install-info-gnulib:
28379@if gnulib
28380maybe-install-info-gnulib: install-info-gnulib
28381
28382install-info-gnulib: \
28383 configure-gnulib \
28384 info-gnulib
28385 @: $(MAKE); $(unstage)
28386 @[ -f ./gnulib/Makefile ] || exit 0; \
28387 r=`${PWD_COMMAND}`; export r; \
28388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28389 $(HOST_EXPORTS) \
28390 for flag in $(EXTRA_HOST_FLAGS) ; do \
28391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28392 done; \
28393 echo "Doing install-info in gnulib"; \
28394 (cd $(HOST_SUBDIR)/gnulib && \
28395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28397 "RANLIB=$${RANLIB}" \
28398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28399 install-info) \
28400 || exit 1
28401
28402@endif gnulib
28403
28404.PHONY: maybe-install-pdf-gnulib install-pdf-gnulib
28405maybe-install-pdf-gnulib:
28406@if gnulib
28407maybe-install-pdf-gnulib: install-pdf-gnulib
28408
28409install-pdf-gnulib: \
28410 configure-gnulib \
28411 pdf-gnulib
28412 @: $(MAKE); $(unstage)
28413 @[ -f ./gnulib/Makefile ] || exit 0; \
28414 r=`${PWD_COMMAND}`; export r; \
28415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28416 $(HOST_EXPORTS) \
28417 for flag in $(EXTRA_HOST_FLAGS) ; do \
28418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28419 done; \
28420 echo "Doing install-pdf in gnulib"; \
28421 (cd $(HOST_SUBDIR)/gnulib && \
28422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28424 "RANLIB=$${RANLIB}" \
28425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28426 install-pdf) \
28427 || exit 1
28428
28429@endif gnulib
28430
28431.PHONY: maybe-install-html-gnulib install-html-gnulib
28432maybe-install-html-gnulib:
28433@if gnulib
28434maybe-install-html-gnulib: install-html-gnulib
28435
28436install-html-gnulib: \
28437 configure-gnulib \
28438 html-gnulib
28439 @: $(MAKE); $(unstage)
28440 @[ -f ./gnulib/Makefile ] || exit 0; \
28441 r=`${PWD_COMMAND}`; export r; \
28442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28443 $(HOST_EXPORTS) \
28444 for flag in $(EXTRA_HOST_FLAGS) ; do \
28445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28446 done; \
28447 echo "Doing install-html in gnulib"; \
28448 (cd $(HOST_SUBDIR)/gnulib && \
28449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28451 "RANLIB=$${RANLIB}" \
28452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28453 install-html) \
28454 || exit 1
28455
28456@endif gnulib
28457
28458.PHONY: maybe-installcheck-gnulib installcheck-gnulib
28459maybe-installcheck-gnulib:
28460@if gnulib
28461maybe-installcheck-gnulib: installcheck-gnulib
28462
28463installcheck-gnulib: \
28464 configure-gnulib
28465 @: $(MAKE); $(unstage)
28466 @[ -f ./gnulib/Makefile ] || exit 0; \
28467 r=`${PWD_COMMAND}`; export r; \
28468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28469 $(HOST_EXPORTS) \
28470 for flag in $(EXTRA_HOST_FLAGS) ; do \
28471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28472 done; \
28473 echo "Doing installcheck in gnulib"; \
28474 (cd $(HOST_SUBDIR)/gnulib && \
28475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28477 "RANLIB=$${RANLIB}" \
28478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28479 installcheck) \
28480 || exit 1
28481
28482@endif gnulib
28483
28484.PHONY: maybe-mostlyclean-gnulib mostlyclean-gnulib
28485maybe-mostlyclean-gnulib:
28486@if gnulib
28487maybe-mostlyclean-gnulib: mostlyclean-gnulib
28488
28489mostlyclean-gnulib:
28490 @: $(MAKE); $(unstage)
28491 @[ -f ./gnulib/Makefile ] || exit 0; \
28492 r=`${PWD_COMMAND}`; export r; \
28493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28494 $(HOST_EXPORTS) \
28495 for flag in $(EXTRA_HOST_FLAGS) ; do \
28496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28497 done; \
28498 echo "Doing mostlyclean in gnulib"; \
28499 (cd $(HOST_SUBDIR)/gnulib && \
28500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28502 "RANLIB=$${RANLIB}" \
28503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28504 mostlyclean) \
28505 || exit 1
28506
28507@endif gnulib
28508
28509.PHONY: maybe-clean-gnulib clean-gnulib
28510maybe-clean-gnulib:
28511@if gnulib
28512maybe-clean-gnulib: clean-gnulib
28513
28514clean-gnulib:
28515 @: $(MAKE); $(unstage)
28516 @[ -f ./gnulib/Makefile ] || exit 0; \
28517 r=`${PWD_COMMAND}`; export r; \
28518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28519 $(HOST_EXPORTS) \
28520 for flag in $(EXTRA_HOST_FLAGS) ; do \
28521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28522 done; \
28523 echo "Doing clean in gnulib"; \
28524 (cd $(HOST_SUBDIR)/gnulib && \
28525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28527 "RANLIB=$${RANLIB}" \
28528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28529 clean) \
28530 || exit 1
28531
28532@endif gnulib
28533
28534.PHONY: maybe-distclean-gnulib distclean-gnulib
28535maybe-distclean-gnulib:
28536@if gnulib
28537maybe-distclean-gnulib: distclean-gnulib
28538
28539distclean-gnulib:
28540 @: $(MAKE); $(unstage)
28541 @[ -f ./gnulib/Makefile ] || exit 0; \
28542 r=`${PWD_COMMAND}`; export r; \
28543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28544 $(HOST_EXPORTS) \
28545 for flag in $(EXTRA_HOST_FLAGS) ; do \
28546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28547 done; \
28548 echo "Doing distclean in gnulib"; \
28549 (cd $(HOST_SUBDIR)/gnulib && \
28550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28552 "RANLIB=$${RANLIB}" \
28553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28554 distclean) \
28555 || exit 1
28556
28557@endif gnulib
28558
28559.PHONY: maybe-maintainer-clean-gnulib maintainer-clean-gnulib
28560maybe-maintainer-clean-gnulib:
28561@if gnulib
28562maybe-maintainer-clean-gnulib: maintainer-clean-gnulib
28563
28564maintainer-clean-gnulib:
28565 @: $(MAKE); $(unstage)
28566 @[ -f ./gnulib/Makefile ] || exit 0; \
28567 r=`${PWD_COMMAND}`; export r; \
28568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28569 $(HOST_EXPORTS) \
28570 for flag in $(EXTRA_HOST_FLAGS) ; do \
28571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28572 done; \
28573 echo "Doing maintainer-clean in gnulib"; \
28574 (cd $(HOST_SUBDIR)/gnulib && \
28575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28577 "RANLIB=$${RANLIB}" \
28578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28579 maintainer-clean) \
28580 || exit 1
28581
28582@endif gnulib
28583
28584
28585
01027315
TT
28586.PHONY: configure-gdbsupport maybe-configure-gdbsupport
28587maybe-configure-gdbsupport:
28588@if gcc-bootstrap
28589configure-gdbsupport: stage_current
28590@endif gcc-bootstrap
28591@if gdbsupport
28592maybe-configure-gdbsupport: configure-gdbsupport
28593configure-gdbsupport:
28594 @: $(MAKE); $(unstage)
28595 @r=`${PWD_COMMAND}`; export r; \
28596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28597 test ! -f $(HOST_SUBDIR)/gdbsupport/Makefile || exit 0; \
28598 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdbsupport; \
28599 $(HOST_EXPORTS) \
28600 echo Configuring in $(HOST_SUBDIR)/gdbsupport; \
28601 cd "$(HOST_SUBDIR)/gdbsupport" || exit 1; \
28602 case $(srcdir) in \
28603 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28604 *) topdir=`echo $(HOST_SUBDIR)/gdbsupport/ | \
28605 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28606 esac; \
28607 module_srcdir=gdbsupport; \
28608 $(SHELL) \
28609 $$s/$$module_srcdir/configure \
28610 --srcdir=$${topdir}/$$module_srcdir \
28611 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28612 --target=${target_alias} \
28613 || exit 1
28614@endif gdbsupport
28615
28616
28617
28618
28619
28620.PHONY: all-gdbsupport maybe-all-gdbsupport
28621maybe-all-gdbsupport:
28622@if gcc-bootstrap
28623all-gdbsupport: stage_current
28624@endif gcc-bootstrap
28625@if gdbsupport
28626TARGET-gdbsupport=all
28627maybe-all-gdbsupport: all-gdbsupport
28628all-gdbsupport: configure-gdbsupport
28629 @: $(MAKE); $(unstage)
28630 @r=`${PWD_COMMAND}`; export r; \
28631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28632 $(HOST_EXPORTS) \
28633 (cd $(HOST_SUBDIR)/gdbsupport && \
28634 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
28635 $(TARGET-gdbsupport))
28636@endif gdbsupport
28637
28638
28639
28640
28641.PHONY: check-gdbsupport maybe-check-gdbsupport
28642maybe-check-gdbsupport:
28643@if gdbsupport
28644maybe-check-gdbsupport: check-gdbsupport
28645
28646check-gdbsupport:
28647 @: $(MAKE); $(unstage)
28648 @r=`${PWD_COMMAND}`; export r; \
28649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28650 $(HOST_EXPORTS) \
28651 (cd $(HOST_SUBDIR)/gdbsupport && \
28652 $(MAKE) $(FLAGS_TO_PASS) check)
28653
28654@endif gdbsupport
28655
28656.PHONY: install-gdbsupport maybe-install-gdbsupport
28657maybe-install-gdbsupport:
28658@if gdbsupport
28659maybe-install-gdbsupport: install-gdbsupport
28660
28661install-gdbsupport: installdirs
28662 @: $(MAKE); $(unstage)
28663 @r=`${PWD_COMMAND}`; export r; \
28664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28665 $(HOST_EXPORTS) \
28666 (cd $(HOST_SUBDIR)/gdbsupport && \
28667 $(MAKE) $(FLAGS_TO_PASS) install)
28668
28669@endif gdbsupport
28670
28671.PHONY: install-strip-gdbsupport maybe-install-strip-gdbsupport
28672maybe-install-strip-gdbsupport:
28673@if gdbsupport
28674maybe-install-strip-gdbsupport: install-strip-gdbsupport
28675
28676install-strip-gdbsupport: installdirs
28677 @: $(MAKE); $(unstage)
28678 @r=`${PWD_COMMAND}`; export r; \
28679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28680 $(HOST_EXPORTS) \
28681 (cd $(HOST_SUBDIR)/gdbsupport && \
28682 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28683
28684@endif gdbsupport
28685
28686# Other targets (info, dvi, pdf, etc.)
28687
28688.PHONY: maybe-info-gdbsupport info-gdbsupport
28689maybe-info-gdbsupport:
28690@if gdbsupport
28691maybe-info-gdbsupport: info-gdbsupport
28692
28693info-gdbsupport: \
28694 configure-gdbsupport
28695 @: $(MAKE); $(unstage)
28696 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28697 r=`${PWD_COMMAND}`; export r; \
28698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28699 $(HOST_EXPORTS) \
28700 for flag in $(EXTRA_HOST_FLAGS) ; do \
28701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28702 done; \
28703 echo "Doing info in gdbsupport"; \
28704 (cd $(HOST_SUBDIR)/gdbsupport && \
28705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28707 "RANLIB=$${RANLIB}" \
28708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28709 info) \
28710 || exit 1
28711
28712@endif gdbsupport
28713
28714.PHONY: maybe-dvi-gdbsupport dvi-gdbsupport
28715maybe-dvi-gdbsupport:
28716@if gdbsupport
28717maybe-dvi-gdbsupport: dvi-gdbsupport
28718
28719dvi-gdbsupport: \
28720 configure-gdbsupport
28721 @: $(MAKE); $(unstage)
28722 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28723 r=`${PWD_COMMAND}`; export r; \
28724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28725 $(HOST_EXPORTS) \
28726 for flag in $(EXTRA_HOST_FLAGS) ; do \
28727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28728 done; \
28729 echo "Doing dvi in gdbsupport"; \
28730 (cd $(HOST_SUBDIR)/gdbsupport && \
28731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28733 "RANLIB=$${RANLIB}" \
28734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28735 dvi) \
28736 || exit 1
28737
28738@endif gdbsupport
28739
28740.PHONY: maybe-pdf-gdbsupport pdf-gdbsupport
28741maybe-pdf-gdbsupport:
28742@if gdbsupport
28743maybe-pdf-gdbsupport: pdf-gdbsupport
28744
28745pdf-gdbsupport: \
28746 configure-gdbsupport
28747 @: $(MAKE); $(unstage)
28748 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28749 r=`${PWD_COMMAND}`; export r; \
28750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28751 $(HOST_EXPORTS) \
28752 for flag in $(EXTRA_HOST_FLAGS) ; do \
28753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28754 done; \
28755 echo "Doing pdf in gdbsupport"; \
28756 (cd $(HOST_SUBDIR)/gdbsupport && \
28757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28759 "RANLIB=$${RANLIB}" \
28760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28761 pdf) \
28762 || exit 1
28763
28764@endif gdbsupport
28765
28766.PHONY: maybe-html-gdbsupport html-gdbsupport
28767maybe-html-gdbsupport:
28768@if gdbsupport
28769maybe-html-gdbsupport: html-gdbsupport
28770
28771html-gdbsupport: \
28772 configure-gdbsupport
28773 @: $(MAKE); $(unstage)
28774 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28775 r=`${PWD_COMMAND}`; export r; \
28776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28777 $(HOST_EXPORTS) \
28778 for flag in $(EXTRA_HOST_FLAGS) ; do \
28779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28780 done; \
28781 echo "Doing html in gdbsupport"; \
28782 (cd $(HOST_SUBDIR)/gdbsupport && \
28783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28785 "RANLIB=$${RANLIB}" \
28786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28787 html) \
28788 || exit 1
28789
28790@endif gdbsupport
28791
28792.PHONY: maybe-TAGS-gdbsupport TAGS-gdbsupport
28793maybe-TAGS-gdbsupport:
28794@if gdbsupport
28795maybe-TAGS-gdbsupport: TAGS-gdbsupport
28796
28797TAGS-gdbsupport: \
28798 configure-gdbsupport
28799 @: $(MAKE); $(unstage)
28800 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28801 r=`${PWD_COMMAND}`; export r; \
28802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28803 $(HOST_EXPORTS) \
28804 for flag in $(EXTRA_HOST_FLAGS) ; do \
28805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28806 done; \
28807 echo "Doing TAGS in gdbsupport"; \
28808 (cd $(HOST_SUBDIR)/gdbsupport && \
28809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28811 "RANLIB=$${RANLIB}" \
28812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28813 TAGS) \
28814 || exit 1
28815
28816@endif gdbsupport
28817
28818.PHONY: maybe-install-info-gdbsupport install-info-gdbsupport
28819maybe-install-info-gdbsupport:
28820@if gdbsupport
28821maybe-install-info-gdbsupport: install-info-gdbsupport
28822
28823install-info-gdbsupport: \
28824 configure-gdbsupport \
28825 info-gdbsupport
28826 @: $(MAKE); $(unstage)
28827 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28828 r=`${PWD_COMMAND}`; export r; \
28829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28830 $(HOST_EXPORTS) \
28831 for flag in $(EXTRA_HOST_FLAGS) ; do \
28832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28833 done; \
28834 echo "Doing install-info in gdbsupport"; \
28835 (cd $(HOST_SUBDIR)/gdbsupport && \
28836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28838 "RANLIB=$${RANLIB}" \
28839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28840 install-info) \
28841 || exit 1
28842
28843@endif gdbsupport
28844
28845.PHONY: maybe-install-pdf-gdbsupport install-pdf-gdbsupport
28846maybe-install-pdf-gdbsupport:
28847@if gdbsupport
28848maybe-install-pdf-gdbsupport: install-pdf-gdbsupport
28849
28850install-pdf-gdbsupport: \
28851 configure-gdbsupport \
28852 pdf-gdbsupport
28853 @: $(MAKE); $(unstage)
28854 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28855 r=`${PWD_COMMAND}`; export r; \
28856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28857 $(HOST_EXPORTS) \
28858 for flag in $(EXTRA_HOST_FLAGS) ; do \
28859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28860 done; \
28861 echo "Doing install-pdf in gdbsupport"; \
28862 (cd $(HOST_SUBDIR)/gdbsupport && \
28863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28865 "RANLIB=$${RANLIB}" \
28866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28867 install-pdf) \
28868 || exit 1
28869
28870@endif gdbsupport
28871
28872.PHONY: maybe-install-html-gdbsupport install-html-gdbsupport
28873maybe-install-html-gdbsupport:
28874@if gdbsupport
28875maybe-install-html-gdbsupport: install-html-gdbsupport
28876
28877install-html-gdbsupport: \
28878 configure-gdbsupport \
28879 html-gdbsupport
28880 @: $(MAKE); $(unstage)
28881 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28882 r=`${PWD_COMMAND}`; export r; \
28883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28884 $(HOST_EXPORTS) \
28885 for flag in $(EXTRA_HOST_FLAGS) ; do \
28886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28887 done; \
28888 echo "Doing install-html in gdbsupport"; \
28889 (cd $(HOST_SUBDIR)/gdbsupport && \
28890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28892 "RANLIB=$${RANLIB}" \
28893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28894 install-html) \
28895 || exit 1
28896
28897@endif gdbsupport
28898
28899.PHONY: maybe-installcheck-gdbsupport installcheck-gdbsupport
28900maybe-installcheck-gdbsupport:
28901@if gdbsupport
28902maybe-installcheck-gdbsupport: installcheck-gdbsupport
28903
28904installcheck-gdbsupport: \
28905 configure-gdbsupport
28906 @: $(MAKE); $(unstage)
28907 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28908 r=`${PWD_COMMAND}`; export r; \
28909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28910 $(HOST_EXPORTS) \
28911 for flag in $(EXTRA_HOST_FLAGS) ; do \
28912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28913 done; \
28914 echo "Doing installcheck in gdbsupport"; \
28915 (cd $(HOST_SUBDIR)/gdbsupport && \
28916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28918 "RANLIB=$${RANLIB}" \
28919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28920 installcheck) \
28921 || exit 1
28922
28923@endif gdbsupport
28924
28925.PHONY: maybe-mostlyclean-gdbsupport mostlyclean-gdbsupport
28926maybe-mostlyclean-gdbsupport:
28927@if gdbsupport
28928maybe-mostlyclean-gdbsupport: mostlyclean-gdbsupport
28929
28930mostlyclean-gdbsupport:
28931 @: $(MAKE); $(unstage)
28932 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28933 r=`${PWD_COMMAND}`; export r; \
28934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28935 $(HOST_EXPORTS) \
28936 for flag in $(EXTRA_HOST_FLAGS) ; do \
28937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28938 done; \
28939 echo "Doing mostlyclean in gdbsupport"; \
28940 (cd $(HOST_SUBDIR)/gdbsupport && \
28941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28943 "RANLIB=$${RANLIB}" \
28944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28945 mostlyclean) \
28946 || exit 1
28947
28948@endif gdbsupport
28949
28950.PHONY: maybe-clean-gdbsupport clean-gdbsupport
28951maybe-clean-gdbsupport:
28952@if gdbsupport
28953maybe-clean-gdbsupport: clean-gdbsupport
28954
28955clean-gdbsupport:
28956 @: $(MAKE); $(unstage)
28957 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28958 r=`${PWD_COMMAND}`; export r; \
28959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28960 $(HOST_EXPORTS) \
28961 for flag in $(EXTRA_HOST_FLAGS) ; do \
28962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28963 done; \
28964 echo "Doing clean in gdbsupport"; \
28965 (cd $(HOST_SUBDIR)/gdbsupport && \
28966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28968 "RANLIB=$${RANLIB}" \
28969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28970 clean) \
28971 || exit 1
28972
28973@endif gdbsupport
28974
28975.PHONY: maybe-distclean-gdbsupport distclean-gdbsupport
28976maybe-distclean-gdbsupport:
28977@if gdbsupport
28978maybe-distclean-gdbsupport: distclean-gdbsupport
28979
28980distclean-gdbsupport:
28981 @: $(MAKE); $(unstage)
28982 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28983 r=`${PWD_COMMAND}`; export r; \
28984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28985 $(HOST_EXPORTS) \
28986 for flag in $(EXTRA_HOST_FLAGS) ; do \
28987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28988 done; \
28989 echo "Doing distclean in gdbsupport"; \
28990 (cd $(HOST_SUBDIR)/gdbsupport && \
28991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28993 "RANLIB=$${RANLIB}" \
28994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28995 distclean) \
28996 || exit 1
28997
28998@endif gdbsupport
28999
29000.PHONY: maybe-maintainer-clean-gdbsupport maintainer-clean-gdbsupport
29001maybe-maintainer-clean-gdbsupport:
29002@if gdbsupport
29003maybe-maintainer-clean-gdbsupport: maintainer-clean-gdbsupport
29004
29005maintainer-clean-gdbsupport:
29006 @: $(MAKE); $(unstage)
29007 @[ -f ./gdbsupport/Makefile ] || exit 0; \
29008 r=`${PWD_COMMAND}`; export r; \
29009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29010 $(HOST_EXPORTS) \
29011 for flag in $(EXTRA_HOST_FLAGS) ; do \
29012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29013 done; \
29014 echo "Doing maintainer-clean in gdbsupport"; \
29015 (cd $(HOST_SUBDIR)/gdbsupport && \
29016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29018 "RANLIB=$${RANLIB}" \
29019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29020 maintainer-clean) \
29021 || exit 1
29022
29023@endif gdbsupport
29024
29025
29026
919adfe8
TT
29027.PHONY: configure-gdbserver maybe-configure-gdbserver
29028maybe-configure-gdbserver:
29029@if gcc-bootstrap
29030configure-gdbserver: stage_current
29031@endif gcc-bootstrap
29032@if gdbserver
29033maybe-configure-gdbserver: configure-gdbserver
29034configure-gdbserver:
29035 @: $(MAKE); $(unstage)
29036 @r=`${PWD_COMMAND}`; export r; \
29037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29038 test ! -f $(HOST_SUBDIR)/gdbserver/Makefile || exit 0; \
29039 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdbserver; \
29040 $(HOST_EXPORTS) \
29041 echo Configuring in $(HOST_SUBDIR)/gdbserver; \
29042 cd "$(HOST_SUBDIR)/gdbserver" || exit 1; \
29043 case $(srcdir) in \
29044 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29045 *) topdir=`echo $(HOST_SUBDIR)/gdbserver/ | \
29046 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29047 esac; \
29048 module_srcdir=gdbserver; \
29049 $(SHELL) \
29050 $$s/$$module_srcdir/configure \
29051 --srcdir=$${topdir}/$$module_srcdir \
29052 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29053 --target=${target_alias} \
29054 || exit 1
29055@endif gdbserver
29056
29057
29058
29059
29060
29061.PHONY: all-gdbserver maybe-all-gdbserver
29062maybe-all-gdbserver:
29063@if gcc-bootstrap
29064all-gdbserver: stage_current
29065@endif gcc-bootstrap
29066@if gdbserver
29067TARGET-gdbserver=all
29068maybe-all-gdbserver: all-gdbserver
29069all-gdbserver: configure-gdbserver
29070 @: $(MAKE); $(unstage)
29071 @r=`${PWD_COMMAND}`; export r; \
29072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29073 $(HOST_EXPORTS) \
29074 (cd $(HOST_SUBDIR)/gdbserver && \
29075 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
29076 $(TARGET-gdbserver))
29077@endif gdbserver
29078
29079
29080
29081
29082.PHONY: check-gdbserver maybe-check-gdbserver
29083maybe-check-gdbserver:
29084@if gdbserver
29085maybe-check-gdbserver: check-gdbserver
29086
29087check-gdbserver:
29088 @: $(MAKE); $(unstage)
29089 @r=`${PWD_COMMAND}`; export r; \
29090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29091 $(HOST_EXPORTS) \
29092 (cd $(HOST_SUBDIR)/gdbserver && \
29093 $(MAKE) $(FLAGS_TO_PASS) check)
29094
29095@endif gdbserver
29096
29097.PHONY: install-gdbserver maybe-install-gdbserver
29098maybe-install-gdbserver:
29099@if gdbserver
29100maybe-install-gdbserver: install-gdbserver
29101
29102install-gdbserver: installdirs
29103 @: $(MAKE); $(unstage)
29104 @r=`${PWD_COMMAND}`; export r; \
29105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29106 $(HOST_EXPORTS) \
29107 (cd $(HOST_SUBDIR)/gdbserver && \
29108 $(MAKE) $(FLAGS_TO_PASS) install)
29109
29110@endif gdbserver
29111
29112.PHONY: install-strip-gdbserver maybe-install-strip-gdbserver
29113maybe-install-strip-gdbserver:
29114@if gdbserver
29115maybe-install-strip-gdbserver: install-strip-gdbserver
29116
29117install-strip-gdbserver: installdirs
29118 @: $(MAKE); $(unstage)
29119 @r=`${PWD_COMMAND}`; export r; \
29120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29121 $(HOST_EXPORTS) \
29122 (cd $(HOST_SUBDIR)/gdbserver && \
29123 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29124
29125@endif gdbserver
29126
29127# Other targets (info, dvi, pdf, etc.)
29128
29129.PHONY: maybe-info-gdbserver info-gdbserver
29130maybe-info-gdbserver:
29131@if gdbserver
29132maybe-info-gdbserver: info-gdbserver
29133
29134info-gdbserver: \
29135 configure-gdbserver
29136 @: $(MAKE); $(unstage)
29137 @[ -f ./gdbserver/Makefile ] || exit 0; \
29138 r=`${PWD_COMMAND}`; export r; \
29139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29140 $(HOST_EXPORTS) \
29141 for flag in $(EXTRA_HOST_FLAGS) ; do \
29142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29143 done; \
29144 echo "Doing info in gdbserver"; \
29145 (cd $(HOST_SUBDIR)/gdbserver && \
29146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29148 "RANLIB=$${RANLIB}" \
29149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29150 info) \
29151 || exit 1
29152
29153@endif gdbserver
29154
29155.PHONY: maybe-dvi-gdbserver dvi-gdbserver
29156maybe-dvi-gdbserver:
29157@if gdbserver
29158maybe-dvi-gdbserver: dvi-gdbserver
29159
29160dvi-gdbserver: \
29161 configure-gdbserver
29162 @: $(MAKE); $(unstage)
29163 @[ -f ./gdbserver/Makefile ] || exit 0; \
29164 r=`${PWD_COMMAND}`; export r; \
29165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29166 $(HOST_EXPORTS) \
29167 for flag in $(EXTRA_HOST_FLAGS) ; do \
29168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29169 done; \
29170 echo "Doing dvi in gdbserver"; \
29171 (cd $(HOST_SUBDIR)/gdbserver && \
29172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29174 "RANLIB=$${RANLIB}" \
29175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29176 dvi) \
29177 || exit 1
29178
29179@endif gdbserver
29180
29181.PHONY: maybe-pdf-gdbserver pdf-gdbserver
29182maybe-pdf-gdbserver:
29183@if gdbserver
29184maybe-pdf-gdbserver: pdf-gdbserver
29185
29186pdf-gdbserver: \
29187 configure-gdbserver
29188 @: $(MAKE); $(unstage)
29189 @[ -f ./gdbserver/Makefile ] || exit 0; \
29190 r=`${PWD_COMMAND}`; export r; \
29191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29192 $(HOST_EXPORTS) \
29193 for flag in $(EXTRA_HOST_FLAGS) ; do \
29194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29195 done; \
29196 echo "Doing pdf in gdbserver"; \
29197 (cd $(HOST_SUBDIR)/gdbserver && \
29198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29200 "RANLIB=$${RANLIB}" \
29201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29202 pdf) \
29203 || exit 1
29204
29205@endif gdbserver
29206
29207.PHONY: maybe-html-gdbserver html-gdbserver
29208maybe-html-gdbserver:
29209@if gdbserver
29210maybe-html-gdbserver: html-gdbserver
29211
29212html-gdbserver: \
29213 configure-gdbserver
29214 @: $(MAKE); $(unstage)
29215 @[ -f ./gdbserver/Makefile ] || exit 0; \
29216 r=`${PWD_COMMAND}`; export r; \
29217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29218 $(HOST_EXPORTS) \
29219 for flag in $(EXTRA_HOST_FLAGS) ; do \
29220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29221 done; \
29222 echo "Doing html in gdbserver"; \
29223 (cd $(HOST_SUBDIR)/gdbserver && \
29224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29226 "RANLIB=$${RANLIB}" \
29227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29228 html) \
29229 || exit 1
29230
29231@endif gdbserver
29232
29233.PHONY: maybe-TAGS-gdbserver TAGS-gdbserver
29234maybe-TAGS-gdbserver:
29235@if gdbserver
29236maybe-TAGS-gdbserver: TAGS-gdbserver
29237
29238TAGS-gdbserver: \
29239 configure-gdbserver
29240 @: $(MAKE); $(unstage)
29241 @[ -f ./gdbserver/Makefile ] || exit 0; \
29242 r=`${PWD_COMMAND}`; export r; \
29243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29244 $(HOST_EXPORTS) \
29245 for flag in $(EXTRA_HOST_FLAGS) ; do \
29246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29247 done; \
29248 echo "Doing TAGS in gdbserver"; \
29249 (cd $(HOST_SUBDIR)/gdbserver && \
29250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29252 "RANLIB=$${RANLIB}" \
29253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29254 TAGS) \
29255 || exit 1
29256
29257@endif gdbserver
29258
29259.PHONY: maybe-install-info-gdbserver install-info-gdbserver
29260maybe-install-info-gdbserver:
29261@if gdbserver
29262maybe-install-info-gdbserver: install-info-gdbserver
29263
29264install-info-gdbserver: \
29265 configure-gdbserver \
29266 info-gdbserver
29267 @: $(MAKE); $(unstage)
29268 @[ -f ./gdbserver/Makefile ] || exit 0; \
29269 r=`${PWD_COMMAND}`; export r; \
29270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29271 $(HOST_EXPORTS) \
29272 for flag in $(EXTRA_HOST_FLAGS) ; do \
29273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29274 done; \
29275 echo "Doing install-info in gdbserver"; \
29276 (cd $(HOST_SUBDIR)/gdbserver && \
29277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29279 "RANLIB=$${RANLIB}" \
29280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29281 install-info) \
29282 || exit 1
29283
29284@endif gdbserver
29285
29286.PHONY: maybe-install-pdf-gdbserver install-pdf-gdbserver
29287maybe-install-pdf-gdbserver:
29288@if gdbserver
29289maybe-install-pdf-gdbserver: install-pdf-gdbserver
29290
29291install-pdf-gdbserver: \
29292 configure-gdbserver \
29293 pdf-gdbserver
29294 @: $(MAKE); $(unstage)
29295 @[ -f ./gdbserver/Makefile ] || exit 0; \
29296 r=`${PWD_COMMAND}`; export r; \
29297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29298 $(HOST_EXPORTS) \
29299 for flag in $(EXTRA_HOST_FLAGS) ; do \
29300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29301 done; \
29302 echo "Doing install-pdf in gdbserver"; \
29303 (cd $(HOST_SUBDIR)/gdbserver && \
29304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29306 "RANLIB=$${RANLIB}" \
29307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29308 install-pdf) \
29309 || exit 1
29310
29311@endif gdbserver
29312
29313.PHONY: maybe-install-html-gdbserver install-html-gdbserver
29314maybe-install-html-gdbserver:
29315@if gdbserver
29316maybe-install-html-gdbserver: install-html-gdbserver
29317
29318install-html-gdbserver: \
29319 configure-gdbserver \
29320 html-gdbserver
29321 @: $(MAKE); $(unstage)
29322 @[ -f ./gdbserver/Makefile ] || exit 0; \
29323 r=`${PWD_COMMAND}`; export r; \
29324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29325 $(HOST_EXPORTS) \
29326 for flag in $(EXTRA_HOST_FLAGS) ; do \
29327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29328 done; \
29329 echo "Doing install-html in gdbserver"; \
29330 (cd $(HOST_SUBDIR)/gdbserver && \
29331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29333 "RANLIB=$${RANLIB}" \
29334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29335 install-html) \
29336 || exit 1
29337
29338@endif gdbserver
29339
29340.PHONY: maybe-installcheck-gdbserver installcheck-gdbserver
29341maybe-installcheck-gdbserver:
29342@if gdbserver
29343maybe-installcheck-gdbserver: installcheck-gdbserver
29344
29345installcheck-gdbserver: \
29346 configure-gdbserver
29347 @: $(MAKE); $(unstage)
29348 @[ -f ./gdbserver/Makefile ] || exit 0; \
29349 r=`${PWD_COMMAND}`; export r; \
29350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29351 $(HOST_EXPORTS) \
29352 for flag in $(EXTRA_HOST_FLAGS) ; do \
29353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29354 done; \
29355 echo "Doing installcheck in gdbserver"; \
29356 (cd $(HOST_SUBDIR)/gdbserver && \
29357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29359 "RANLIB=$${RANLIB}" \
29360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29361 installcheck) \
29362 || exit 1
29363
29364@endif gdbserver
29365
29366.PHONY: maybe-mostlyclean-gdbserver mostlyclean-gdbserver
29367maybe-mostlyclean-gdbserver:
29368@if gdbserver
29369maybe-mostlyclean-gdbserver: mostlyclean-gdbserver
29370
29371mostlyclean-gdbserver:
29372 @: $(MAKE); $(unstage)
29373 @[ -f ./gdbserver/Makefile ] || exit 0; \
29374 r=`${PWD_COMMAND}`; export r; \
29375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29376 $(HOST_EXPORTS) \
29377 for flag in $(EXTRA_HOST_FLAGS) ; do \
29378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29379 done; \
29380 echo "Doing mostlyclean in gdbserver"; \
29381 (cd $(HOST_SUBDIR)/gdbserver && \
29382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29384 "RANLIB=$${RANLIB}" \
29385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29386 mostlyclean) \
29387 || exit 1
29388
29389@endif gdbserver
29390
29391.PHONY: maybe-clean-gdbserver clean-gdbserver
29392maybe-clean-gdbserver:
29393@if gdbserver
29394maybe-clean-gdbserver: clean-gdbserver
29395
29396clean-gdbserver:
29397 @: $(MAKE); $(unstage)
29398 @[ -f ./gdbserver/Makefile ] || exit 0; \
29399 r=`${PWD_COMMAND}`; export r; \
29400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29401 $(HOST_EXPORTS) \
29402 for flag in $(EXTRA_HOST_FLAGS) ; do \
29403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29404 done; \
29405 echo "Doing clean in gdbserver"; \
29406 (cd $(HOST_SUBDIR)/gdbserver && \
29407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29409 "RANLIB=$${RANLIB}" \
29410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29411 clean) \
29412 || exit 1
29413
29414@endif gdbserver
29415
29416.PHONY: maybe-distclean-gdbserver distclean-gdbserver
29417maybe-distclean-gdbserver:
29418@if gdbserver
29419maybe-distclean-gdbserver: distclean-gdbserver
29420
29421distclean-gdbserver:
29422 @: $(MAKE); $(unstage)
29423 @[ -f ./gdbserver/Makefile ] || exit 0; \
29424 r=`${PWD_COMMAND}`; export r; \
29425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29426 $(HOST_EXPORTS) \
29427 for flag in $(EXTRA_HOST_FLAGS) ; do \
29428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29429 done; \
29430 echo "Doing distclean in gdbserver"; \
29431 (cd $(HOST_SUBDIR)/gdbserver && \
29432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29434 "RANLIB=$${RANLIB}" \
29435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29436 distclean) \
29437 || exit 1
29438
29439@endif gdbserver
29440
29441.PHONY: maybe-maintainer-clean-gdbserver maintainer-clean-gdbserver
29442maybe-maintainer-clean-gdbserver:
29443@if gdbserver
29444maybe-maintainer-clean-gdbserver: maintainer-clean-gdbserver
29445
29446maintainer-clean-gdbserver:
29447 @: $(MAKE); $(unstage)
29448 @[ -f ./gdbserver/Makefile ] || exit 0; \
29449 r=`${PWD_COMMAND}`; export r; \
29450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29451 $(HOST_EXPORTS) \
29452 for flag in $(EXTRA_HOST_FLAGS) ; do \
29453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29454 done; \
29455 echo "Doing maintainer-clean in gdbserver"; \
29456 (cd $(HOST_SUBDIR)/gdbserver && \
29457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29459 "RANLIB=$${RANLIB}" \
29460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29461 maintainer-clean) \
29462 || exit 1
29463
29464@endif gdbserver
29465
29466
29467
a90ef4bf
JM
29468.PHONY: configure-gdb maybe-configure-gdb
29469maybe-configure-gdb:
4f0ef2d8 29470@if gcc-bootstrap
a90ef4bf 29471configure-gdb: stage_current
4f0ef2d8 29472@endif gcc-bootstrap
a90ef4bf
JM
29473@if gdb
29474maybe-configure-gdb: configure-gdb
29475configure-gdb:
29476 @: $(MAKE); $(unstage)
c52c6897
PB
29477 @r=`${PWD_COMMAND}`; export r; \
29478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29479 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 29480 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 29481 $(HOST_EXPORTS) \
a90ef4bf
JM
29482 echo Configuring in $(HOST_SUBDIR)/gdb; \
29483 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 29484 case $(srcdir) in \
b00612cc 29485 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29486 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 29487 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29488 esac; \
1b6c0831
L
29489 module_srcdir=gdb; \
29490 $(SHELL) \
29491 $$s/$$module_srcdir/configure \
29492 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29493 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29494 --target=${target_alias} \
4fa63067 29495 || exit 1
a90ef4bf 29496@endif gdb
4fa63067 29497
a7254363
PB
29498
29499
d545f33b 29500
8520c408 29501
a90ef4bf
JM
29502.PHONY: all-gdb maybe-all-gdb
29503maybe-all-gdb:
29504@if gcc-bootstrap
29505all-gdb: stage_current
29506@endif gcc-bootstrap
29507@if gdb
29508TARGET-gdb=all
29509maybe-all-gdb: all-gdb
29510all-gdb: configure-gdb
29511 @: $(MAKE); $(unstage)
c52c6897
PB
29512 @r=`${PWD_COMMAND}`; export r; \
29513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29514 $(HOST_EXPORTS) \
29515 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 29516 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29517 $(TARGET-gdb))
29518@endif gdb
8520c408 29519
a90ef4bf
JM
29520
29521
29522
29523.PHONY: check-gdb maybe-check-gdb
29524maybe-check-gdb:
29525@if gdb
29526maybe-check-gdb: check-gdb
29527
29528check-gdb:
29529 @: $(MAKE); $(unstage)
c52c6897
PB
29530 @r=`${PWD_COMMAND}`; export r; \
29531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29532 $(HOST_EXPORTS) \
a90ef4bf
JM
29533 (cd $(HOST_SUBDIR)/gdb && \
29534 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 29535
a90ef4bf
JM
29536@endif gdb
29537
29538.PHONY: install-gdb maybe-install-gdb
29539maybe-install-gdb:
29540@if gdb
29541maybe-install-gdb: install-gdb
29542
29543install-gdb: installdirs
29544 @: $(MAKE); $(unstage)
c52c6897
PB
29545 @r=`${PWD_COMMAND}`; export r; \
29546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29547 $(HOST_EXPORTS) \
a90ef4bf
JM
29548 (cd $(HOST_SUBDIR)/gdb && \
29549 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 29550
a90ef4bf
JM
29551@endif gdb
29552
29553.PHONY: install-strip-gdb maybe-install-strip-gdb
29554maybe-install-strip-gdb:
29555@if gdb
29556maybe-install-strip-gdb: install-strip-gdb
29557
29558install-strip-gdb: installdirs
29559 @: $(MAKE); $(unstage)
c52c6897
PB
29560 @r=`${PWD_COMMAND}`; export r; \
29561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29562 $(HOST_EXPORTS) \
a90ef4bf
JM
29563 (cd $(HOST_SUBDIR)/gdb && \
29564 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29565
a90ef4bf 29566@endif gdb
d545f33b 29567
a90ef4bf 29568# Other targets (info, dvi, pdf, etc.)
d545f33b 29569
a90ef4bf
JM
29570.PHONY: maybe-info-gdb info-gdb
29571maybe-info-gdb:
29572@if gdb
29573maybe-info-gdb: info-gdb
d545f33b 29574
a90ef4bf
JM
29575info-gdb: \
29576 configure-gdb
29577 @: $(MAKE); $(unstage)
29578 @[ -f ./gdb/Makefile ] || exit 0; \
29579 r=`${PWD_COMMAND}`; export r; \
4fa63067 29580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29581 $(HOST_EXPORTS) \
29582 for flag in $(EXTRA_HOST_FLAGS) ; do \
29583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29584 done; \
22121df0 29585 echo "Doing info in gdb"; \
a90ef4bf
JM
29586 (cd $(HOST_SUBDIR)/gdb && \
29587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29589 "RANLIB=$${RANLIB}" \
29590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29591 info) \
29592 || exit 1
4fa63067 29593
a90ef4bf 29594@endif gdb
a7254363 29595
a90ef4bf
JM
29596.PHONY: maybe-dvi-gdb dvi-gdb
29597maybe-dvi-gdb:
29598@if gdb
29599maybe-dvi-gdb: dvi-gdb
d545f33b 29600
a90ef4bf
JM
29601dvi-gdb: \
29602 configure-gdb
29603 @: $(MAKE); $(unstage)
29604 @[ -f ./gdb/Makefile ] || exit 0; \
29605 r=`${PWD_COMMAND}`; export r; \
d545f33b 29606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29607 $(HOST_EXPORTS) \
29608 for flag in $(EXTRA_HOST_FLAGS) ; do \
29609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29610 done; \
22121df0 29611 echo "Doing dvi in gdb"; \
a90ef4bf
JM
29612 (cd $(HOST_SUBDIR)/gdb && \
29613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29615 "RANLIB=$${RANLIB}" \
29616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29617 dvi) \
29618 || exit 1
d545f33b 29619
a90ef4bf 29620@endif gdb
d545f33b 29621
a90ef4bf
JM
29622.PHONY: maybe-pdf-gdb pdf-gdb
29623maybe-pdf-gdb:
29624@if gdb
29625maybe-pdf-gdb: pdf-gdb
d545f33b 29626
a90ef4bf
JM
29627pdf-gdb: \
29628 configure-gdb
9b980aa1 29629 @: $(MAKE); $(unstage)
a90ef4bf 29630 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29631 r=`${PWD_COMMAND}`; export r; \
29632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29633 $(HOST_EXPORTS) \
b813574b 29634 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29636 done; \
22121df0 29637 echo "Doing pdf in gdb"; \
a90ef4bf 29638 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29641 "RANLIB=$${RANLIB}" \
0c24b341 29642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29643 pdf) \
2a4cbe27
NN
29644 || exit 1
29645
a90ef4bf 29646@endif gdb
2a4cbe27 29647
a90ef4bf
JM
29648.PHONY: maybe-html-gdb html-gdb
29649maybe-html-gdb:
29650@if gdb
29651maybe-html-gdb: html-gdb
2a4cbe27 29652
a90ef4bf
JM
29653html-gdb: \
29654 configure-gdb
29655 @: $(MAKE); $(unstage)
29656 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29657 r=`${PWD_COMMAND}`; export r; \
29658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29659 $(HOST_EXPORTS) \
b813574b 29660 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29662 done; \
22121df0 29663 echo "Doing html in gdb"; \
a90ef4bf 29664 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29667 "RANLIB=$${RANLIB}" \
0c24b341 29668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29669 html) \
2a4cbe27
NN
29670 || exit 1
29671
a90ef4bf 29672@endif gdb
2a4cbe27 29673
a90ef4bf
JM
29674.PHONY: maybe-TAGS-gdb TAGS-gdb
29675maybe-TAGS-gdb:
29676@if gdb
29677maybe-TAGS-gdb: TAGS-gdb
56a8fe78 29678
a90ef4bf
JM
29679TAGS-gdb: \
29680 configure-gdb
29681 @: $(MAKE); $(unstage)
29682 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
29683 r=`${PWD_COMMAND}`; export r; \
29684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29685 $(HOST_EXPORTS) \
29686 for flag in $(EXTRA_HOST_FLAGS) ; do \
29687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29688 done; \
22121df0 29689 echo "Doing TAGS in gdb"; \
a90ef4bf 29690 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
29691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29693 "RANLIB=$${RANLIB}" \
0c24b341 29694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29695 TAGS) \
56a8fe78
DD
29696 || exit 1
29697
a90ef4bf 29698@endif gdb
56a8fe78 29699
a90ef4bf
JM
29700.PHONY: maybe-install-info-gdb install-info-gdb
29701maybe-install-info-gdb:
29702@if gdb
29703maybe-install-info-gdb: install-info-gdb
6d389afc 29704
a90ef4bf
JM
29705install-info-gdb: \
29706 configure-gdb \
29707 info-gdb
29708 @: $(MAKE); $(unstage)
29709 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
29710 r=`${PWD_COMMAND}`; export r; \
29711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29712 $(HOST_EXPORTS) \
29713 for flag in $(EXTRA_HOST_FLAGS) ; do \
29714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29715 done; \
22121df0 29716 echo "Doing install-info in gdb"; \
a90ef4bf 29717 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
29718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29720 "RANLIB=$${RANLIB}" \
0c24b341 29721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29722 install-info) \
6d389afc
MS
29723 || exit 1
29724
a90ef4bf 29725@endif gdb
6d389afc 29726
a90ef4bf
JM
29727.PHONY: maybe-install-pdf-gdb install-pdf-gdb
29728maybe-install-pdf-gdb:
29729@if gdb
29730maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 29731
a90ef4bf
JM
29732install-pdf-gdb: \
29733 configure-gdb \
29734 pdf-gdb
29735 @: $(MAKE); $(unstage)
29736 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29737 r=`${PWD_COMMAND}`; export r; \
29738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29739 $(HOST_EXPORTS) \
b813574b 29740 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29742 done; \
22121df0 29743 echo "Doing install-pdf in gdb"; \
a90ef4bf 29744 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29747 "RANLIB=$${RANLIB}" \
0c24b341 29748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29749 install-pdf) \
2a4cbe27
NN
29750 || exit 1
29751
a90ef4bf 29752@endif gdb
2a4cbe27 29753
a90ef4bf
JM
29754.PHONY: maybe-install-html-gdb install-html-gdb
29755maybe-install-html-gdb:
29756@if gdb
29757maybe-install-html-gdb: install-html-gdb
2a4cbe27 29758
a90ef4bf
JM
29759install-html-gdb: \
29760 configure-gdb \
29761 html-gdb
29762 @: $(MAKE); $(unstage)
29763 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29764 r=`${PWD_COMMAND}`; export r; \
29765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29766 $(HOST_EXPORTS) \
b813574b 29767 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29769 done; \
22121df0 29770 echo "Doing install-html in gdb"; \
a90ef4bf 29771 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29774 "RANLIB=$${RANLIB}" \
0c24b341 29775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29776 install-html) \
2a4cbe27
NN
29777 || exit 1
29778
a90ef4bf 29779@endif gdb
2a4cbe27 29780
a90ef4bf
JM
29781.PHONY: maybe-installcheck-gdb installcheck-gdb
29782maybe-installcheck-gdb:
29783@if gdb
29784maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 29785
a90ef4bf
JM
29786installcheck-gdb: \
29787 configure-gdb
29788 @: $(MAKE); $(unstage)
29789 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
29790 r=`${PWD_COMMAND}`; export r; \
29791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29792 $(HOST_EXPORTS) \
29793 for flag in $(EXTRA_HOST_FLAGS) ; do \
29794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29795 done; \
22121df0 29796 echo "Doing installcheck in gdb"; \
a90ef4bf 29797 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
29798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29800 "RANLIB=$${RANLIB}" \
0c24b341 29801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29802 installcheck) \
a3ca38d2
DD
29803 || exit 1
29804
a90ef4bf 29805@endif gdb
a3ca38d2 29806
a90ef4bf
JM
29807.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
29808maybe-mostlyclean-gdb:
29809@if gdb
29810maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 29811
a90ef4bf
JM
29812mostlyclean-gdb:
29813 @: $(MAKE); $(unstage)
29814 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
29815 r=`${PWD_COMMAND}`; export r; \
29816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29817 $(HOST_EXPORTS) \
29818 for flag in $(EXTRA_HOST_FLAGS) ; do \
29819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29820 done; \
22121df0 29821 echo "Doing mostlyclean in gdb"; \
a90ef4bf 29822 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
29823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29825 "RANLIB=$${RANLIB}" \
0c24b341 29826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29827 mostlyclean) \
108a6f8e
CD
29828 || exit 1
29829
a90ef4bf 29830@endif gdb
108a6f8e 29831
a90ef4bf
JM
29832.PHONY: maybe-clean-gdb clean-gdb
29833maybe-clean-gdb:
29834@if gdb
29835maybe-clean-gdb: clean-gdb
2a4cbe27 29836
a90ef4bf
JM
29837clean-gdb:
29838 @: $(MAKE); $(unstage)
29839 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29840 r=`${PWD_COMMAND}`; export r; \
29841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29842 $(HOST_EXPORTS) \
b813574b 29843 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29845 done; \
22121df0 29846 echo "Doing clean in gdb"; \
a90ef4bf 29847 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29850 "RANLIB=$${RANLIB}" \
0c24b341 29851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29852 clean) \
2a4cbe27
NN
29853 || exit 1
29854
a90ef4bf 29855@endif gdb
2a4cbe27 29856
a90ef4bf
JM
29857.PHONY: maybe-distclean-gdb distclean-gdb
29858maybe-distclean-gdb:
29859@if gdb
29860maybe-distclean-gdb: distclean-gdb
2a4cbe27 29861
a90ef4bf
JM
29862distclean-gdb:
29863 @: $(MAKE); $(unstage)
29864 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29865 r=`${PWD_COMMAND}`; export r; \
29866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29867 $(HOST_EXPORTS) \
b813574b 29868 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29870 done; \
22121df0 29871 echo "Doing distclean in gdb"; \
a90ef4bf 29872 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29875 "RANLIB=$${RANLIB}" \
0c24b341 29876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29877 distclean) \
2a4cbe27
NN
29878 || exit 1
29879
a90ef4bf 29880@endif gdb
2a4cbe27 29881
a90ef4bf
JM
29882.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
29883maybe-maintainer-clean-gdb:
29884@if gdb
29885maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 29886
a90ef4bf
JM
29887maintainer-clean-gdb:
29888 @: $(MAKE); $(unstage)
29889 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29890 r=`${PWD_COMMAND}`; export r; \
29891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29892 $(HOST_EXPORTS) \
b813574b 29893 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29895 done; \
22121df0 29896 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 29897 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29900 "RANLIB=$${RANLIB}" \
0c24b341 29901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29902 maintainer-clean) \
2a4cbe27
NN
29903 || exit 1
29904
a90ef4bf 29905@endif gdb
2a4cbe27 29906
2a4cbe27 29907
a7254363 29908
a90ef4bf
JM
29909.PHONY: configure-expect maybe-configure-expect
29910maybe-configure-expect:
4f0ef2d8 29911@if gcc-bootstrap
a90ef4bf 29912configure-expect: stage_current
4f0ef2d8 29913@endif gcc-bootstrap
a90ef4bf
JM
29914@if expect
29915maybe-configure-expect: configure-expect
29916configure-expect:
29917 @: $(MAKE); $(unstage)
c52c6897
PB
29918 @r=`${PWD_COMMAND}`; export r; \
29919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29920 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 29921 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 29922 $(HOST_EXPORTS) \
a90ef4bf
JM
29923 echo Configuring in $(HOST_SUBDIR)/expect; \
29924 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
29925 case $(srcdir) in \
29926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29927 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
29928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29929 esac; \
1b6c0831
L
29930 module_srcdir=expect; \
29931 $(SHELL) \
29932 $$s/$$module_srcdir/configure \
29933 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29934 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29935 --target=${target_alias} \
be01d343 29936 || exit 1
a90ef4bf 29937@endif expect
be01d343
PB
29938
29939
29940
be01d343 29941
8520c408 29942
a90ef4bf
JM
29943.PHONY: all-expect maybe-all-expect
29944maybe-all-expect:
29945@if gcc-bootstrap
29946all-expect: stage_current
29947@endif gcc-bootstrap
29948@if expect
29949TARGET-expect=all
29950maybe-all-expect: all-expect
29951all-expect: configure-expect
29952 @: $(MAKE); $(unstage)
c52c6897
PB
29953 @r=`${PWD_COMMAND}`; export r; \
29954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29955 $(HOST_EXPORTS) \
29956 (cd $(HOST_SUBDIR)/expect && \
b3676d82 29957 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29958 $(TARGET-expect))
29959@endif expect
8520c408 29960
a90ef4bf
JM
29961
29962
29963
29964.PHONY: check-expect maybe-check-expect
29965maybe-check-expect:
29966@if expect
29967maybe-check-expect: check-expect
29968
29969check-expect:
29970 @: $(MAKE); $(unstage)
c52c6897
PB
29971 @r=`${PWD_COMMAND}`; export r; \
29972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29973 $(HOST_EXPORTS) \
a90ef4bf
JM
29974 (cd $(HOST_SUBDIR)/expect && \
29975 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 29976
a90ef4bf
JM
29977@endif expect
29978
29979.PHONY: install-expect maybe-install-expect
29980maybe-install-expect:
29981@if expect
29982maybe-install-expect: install-expect
29983
29984install-expect: installdirs
29985 @: $(MAKE); $(unstage)
c52c6897
PB
29986 @r=`${PWD_COMMAND}`; export r; \
29987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 29988 $(HOST_EXPORTS) \
a90ef4bf
JM
29989 (cd $(HOST_SUBDIR)/expect && \
29990 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 29991
a90ef4bf
JM
29992@endif expect
29993
29994.PHONY: install-strip-expect maybe-install-strip-expect
29995maybe-install-strip-expect:
29996@if expect
29997maybe-install-strip-expect: install-strip-expect
29998
29999install-strip-expect: installdirs
30000 @: $(MAKE); $(unstage)
c52c6897
PB
30001 @r=`${PWD_COMMAND}`; export r; \
30002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 30003 $(HOST_EXPORTS) \
a90ef4bf
JM
30004 (cd $(HOST_SUBDIR)/expect && \
30005 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 30006
a90ef4bf 30007@endif expect
be01d343 30008
a90ef4bf 30009# Other targets (info, dvi, pdf, etc.)
be01d343 30010
a90ef4bf
JM
30011.PHONY: maybe-info-expect info-expect
30012maybe-info-expect:
30013@if expect
30014maybe-info-expect: info-expect
be01d343 30015
a90ef4bf
JM
30016info-expect: \
30017 configure-expect
30018 @: $(MAKE); $(unstage)
30019 @[ -f ./expect/Makefile ] || exit 0; \
30020 r=`${PWD_COMMAND}`; export r; \
be01d343 30021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30022 $(HOST_EXPORTS) \
30023 for flag in $(EXTRA_HOST_FLAGS) ; do \
30024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30025 done; \
22121df0 30026 echo "Doing info in expect"; \
a90ef4bf
JM
30027 (cd $(HOST_SUBDIR)/expect && \
30028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30030 "RANLIB=$${RANLIB}" \
30031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30032 info) \
30033 || exit 1
be01d343 30034
a90ef4bf 30035@endif expect
be01d343 30036
a90ef4bf
JM
30037.PHONY: maybe-dvi-expect dvi-expect
30038maybe-dvi-expect:
30039@if expect
30040maybe-dvi-expect: dvi-expect
be01d343 30041
a90ef4bf
JM
30042dvi-expect: \
30043 configure-expect
30044 @: $(MAKE); $(unstage)
30045 @[ -f ./expect/Makefile ] || exit 0; \
30046 r=`${PWD_COMMAND}`; export r; \
be01d343 30047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30048 $(HOST_EXPORTS) \
30049 for flag in $(EXTRA_HOST_FLAGS) ; do \
30050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30051 done; \
22121df0 30052 echo "Doing dvi in expect"; \
a90ef4bf
JM
30053 (cd $(HOST_SUBDIR)/expect && \
30054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30056 "RANLIB=$${RANLIB}" \
30057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30058 dvi) \
30059 || exit 1
be01d343 30060
a90ef4bf 30061@endif expect
be01d343 30062
a90ef4bf
JM
30063.PHONY: maybe-pdf-expect pdf-expect
30064maybe-pdf-expect:
30065@if expect
30066maybe-pdf-expect: pdf-expect
be01d343 30067
a90ef4bf
JM
30068pdf-expect: \
30069 configure-expect
30070 @: $(MAKE); $(unstage)
30071 @[ -f ./expect/Makefile ] || exit 0; \
30072 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
30073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30074 $(HOST_EXPORTS) \
a90ef4bf
JM
30075 for flag in $(EXTRA_HOST_FLAGS) ; do \
30076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30077 done; \
22121df0 30078 echo "Doing pdf in expect"; \
a90ef4bf
JM
30079 (cd $(HOST_SUBDIR)/expect && \
30080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30082 "RANLIB=$${RANLIB}" \
30083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30084 pdf) \
30085 || exit 1
be01d343 30086
a90ef4bf 30087@endif expect
be01d343 30088
a90ef4bf
JM
30089.PHONY: maybe-html-expect html-expect
30090maybe-html-expect:
30091@if expect
30092maybe-html-expect: html-expect
be01d343 30093
a90ef4bf
JM
30094html-expect: \
30095 configure-expect
30096 @: $(MAKE); $(unstage)
30097 @[ -f ./expect/Makefile ] || exit 0; \
30098 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
30099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30100 $(HOST_EXPORTS) \
a90ef4bf
JM
30101 for flag in $(EXTRA_HOST_FLAGS) ; do \
30102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30103 done; \
22121df0 30104 echo "Doing html in expect"; \
a90ef4bf
JM
30105 (cd $(HOST_SUBDIR)/expect && \
30106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30108 "RANLIB=$${RANLIB}" \
30109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30110 html) \
30111 || exit 1
be01d343 30112
a90ef4bf 30113@endif expect
be01d343 30114
a90ef4bf
JM
30115.PHONY: maybe-TAGS-expect TAGS-expect
30116maybe-TAGS-expect:
30117@if expect
30118maybe-TAGS-expect: TAGS-expect
9b980aa1 30119
a90ef4bf
JM
30120TAGS-expect: \
30121 configure-expect
9b980aa1 30122 @: $(MAKE); $(unstage)
a90ef4bf 30123 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30124 r=`${PWD_COMMAND}`; export r; \
30125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30126 $(HOST_EXPORTS) \
30127 for flag in $(EXTRA_HOST_FLAGS) ; do \
30128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30129 done; \
22121df0 30130 echo "Doing TAGS in expect"; \
a90ef4bf 30131 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30134 "RANLIB=$${RANLIB}" \
0c24b341 30135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30136 TAGS) \
30137 || exit 1
30138
a90ef4bf 30139@endif expect
be01d343 30140
a90ef4bf
JM
30141.PHONY: maybe-install-info-expect install-info-expect
30142maybe-install-info-expect:
30143@if expect
30144maybe-install-info-expect: install-info-expect
be01d343 30145
a90ef4bf
JM
30146install-info-expect: \
30147 configure-expect \
30148 info-expect
30149 @: $(MAKE); $(unstage)
30150 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30151 r=`${PWD_COMMAND}`; export r; \
30152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30153 $(HOST_EXPORTS) \
30154 for flag in $(EXTRA_HOST_FLAGS) ; do \
30155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30156 done; \
22121df0 30157 echo "Doing install-info in expect"; \
a90ef4bf 30158 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30161 "RANLIB=$${RANLIB}" \
0c24b341 30162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30163 install-info) \
30164 || exit 1
30165
a90ef4bf 30166@endif expect
be01d343 30167
a90ef4bf
JM
30168.PHONY: maybe-install-pdf-expect install-pdf-expect
30169maybe-install-pdf-expect:
30170@if expect
30171maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 30172
a90ef4bf
JM
30173install-pdf-expect: \
30174 configure-expect \
30175 pdf-expect
30176 @: $(MAKE); $(unstage)
30177 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
30178 r=`${PWD_COMMAND}`; export r; \
30179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30180 $(HOST_EXPORTS) \
30181 for flag in $(EXTRA_HOST_FLAGS) ; do \
30182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30183 done; \
22121df0 30184 echo "Doing install-pdf in expect"; \
a90ef4bf 30185 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
30186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30188 "RANLIB=$${RANLIB}" \
0c24b341 30189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30190 install-pdf) \
30191 || exit 1
30192
a90ef4bf 30193@endif expect
a3ca38d2 30194
a90ef4bf
JM
30195.PHONY: maybe-install-html-expect install-html-expect
30196maybe-install-html-expect:
30197@if expect
30198maybe-install-html-expect: install-html-expect
108a6f8e 30199
a90ef4bf
JM
30200install-html-expect: \
30201 configure-expect \
30202 html-expect
30203 @: $(MAKE); $(unstage)
30204 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
30205 r=`${PWD_COMMAND}`; export r; \
30206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30207 $(HOST_EXPORTS) \
30208 for flag in $(EXTRA_HOST_FLAGS) ; do \
30209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30210 done; \
22121df0 30211 echo "Doing install-html in expect"; \
a90ef4bf 30212 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
30213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30215 "RANLIB=$${RANLIB}" \
0c24b341 30216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30217 install-html) \
30218 || exit 1
30219
a90ef4bf 30220@endif expect
108a6f8e 30221
a90ef4bf
JM
30222.PHONY: maybe-installcheck-expect installcheck-expect
30223maybe-installcheck-expect:
30224@if expect
30225maybe-installcheck-expect: installcheck-expect
be01d343 30226
a90ef4bf
JM
30227installcheck-expect: \
30228 configure-expect
30229 @: $(MAKE); $(unstage)
30230 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30231 r=`${PWD_COMMAND}`; export r; \
30232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30233 $(HOST_EXPORTS) \
30234 for flag in $(EXTRA_HOST_FLAGS) ; do \
30235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30236 done; \
22121df0 30237 echo "Doing installcheck in expect"; \
a90ef4bf 30238 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30241 "RANLIB=$${RANLIB}" \
0c24b341 30242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30243 installcheck) \
30244 || exit 1
30245
a90ef4bf 30246@endif expect
be01d343 30247
a90ef4bf
JM
30248.PHONY: maybe-mostlyclean-expect mostlyclean-expect
30249maybe-mostlyclean-expect:
30250@if expect
30251maybe-mostlyclean-expect: mostlyclean-expect
be01d343 30252
a90ef4bf
JM
30253mostlyclean-expect:
30254 @: $(MAKE); $(unstage)
30255 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30256 r=`${PWD_COMMAND}`; export r; \
30257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30258 $(HOST_EXPORTS) \
30259 for flag in $(EXTRA_HOST_FLAGS) ; do \
30260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30261 done; \
22121df0 30262 echo "Doing mostlyclean in expect"; \
a90ef4bf 30263 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30266 "RANLIB=$${RANLIB}" \
0c24b341 30267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30268 mostlyclean) \
30269 || exit 1
30270
a90ef4bf 30271@endif expect
be01d343 30272
a90ef4bf
JM
30273.PHONY: maybe-clean-expect clean-expect
30274maybe-clean-expect:
30275@if expect
30276maybe-clean-expect: clean-expect
be01d343 30277
a90ef4bf
JM
30278clean-expect:
30279 @: $(MAKE); $(unstage)
30280 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30281 r=`${PWD_COMMAND}`; export r; \
30282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30283 $(HOST_EXPORTS) \
30284 for flag in $(EXTRA_HOST_FLAGS) ; do \
30285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30286 done; \
22121df0 30287 echo "Doing clean in expect"; \
a90ef4bf 30288 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30291 "RANLIB=$${RANLIB}" \
0c24b341 30292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30293 clean) \
30294 || exit 1
30295
a90ef4bf 30296@endif expect
be01d343 30297
a90ef4bf
JM
30298.PHONY: maybe-distclean-expect distclean-expect
30299maybe-distclean-expect:
30300@if expect
30301maybe-distclean-expect: distclean-expect
be01d343 30302
a90ef4bf
JM
30303distclean-expect:
30304 @: $(MAKE); $(unstage)
30305 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30306 r=`${PWD_COMMAND}`; export r; \
30307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30308 $(HOST_EXPORTS) \
30309 for flag in $(EXTRA_HOST_FLAGS) ; do \
30310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30311 done; \
22121df0 30312 echo "Doing distclean in expect"; \
a90ef4bf 30313 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30316 "RANLIB=$${RANLIB}" \
0c24b341 30317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30318 distclean) \
30319 || exit 1
30320
a90ef4bf 30321@endif expect
be01d343 30322
a90ef4bf
JM
30323.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
30324maybe-maintainer-clean-expect:
30325@if expect
30326maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 30327
a90ef4bf
JM
30328maintainer-clean-expect:
30329 @: $(MAKE); $(unstage)
30330 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30331 r=`${PWD_COMMAND}`; export r; \
30332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30333 $(HOST_EXPORTS) \
30334 for flag in $(EXTRA_HOST_FLAGS) ; do \
30335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30336 done; \
22121df0 30337 echo "Doing maintainer-clean in expect"; \
a90ef4bf 30338 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30341 "RANLIB=$${RANLIB}" \
0c24b341 30342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30343 maintainer-clean) \
30344 || exit 1
30345
a90ef4bf 30346@endif expect
be01d343
PB
30347
30348
30349
a90ef4bf
JM
30350.PHONY: configure-guile maybe-configure-guile
30351maybe-configure-guile:
4f0ef2d8 30352@if gcc-bootstrap
a90ef4bf 30353configure-guile: stage_current
4f0ef2d8 30354@endif gcc-bootstrap
a90ef4bf
JM
30355@if guile
30356maybe-configure-guile: configure-guile
30357configure-guile:
0aed8855 30358 @: $(MAKE); $(unstage)
c52c6897 30359 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 30360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30361 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 30362 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 30363 $(HOST_EXPORTS) \
a90ef4bf
JM
30364 echo Configuring in $(HOST_SUBDIR)/guile; \
30365 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 30366 case $(srcdir) in \
b00612cc 30367 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30368 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 30369 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 30370 esac; \
1b6c0831
L
30371 module_srcdir=guile; \
30372 $(SHELL) \
30373 $$s/$$module_srcdir/configure \
30374 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30375 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30376 --target=${target_alias} \
4b1cb4fe 30377 || exit 1
a90ef4bf 30378@endif guile
4b1cb4fe 30379
a7254363
PB
30380
30381
d545f33b
PB
30382
30383
a90ef4bf
JM
30384.PHONY: all-guile maybe-all-guile
30385maybe-all-guile:
4f0ef2d8 30386@if gcc-bootstrap
a90ef4bf 30387all-guile: stage_current
4f0ef2d8 30388@endif gcc-bootstrap
a90ef4bf
JM
30389@if guile
30390TARGET-guile=all
30391maybe-all-guile: all-guile
30392all-guile: configure-guile
30393 @: $(MAKE); $(unstage)
4b1cb4fe
DD
30394 @r=`${PWD_COMMAND}`; export r; \
30395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30396 $(HOST_EXPORTS) \
a90ef4bf 30397 (cd $(HOST_SUBDIR)/guile && \
b3676d82 30398 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30399 $(TARGET-guile))
30400@endif guile
4b1cb4fe 30401
a7254363 30402
d545f33b
PB
30403
30404
a90ef4bf
JM
30405.PHONY: check-guile maybe-check-guile
30406maybe-check-guile:
30407@if guile
30408maybe-check-guile: check-guile
4b1cb4fe 30409
a90ef4bf 30410check-guile:
0aed8855 30411 @: $(MAKE); $(unstage)
4b1cb4fe
DD
30412 @r=`${PWD_COMMAND}`; export r; \
30413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30414 $(HOST_EXPORTS) \
a90ef4bf 30415 (cd $(HOST_SUBDIR)/guile && \
b00612cc 30416 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 30417
a90ef4bf 30418@endif guile
4b1cb4fe 30419
a90ef4bf
JM
30420.PHONY: install-guile maybe-install-guile
30421maybe-install-guile:
30422@if guile
30423maybe-install-guile: install-guile
4b1cb4fe 30424
a90ef4bf 30425install-guile: installdirs
0aed8855 30426 @: $(MAKE); $(unstage)
b813574b
PB
30427 @r=`${PWD_COMMAND}`; export r; \
30428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 30429 $(HOST_EXPORTS) \
a90ef4bf 30430 (cd $(HOST_SUBDIR)/guile && \
2da12f12 30431 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 30432
a90ef4bf 30433@endif guile
4b1cb4fe 30434
a90ef4bf
JM
30435.PHONY: install-strip-guile maybe-install-strip-guile
30436maybe-install-strip-guile:
30437@if guile
30438maybe-install-strip-guile: install-strip-guile
9b980aa1 30439
a90ef4bf 30440install-strip-guile: installdirs
9b980aa1
RW
30441 @: $(MAKE); $(unstage)
30442 @r=`${PWD_COMMAND}`; export r; \
30443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30444 $(HOST_EXPORTS) \
a90ef4bf 30445 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
30446 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30447
a90ef4bf 30448@endif guile
9b980aa1 30449
56a8fe78 30450# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 30451
a90ef4bf
JM
30452.PHONY: maybe-info-guile info-guile
30453maybe-info-guile:
30454@if guile
30455maybe-info-guile: info-guile
4b1cb4fe 30456
a90ef4bf
JM
30457info-guile: \
30458 configure-guile
0aed8855 30459 @: $(MAKE); $(unstage)
a90ef4bf 30460 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30461 r=`${PWD_COMMAND}`; export r; \
30462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30463 $(HOST_EXPORTS) \
b813574b 30464 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30466 done; \
22121df0 30467 echo "Doing info in guile"; \
a90ef4bf 30468 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30471 "RANLIB=$${RANLIB}" \
0c24b341 30472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30473 info) \
4b1cb4fe
DD
30474 || exit 1
30475
a90ef4bf 30476@endif guile
4b1cb4fe 30477
a90ef4bf
JM
30478.PHONY: maybe-dvi-guile dvi-guile
30479maybe-dvi-guile:
30480@if guile
30481maybe-dvi-guile: dvi-guile
4b1cb4fe 30482
a90ef4bf
JM
30483dvi-guile: \
30484 configure-guile
0aed8855 30485 @: $(MAKE); $(unstage)
a90ef4bf 30486 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30487 r=`${PWD_COMMAND}`; export r; \
30488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30489 $(HOST_EXPORTS) \
b813574b 30490 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30492 done; \
22121df0 30493 echo "Doing dvi in guile"; \
a90ef4bf 30494 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30497 "RANLIB=$${RANLIB}" \
0c24b341 30498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30499 dvi) \
4b1cb4fe
DD
30500 || exit 1
30501
a90ef4bf 30502@endif guile
4b1cb4fe 30503
a90ef4bf
JM
30504.PHONY: maybe-pdf-guile pdf-guile
30505maybe-pdf-guile:
30506@if guile
30507maybe-pdf-guile: pdf-guile
56a8fe78 30508
a90ef4bf
JM
30509pdf-guile: \
30510 configure-guile
56a8fe78 30511 @: $(MAKE); $(unstage)
a90ef4bf 30512 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
30513 r=`${PWD_COMMAND}`; export r; \
30514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30515 $(HOST_EXPORTS) \
30516 for flag in $(EXTRA_HOST_FLAGS) ; do \
30517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30518 done; \
22121df0 30519 echo "Doing pdf in guile"; \
a90ef4bf 30520 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
30521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30523 "RANLIB=$${RANLIB}" \
0c24b341 30524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30525 pdf) \
30526 || exit 1
30527
a90ef4bf 30528@endif guile
56a8fe78 30529
a90ef4bf
JM
30530.PHONY: maybe-html-guile html-guile
30531maybe-html-guile:
30532@if guile
30533maybe-html-guile: html-guile
6d389afc 30534
a90ef4bf
JM
30535html-guile: \
30536 configure-guile
0aed8855 30537 @: $(MAKE); $(unstage)
a90ef4bf 30538 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
30539 r=`${PWD_COMMAND}`; export r; \
30540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30541 $(HOST_EXPORTS) \
30542 for flag in $(EXTRA_HOST_FLAGS) ; do \
30543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30544 done; \
22121df0 30545 echo "Doing html in guile"; \
a90ef4bf 30546 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
30547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30549 "RANLIB=$${RANLIB}" \
0c24b341 30550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30551 html) \
30552 || exit 1
30553
a90ef4bf 30554@endif guile
6d389afc 30555
a90ef4bf
JM
30556.PHONY: maybe-TAGS-guile TAGS-guile
30557maybe-TAGS-guile:
30558@if guile
30559maybe-TAGS-guile: TAGS-guile
4b1cb4fe 30560
a90ef4bf
JM
30561TAGS-guile: \
30562 configure-guile
0aed8855 30563 @: $(MAKE); $(unstage)
a90ef4bf 30564 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30565 r=`${PWD_COMMAND}`; export r; \
30566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30567 $(HOST_EXPORTS) \
b813574b 30568 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30570 done; \
22121df0 30571 echo "Doing TAGS in guile"; \
a90ef4bf 30572 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30575 "RANLIB=$${RANLIB}" \
0c24b341 30576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30577 TAGS) \
4b1cb4fe
DD
30578 || exit 1
30579
a90ef4bf 30580@endif guile
4b1cb4fe 30581
a90ef4bf
JM
30582.PHONY: maybe-install-info-guile install-info-guile
30583maybe-install-info-guile:
30584@if guile
30585maybe-install-info-guile: install-info-guile
4b1cb4fe 30586
a90ef4bf
JM
30587install-info-guile: \
30588 configure-guile \
30589 info-guile
0aed8855 30590 @: $(MAKE); $(unstage)
a90ef4bf 30591 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30592 r=`${PWD_COMMAND}`; export r; \
30593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30594 $(HOST_EXPORTS) \
b813574b 30595 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30597 done; \
22121df0 30598 echo "Doing install-info in guile"; \
a90ef4bf 30599 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30602 "RANLIB=$${RANLIB}" \
0c24b341 30603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30604 install-info) \
4b1cb4fe
DD
30605 || exit 1
30606
a90ef4bf 30607@endif guile
4b1cb4fe 30608
a90ef4bf
JM
30609.PHONY: maybe-install-pdf-guile install-pdf-guile
30610maybe-install-pdf-guile:
30611@if guile
30612maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 30613
a90ef4bf
JM
30614install-pdf-guile: \
30615 configure-guile \
30616 pdf-guile
a3ca38d2 30617 @: $(MAKE); $(unstage)
a90ef4bf 30618 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
30619 r=`${PWD_COMMAND}`; export r; \
30620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30621 $(HOST_EXPORTS) \
30622 for flag in $(EXTRA_HOST_FLAGS) ; do \
30623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30624 done; \
22121df0 30625 echo "Doing install-pdf in guile"; \
a90ef4bf 30626 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
30627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30629 "RANLIB=$${RANLIB}" \
0c24b341 30630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30631 install-pdf) \
30632 || exit 1
30633
a90ef4bf 30634@endif guile
a3ca38d2 30635
a90ef4bf
JM
30636.PHONY: maybe-install-html-guile install-html-guile
30637maybe-install-html-guile:
30638@if guile
30639maybe-install-html-guile: install-html-guile
108a6f8e 30640
a90ef4bf
JM
30641install-html-guile: \
30642 configure-guile \
30643 html-guile
108a6f8e 30644 @: $(MAKE); $(unstage)
a90ef4bf 30645 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
30646 r=`${PWD_COMMAND}`; export r; \
30647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30648 $(HOST_EXPORTS) \
30649 for flag in $(EXTRA_HOST_FLAGS) ; do \
30650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30651 done; \
22121df0 30652 echo "Doing install-html in guile"; \
a90ef4bf 30653 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
30654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30656 "RANLIB=$${RANLIB}" \
0c24b341 30657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30658 install-html) \
30659 || exit 1
30660
a90ef4bf 30661@endif guile
108a6f8e 30662
a90ef4bf
JM
30663.PHONY: maybe-installcheck-guile installcheck-guile
30664maybe-installcheck-guile:
30665@if guile
30666maybe-installcheck-guile: installcheck-guile
4b1cb4fe 30667
a90ef4bf
JM
30668installcheck-guile: \
30669 configure-guile
0aed8855 30670 @: $(MAKE); $(unstage)
a90ef4bf 30671 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30672 r=`${PWD_COMMAND}`; export r; \
30673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30674 $(HOST_EXPORTS) \
b813574b 30675 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30677 done; \
22121df0 30678 echo "Doing installcheck in guile"; \
a90ef4bf 30679 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30682 "RANLIB=$${RANLIB}" \
0c24b341 30683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30684 installcheck) \
4b1cb4fe
DD
30685 || exit 1
30686
a90ef4bf 30687@endif guile
4b1cb4fe 30688
a90ef4bf
JM
30689.PHONY: maybe-mostlyclean-guile mostlyclean-guile
30690maybe-mostlyclean-guile:
30691@if guile
30692maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 30693
a90ef4bf 30694mostlyclean-guile:
0aed8855 30695 @: $(MAKE); $(unstage)
a90ef4bf 30696 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30697 r=`${PWD_COMMAND}`; export r; \
30698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30699 $(HOST_EXPORTS) \
b813574b 30700 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30702 done; \
22121df0 30703 echo "Doing mostlyclean in guile"; \
a90ef4bf 30704 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30707 "RANLIB=$${RANLIB}" \
0c24b341 30708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30709 mostlyclean) \
4b1cb4fe
DD
30710 || exit 1
30711
a90ef4bf 30712@endif guile
4b1cb4fe 30713
a90ef4bf
JM
30714.PHONY: maybe-clean-guile clean-guile
30715maybe-clean-guile:
30716@if guile
30717maybe-clean-guile: clean-guile
4b1cb4fe 30718
a90ef4bf 30719clean-guile:
0aed8855 30720 @: $(MAKE); $(unstage)
a90ef4bf 30721 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30722 r=`${PWD_COMMAND}`; export r; \
30723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30724 $(HOST_EXPORTS) \
b813574b 30725 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30727 done; \
22121df0 30728 echo "Doing clean in guile"; \
a90ef4bf 30729 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30732 "RANLIB=$${RANLIB}" \
0c24b341 30733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30734 clean) \
4b1cb4fe
DD
30735 || exit 1
30736
a90ef4bf 30737@endif guile
4b1cb4fe 30738
a90ef4bf
JM
30739.PHONY: maybe-distclean-guile distclean-guile
30740maybe-distclean-guile:
30741@if guile
30742maybe-distclean-guile: distclean-guile
4b1cb4fe 30743
a90ef4bf 30744distclean-guile:
0aed8855 30745 @: $(MAKE); $(unstage)
a90ef4bf 30746 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30747 r=`${PWD_COMMAND}`; export r; \
30748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30749 $(HOST_EXPORTS) \
b813574b 30750 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30752 done; \
22121df0 30753 echo "Doing distclean in guile"; \
a90ef4bf 30754 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30757 "RANLIB=$${RANLIB}" \
0c24b341 30758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30759 distclean) \
4b1cb4fe
DD
30760 || exit 1
30761
a90ef4bf 30762@endif guile
4b1cb4fe 30763
a90ef4bf
JM
30764.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
30765maybe-maintainer-clean-guile:
30766@if guile
30767maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 30768
a90ef4bf 30769maintainer-clean-guile:
0aed8855 30770 @: $(MAKE); $(unstage)
a90ef4bf 30771 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30772 r=`${PWD_COMMAND}`; export r; \
30773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30774 $(HOST_EXPORTS) \
b813574b 30775 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30777 done; \
22121df0 30778 echo "Doing maintainer-clean in guile"; \
a90ef4bf 30779 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30782 "RANLIB=$${RANLIB}" \
0c24b341 30783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30784 maintainer-clean) \
4b1cb4fe
DD
30785 || exit 1
30786
a90ef4bf 30787@endif guile
4b1cb4fe
DD
30788
30789
a7254363 30790
a90ef4bf
JM
30791.PHONY: configure-tk maybe-configure-tk
30792maybe-configure-tk:
4f0ef2d8 30793@if gcc-bootstrap
a90ef4bf 30794configure-tk: stage_current
4f0ef2d8 30795@endif gcc-bootstrap
a90ef4bf
JM
30796@if tk
30797maybe-configure-tk: configure-tk
30798configure-tk:
30799 @: $(MAKE); $(unstage)
c52c6897
PB
30800 @r=`${PWD_COMMAND}`; export r; \
30801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30802 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 30803 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 30804 $(HOST_EXPORTS) \
a90ef4bf
JM
30805 echo Configuring in $(HOST_SUBDIR)/tk; \
30806 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 30807 case $(srcdir) in \
b00612cc 30808 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30809 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 30810 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30811 esac; \
1b6c0831
L
30812 module_srcdir=tk; \
30813 $(SHELL) \
30814 $$s/$$module_srcdir/configure \
30815 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30816 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30817 --target=${target_alias} \
2a4cbe27 30818 || exit 1
a90ef4bf 30819@endif tk
2a4cbe27 30820
a7254363
PB
30821
30822
a90ef4bf
JM
30823
30824
30825.PHONY: all-tk maybe-all-tk
30826maybe-all-tk:
30827@if gcc-bootstrap
30828all-tk: stage_current
30829@endif gcc-bootstrap
30830@if tk
30831TARGET-tk=all
30832maybe-all-tk: all-tk
30833all-tk: configure-tk
30834 @: $(MAKE); $(unstage)
c52c6897
PB
30835 @r=`${PWD_COMMAND}`; export r; \
30836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30837 $(HOST_EXPORTS) \
30838 (cd $(HOST_SUBDIR)/tk && \
b3676d82 30839 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30840 $(TARGET-tk))
30841@endif tk
d545f33b 30842
a90ef4bf
JM
30843
30844
30845
30846.PHONY: check-tk maybe-check-tk
30847maybe-check-tk:
30848@if tk
30849maybe-check-tk: check-tk
30850
30851check-tk:
30852 @: $(MAKE); $(unstage)
c52c6897
PB
30853 @r=`${PWD_COMMAND}`; export r; \
30854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30855 $(HOST_EXPORTS) \
a90ef4bf
JM
30856 (cd $(HOST_SUBDIR)/tk && \
30857 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 30858
a90ef4bf
JM
30859@endif tk
30860
30861.PHONY: install-tk maybe-install-tk
30862maybe-install-tk:
30863@if tk
30864maybe-install-tk: install-tk
30865
30866install-tk: installdirs
30867 @: $(MAKE); $(unstage)
c52c6897
PB
30868 @r=`${PWD_COMMAND}`; export r; \
30869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 30870 $(HOST_EXPORTS) \
a90ef4bf
JM
30871 (cd $(HOST_SUBDIR)/tk && \
30872 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 30873
a90ef4bf
JM
30874@endif tk
30875
30876.PHONY: install-strip-tk maybe-install-strip-tk
30877maybe-install-strip-tk:
30878@if tk
30879maybe-install-strip-tk: install-strip-tk
30880
30881install-strip-tk: installdirs
30882 @: $(MAKE); $(unstage)
c52c6897
PB
30883 @r=`${PWD_COMMAND}`; export r; \
30884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 30885 $(HOST_EXPORTS) \
a90ef4bf
JM
30886 (cd $(HOST_SUBDIR)/tk && \
30887 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 30888
a90ef4bf 30889@endif tk
9b980aa1 30890
56a8fe78 30891# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30892
a90ef4bf
JM
30893.PHONY: maybe-info-tk info-tk
30894maybe-info-tk:
30895@if tk
30896maybe-info-tk: info-tk
4fa63067 30897
a90ef4bf
JM
30898info-tk: \
30899 configure-tk
30900 @: $(MAKE); $(unstage)
30901 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30902 r=`${PWD_COMMAND}`; export r; \
30903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30904 $(HOST_EXPORTS) \
b813574b 30905 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30907 done; \
22121df0 30908 echo "Doing info in tk"; \
a90ef4bf 30909 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
30910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30912 "RANLIB=$${RANLIB}" \
0c24b341 30913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30914 info) \
30915 || exit 1
30916
a90ef4bf 30917@endif tk
6d389afc 30918
a90ef4bf
JM
30919.PHONY: maybe-dvi-tk dvi-tk
30920maybe-dvi-tk:
30921@if tk
30922maybe-dvi-tk: dvi-tk
6d389afc 30923
a90ef4bf
JM
30924dvi-tk: \
30925 configure-tk
30926 @: $(MAKE); $(unstage)
30927 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
30928 r=`${PWD_COMMAND}`; export r; \
30929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30930 $(HOST_EXPORTS) \
30931 for flag in $(EXTRA_HOST_FLAGS) ; do \
30932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30933 done; \
22121df0 30934 echo "Doing dvi in tk"; \
a90ef4bf 30935 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30938 "RANLIB=$${RANLIB}" \
0c24b341 30939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 30940 dvi) \
2a4cbe27
NN
30941 || exit 1
30942
a90ef4bf 30943@endif tk
2a4cbe27 30944
a90ef4bf
JM
30945.PHONY: maybe-pdf-tk pdf-tk
30946maybe-pdf-tk:
30947@if tk
30948maybe-pdf-tk: pdf-tk
56a8fe78 30949
a90ef4bf
JM
30950pdf-tk: \
30951 configure-tk
30952 @: $(MAKE); $(unstage)
30953 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
30954 r=`${PWD_COMMAND}`; export r; \
30955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30956 $(HOST_EXPORTS) \
30957 for flag in $(EXTRA_HOST_FLAGS) ; do \
30958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30959 done; \
22121df0 30960 echo "Doing pdf in tk"; \
a90ef4bf 30961 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
30962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30964 "RANLIB=$${RANLIB}" \
0c24b341 30965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30966 pdf) \
30967 || exit 1
30968
a90ef4bf 30969@endif tk
56a8fe78 30970
a90ef4bf
JM
30971.PHONY: maybe-html-tk html-tk
30972maybe-html-tk:
30973@if tk
30974maybe-html-tk: html-tk
2a4cbe27 30975
a90ef4bf
JM
30976html-tk: \
30977 configure-tk
30978 @: $(MAKE); $(unstage)
30979 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30980 r=`${PWD_COMMAND}`; export r; \
30981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30982 $(HOST_EXPORTS) \
b813574b 30983 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30985 done; \
22121df0 30986 echo "Doing html in tk"; \
a90ef4bf 30987 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30990 "RANLIB=$${RANLIB}" \
0c24b341 30991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 30992 html) \
2a4cbe27
NN
30993 || exit 1
30994
a90ef4bf 30995@endif tk
2a4cbe27 30996
a90ef4bf
JM
30997.PHONY: maybe-TAGS-tk TAGS-tk
30998maybe-TAGS-tk:
30999@if tk
31000maybe-TAGS-tk: TAGS-tk
2a4cbe27 31001
a90ef4bf
JM
31002TAGS-tk: \
31003 configure-tk
31004 @: $(MAKE); $(unstage)
31005 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31006 r=`${PWD_COMMAND}`; export r; \
31007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31008 $(HOST_EXPORTS) \
b813574b 31009 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31011 done; \
22121df0 31012 echo "Doing TAGS in tk"; \
a90ef4bf 31013 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31016 "RANLIB=$${RANLIB}" \
0c24b341 31017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31018 TAGS) \
2a4cbe27
NN
31019 || exit 1
31020
a90ef4bf 31021@endif tk
2a4cbe27 31022
a90ef4bf
JM
31023.PHONY: maybe-install-info-tk install-info-tk
31024maybe-install-info-tk:
31025@if tk
31026maybe-install-info-tk: install-info-tk
2a4cbe27 31027
a90ef4bf
JM
31028install-info-tk: \
31029 configure-tk \
31030 info-tk
31031 @: $(MAKE); $(unstage)
31032 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31033 r=`${PWD_COMMAND}`; export r; \
31034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31035 $(HOST_EXPORTS) \
b813574b 31036 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31038 done; \
22121df0 31039 echo "Doing install-info in tk"; \
a90ef4bf 31040 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31043 "RANLIB=$${RANLIB}" \
0c24b341 31044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31045 install-info) \
2a4cbe27
NN
31046 || exit 1
31047
a90ef4bf 31048@endif tk
2a4cbe27 31049
a90ef4bf
JM
31050.PHONY: maybe-install-pdf-tk install-pdf-tk
31051maybe-install-pdf-tk:
31052@if tk
31053maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 31054
a90ef4bf
JM
31055install-pdf-tk: \
31056 configure-tk \
31057 pdf-tk
31058 @: $(MAKE); $(unstage)
31059 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
31060 r=`${PWD_COMMAND}`; export r; \
31061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31062 $(HOST_EXPORTS) \
31063 for flag in $(EXTRA_HOST_FLAGS) ; do \
31064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31065 done; \
22121df0 31066 echo "Doing install-pdf in tk"; \
a90ef4bf 31067 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
31068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31070 "RANLIB=$${RANLIB}" \
0c24b341 31071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31072 install-pdf) \
31073 || exit 1
31074
a90ef4bf 31075@endif tk
a3ca38d2 31076
a90ef4bf
JM
31077.PHONY: maybe-install-html-tk install-html-tk
31078maybe-install-html-tk:
31079@if tk
31080maybe-install-html-tk: install-html-tk
108a6f8e 31081
a90ef4bf
JM
31082install-html-tk: \
31083 configure-tk \
31084 html-tk
31085 @: $(MAKE); $(unstage)
31086 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
31087 r=`${PWD_COMMAND}`; export r; \
31088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31089 $(HOST_EXPORTS) \
31090 for flag in $(EXTRA_HOST_FLAGS) ; do \
31091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31092 done; \
22121df0 31093 echo "Doing install-html in tk"; \
a90ef4bf 31094 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
31095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31097 "RANLIB=$${RANLIB}" \
0c24b341 31098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31099 install-html) \
31100 || exit 1
31101
a90ef4bf 31102@endif tk
108a6f8e 31103
a90ef4bf
JM
31104.PHONY: maybe-installcheck-tk installcheck-tk
31105maybe-installcheck-tk:
31106@if tk
31107maybe-installcheck-tk: installcheck-tk
2a4cbe27 31108
a90ef4bf
JM
31109installcheck-tk: \
31110 configure-tk
31111 @: $(MAKE); $(unstage)
31112 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31113 r=`${PWD_COMMAND}`; export r; \
31114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31115 $(HOST_EXPORTS) \
b813574b 31116 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31118 done; \
22121df0 31119 echo "Doing installcheck in tk"; \
a90ef4bf 31120 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31123 "RANLIB=$${RANLIB}" \
0c24b341 31124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31125 installcheck) \
2a4cbe27
NN
31126 || exit 1
31127
a90ef4bf 31128@endif tk
2a4cbe27 31129
a90ef4bf
JM
31130.PHONY: maybe-mostlyclean-tk mostlyclean-tk
31131maybe-mostlyclean-tk:
31132@if tk
31133maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 31134
a90ef4bf
JM
31135mostlyclean-tk:
31136 @: $(MAKE); $(unstage)
31137 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31138 r=`${PWD_COMMAND}`; export r; \
31139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31140 $(HOST_EXPORTS) \
b813574b 31141 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31143 done; \
22121df0 31144 echo "Doing mostlyclean in tk"; \
a90ef4bf 31145 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31148 "RANLIB=$${RANLIB}" \
0c24b341 31149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31150 mostlyclean) \
2a4cbe27
NN
31151 || exit 1
31152
a90ef4bf 31153@endif tk
2a4cbe27 31154
a90ef4bf
JM
31155.PHONY: maybe-clean-tk clean-tk
31156maybe-clean-tk:
31157@if tk
31158maybe-clean-tk: clean-tk
2a4cbe27 31159
a90ef4bf
JM
31160clean-tk:
31161 @: $(MAKE); $(unstage)
31162 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31163 r=`${PWD_COMMAND}`; export r; \
31164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31165 $(HOST_EXPORTS) \
b813574b 31166 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31168 done; \
22121df0 31169 echo "Doing clean in tk"; \
a90ef4bf 31170 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31173 "RANLIB=$${RANLIB}" \
0c24b341 31174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31175 clean) \
2a4cbe27
NN
31176 || exit 1
31177
a90ef4bf 31178@endif tk
2a4cbe27 31179
a90ef4bf
JM
31180.PHONY: maybe-distclean-tk distclean-tk
31181maybe-distclean-tk:
31182@if tk
31183maybe-distclean-tk: distclean-tk
2a4cbe27 31184
a90ef4bf
JM
31185distclean-tk:
31186 @: $(MAKE); $(unstage)
31187 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31188 r=`${PWD_COMMAND}`; export r; \
31189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31190 $(HOST_EXPORTS) \
b813574b 31191 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31193 done; \
22121df0 31194 echo "Doing distclean in tk"; \
a90ef4bf 31195 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31198 "RANLIB=$${RANLIB}" \
0c24b341 31199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31200 distclean) \
2a4cbe27
NN
31201 || exit 1
31202
a90ef4bf 31203@endif tk
2a4cbe27 31204
a90ef4bf
JM
31205.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
31206maybe-maintainer-clean-tk:
31207@if tk
31208maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 31209
a90ef4bf
JM
31210maintainer-clean-tk:
31211 @: $(MAKE); $(unstage)
31212 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31213 r=`${PWD_COMMAND}`; export r; \
31214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31215 $(HOST_EXPORTS) \
b813574b 31216 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31218 done; \
22121df0 31219 echo "Doing maintainer-clean in tk"; \
a90ef4bf 31220 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31223 "RANLIB=$${RANLIB}" \
0c24b341 31224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31225 maintainer-clean) \
2a4cbe27
NN
31226 || exit 1
31227
a90ef4bf 31228@endif tk
2a4cbe27 31229
2a4cbe27 31230
a7254363 31231
a90ef4bf
JM
31232.PHONY: configure-libtermcap maybe-configure-libtermcap
31233maybe-configure-libtermcap:
dc448a7b 31234@if gcc-bootstrap
a90ef4bf 31235configure-libtermcap: stage_current
dc448a7b 31236@endif gcc-bootstrap
a90ef4bf
JM
31237@if libtermcap
31238maybe-configure-libtermcap: configure-libtermcap
31239configure-libtermcap:
dc448a7b
TT
31240 @: $(MAKE); $(unstage)
31241 @r=`${PWD_COMMAND}`; export r; \
31242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31243 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 31244 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 31245 $(HOST_EXPORTS) \
a90ef4bf
JM
31246 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
31247 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
31248 case $(srcdir) in \
31249 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31250 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
31251 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31252 esac; \
1b6c0831
L
31253 module_srcdir=libtermcap; \
31254 $(SHELL) \
31255 $$s/$$module_srcdir/configure \
31256 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 31257 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31258 --target=${target_alias} \
dc448a7b 31259 || exit 1
a90ef4bf 31260@endif libtermcap
dc448a7b
TT
31261
31262
31263
31264
31265
a90ef4bf
JM
31266.PHONY: all-libtermcap maybe-all-libtermcap
31267maybe-all-libtermcap:
dc448a7b 31268@if gcc-bootstrap
a90ef4bf 31269all-libtermcap: stage_current
dc448a7b 31270@endif gcc-bootstrap
a90ef4bf
JM
31271@if libtermcap
31272TARGET-libtermcap=all
31273maybe-all-libtermcap: all-libtermcap
31274all-libtermcap: configure-libtermcap
dc448a7b
TT
31275 @: $(MAKE); $(unstage)
31276 @r=`${PWD_COMMAND}`; export r; \
31277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31278 $(HOST_EXPORTS) \
a90ef4bf 31279 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 31280 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31281 $(TARGET-libtermcap))
31282@endif libtermcap
dc448a7b
TT
31283
31284
31285
31286
a90ef4bf
JM
31287.PHONY: check-libtermcap maybe-check-libtermcap
31288maybe-check-libtermcap:
31289@if libtermcap
31290maybe-check-libtermcap: check-libtermcap
dc448a7b 31291
a90ef4bf
JM
31292check-libtermcap:
31293
31294@endif libtermcap
31295
31296.PHONY: install-libtermcap maybe-install-libtermcap
31297maybe-install-libtermcap:
31298@if libtermcap
31299maybe-install-libtermcap: install-libtermcap
31300
31301install-libtermcap: installdirs
dc448a7b
TT
31302 @: $(MAKE); $(unstage)
31303 @r=`${PWD_COMMAND}`; export r; \
31304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31305 $(HOST_EXPORTS) \
a90ef4bf
JM
31306 (cd $(HOST_SUBDIR)/libtermcap && \
31307 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 31308
a90ef4bf 31309@endif libtermcap
dc448a7b 31310
a90ef4bf
JM
31311.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
31312maybe-install-strip-libtermcap:
31313@if libtermcap
31314maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 31315
a90ef4bf
JM
31316install-strip-libtermcap: installdirs
31317 @: $(MAKE); $(unstage)
31318 @r=`${PWD_COMMAND}`; export r; \
31319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31320 $(HOST_EXPORTS) \
31321 (cd $(HOST_SUBDIR)/libtermcap && \
31322 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 31323
a90ef4bf 31324@endif libtermcap
9b980aa1 31325
dc448a7b
TT
31326# Other targets (info, dvi, pdf, etc.)
31327
a90ef4bf
JM
31328.PHONY: maybe-info-libtermcap info-libtermcap
31329maybe-info-libtermcap:
31330@if libtermcap
31331maybe-info-libtermcap: info-libtermcap
dc448a7b 31332
a90ef4bf
JM
31333info-libtermcap: \
31334 configure-libtermcap
dc448a7b 31335 @: $(MAKE); $(unstage)
a90ef4bf 31336 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31337 r=`${PWD_COMMAND}`; export r; \
31338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31339 $(HOST_EXPORTS) \
31340 for flag in $(EXTRA_HOST_FLAGS) ; do \
31341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31342 done; \
22121df0 31343 echo "Doing info in libtermcap"; \
a90ef4bf 31344 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31347 "RANLIB=$${RANLIB}" \
31348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31349 info) \
31350 || exit 1
31351
a90ef4bf 31352@endif libtermcap
dc448a7b 31353
a90ef4bf
JM
31354.PHONY: maybe-dvi-libtermcap dvi-libtermcap
31355maybe-dvi-libtermcap:
31356@if libtermcap
31357maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 31358
a90ef4bf
JM
31359dvi-libtermcap: \
31360 configure-libtermcap
dc448a7b 31361 @: $(MAKE); $(unstage)
a90ef4bf 31362 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31363 r=`${PWD_COMMAND}`; export r; \
31364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31365 $(HOST_EXPORTS) \
31366 for flag in $(EXTRA_HOST_FLAGS) ; do \
31367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31368 done; \
22121df0 31369 echo "Doing dvi in libtermcap"; \
a90ef4bf 31370 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31373 "RANLIB=$${RANLIB}" \
31374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31375 dvi) \
31376 || exit 1
31377
a90ef4bf 31378@endif libtermcap
dc448a7b 31379
a90ef4bf
JM
31380.PHONY: maybe-pdf-libtermcap pdf-libtermcap
31381maybe-pdf-libtermcap:
31382@if libtermcap
31383maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 31384
a90ef4bf
JM
31385pdf-libtermcap: \
31386 configure-libtermcap
dc448a7b 31387 @: $(MAKE); $(unstage)
a90ef4bf 31388 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31389 r=`${PWD_COMMAND}`; export r; \
31390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31391 $(HOST_EXPORTS) \
31392 for flag in $(EXTRA_HOST_FLAGS) ; do \
31393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31394 done; \
22121df0 31395 echo "Doing pdf in libtermcap"; \
a90ef4bf 31396 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31399 "RANLIB=$${RANLIB}" \
31400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31401 pdf) \
31402 || exit 1
31403
a90ef4bf 31404@endif libtermcap
dc448a7b 31405
a90ef4bf
JM
31406.PHONY: maybe-html-libtermcap html-libtermcap
31407maybe-html-libtermcap:
31408@if libtermcap
31409maybe-html-libtermcap: html-libtermcap
dc448a7b 31410
a90ef4bf
JM
31411html-libtermcap: \
31412 configure-libtermcap
dc448a7b 31413 @: $(MAKE); $(unstage)
a90ef4bf 31414 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31415 r=`${PWD_COMMAND}`; export r; \
31416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31417 $(HOST_EXPORTS) \
31418 for flag in $(EXTRA_HOST_FLAGS) ; do \
31419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31420 done; \
22121df0 31421 echo "Doing html in libtermcap"; \
a90ef4bf 31422 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31425 "RANLIB=$${RANLIB}" \
31426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31427 html) \
31428 || exit 1
31429
a90ef4bf 31430@endif libtermcap
dc448a7b 31431
a90ef4bf
JM
31432.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
31433maybe-TAGS-libtermcap:
31434@if libtermcap
31435maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 31436
a90ef4bf
JM
31437TAGS-libtermcap: \
31438 configure-libtermcap
dc448a7b 31439 @: $(MAKE); $(unstage)
a90ef4bf 31440 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31441 r=`${PWD_COMMAND}`; export r; \
31442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31443 $(HOST_EXPORTS) \
31444 for flag in $(EXTRA_HOST_FLAGS) ; do \
31445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31446 done; \
22121df0 31447 echo "Doing TAGS in libtermcap"; \
a90ef4bf 31448 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31451 "RANLIB=$${RANLIB}" \
31452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31453 TAGS) \
31454 || exit 1
31455
a90ef4bf 31456@endif libtermcap
dc448a7b 31457
a90ef4bf
JM
31458.PHONY: maybe-install-info-libtermcap install-info-libtermcap
31459maybe-install-info-libtermcap:
31460@if libtermcap
31461maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 31462
a90ef4bf
JM
31463install-info-libtermcap: \
31464 configure-libtermcap \
31465 info-libtermcap
dc448a7b 31466 @: $(MAKE); $(unstage)
a90ef4bf 31467 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31468 r=`${PWD_COMMAND}`; export r; \
31469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31470 $(HOST_EXPORTS) \
31471 for flag in $(EXTRA_HOST_FLAGS) ; do \
31472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31473 done; \
22121df0 31474 echo "Doing install-info in libtermcap"; \
a90ef4bf 31475 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31478 "RANLIB=$${RANLIB}" \
31479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31480 install-info) \
dc448a7b
TT
31481 || exit 1
31482
a90ef4bf 31483@endif libtermcap
dc448a7b 31484
a90ef4bf
JM
31485.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
31486maybe-install-pdf-libtermcap:
31487@if libtermcap
31488maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 31489
a90ef4bf
JM
31490install-pdf-libtermcap: \
31491 configure-libtermcap \
31492 pdf-libtermcap
dc448a7b 31493 @: $(MAKE); $(unstage)
a90ef4bf 31494 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31495 r=`${PWD_COMMAND}`; export r; \
31496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31497 $(HOST_EXPORTS) \
31498 for flag in $(EXTRA_HOST_FLAGS) ; do \
31499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31500 done; \
22121df0 31501 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 31502 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31505 "RANLIB=$${RANLIB}" \
31506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31507 install-pdf) \
dc448a7b
TT
31508 || exit 1
31509
a90ef4bf 31510@endif libtermcap
dc448a7b 31511
a90ef4bf
JM
31512.PHONY: maybe-install-html-libtermcap install-html-libtermcap
31513maybe-install-html-libtermcap:
31514@if libtermcap
31515maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 31516
a90ef4bf
JM
31517install-html-libtermcap: \
31518 configure-libtermcap \
31519 html-libtermcap
dc448a7b 31520 @: $(MAKE); $(unstage)
a90ef4bf 31521 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31522 r=`${PWD_COMMAND}`; export r; \
31523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31524 $(HOST_EXPORTS) \
31525 for flag in $(EXTRA_HOST_FLAGS) ; do \
31526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31527 done; \
22121df0 31528 echo "Doing install-html in libtermcap"; \
a90ef4bf 31529 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31532 "RANLIB=$${RANLIB}" \
31533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31534 install-html) \
dc448a7b
TT
31535 || exit 1
31536
a90ef4bf 31537@endif libtermcap
dc448a7b 31538
a90ef4bf
JM
31539.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
31540maybe-installcheck-libtermcap:
31541@if libtermcap
31542maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 31543
a90ef4bf
JM
31544installcheck-libtermcap: \
31545 configure-libtermcap
dc448a7b 31546 @: $(MAKE); $(unstage)
a90ef4bf 31547 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31548 r=`${PWD_COMMAND}`; export r; \
31549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31550 $(HOST_EXPORTS) \
31551 for flag in $(EXTRA_HOST_FLAGS) ; do \
31552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31553 done; \
22121df0 31554 echo "Doing installcheck in libtermcap"; \
a90ef4bf 31555 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31558 "RANLIB=$${RANLIB}" \
31559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31560 installcheck) \
dc448a7b
TT
31561 || exit 1
31562
a90ef4bf 31563@endif libtermcap
dc448a7b 31564
a90ef4bf
JM
31565.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
31566maybe-mostlyclean-libtermcap:
31567@if libtermcap
31568maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 31569
a90ef4bf
JM
31570# libtermcap doesn't support mostlyclean.
31571mostlyclean-libtermcap:
dc448a7b 31572
a90ef4bf 31573@endif libtermcap
dc448a7b 31574
a90ef4bf
JM
31575.PHONY: maybe-clean-libtermcap clean-libtermcap
31576maybe-clean-libtermcap:
31577@if libtermcap
31578maybe-clean-libtermcap: clean-libtermcap
dc448a7b 31579
a90ef4bf
JM
31580# libtermcap doesn't support clean.
31581clean-libtermcap:
dc448a7b 31582
a90ef4bf
JM
31583@endif libtermcap
31584
31585.PHONY: maybe-distclean-libtermcap distclean-libtermcap
31586maybe-distclean-libtermcap:
31587@if libtermcap
31588maybe-distclean-libtermcap: distclean-libtermcap
31589
31590# libtermcap doesn't support distclean.
31591distclean-libtermcap:
31592
31593@endif libtermcap
31594
31595.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
31596maybe-maintainer-clean-libtermcap:
31597@if libtermcap
31598maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
31599
31600# libtermcap doesn't support maintainer-clean.
31601maintainer-clean-libtermcap:
31602
31603@endif libtermcap
31604
31605
31606
31607.PHONY: configure-utils maybe-configure-utils
31608maybe-configure-utils:
31609@if gcc-bootstrap
31610configure-utils: stage_current
31611@endif gcc-bootstrap
31612@if utils
31613maybe-configure-utils: configure-utils
31614configure-utils:
31615 @: $(MAKE); $(unstage)
c52c6897 31616 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31618 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 31619 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 31620 $(HOST_EXPORTS) \
a90ef4bf
JM
31621 echo Configuring in $(HOST_SUBDIR)/utils; \
31622 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 31623 case $(srcdir) in \
b00612cc 31624 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31625 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 31626 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31627 esac; \
1b6c0831
L
31628 module_srcdir=utils; \
31629 $(SHELL) \
31630 $$s/$$module_srcdir/configure \
31631 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31632 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31633 --target=${target_alias} \
2a4cbe27 31634 || exit 1
a90ef4bf 31635@endif utils
2a4cbe27 31636
a7254363
PB
31637
31638
d545f33b
PB
31639
31640
a90ef4bf
JM
31641.PHONY: all-utils maybe-all-utils
31642maybe-all-utils:
4f0ef2d8 31643@if gcc-bootstrap
a90ef4bf 31644all-utils: stage_current
4f0ef2d8 31645@endif gcc-bootstrap
a90ef4bf
JM
31646@if utils
31647TARGET-utils=all
31648maybe-all-utils: all-utils
31649all-utils: configure-utils
0aed8855 31650 @: $(MAKE); $(unstage)
4fa63067
NN
31651 @r=`${PWD_COMMAND}`; export r; \
31652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31653 $(HOST_EXPORTS) \
a90ef4bf 31654 (cd $(HOST_SUBDIR)/utils && \
b3676d82 31655 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31656 $(TARGET-utils))
31657@endif utils
2a4cbe27 31658
a7254363 31659
d545f33b
PB
31660
31661
a90ef4bf
JM
31662.PHONY: check-utils maybe-check-utils
31663maybe-check-utils:
31664@if utils
31665maybe-check-utils: check-utils
2a4cbe27 31666
a90ef4bf 31667check-utils:
2a4cbe27 31668
a90ef4bf 31669@endif utils
2a4cbe27 31670
a90ef4bf
JM
31671.PHONY: install-utils maybe-install-utils
31672maybe-install-utils:
31673@if utils
31674maybe-install-utils: install-utils
2a4cbe27 31675
a90ef4bf 31676install-utils: installdirs
0aed8855 31677 @: $(MAKE); $(unstage)
4fa63067 31678 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31680 $(HOST_EXPORTS) \
a90ef4bf 31681 (cd $(HOST_SUBDIR)/utils && \
2da12f12 31682 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 31683
a90ef4bf 31684@endif utils
2a4cbe27 31685
a90ef4bf
JM
31686.PHONY: install-strip-utils maybe-install-strip-utils
31687maybe-install-strip-utils:
31688@if utils
31689maybe-install-strip-utils: install-strip-utils
9b980aa1 31690
a90ef4bf 31691install-strip-utils: installdirs
9b980aa1
RW
31692 @: $(MAKE); $(unstage)
31693 @r=`${PWD_COMMAND}`; export r; \
31694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31695 $(HOST_EXPORTS) \
a90ef4bf 31696 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
31697 $(MAKE) $(FLAGS_TO_PASS) install-strip)
31698
a90ef4bf 31699@endif utils
9b980aa1 31700
56a8fe78 31701# Other targets (info, dvi, pdf, etc.)
2a4cbe27 31702
a90ef4bf
JM
31703.PHONY: maybe-info-utils info-utils
31704maybe-info-utils:
31705@if utils
31706maybe-info-utils: info-utils
4fa63067 31707
a90ef4bf
JM
31708info-utils: \
31709 configure-utils
0aed8855 31710 @: $(MAKE); $(unstage)
a90ef4bf 31711 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31712 r=`${PWD_COMMAND}`; export r; \
31713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31714 $(HOST_EXPORTS) \
b813574b 31715 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31717 done; \
22121df0 31718 echo "Doing info in utils"; \
a90ef4bf 31719 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31722 "RANLIB=$${RANLIB}" \
0c24b341 31723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31724 info) \
2a4cbe27
NN
31725 || exit 1
31726
a90ef4bf 31727@endif utils
2a4cbe27 31728
a90ef4bf
JM
31729.PHONY: maybe-dvi-utils dvi-utils
31730maybe-dvi-utils:
31731@if utils
31732maybe-dvi-utils: dvi-utils
2a4cbe27 31733
a90ef4bf
JM
31734dvi-utils: \
31735 configure-utils
0aed8855 31736 @: $(MAKE); $(unstage)
a90ef4bf 31737 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31738 r=`${PWD_COMMAND}`; export r; \
31739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31740 $(HOST_EXPORTS) \
b813574b 31741 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31743 done; \
22121df0 31744 echo "Doing dvi in utils"; \
a90ef4bf 31745 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31748 "RANLIB=$${RANLIB}" \
0c24b341 31749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31750 dvi) \
2a4cbe27
NN
31751 || exit 1
31752
a90ef4bf 31753@endif utils
2a4cbe27 31754
a90ef4bf
JM
31755.PHONY: maybe-pdf-utils pdf-utils
31756maybe-pdf-utils:
31757@if utils
31758maybe-pdf-utils: pdf-utils
56a8fe78 31759
a90ef4bf
JM
31760pdf-utils: \
31761 configure-utils
56a8fe78 31762 @: $(MAKE); $(unstage)
a90ef4bf 31763 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
31764 r=`${PWD_COMMAND}`; export r; \
31765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31766 $(HOST_EXPORTS) \
31767 for flag in $(EXTRA_HOST_FLAGS) ; do \
31768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31769 done; \
22121df0 31770 echo "Doing pdf in utils"; \
a90ef4bf 31771 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
31772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31774 "RANLIB=$${RANLIB}" \
0c24b341 31775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31776 pdf) \
31777 || exit 1
31778
a90ef4bf 31779@endif utils
56a8fe78 31780
a90ef4bf
JM
31781.PHONY: maybe-html-utils html-utils
31782maybe-html-utils:
31783@if utils
31784maybe-html-utils: html-utils
6d389afc 31785
a90ef4bf
JM
31786html-utils: \
31787 configure-utils
0aed8855 31788 @: $(MAKE); $(unstage)
a90ef4bf 31789 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
31790 r=`${PWD_COMMAND}`; export r; \
31791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
31792 $(HOST_EXPORTS) \
31793 for flag in $(EXTRA_HOST_FLAGS) ; do \
31794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31795 done; \
22121df0 31796 echo "Doing html in utils"; \
a90ef4bf 31797 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
31798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31800 "RANLIB=$${RANLIB}" \
0c24b341 31801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31802 html) \
31803 || exit 1
31804
a90ef4bf 31805@endif utils
6d389afc 31806
a90ef4bf
JM
31807.PHONY: maybe-TAGS-utils TAGS-utils
31808maybe-TAGS-utils:
31809@if utils
31810maybe-TAGS-utils: TAGS-utils
2a4cbe27 31811
a90ef4bf
JM
31812TAGS-utils: \
31813 configure-utils
0aed8855 31814 @: $(MAKE); $(unstage)
a90ef4bf 31815 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31816 r=`${PWD_COMMAND}`; export r; \
31817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31818 $(HOST_EXPORTS) \
b813574b 31819 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31821 done; \
22121df0 31822 echo "Doing TAGS in utils"; \
a90ef4bf 31823 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31826 "RANLIB=$${RANLIB}" \
0c24b341 31827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31828 TAGS) \
2a4cbe27
NN
31829 || exit 1
31830
a90ef4bf 31831@endif utils
2a4cbe27 31832
a90ef4bf
JM
31833.PHONY: maybe-install-info-utils install-info-utils
31834maybe-install-info-utils:
31835@if utils
31836maybe-install-info-utils: install-info-utils
2a4cbe27 31837
a90ef4bf
JM
31838install-info-utils: \
31839 configure-utils \
31840 info-utils
0aed8855 31841 @: $(MAKE); $(unstage)
a90ef4bf 31842 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31843 r=`${PWD_COMMAND}`; export r; \
31844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31845 $(HOST_EXPORTS) \
b813574b 31846 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31848 done; \
22121df0 31849 echo "Doing install-info in utils"; \
a90ef4bf 31850 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31853 "RANLIB=$${RANLIB}" \
0c24b341 31854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31855 install-info) \
2a4cbe27
NN
31856 || exit 1
31857
a90ef4bf 31858@endif utils
2a4cbe27 31859
a90ef4bf
JM
31860.PHONY: maybe-install-pdf-utils install-pdf-utils
31861maybe-install-pdf-utils:
31862@if utils
31863maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 31864
a90ef4bf
JM
31865install-pdf-utils: \
31866 configure-utils \
31867 pdf-utils
a3ca38d2 31868 @: $(MAKE); $(unstage)
a90ef4bf 31869 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
31870 r=`${PWD_COMMAND}`; export r; \
31871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31872 $(HOST_EXPORTS) \
31873 for flag in $(EXTRA_HOST_FLAGS) ; do \
31874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31875 done; \
22121df0 31876 echo "Doing install-pdf in utils"; \
a90ef4bf 31877 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
31878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31880 "RANLIB=$${RANLIB}" \
0c24b341 31881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31882 install-pdf) \
31883 || exit 1
31884
a90ef4bf 31885@endif utils
a3ca38d2 31886
a90ef4bf
JM
31887.PHONY: maybe-install-html-utils install-html-utils
31888maybe-install-html-utils:
31889@if utils
31890maybe-install-html-utils: install-html-utils
108a6f8e 31891
a90ef4bf
JM
31892install-html-utils: \
31893 configure-utils \
31894 html-utils
108a6f8e 31895 @: $(MAKE); $(unstage)
a90ef4bf 31896 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
31897 r=`${PWD_COMMAND}`; export r; \
31898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31899 $(HOST_EXPORTS) \
31900 for flag in $(EXTRA_HOST_FLAGS) ; do \
31901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31902 done; \
22121df0 31903 echo "Doing install-html in utils"; \
a90ef4bf 31904 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
31905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31907 "RANLIB=$${RANLIB}" \
0c24b341 31908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31909 install-html) \
31910 || exit 1
31911
a90ef4bf 31912@endif utils
108a6f8e 31913
a90ef4bf
JM
31914.PHONY: maybe-installcheck-utils installcheck-utils
31915maybe-installcheck-utils:
31916@if utils
31917maybe-installcheck-utils: installcheck-utils
2a4cbe27 31918
a90ef4bf
JM
31919installcheck-utils: \
31920 configure-utils
0aed8855 31921 @: $(MAKE); $(unstage)
a90ef4bf 31922 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31923 r=`${PWD_COMMAND}`; export r; \
31924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31925 $(HOST_EXPORTS) \
b813574b 31926 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31928 done; \
22121df0 31929 echo "Doing installcheck in utils"; \
a90ef4bf 31930 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31933 "RANLIB=$${RANLIB}" \
0c24b341 31934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31935 installcheck) \
2a4cbe27
NN
31936 || exit 1
31937
a90ef4bf 31938@endif utils
2a4cbe27 31939
a90ef4bf
JM
31940.PHONY: maybe-mostlyclean-utils mostlyclean-utils
31941maybe-mostlyclean-utils:
31942@if utils
31943maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 31944
a90ef4bf 31945mostlyclean-utils:
0aed8855 31946 @: $(MAKE); $(unstage)
a90ef4bf 31947 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31948 r=`${PWD_COMMAND}`; export r; \
31949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31950 $(HOST_EXPORTS) \
b813574b 31951 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31953 done; \
22121df0 31954 echo "Doing mostlyclean in utils"; \
a90ef4bf 31955 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31958 "RANLIB=$${RANLIB}" \
0c24b341 31959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31960 mostlyclean) \
2a4cbe27
NN
31961 || exit 1
31962
a90ef4bf 31963@endif utils
2a4cbe27 31964
a90ef4bf
JM
31965.PHONY: maybe-clean-utils clean-utils
31966maybe-clean-utils:
31967@if utils
31968maybe-clean-utils: clean-utils
2a4cbe27 31969
a90ef4bf 31970clean-utils:
0aed8855 31971 @: $(MAKE); $(unstage)
a90ef4bf 31972 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31973 r=`${PWD_COMMAND}`; export r; \
31974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31975 $(HOST_EXPORTS) \
b813574b 31976 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31978 done; \
22121df0 31979 echo "Doing clean in utils"; \
a90ef4bf 31980 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31983 "RANLIB=$${RANLIB}" \
0c24b341 31984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31985 clean) \
2a4cbe27
NN
31986 || exit 1
31987
a90ef4bf 31988@endif utils
2a4cbe27 31989
a90ef4bf
JM
31990.PHONY: maybe-distclean-utils distclean-utils
31991maybe-distclean-utils:
31992@if utils
31993maybe-distclean-utils: distclean-utils
2a4cbe27 31994
a90ef4bf 31995distclean-utils:
0aed8855 31996 @: $(MAKE); $(unstage)
a90ef4bf 31997 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31998 r=`${PWD_COMMAND}`; export r; \
31999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32000 $(HOST_EXPORTS) \
b813574b 32001 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32003 done; \
22121df0 32004 echo "Doing distclean in utils"; \
a90ef4bf 32005 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
32006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32008 "RANLIB=$${RANLIB}" \
0c24b341 32009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32010 distclean) \
2a4cbe27
NN
32011 || exit 1
32012
a90ef4bf 32013@endif utils
2a4cbe27 32014
a90ef4bf
JM
32015.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
32016maybe-maintainer-clean-utils:
32017@if utils
32018maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 32019
a90ef4bf 32020maintainer-clean-utils:
0aed8855 32021 @: $(MAKE); $(unstage)
a90ef4bf 32022 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
32023 r=`${PWD_COMMAND}`; export r; \
32024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32025 $(HOST_EXPORTS) \
b813574b 32026 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32028 done; \
22121df0 32029 echo "Doing maintainer-clean in utils"; \
a90ef4bf 32030 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
32031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32033 "RANLIB=$${RANLIB}" \
0c24b341 32034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32035 maintainer-clean) \
2a4cbe27
NN
32036 || exit 1
32037
a90ef4bf 32038@endif utils
2a4cbe27 32039
2a4cbe27 32040
a7254363 32041
a90ef4bf
JM
32042.PHONY: configure-gnattools maybe-configure-gnattools
32043maybe-configure-gnattools:
4f0ef2d8 32044@if gcc-bootstrap
a90ef4bf 32045configure-gnattools: stage_current
4f0ef2d8 32046@endif gcc-bootstrap
a90ef4bf
JM
32047@if gnattools
32048maybe-configure-gnattools: configure-gnattools
32049configure-gnattools:
0aed8855 32050 @: $(MAKE); $(unstage)
c52c6897 32051 @r=`${PWD_COMMAND}`; export r; \
b40e3958 32052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32053 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 32054 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 32055 $(HOST_EXPORTS) \
a90ef4bf
JM
32056 echo Configuring in $(HOST_SUBDIR)/gnattools; \
32057 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 32058 case $(srcdir) in \
b00612cc 32059 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32060 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 32061 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 32062 esac; \
1b6c0831
L
32063 module_srcdir=gnattools; \
32064 $(SHELL) \
32065 $$s/$$module_srcdir/configure \
32066 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32067 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32068 --target=${target_alias} \
2a4cbe27 32069 || exit 1
a90ef4bf 32070@endif gnattools
2a4cbe27 32071
a7254363
PB
32072
32073
d545f33b
PB
32074
32075
a90ef4bf
JM
32076.PHONY: all-gnattools maybe-all-gnattools
32077maybe-all-gnattools:
4f0ef2d8 32078@if gcc-bootstrap
a90ef4bf 32079all-gnattools: stage_current
4f0ef2d8 32080@endif gcc-bootstrap
a90ef4bf
JM
32081@if gnattools
32082TARGET-gnattools=all
32083maybe-all-gnattools: all-gnattools
32084all-gnattools: configure-gnattools
0aed8855 32085 @: $(MAKE); $(unstage)
4fa63067
NN
32086 @r=`${PWD_COMMAND}`; export r; \
32087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 32088 $(HOST_EXPORTS) \
a90ef4bf 32089 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 32090 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
32091 $(TARGET-gnattools))
32092@endif gnattools
4fa63067 32093
a7254363 32094
d545f33b
PB
32095
32096
a90ef4bf
JM
32097.PHONY: check-gnattools maybe-check-gnattools
32098maybe-check-gnattools:
32099@if gnattools
32100maybe-check-gnattools: check-gnattools
2a4cbe27 32101
a90ef4bf 32102check-gnattools:
0aed8855 32103 @: $(MAKE); $(unstage)
4fa63067
NN
32104 @r=`${PWD_COMMAND}`; export r; \
32105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32106 $(HOST_EXPORTS) \
a90ef4bf 32107 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 32108 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 32109
a90ef4bf 32110@endif gnattools
4fa63067 32111
a90ef4bf
JM
32112.PHONY: install-gnattools maybe-install-gnattools
32113maybe-install-gnattools:
32114@if gnattools
32115maybe-install-gnattools: install-gnattools
4fa63067 32116
a90ef4bf 32117install-gnattools: installdirs
0aed8855 32118 @: $(MAKE); $(unstage)
4fa63067
NN
32119 @r=`${PWD_COMMAND}`; export r; \
32120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32121 $(HOST_EXPORTS) \
a90ef4bf 32122 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 32123 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 32124
a90ef4bf 32125@endif gnattools
4fa63067 32126
a90ef4bf
JM
32127.PHONY: install-strip-gnattools maybe-install-strip-gnattools
32128maybe-install-strip-gnattools:
32129@if gnattools
32130maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 32131
a90ef4bf 32132install-strip-gnattools: installdirs
9b980aa1
RW
32133 @: $(MAKE); $(unstage)
32134 @r=`${PWD_COMMAND}`; export r; \
32135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32136 $(HOST_EXPORTS) \
a90ef4bf 32137 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
32138 $(MAKE) $(FLAGS_TO_PASS) install-strip)
32139
a90ef4bf 32140@endif gnattools
9b980aa1 32141
56a8fe78 32142# Other targets (info, dvi, pdf, etc.)
4fa63067 32143
a90ef4bf
JM
32144.PHONY: maybe-info-gnattools info-gnattools
32145maybe-info-gnattools:
32146@if gnattools
32147maybe-info-gnattools: info-gnattools
4fa63067 32148
a90ef4bf
JM
32149info-gnattools: \
32150 configure-gnattools
0aed8855 32151 @: $(MAKE); $(unstage)
a90ef4bf 32152 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32153 r=`${PWD_COMMAND}`; export r; \
32154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32155 $(HOST_EXPORTS) \
b813574b 32156 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32158 done; \
22121df0 32159 echo "Doing info in gnattools"; \
a90ef4bf 32160 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32163 "RANLIB=$${RANLIB}" \
0c24b341 32164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32165 info) \
2a4cbe27
NN
32166 || exit 1
32167
a90ef4bf 32168@endif gnattools
2a4cbe27 32169
a90ef4bf
JM
32170.PHONY: maybe-dvi-gnattools dvi-gnattools
32171maybe-dvi-gnattools:
32172@if gnattools
32173maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 32174
a90ef4bf
JM
32175dvi-gnattools: \
32176 configure-gnattools
0aed8855 32177 @: $(MAKE); $(unstage)
a90ef4bf 32178 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32179 r=`${PWD_COMMAND}`; export r; \
32180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32181 $(HOST_EXPORTS) \
b813574b 32182 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32184 done; \
22121df0 32185 echo "Doing dvi in gnattools"; \
a90ef4bf 32186 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32189 "RANLIB=$${RANLIB}" \
0c24b341 32190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32191 dvi) \
2a4cbe27
NN
32192 || exit 1
32193
a90ef4bf 32194@endif gnattools
2a4cbe27 32195
a90ef4bf
JM
32196.PHONY: maybe-pdf-gnattools pdf-gnattools
32197maybe-pdf-gnattools:
32198@if gnattools
32199maybe-pdf-gnattools: pdf-gnattools
56a8fe78 32200
a90ef4bf
JM
32201pdf-gnattools: \
32202 configure-gnattools
56a8fe78 32203 @: $(MAKE); $(unstage)
a90ef4bf 32204 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
32205 r=`${PWD_COMMAND}`; export r; \
32206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32207 $(HOST_EXPORTS) \
32208 for flag in $(EXTRA_HOST_FLAGS) ; do \
32209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32210 done; \
22121df0 32211 echo "Doing pdf in gnattools"; \
a90ef4bf 32212 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
32213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32215 "RANLIB=$${RANLIB}" \
0c24b341 32216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
32217 pdf) \
32218 || exit 1
32219
a90ef4bf 32220@endif gnattools
56a8fe78 32221
a90ef4bf
JM
32222.PHONY: maybe-html-gnattools html-gnattools
32223maybe-html-gnattools:
32224@if gnattools
32225maybe-html-gnattools: html-gnattools
6d389afc 32226
a90ef4bf
JM
32227html-gnattools: \
32228 configure-gnattools
0aed8855 32229 @: $(MAKE); $(unstage)
a90ef4bf 32230 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
32231 r=`${PWD_COMMAND}`; export r; \
32232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
32233 $(HOST_EXPORTS) \
32234 for flag in $(EXTRA_HOST_FLAGS) ; do \
32235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32236 done; \
22121df0 32237 echo "Doing html in gnattools"; \
a90ef4bf 32238 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
32239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32241 "RANLIB=$${RANLIB}" \
0c24b341 32242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
32243 html) \
32244 || exit 1
32245
a90ef4bf 32246@endif gnattools
6d389afc 32247
a90ef4bf
JM
32248.PHONY: maybe-TAGS-gnattools TAGS-gnattools
32249maybe-TAGS-gnattools:
32250@if gnattools
32251maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 32252
a90ef4bf
JM
32253TAGS-gnattools: \
32254 configure-gnattools
0aed8855 32255 @: $(MAKE); $(unstage)
a90ef4bf 32256 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32257 r=`${PWD_COMMAND}`; export r; \
32258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32259 $(HOST_EXPORTS) \
b813574b 32260 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32262 done; \
22121df0 32263 echo "Doing TAGS in gnattools"; \
a90ef4bf 32264 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32267 "RANLIB=$${RANLIB}" \
0c24b341 32268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32269 TAGS) \
2a4cbe27
NN
32270 || exit 1
32271
a90ef4bf 32272@endif gnattools
2a4cbe27 32273
a90ef4bf
JM
32274.PHONY: maybe-install-info-gnattools install-info-gnattools
32275maybe-install-info-gnattools:
32276@if gnattools
32277maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 32278
a90ef4bf
JM
32279install-info-gnattools: \
32280 configure-gnattools \
32281 info-gnattools
0aed8855 32282 @: $(MAKE); $(unstage)
a90ef4bf 32283 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32284 r=`${PWD_COMMAND}`; export r; \
32285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32286 $(HOST_EXPORTS) \
b813574b 32287 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32289 done; \
22121df0 32290 echo "Doing install-info in gnattools"; \
a90ef4bf 32291 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32294 "RANLIB=$${RANLIB}" \
0c24b341 32295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32296 install-info) \
2a4cbe27
NN
32297 || exit 1
32298
a90ef4bf 32299@endif gnattools
2a4cbe27 32300
a90ef4bf
JM
32301.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
32302maybe-install-pdf-gnattools:
32303@if gnattools
32304maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 32305
a90ef4bf
JM
32306install-pdf-gnattools: \
32307 configure-gnattools \
32308 pdf-gnattools
a3ca38d2 32309 @: $(MAKE); $(unstage)
a90ef4bf 32310 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
32311 r=`${PWD_COMMAND}`; export r; \
32312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32313 $(HOST_EXPORTS) \
32314 for flag in $(EXTRA_HOST_FLAGS) ; do \
32315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32316 done; \
22121df0 32317 echo "Doing install-pdf in gnattools"; \
a90ef4bf 32318 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
32319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32321 "RANLIB=$${RANLIB}" \
0c24b341 32322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
32323 install-pdf) \
32324 || exit 1
32325
a90ef4bf 32326@endif gnattools
a3ca38d2 32327
a90ef4bf
JM
32328.PHONY: maybe-install-html-gnattools install-html-gnattools
32329maybe-install-html-gnattools:
32330@if gnattools
32331maybe-install-html-gnattools: install-html-gnattools
108a6f8e 32332
a90ef4bf
JM
32333install-html-gnattools: \
32334 configure-gnattools \
32335 html-gnattools
108a6f8e 32336 @: $(MAKE); $(unstage)
a90ef4bf 32337 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
32338 r=`${PWD_COMMAND}`; export r; \
32339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32340 $(HOST_EXPORTS) \
32341 for flag in $(EXTRA_HOST_FLAGS) ; do \
32342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32343 done; \
22121df0 32344 echo "Doing install-html in gnattools"; \
a90ef4bf 32345 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
32346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32348 "RANLIB=$${RANLIB}" \
0c24b341 32349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
32350 install-html) \
32351 || exit 1
32352
a90ef4bf 32353@endif gnattools
108a6f8e 32354
a90ef4bf
JM
32355.PHONY: maybe-installcheck-gnattools installcheck-gnattools
32356maybe-installcheck-gnattools:
32357@if gnattools
32358maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 32359
a90ef4bf
JM
32360installcheck-gnattools: \
32361 configure-gnattools
0aed8855 32362 @: $(MAKE); $(unstage)
a90ef4bf 32363 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32364 r=`${PWD_COMMAND}`; export r; \
32365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32366 $(HOST_EXPORTS) \
b813574b 32367 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32369 done; \
22121df0 32370 echo "Doing installcheck in gnattools"; \
a90ef4bf 32371 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32374 "RANLIB=$${RANLIB}" \
0c24b341 32375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32376 installcheck) \
2a4cbe27
NN
32377 || exit 1
32378
a90ef4bf 32379@endif gnattools
2a4cbe27 32380
a90ef4bf
JM
32381.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
32382maybe-mostlyclean-gnattools:
32383@if gnattools
32384maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 32385
a90ef4bf 32386mostlyclean-gnattools:
0aed8855 32387 @: $(MAKE); $(unstage)
a90ef4bf 32388 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32389 r=`${PWD_COMMAND}`; export r; \
32390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32391 $(HOST_EXPORTS) \
b813574b 32392 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32394 done; \
22121df0 32395 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 32396 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32399 "RANLIB=$${RANLIB}" \
0c24b341 32400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32401 mostlyclean) \
2a4cbe27
NN
32402 || exit 1
32403
a90ef4bf 32404@endif gnattools
2a4cbe27 32405
a90ef4bf
JM
32406.PHONY: maybe-clean-gnattools clean-gnattools
32407maybe-clean-gnattools:
32408@if gnattools
32409maybe-clean-gnattools: clean-gnattools
2a4cbe27 32410
a90ef4bf 32411clean-gnattools:
0aed8855 32412 @: $(MAKE); $(unstage)
a90ef4bf 32413 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32414 r=`${PWD_COMMAND}`; export r; \
32415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32416 $(HOST_EXPORTS) \
b813574b 32417 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32419 done; \
22121df0 32420 echo "Doing clean in gnattools"; \
a90ef4bf 32421 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32424 "RANLIB=$${RANLIB}" \
0c24b341 32425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32426 clean) \
2a4cbe27
NN
32427 || exit 1
32428
a90ef4bf 32429@endif gnattools
2a4cbe27 32430
a90ef4bf
JM
32431.PHONY: maybe-distclean-gnattools distclean-gnattools
32432maybe-distclean-gnattools:
32433@if gnattools
32434maybe-distclean-gnattools: distclean-gnattools
a2592b1b 32435
a90ef4bf 32436distclean-gnattools:
0aed8855 32437 @: $(MAKE); $(unstage)
a90ef4bf 32438 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
32439 r=`${PWD_COMMAND}`; export r; \
32440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32441 $(HOST_EXPORTS) \
b813574b 32442 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
32443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32444 done; \
22121df0 32445 echo "Doing distclean in gnattools"; \
a90ef4bf 32446 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
32447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32449 "RANLIB=$${RANLIB}" \
0c24b341 32450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32451 distclean) \
a2592b1b
DD
32452 || exit 1
32453
a90ef4bf 32454@endif gnattools
a2592b1b 32455
a90ef4bf
JM
32456.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
32457maybe-maintainer-clean-gnattools:
32458@if gnattools
32459maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 32460
a90ef4bf 32461maintainer-clean-gnattools:
0aed8855 32462 @: $(MAKE); $(unstage)
a90ef4bf 32463 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 32464 r=`${PWD_COMMAND}`; export r; \
b40e3958 32465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32466 $(HOST_EXPORTS) \
b813574b 32467 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
32468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32469 done; \
22121df0 32470 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 32471 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
32472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32474 "RANLIB=$${RANLIB}" \
0c24b341 32475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32476 maintainer-clean) \
4fa63067 32477 || exit 1
252b5132 32478
a90ef4bf 32479@endif gnattools
252b5132 32480
252b5132 32481
a7254363 32482
a90ef4bf
JM
32483.PHONY: configure-lto-plugin maybe-configure-lto-plugin
32484maybe-configure-lto-plugin:
4f0ef2d8 32485@if gcc-bootstrap
a90ef4bf 32486configure-lto-plugin: stage_current
4f0ef2d8 32487@endif gcc-bootstrap
a90ef4bf
JM
32488@if lto-plugin
32489maybe-configure-lto-plugin: configure-lto-plugin
32490configure-lto-plugin:
c52c6897 32491 @r=`${PWD_COMMAND}`; export r; \
b813574b 32492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32493 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 32494 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 32495 $(HOST_EXPORTS) \
a90ef4bf
JM
32496 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
32497 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 32498 case $(srcdir) in \
b00612cc 32499 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32500 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 32501 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 32502 esac; \
1b6c0831
L
32503 module_srcdir=lto-plugin; \
32504 $(SHELL) \
32505 $$s/$$module_srcdir/configure \
32506 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32507 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32508 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 32509 || exit 1
a90ef4bf 32510@endif lto-plugin
a7254363 32511
d545f33b
PB
32512
32513
a90ef4bf
JM
32514.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
32515maybe-configure-stage1-lto-plugin:
32516@if lto-plugin-bootstrap
32517maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
32518configure-stage1-lto-plugin:
32519 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32520 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
32521 @r=`${PWD_COMMAND}`; export r; \
32522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32523 TFLAGS="$(STAGE1_TFLAGS)"; \
32524 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
32525 $(HOST_EXPORTS) \
32526 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
32527 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
32528 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
32529 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
32530 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32531 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32532 case $(srcdir) in \
32533 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32534 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32535 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32536 esac; \
1b6c0831
L
32537 module_srcdir=lto-plugin; \
32538 $(SHELL) $$s/$$module_srcdir/configure \
32539 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32540 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
32541 --target=${target_alias} \
32542 \
a90ef4bf 32543 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 32544 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32545@endif lto-plugin-bootstrap
252b5132 32546
a90ef4bf
JM
32547.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
32548maybe-configure-stage2-lto-plugin:
32549@if lto-plugin-bootstrap
32550maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
32551configure-stage2-lto-plugin:
32552 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32553 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
32554 @r=`${PWD_COMMAND}`; export r; \
32555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32556 TFLAGS="$(STAGE2_TFLAGS)"; \
32557 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 32558 $(HOST_EXPORTS) \
a90ef4bf
JM
32559 $(POSTSTAGE1_HOST_EXPORTS) \
32560 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
32561 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
32562 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32563 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
32564 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32565 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32566 case $(srcdir) in \
32567 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32568 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32569 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32570 esac; \
1b6c0831
L
32571 module_srcdir=lto-plugin; \
32572 $(SHELL) $$s/$$module_srcdir/configure \
32573 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32574 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32575 --target=${target_alias} \
22121df0 32576 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32577 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 32578 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32579@endif lto-plugin-bootstrap
4fa63067 32580
a90ef4bf
JM
32581.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
32582maybe-configure-stage3-lto-plugin:
32583@if lto-plugin-bootstrap
32584maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
32585configure-stage3-lto-plugin:
32586 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32587 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
32588 @r=`${PWD_COMMAND}`; export r; \
32589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32590 TFLAGS="$(STAGE3_TFLAGS)"; \
32591 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 32592 $(HOST_EXPORTS) \
a90ef4bf
JM
32593 $(POSTSTAGE1_HOST_EXPORTS) \
32594 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
32595 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
32596 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32597 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
32598 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32599 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32600 case $(srcdir) in \
32601 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32602 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32603 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32604 esac; \
1b6c0831
L
32605 module_srcdir=lto-plugin; \
32606 $(SHELL) $$s/$$module_srcdir/configure \
32607 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32608 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32609 --target=${target_alias} \
22121df0 32610 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32611 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 32612 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32613@endif lto-plugin-bootstrap
9b980aa1 32614
a90ef4bf
JM
32615.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
32616maybe-configure-stage4-lto-plugin:
32617@if lto-plugin-bootstrap
32618maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
32619configure-stage4-lto-plugin:
32620 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32621 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
32622 @r=`${PWD_COMMAND}`; export r; \
32623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32624 TFLAGS="$(STAGE4_TFLAGS)"; \
32625 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 32626 $(HOST_EXPORTS) \
a90ef4bf
JM
32627 $(POSTSTAGE1_HOST_EXPORTS) \
32628 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
32629 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
32630 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32631 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
32632 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32633 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32634 case $(srcdir) in \
32635 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32636 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32637 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32638 esac; \
1b6c0831
L
32639 module_srcdir=lto-plugin; \
32640 $(SHELL) $$s/$$module_srcdir/configure \
32641 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32642 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32643 --target=${target_alias} \
22121df0 32644 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32645 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 32646 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32647@endif lto-plugin-bootstrap
4fa63067 32648
a90ef4bf
JM
32649.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
32650maybe-configure-stageprofile-lto-plugin:
32651@if lto-plugin-bootstrap
32652maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
32653configure-stageprofile-lto-plugin:
32654 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32655 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
32656 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32658 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32659 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 32660 $(HOST_EXPORTS) \
a90ef4bf
JM
32661 $(POSTSTAGE1_HOST_EXPORTS) \
32662 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
32663 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
32664 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32665 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
32666 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32667 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32668 case $(srcdir) in \
32669 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32670 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32671 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32672 esac; \
1b6c0831
L
32673 module_srcdir=lto-plugin; \
32674 $(SHELL) $$s/$$module_srcdir/configure \
32675 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32676 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32677 --target=${target_alias} \
22121df0 32678 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32679 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 32680 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32681@endif lto-plugin-bootstrap
4fa63067 32682
a90ef4bf
JM
32683.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
32684maybe-configure-stagefeedback-lto-plugin:
32685@if lto-plugin-bootstrap
32686maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
32687configure-stagefeedback-lto-plugin:
32688 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32689 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
32690 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32692 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32693 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 32694 $(HOST_EXPORTS) \
a90ef4bf
JM
32695 $(POSTSTAGE1_HOST_EXPORTS) \
32696 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
32697 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
32698 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32699 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
32700 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32701 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32702 case $(srcdir) in \
32703 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32704 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32705 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32706 esac; \
1b6c0831
L
32707 module_srcdir=lto-plugin; \
32708 $(SHELL) $$s/$$module_srcdir/configure \
32709 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32710 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32711 --target=${target_alias} \
22121df0 32712 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32713 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 32714 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32715@endif lto-plugin-bootstrap
252b5132 32716
56a8fe78 32717
56a8fe78 32718
56a8fe78 32719
6d389afc 32720
a90ef4bf
JM
32721.PHONY: all-lto-plugin maybe-all-lto-plugin
32722maybe-all-lto-plugin:
32723@if gcc-bootstrap
32724all-lto-plugin: stage_current
32725@endif gcc-bootstrap
32726@if lto-plugin
32727TARGET-lto-plugin=all
32728maybe-all-lto-plugin: all-lto-plugin
32729all-lto-plugin: configure-lto-plugin
32730 @r=`${PWD_COMMAND}`; export r; \
6d389afc 32731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32732 $(HOST_EXPORTS) \
32733 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32734 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
32735 $(TARGET-lto-plugin))
32736@endif lto-plugin
6d389afc 32737
6d389afc 32738
252b5132 32739
a90ef4bf
JM
32740.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
32741.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
32742maybe-all-stage1-lto-plugin:
32743maybe-clean-stage1-lto-plugin:
32744@if lto-plugin-bootstrap
32745maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
32746all-stage1: all-stage1-lto-plugin
32747TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
32748all-stage1-lto-plugin: configure-stage1-lto-plugin
32749 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32750 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32752 TFLAGS="$(STAGE1_TFLAGS)"; \
32753 $(HOST_EXPORTS) \
32754 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32755 \
a90ef4bf
JM
32756 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32757 CFLAGS="$(STAGE1_CFLAGS)" \
32758 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
32759 LIBCFLAGS="$(LIBCFLAGS)" \
32760 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32761 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32762 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 32763 $(EXTRA_HOST_FLAGS) \
1b6c0831 32764 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32765 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 32766 $(TARGET-stage1-lto-plugin)
3866be5d 32767
a90ef4bf
JM
32768maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
32769clean-stage1: clean-stage1-lto-plugin
32770clean-stage1-lto-plugin:
32771 @if [ $(current_stage) = stage1 ]; then \
32772 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32773 else \
32774 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
32775 $(MAKE) stage1-start; \
32776 fi; \
32777 cd $(HOST_SUBDIR)/lto-plugin && \
32778 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 32779 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32780@endif lto-plugin-bootstrap
3866be5d 32781
3866be5d 32782
a90ef4bf
JM
32783.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
32784.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
32785maybe-all-stage2-lto-plugin:
32786maybe-clean-stage2-lto-plugin:
32787@if lto-plugin-bootstrap
32788maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
32789all-stage2: all-stage2-lto-plugin
32790TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
32791all-stage2-lto-plugin: configure-stage2-lto-plugin
32792 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32793 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32795 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 32796 $(HOST_EXPORTS) \
a90ef4bf
JM
32797 $(POSTSTAGE1_HOST_EXPORTS) \
32798 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32799 \
a90ef4bf
JM
32800 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32801 CFLAGS="$(STAGE2_CFLAGS)" \
32802 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
32803 LIBCFLAGS="$(STAGE2_CFLAGS)" \
32804 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32805 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32806 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32807 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32808 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 32809 $(TARGET-stage2-lto-plugin)
3866be5d 32810
a90ef4bf
JM
32811maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
32812clean-stage2: clean-stage2-lto-plugin
32813clean-stage2-lto-plugin:
32814 @if [ $(current_stage) = stage2 ]; then \
32815 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32816 else \
32817 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
32818 $(MAKE) stage2-start; \
32819 fi; \
32820 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32821 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32822@endif lto-plugin-bootstrap
3866be5d 32823
a3ca38d2 32824
a90ef4bf
JM
32825.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
32826.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
32827maybe-all-stage3-lto-plugin:
32828maybe-clean-stage3-lto-plugin:
32829@if lto-plugin-bootstrap
32830maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
32831all-stage3: all-stage3-lto-plugin
32832TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
32833all-stage3-lto-plugin: configure-stage3-lto-plugin
32834 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32835 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 32836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32837 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 32838 $(HOST_EXPORTS) \
a90ef4bf
JM
32839 $(POSTSTAGE1_HOST_EXPORTS) \
32840 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32841 \
a90ef4bf
JM
32842 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32843 CFLAGS="$(STAGE3_CFLAGS)" \
32844 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
32845 LIBCFLAGS="$(STAGE3_CFLAGS)" \
32846 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32847 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32848 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32849 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32850 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 32851 $(TARGET-stage3-lto-plugin)
a3ca38d2 32852
a90ef4bf
JM
32853maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
32854clean-stage3: clean-stage3-lto-plugin
32855clean-stage3-lto-plugin:
32856 @if [ $(current_stage) = stage3 ]; then \
32857 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32858 else \
32859 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
32860 $(MAKE) stage3-start; \
32861 fi; \
32862 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32863 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32864@endif lto-plugin-bootstrap
a3ca38d2 32865
108a6f8e 32866
a90ef4bf
JM
32867.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
32868.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
32869maybe-all-stage4-lto-plugin:
32870maybe-clean-stage4-lto-plugin:
32871@if lto-plugin-bootstrap
32872maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
32873all-stage4: all-stage4-lto-plugin
32874TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
32875all-stage4-lto-plugin: configure-stage4-lto-plugin
32876 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32877 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 32878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32879 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 32880 $(HOST_EXPORTS) \
a90ef4bf
JM
32881 $(POSTSTAGE1_HOST_EXPORTS) \
32882 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32883 \
a90ef4bf
JM
32884 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32885 CFLAGS="$(STAGE4_CFLAGS)" \
32886 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
32887 LIBCFLAGS="$(STAGE4_CFLAGS)" \
32888 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32889 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32890 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32891 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32892 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 32893 $(TARGET-stage4-lto-plugin)
108a6f8e 32894
a90ef4bf
JM
32895maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
32896clean-stage4: clean-stage4-lto-plugin
32897clean-stage4-lto-plugin:
32898 @if [ $(current_stage) = stage4 ]; then \
32899 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32900 else \
32901 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
32902 $(MAKE) stage4-start; \
32903 fi; \
32904 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32905 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32906@endif lto-plugin-bootstrap
4fa63067 32907
4fa63067 32908
a90ef4bf
JM
32909.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
32910.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
32911maybe-all-stageprofile-lto-plugin:
32912maybe-clean-stageprofile-lto-plugin:
32913@if lto-plugin-bootstrap
32914maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
32915all-stageprofile: all-stageprofile-lto-plugin
32916TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
32917all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
32918 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32919 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32921 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 32922 $(HOST_EXPORTS) \
a90ef4bf
JM
32923 $(POSTSTAGE1_HOST_EXPORTS) \
32924 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32925 \
a90ef4bf
JM
32926 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32927 CFLAGS="$(STAGEprofile_CFLAGS)" \
32928 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
32929 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
32930 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32931 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32932 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32933 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32934 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 32935 $(TARGET-stageprofile-lto-plugin)
4fa63067 32936
a90ef4bf
JM
32937maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
32938clean-stageprofile: clean-stageprofile-lto-plugin
32939clean-stageprofile-lto-plugin:
32940 @if [ $(current_stage) = stageprofile ]; then \
32941 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32942 else \
32943 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
32944 $(MAKE) stageprofile-start; \
32945 fi; \
32946 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32947 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32948@endif lto-plugin-bootstrap
4fa63067 32949
4fa63067 32950
a90ef4bf
JM
32951.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
32952.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
32953maybe-all-stagefeedback-lto-plugin:
32954maybe-clean-stagefeedback-lto-plugin:
32955@if lto-plugin-bootstrap
32956maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
32957all-stagefeedback: all-stagefeedback-lto-plugin
32958TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
32959all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
32960 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32961 @r=`${PWD_COMMAND}`; export r; \
b40e3958 32962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32963 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 32964 $(HOST_EXPORTS) \
a90ef4bf
JM
32965 $(POSTSTAGE1_HOST_EXPORTS) \
32966 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32967 \
a90ef4bf
JM
32968 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32969 CFLAGS="$(STAGEfeedback_CFLAGS)" \
32970 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
32971 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
32972 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32973 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32974 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32975 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32976 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 32977 $(TARGET-stagefeedback-lto-plugin)
3866be5d 32978
a90ef4bf
JM
32979maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
32980clean-stagefeedback: clean-stagefeedback-lto-plugin
32981clean-stagefeedback-lto-plugin:
32982 @if [ $(current_stage) = stagefeedback ]; then \
32983 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32984 else \
32985 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
32986 $(MAKE) stagefeedback-start; \
32987 fi; \
32988 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32989 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32990@endif lto-plugin-bootstrap
a7254363 32991
e2b9e2dc 32992
a7254363
PB
32993
32994
d545f33b 32995
a90ef4bf
JM
32996.PHONY: check-lto-plugin maybe-check-lto-plugin
32997maybe-check-lto-plugin:
32998@if lto-plugin
32999maybe-check-lto-plugin: check-lto-plugin
d545f33b 33000
a90ef4bf 33001check-lto-plugin:
0aed8855 33002 @: $(MAKE); $(unstage)
b40e3958
L
33003 @r=`${PWD_COMMAND}`; export r; \
33004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 33005 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 33006 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 33007 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 33008
a90ef4bf 33009@endif lto-plugin
3866be5d 33010
a90ef4bf
JM
33011.PHONY: install-lto-plugin maybe-install-lto-plugin
33012maybe-install-lto-plugin:
33013@if lto-plugin
33014maybe-install-lto-plugin: install-lto-plugin
4fa63067 33015
a90ef4bf 33016install-lto-plugin: installdirs
0aed8855 33017 @: $(MAKE); $(unstage)
4fa63067
NN
33018 @r=`${PWD_COMMAND}`; export r; \
33019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33020 $(HOST_EXPORTS) \
a90ef4bf 33021 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 33022 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 33023
a90ef4bf 33024@endif lto-plugin
4fa63067 33025
a90ef4bf
JM
33026.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
33027maybe-install-strip-lto-plugin:
33028@if lto-plugin
33029maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 33030
a90ef4bf 33031install-strip-lto-plugin: installdirs
9b980aa1
RW
33032 @: $(MAKE); $(unstage)
33033 @r=`${PWD_COMMAND}`; export r; \
33034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33035 $(HOST_EXPORTS) \
a90ef4bf 33036 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 33037 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 33038
a90ef4bf 33039@endif lto-plugin
9b980aa1 33040
56a8fe78 33041# Other targets (info, dvi, pdf, etc.)
4fa63067 33042
a90ef4bf
JM
33043.PHONY: maybe-info-lto-plugin info-lto-plugin
33044maybe-info-lto-plugin:
33045@if lto-plugin
33046maybe-info-lto-plugin: info-lto-plugin
4fa63067 33047
a90ef4bf
JM
33048info-lto-plugin: \
33049 configure-lto-plugin
33050 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33051 r=`${PWD_COMMAND}`; export r; \
33052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33053 $(HOST_EXPORTS) \
1b6c0831 33054 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33056 done; \
22121df0 33057 echo "Doing info in lto-plugin"; \
a90ef4bf 33058 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33061 "RANLIB=$${RANLIB}" \
0c24b341 33062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33063 info) \
4fa63067
NN
33064 || exit 1
33065
a90ef4bf 33066@endif lto-plugin
4fa63067 33067
a90ef4bf
JM
33068.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
33069maybe-dvi-lto-plugin:
33070@if lto-plugin
33071maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 33072
a90ef4bf
JM
33073dvi-lto-plugin: \
33074 configure-lto-plugin
33075 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33076 r=`${PWD_COMMAND}`; export r; \
33077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33078 $(HOST_EXPORTS) \
1b6c0831 33079 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33081 done; \
22121df0 33082 echo "Doing dvi in lto-plugin"; \
a90ef4bf 33083 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33086 "RANLIB=$${RANLIB}" \
0c24b341 33087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33088 dvi) \
4fa63067
NN
33089 || exit 1
33090
a90ef4bf 33091@endif lto-plugin
4fa63067 33092
a90ef4bf
JM
33093.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
33094maybe-pdf-lto-plugin:
33095@if lto-plugin
33096maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 33097
a90ef4bf
JM
33098pdf-lto-plugin: \
33099 configure-lto-plugin
33100 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
33101 r=`${PWD_COMMAND}`; export r; \
33102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33103 $(HOST_EXPORTS) \
1b6c0831 33104 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
33105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33106 done; \
22121df0 33107 echo "Doing pdf in lto-plugin"; \
a90ef4bf 33108 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
33109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33111 "RANLIB=$${RANLIB}" \
0c24b341 33112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
33113 pdf) \
33114 || exit 1
33115
a90ef4bf 33116@endif lto-plugin
56a8fe78 33117
a90ef4bf
JM
33118.PHONY: maybe-html-lto-plugin html-lto-plugin
33119maybe-html-lto-plugin:
33120@if lto-plugin
33121maybe-html-lto-plugin: html-lto-plugin
6d389afc 33122
a90ef4bf
JM
33123html-lto-plugin: \
33124 configure-lto-plugin
33125 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
33126 r=`${PWD_COMMAND}`; export r; \
33127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 33128 $(HOST_EXPORTS) \
1b6c0831 33129 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
33130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33131 done; \
22121df0 33132 echo "Doing html in lto-plugin"; \
a90ef4bf 33133 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
33134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33136 "RANLIB=$${RANLIB}" \
0c24b341 33137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
33138 html) \
33139 || exit 1
33140
a90ef4bf 33141@endif lto-plugin
6d389afc 33142
a90ef4bf
JM
33143.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
33144maybe-TAGS-lto-plugin:
33145@if lto-plugin
33146maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 33147
a90ef4bf
JM
33148TAGS-lto-plugin: \
33149 configure-lto-plugin
33150 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33151 r=`${PWD_COMMAND}`; export r; \
33152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33153 $(HOST_EXPORTS) \
1b6c0831 33154 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33156 done; \
22121df0 33157 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 33158 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33161 "RANLIB=$${RANLIB}" \
0c24b341 33162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33163 TAGS) \
4fa63067
NN
33164 || exit 1
33165
a90ef4bf 33166@endif lto-plugin
4fa63067 33167
a90ef4bf
JM
33168.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
33169maybe-install-info-lto-plugin:
33170@if lto-plugin
33171maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 33172
a90ef4bf
JM
33173install-info-lto-plugin: \
33174 configure-lto-plugin \
33175 info-lto-plugin
33176 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33177 r=`${PWD_COMMAND}`; export r; \
33178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33179 $(HOST_EXPORTS) \
1b6c0831 33180 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33182 done; \
22121df0 33183 echo "Doing install-info in lto-plugin"; \
a90ef4bf 33184 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33187 "RANLIB=$${RANLIB}" \
0c24b341 33188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33189 install-info) \
4fa63067
NN
33190 || exit 1
33191
a90ef4bf 33192@endif lto-plugin
4fa63067 33193
a90ef4bf
JM
33194.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
33195maybe-install-pdf-lto-plugin:
33196@if lto-plugin
33197maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 33198
a90ef4bf
JM
33199install-pdf-lto-plugin: \
33200 configure-lto-plugin \
33201 pdf-lto-plugin
33202 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
33203 r=`${PWD_COMMAND}`; export r; \
33204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33205 $(HOST_EXPORTS) \
1b6c0831 33206 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
33207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33208 done; \
22121df0 33209 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 33210 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
33211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33213 "RANLIB=$${RANLIB}" \
0c24b341 33214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
33215 install-pdf) \
33216 || exit 1
33217
a90ef4bf 33218@endif lto-plugin
a3ca38d2 33219
a90ef4bf
JM
33220.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
33221maybe-install-html-lto-plugin:
33222@if lto-plugin
33223maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 33224
a90ef4bf
JM
33225install-html-lto-plugin: \
33226 configure-lto-plugin \
33227 html-lto-plugin
33228 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
33229 r=`${PWD_COMMAND}`; export r; \
33230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33231 $(HOST_EXPORTS) \
1b6c0831 33232 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
33233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33234 done; \
22121df0 33235 echo "Doing install-html in lto-plugin"; \
a90ef4bf 33236 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
33237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33239 "RANLIB=$${RANLIB}" \
0c24b341 33240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
33241 install-html) \
33242 || exit 1
33243
a90ef4bf 33244@endif lto-plugin
108a6f8e 33245
a90ef4bf
JM
33246.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
33247maybe-installcheck-lto-plugin:
33248@if lto-plugin
33249maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 33250
a90ef4bf
JM
33251installcheck-lto-plugin: \
33252 configure-lto-plugin
33253 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33254 r=`${PWD_COMMAND}`; export r; \
33255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33256 $(HOST_EXPORTS) \
1b6c0831 33257 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33259 done; \
22121df0 33260 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 33261 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33264 "RANLIB=$${RANLIB}" \
0c24b341 33265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33266 installcheck) \
4fa63067
NN
33267 || exit 1
33268
a90ef4bf 33269@endif lto-plugin
4fa63067 33270
a90ef4bf
JM
33271.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
33272maybe-mostlyclean-lto-plugin:
33273@if lto-plugin
33274maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 33275
a90ef4bf
JM
33276mostlyclean-lto-plugin:
33277 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33278 r=`${PWD_COMMAND}`; export r; \
33279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33280 $(HOST_EXPORTS) \
1b6c0831 33281 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33283 done; \
22121df0 33284 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 33285 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33288 "RANLIB=$${RANLIB}" \
0c24b341 33289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33290 mostlyclean) \
4fa63067
NN
33291 || exit 1
33292
a90ef4bf 33293@endif lto-plugin
4fa63067 33294
a90ef4bf
JM
33295.PHONY: maybe-clean-lto-plugin clean-lto-plugin
33296maybe-clean-lto-plugin:
33297@if lto-plugin
33298maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 33299
a90ef4bf
JM
33300clean-lto-plugin:
33301 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33302 r=`${PWD_COMMAND}`; export r; \
33303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33304 $(HOST_EXPORTS) \
1b6c0831 33305 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33307 done; \
22121df0 33308 echo "Doing clean in lto-plugin"; \
a90ef4bf 33309 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33312 "RANLIB=$${RANLIB}" \
0c24b341 33313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33314 clean) \
4fa63067
NN
33315 || exit 1
33316
a90ef4bf 33317@endif lto-plugin
4fa63067 33318
a90ef4bf
JM
33319.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
33320maybe-distclean-lto-plugin:
33321@if lto-plugin
33322maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 33323
a90ef4bf
JM
33324distclean-lto-plugin:
33325 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33326 r=`${PWD_COMMAND}`; export r; \
33327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33328 $(HOST_EXPORTS) \
1b6c0831 33329 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33331 done; \
22121df0 33332 echo "Doing distclean in lto-plugin"; \
a90ef4bf 33333 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33336 "RANLIB=$${RANLIB}" \
0c24b341 33337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33338 distclean) \
4fa63067
NN
33339 || exit 1
33340
a90ef4bf 33341@endif lto-plugin
4fa63067 33342
a90ef4bf
JM
33343.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
33344maybe-maintainer-clean-lto-plugin:
33345@if lto-plugin
33346maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 33347
a90ef4bf
JM
33348maintainer-clean-lto-plugin:
33349 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33350 r=`${PWD_COMMAND}`; export r; \
33351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33352 $(HOST_EXPORTS) \
1b6c0831 33353 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33355 done; \
22121df0 33356 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 33357 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33360 "RANLIB=$${RANLIB}" \
0c24b341 33361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33362 maintainer-clean) \
4fa63067 33363 || exit 1
16ae0395 33364
a90ef4bf
JM
33365@endif lto-plugin
33366
33367
33368
1b6c0831
L
33369.PHONY: configure-libcc1 maybe-configure-libcc1
33370maybe-configure-libcc1:
4f0ef2d8 33371@if gcc-bootstrap
1b6c0831 33372configure-libcc1: stage_current
4f0ef2d8 33373@endif gcc-bootstrap
1b6c0831
L
33374@if libcc1
33375maybe-configure-libcc1: configure-libcc1
33376configure-libcc1:
33377 @: $(MAKE); $(unstage)
c52c6897 33378 @r=`${PWD_COMMAND}`; export r; \
b40e3958 33379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 33380 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 33381 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
33382 $(HOST_EXPORTS) \
33383 echo Configuring in $(HOST_SUBDIR)/libcc1; \
33384 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 33385 case $(srcdir) in \
b00612cc 33386 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 33387 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 33388 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 33389 esac; \
1b6c0831
L
33390 module_srcdir=libcc1; \
33391 $(SHELL) \
33392 $$s/$$module_srcdir/configure \
33393 --srcdir=$${topdir}/$$module_srcdir \
33394 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33395 --target=${target_alias} --enable-shared \
e2b9e2dc 33396 || exit 1
1b6c0831 33397@endif libcc1
d545f33b
PB
33398
33399
3866be5d 33400
16ae0395 33401
9b980aa1 33402
1b6c0831
L
33403.PHONY: all-libcc1 maybe-all-libcc1
33404maybe-all-libcc1:
33405@if gcc-bootstrap
33406all-libcc1: stage_current
33407@endif gcc-bootstrap
33408@if libcc1
33409TARGET-libcc1=all
33410maybe-all-libcc1: all-libcc1
33411all-libcc1: configure-libcc1
33412 @: $(MAKE); $(unstage)
e8a5fa9c
RW
33413 @r=`${PWD_COMMAND}`; export r; \
33414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33415 $(HOST_EXPORTS) \
33416 (cd $(HOST_SUBDIR)/libcc1 && \
33417 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
33418 $(TARGET-libcc1))
33419@endif libcc1
e8a5fa9c 33420
1b6c0831
L
33421
33422
33423
33424.PHONY: check-libcc1 maybe-check-libcc1
33425maybe-check-libcc1:
33426@if libcc1
33427maybe-check-libcc1: check-libcc1
33428
33429check-libcc1:
33430 @: $(MAKE); $(unstage)
e8a5fa9c
RW
33431 @r=`${PWD_COMMAND}`; export r; \
33432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 33433 $(HOST_EXPORTS) \
1b6c0831
L
33434 (cd $(HOST_SUBDIR)/libcc1 && \
33435 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 33436
1b6c0831
L
33437@endif libcc1
33438
33439.PHONY: install-libcc1 maybe-install-libcc1
33440maybe-install-libcc1:
33441@if libcc1
33442maybe-install-libcc1: install-libcc1
33443
33444install-libcc1: installdirs
33445 @: $(MAKE); $(unstage)
e8a5fa9c
RW
33446 @r=`${PWD_COMMAND}`; export r; \
33447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33448 $(HOST_EXPORTS) \
33449 (cd $(HOST_SUBDIR)/libcc1 && \
33450 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 33451
1b6c0831
L
33452@endif libcc1
33453
33454.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
33455maybe-install-strip-libcc1:
33456@if libcc1
33457maybe-install-strip-libcc1: install-strip-libcc1
33458
33459install-strip-libcc1: installdirs
33460 @: $(MAKE); $(unstage)
e8a5fa9c
RW
33461 @r=`${PWD_COMMAND}`; export r; \
33462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33463 $(HOST_EXPORTS) \
33464 (cd $(HOST_SUBDIR)/libcc1 && \
33465 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 33466
1b6c0831 33467@endif libcc1
e8a5fa9c 33468
1b6c0831 33469# Other targets (info, dvi, pdf, etc.)
d545f33b 33470
1b6c0831
L
33471.PHONY: maybe-info-libcc1 info-libcc1
33472maybe-info-libcc1:
33473@if libcc1
33474maybe-info-libcc1: info-libcc1
d545f33b 33475
1b6c0831
L
33476info-libcc1: \
33477 configure-libcc1
33478 @: $(MAKE); $(unstage)
33479 @[ -f ./libcc1/Makefile ] || exit 0; \
33480 r=`${PWD_COMMAND}`; export r; \
b40e3958 33481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33482 $(HOST_EXPORTS) \
33483 for flag in $(EXTRA_HOST_FLAGS) ; do \
33484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33485 done; \
22121df0 33486 echo "Doing info in libcc1"; \
1b6c0831
L
33487 (cd $(HOST_SUBDIR)/libcc1 && \
33488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33490 "RANLIB=$${RANLIB}" \
33491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33492 info) \
33493 || exit 1
3866be5d 33494
1b6c0831 33495@endif libcc1
a7254363 33496
1b6c0831
L
33497.PHONY: maybe-dvi-libcc1 dvi-libcc1
33498maybe-dvi-libcc1:
33499@if libcc1
33500maybe-dvi-libcc1: dvi-libcc1
a7254363 33501
1b6c0831
L
33502dvi-libcc1: \
33503 configure-libcc1
33504 @: $(MAKE); $(unstage)
33505 @[ -f ./libcc1/Makefile ] || exit 0; \
33506 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33508 $(HOST_EXPORTS) \
33509 for flag in $(EXTRA_HOST_FLAGS) ; do \
33510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33511 done; \
22121df0 33512 echo "Doing dvi in libcc1"; \
1b6c0831
L
33513 (cd $(HOST_SUBDIR)/libcc1 && \
33514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33516 "RANLIB=$${RANLIB}" \
33517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33518 dvi) \
33519 || exit 1
e8a5fa9c 33520
1b6c0831 33521@endif libcc1
e8a5fa9c 33522
1b6c0831
L
33523.PHONY: maybe-pdf-libcc1 pdf-libcc1
33524maybe-pdf-libcc1:
33525@if libcc1
33526maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 33527
1b6c0831
L
33528pdf-libcc1: \
33529 configure-libcc1
33530 @: $(MAKE); $(unstage)
33531 @[ -f ./libcc1/Makefile ] || exit 0; \
33532 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33534 $(HOST_EXPORTS) \
33535 for flag in $(EXTRA_HOST_FLAGS) ; do \
33536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33537 done; \
22121df0 33538 echo "Doing pdf in libcc1"; \
1b6c0831
L
33539 (cd $(HOST_SUBDIR)/libcc1 && \
33540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33542 "RANLIB=$${RANLIB}" \
33543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33544 pdf) \
33545 || exit 1
e8a5fa9c 33546
1b6c0831 33547@endif libcc1
e8a5fa9c 33548
1b6c0831
L
33549.PHONY: maybe-html-libcc1 html-libcc1
33550maybe-html-libcc1:
33551@if libcc1
33552maybe-html-libcc1: html-libcc1
e8a5fa9c 33553
1b6c0831
L
33554html-libcc1: \
33555 configure-libcc1
33556 @: $(MAKE); $(unstage)
33557 @[ -f ./libcc1/Makefile ] || exit 0; \
33558 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33560 $(HOST_EXPORTS) \
33561 for flag in $(EXTRA_HOST_FLAGS) ; do \
33562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33563 done; \
22121df0 33564 echo "Doing html in libcc1"; \
1b6c0831
L
33565 (cd $(HOST_SUBDIR)/libcc1 && \
33566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33568 "RANLIB=$${RANLIB}" \
33569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33570 html) \
33571 || exit 1
e8a5fa9c 33572
1b6c0831 33573@endif libcc1
e8a5fa9c 33574
1b6c0831
L
33575.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
33576maybe-TAGS-libcc1:
33577@if libcc1
33578maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 33579
1b6c0831
L
33580TAGS-libcc1: \
33581 configure-libcc1
33582 @: $(MAKE); $(unstage)
33583 @[ -f ./libcc1/Makefile ] || exit 0; \
33584 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33586 $(HOST_EXPORTS) \
33587 for flag in $(EXTRA_HOST_FLAGS) ; do \
33588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33589 done; \
22121df0 33590 echo "Doing TAGS in libcc1"; \
1b6c0831
L
33591 (cd $(HOST_SUBDIR)/libcc1 && \
33592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33594 "RANLIB=$${RANLIB}" \
33595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33596 TAGS) \
33597 || exit 1
33598
33599@endif libcc1
33600
33601.PHONY: maybe-install-info-libcc1 install-info-libcc1
33602maybe-install-info-libcc1:
33603@if libcc1
33604maybe-install-info-libcc1: install-info-libcc1
33605
33606install-info-libcc1: \
33607 configure-libcc1 \
33608 info-libcc1
33609 @: $(MAKE); $(unstage)
33610 @[ -f ./libcc1/Makefile ] || exit 0; \
33611 r=`${PWD_COMMAND}`; export r; \
33612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33613 $(HOST_EXPORTS) \
33614 for flag in $(EXTRA_HOST_FLAGS) ; do \
33615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33616 done; \
22121df0 33617 echo "Doing install-info in libcc1"; \
1b6c0831
L
33618 (cd $(HOST_SUBDIR)/libcc1 && \
33619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33621 "RANLIB=$${RANLIB}" \
33622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33623 install-info) \
33624 || exit 1
33625
33626@endif libcc1
33627
33628.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
33629maybe-install-pdf-libcc1:
33630@if libcc1
33631maybe-install-pdf-libcc1: install-pdf-libcc1
33632
33633install-pdf-libcc1: \
33634 configure-libcc1 \
33635 pdf-libcc1
33636 @: $(MAKE); $(unstage)
33637 @[ -f ./libcc1/Makefile ] || exit 0; \
33638 r=`${PWD_COMMAND}`; export r; \
33639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33640 $(HOST_EXPORTS) \
33641 for flag in $(EXTRA_HOST_FLAGS) ; do \
33642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33643 done; \
22121df0 33644 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
33645 (cd $(HOST_SUBDIR)/libcc1 && \
33646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33648 "RANLIB=$${RANLIB}" \
33649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33650 install-pdf) \
33651 || exit 1
33652
33653@endif libcc1
33654
33655.PHONY: maybe-install-html-libcc1 install-html-libcc1
33656maybe-install-html-libcc1:
33657@if libcc1
33658maybe-install-html-libcc1: install-html-libcc1
33659
33660install-html-libcc1: \
33661 configure-libcc1 \
33662 html-libcc1
33663 @: $(MAKE); $(unstage)
33664 @[ -f ./libcc1/Makefile ] || exit 0; \
33665 r=`${PWD_COMMAND}`; export r; \
33666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33667 $(HOST_EXPORTS) \
33668 for flag in $(EXTRA_HOST_FLAGS) ; do \
33669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33670 done; \
22121df0 33671 echo "Doing install-html in libcc1"; \
1b6c0831
L
33672 (cd $(HOST_SUBDIR)/libcc1 && \
33673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33675 "RANLIB=$${RANLIB}" \
33676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33677 install-html) \
33678 || exit 1
33679
33680@endif libcc1
33681
33682.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
33683maybe-installcheck-libcc1:
33684@if libcc1
33685maybe-installcheck-libcc1: installcheck-libcc1
33686
33687installcheck-libcc1: \
33688 configure-libcc1
33689 @: $(MAKE); $(unstage)
33690 @[ -f ./libcc1/Makefile ] || exit 0; \
33691 r=`${PWD_COMMAND}`; export r; \
33692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33693 $(HOST_EXPORTS) \
33694 for flag in $(EXTRA_HOST_FLAGS) ; do \
33695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33696 done; \
22121df0 33697 echo "Doing installcheck in libcc1"; \
1b6c0831
L
33698 (cd $(HOST_SUBDIR)/libcc1 && \
33699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33701 "RANLIB=$${RANLIB}" \
33702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33703 installcheck) \
33704 || exit 1
33705
33706@endif libcc1
33707
33708.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
33709maybe-mostlyclean-libcc1:
33710@if libcc1
33711maybe-mostlyclean-libcc1: mostlyclean-libcc1
33712
33713mostlyclean-libcc1:
33714 @: $(MAKE); $(unstage)
33715 @[ -f ./libcc1/Makefile ] || exit 0; \
33716 r=`${PWD_COMMAND}`; export r; \
33717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33718 $(HOST_EXPORTS) \
33719 for flag in $(EXTRA_HOST_FLAGS) ; do \
33720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33721 done; \
22121df0 33722 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
33723 (cd $(HOST_SUBDIR)/libcc1 && \
33724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33726 "RANLIB=$${RANLIB}" \
33727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33728 mostlyclean) \
33729 || exit 1
33730
33731@endif libcc1
33732
33733.PHONY: maybe-clean-libcc1 clean-libcc1
33734maybe-clean-libcc1:
33735@if libcc1
33736maybe-clean-libcc1: clean-libcc1
33737
33738clean-libcc1:
33739 @: $(MAKE); $(unstage)
33740 @[ -f ./libcc1/Makefile ] || exit 0; \
33741 r=`${PWD_COMMAND}`; export r; \
33742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33743 $(HOST_EXPORTS) \
33744 for flag in $(EXTRA_HOST_FLAGS) ; do \
33745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33746 done; \
22121df0 33747 echo "Doing clean in libcc1"; \
1b6c0831
L
33748 (cd $(HOST_SUBDIR)/libcc1 && \
33749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33751 "RANLIB=$${RANLIB}" \
33752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33753 clean) \
33754 || exit 1
33755
33756@endif libcc1
33757
33758.PHONY: maybe-distclean-libcc1 distclean-libcc1
33759maybe-distclean-libcc1:
33760@if libcc1
33761maybe-distclean-libcc1: distclean-libcc1
33762
33763distclean-libcc1:
33764 @: $(MAKE); $(unstage)
33765 @[ -f ./libcc1/Makefile ] || exit 0; \
33766 r=`${PWD_COMMAND}`; export r; \
33767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33768 $(HOST_EXPORTS) \
33769 for flag in $(EXTRA_HOST_FLAGS) ; do \
33770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33771 done; \
22121df0 33772 echo "Doing distclean in libcc1"; \
1b6c0831
L
33773 (cd $(HOST_SUBDIR)/libcc1 && \
33774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33776 "RANLIB=$${RANLIB}" \
33777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33778 distclean) \
33779 || exit 1
33780
33781@endif libcc1
33782
33783.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
33784maybe-maintainer-clean-libcc1:
33785@if libcc1
33786maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
33787
33788maintainer-clean-libcc1:
33789 @: $(MAKE); $(unstage)
33790 @[ -f ./libcc1/Makefile ] || exit 0; \
33791 r=`${PWD_COMMAND}`; export r; \
33792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33793 $(HOST_EXPORTS) \
33794 for flag in $(EXTRA_HOST_FLAGS) ; do \
33795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33796 done; \
22121df0 33797 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
33798 (cd $(HOST_SUBDIR)/libcc1 && \
33799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33801 "RANLIB=$${RANLIB}" \
33802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33803 maintainer-clean) \
33804 || exit 1
33805
33806@endif libcc1
33807
33808
33809
33810.PHONY: configure-gotools maybe-configure-gotools
33811maybe-configure-gotools:
33812@if gcc-bootstrap
33813configure-gotools: stage_current
33814@endif gcc-bootstrap
33815@if gotools
33816maybe-configure-gotools: configure-gotools
33817configure-gotools:
33818 @: $(MAKE); $(unstage)
33819 @r=`${PWD_COMMAND}`; export r; \
33820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33821 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 33822 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
33823 $(HOST_EXPORTS) \
33824 echo Configuring in $(HOST_SUBDIR)/gotools; \
33825 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
33826 case $(srcdir) in \
33827 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33828 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
33829 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33830 esac; \
33831 module_srcdir=gotools; \
33832 $(SHELL) \
33833 $$s/$$module_srcdir/configure \
33834 --srcdir=$${topdir}/$$module_srcdir \
33835 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33836 --target=${target_alias} \
33837 || exit 1
33838@endif gotools
33839
33840
33841
33842
33843
33844.PHONY: all-gotools maybe-all-gotools
33845maybe-all-gotools:
33846@if gcc-bootstrap
33847all-gotools: stage_current
33848@endif gcc-bootstrap
33849@if gotools
33850TARGET-gotools=all
33851maybe-all-gotools: all-gotools
33852all-gotools: configure-gotools
33853 @: $(MAKE); $(unstage)
33854 @r=`${PWD_COMMAND}`; export r; \
33855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33856 $(HOST_EXPORTS) \
33857 (cd $(HOST_SUBDIR)/gotools && \
33858 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
33859 $(TARGET-gotools))
33860@endif gotools
33861
33862
33863
33864
33865.PHONY: check-gotools maybe-check-gotools
33866maybe-check-gotools:
33867@if gotools
33868maybe-check-gotools: check-gotools
33869
33870check-gotools:
33871 @: $(MAKE); $(unstage)
33872 @r=`${PWD_COMMAND}`; export r; \
33873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 33874 $(HOST_EXPORTS) \
1b6c0831
L
33875 (cd $(HOST_SUBDIR)/gotools && \
33876 $(MAKE) $(FLAGS_TO_PASS) check)
33877
33878@endif gotools
33879
33880.PHONY: install-gotools maybe-install-gotools
33881maybe-install-gotools:
33882@if gotools
33883maybe-install-gotools: install-gotools
33884
33885install-gotools: installdirs
33886 @: $(MAKE); $(unstage)
33887 @r=`${PWD_COMMAND}`; export r; \
33888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33889 $(HOST_EXPORTS) \
33890 (cd $(HOST_SUBDIR)/gotools && \
33891 $(MAKE) $(FLAGS_TO_PASS) install)
33892
33893@endif gotools
33894
33895.PHONY: install-strip-gotools maybe-install-strip-gotools
33896maybe-install-strip-gotools:
33897@if gotools
33898maybe-install-strip-gotools: install-strip-gotools
33899
33900install-strip-gotools: installdirs
33901 @: $(MAKE); $(unstage)
33902 @r=`${PWD_COMMAND}`; export r; \
33903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33904 $(HOST_EXPORTS) \
33905 (cd $(HOST_SUBDIR)/gotools && \
33906 $(MAKE) $(FLAGS_TO_PASS) install-strip)
33907
33908@endif gotools
33909
33910# Other targets (info, dvi, pdf, etc.)
33911
33912.PHONY: maybe-info-gotools info-gotools
33913maybe-info-gotools:
33914@if gotools
33915maybe-info-gotools: info-gotools
33916
33917info-gotools: \
33918 configure-gotools
33919 @: $(MAKE); $(unstage)
33920 @[ -f ./gotools/Makefile ] || exit 0; \
33921 r=`${PWD_COMMAND}`; export r; \
33922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33923 $(HOST_EXPORTS) \
33924 for flag in $(EXTRA_HOST_FLAGS) ; do \
33925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33926 done; \
22121df0 33927 echo "Doing info in gotools"; \
1b6c0831
L
33928 (cd $(HOST_SUBDIR)/gotools && \
33929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33931 "RANLIB=$${RANLIB}" \
33932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33933 info) \
33934 || exit 1
33935
33936@endif gotools
33937
33938.PHONY: maybe-dvi-gotools dvi-gotools
33939maybe-dvi-gotools:
33940@if gotools
33941maybe-dvi-gotools: dvi-gotools
33942
33943dvi-gotools: \
33944 configure-gotools
33945 @: $(MAKE); $(unstage)
33946 @[ -f ./gotools/Makefile ] || exit 0; \
33947 r=`${PWD_COMMAND}`; export r; \
33948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33949 $(HOST_EXPORTS) \
33950 for flag in $(EXTRA_HOST_FLAGS) ; do \
33951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33952 done; \
22121df0 33953 echo "Doing dvi in gotools"; \
1b6c0831
L
33954 (cd $(HOST_SUBDIR)/gotools && \
33955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33957 "RANLIB=$${RANLIB}" \
33958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33959 dvi) \
33960 || exit 1
33961
33962@endif gotools
33963
33964.PHONY: maybe-pdf-gotools pdf-gotools
33965maybe-pdf-gotools:
33966@if gotools
33967maybe-pdf-gotools: pdf-gotools
33968
33969pdf-gotools: \
33970 configure-gotools
33971 @: $(MAKE); $(unstage)
33972 @[ -f ./gotools/Makefile ] || exit 0; \
33973 r=`${PWD_COMMAND}`; export r; \
33974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33975 $(HOST_EXPORTS) \
33976 for flag in $(EXTRA_HOST_FLAGS) ; do \
33977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33978 done; \
22121df0 33979 echo "Doing pdf in gotools"; \
1b6c0831
L
33980 (cd $(HOST_SUBDIR)/gotools && \
33981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33983 "RANLIB=$${RANLIB}" \
33984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33985 pdf) \
33986 || exit 1
33987
33988@endif gotools
33989
33990.PHONY: maybe-html-gotools html-gotools
33991maybe-html-gotools:
33992@if gotools
33993maybe-html-gotools: html-gotools
33994
33995html-gotools: \
33996 configure-gotools
33997 @: $(MAKE); $(unstage)
33998 @[ -f ./gotools/Makefile ] || exit 0; \
33999 r=`${PWD_COMMAND}`; export r; \
34000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34001 $(HOST_EXPORTS) \
34002 for flag in $(EXTRA_HOST_FLAGS) ; do \
34003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34004 done; \
22121df0 34005 echo "Doing html in gotools"; \
1b6c0831
L
34006 (cd $(HOST_SUBDIR)/gotools && \
34007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34009 "RANLIB=$${RANLIB}" \
34010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34011 html) \
34012 || exit 1
34013
34014@endif gotools
34015
34016.PHONY: maybe-TAGS-gotools TAGS-gotools
34017maybe-TAGS-gotools:
34018@if gotools
34019maybe-TAGS-gotools: TAGS-gotools
34020
34021TAGS-gotools: \
34022 configure-gotools
34023 @: $(MAKE); $(unstage)
34024 @[ -f ./gotools/Makefile ] || exit 0; \
34025 r=`${PWD_COMMAND}`; export r; \
34026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34027 $(HOST_EXPORTS) \
34028 for flag in $(EXTRA_HOST_FLAGS) ; do \
34029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34030 done; \
22121df0 34031 echo "Doing TAGS in gotools"; \
1b6c0831
L
34032 (cd $(HOST_SUBDIR)/gotools && \
34033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34035 "RANLIB=$${RANLIB}" \
34036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34037 TAGS) \
34038 || exit 1
34039
34040@endif gotools
34041
34042.PHONY: maybe-install-info-gotools install-info-gotools
34043maybe-install-info-gotools:
34044@if gotools
34045maybe-install-info-gotools: install-info-gotools
34046
34047install-info-gotools: \
34048 configure-gotools \
34049 info-gotools
34050 @: $(MAKE); $(unstage)
34051 @[ -f ./gotools/Makefile ] || exit 0; \
34052 r=`${PWD_COMMAND}`; export r; \
34053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34054 $(HOST_EXPORTS) \
34055 for flag in $(EXTRA_HOST_FLAGS) ; do \
34056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34057 done; \
22121df0 34058 echo "Doing install-info in gotools"; \
1b6c0831
L
34059 (cd $(HOST_SUBDIR)/gotools && \
34060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34062 "RANLIB=$${RANLIB}" \
34063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34064 install-info) \
34065 || exit 1
34066
34067@endif gotools
34068
34069.PHONY: maybe-install-pdf-gotools install-pdf-gotools
34070maybe-install-pdf-gotools:
34071@if gotools
34072maybe-install-pdf-gotools: install-pdf-gotools
34073
34074install-pdf-gotools: \
34075 configure-gotools \
34076 pdf-gotools
34077 @: $(MAKE); $(unstage)
34078 @[ -f ./gotools/Makefile ] || exit 0; \
34079 r=`${PWD_COMMAND}`; export r; \
34080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34081 $(HOST_EXPORTS) \
34082 for flag in $(EXTRA_HOST_FLAGS) ; do \
34083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34084 done; \
22121df0 34085 echo "Doing install-pdf in gotools"; \
1b6c0831
L
34086 (cd $(HOST_SUBDIR)/gotools && \
34087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34089 "RANLIB=$${RANLIB}" \
34090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34091 install-pdf) \
34092 || exit 1
34093
34094@endif gotools
34095
34096.PHONY: maybe-install-html-gotools install-html-gotools
34097maybe-install-html-gotools:
34098@if gotools
34099maybe-install-html-gotools: install-html-gotools
34100
34101install-html-gotools: \
34102 configure-gotools \
34103 html-gotools
34104 @: $(MAKE); $(unstage)
34105 @[ -f ./gotools/Makefile ] || exit 0; \
34106 r=`${PWD_COMMAND}`; export r; \
34107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34108 $(HOST_EXPORTS) \
34109 for flag in $(EXTRA_HOST_FLAGS) ; do \
34110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34111 done; \
22121df0 34112 echo "Doing install-html in gotools"; \
1b6c0831
L
34113 (cd $(HOST_SUBDIR)/gotools && \
34114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34116 "RANLIB=$${RANLIB}" \
34117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34118 install-html) \
34119 || exit 1
34120
34121@endif gotools
34122
34123.PHONY: maybe-installcheck-gotools installcheck-gotools
34124maybe-installcheck-gotools:
34125@if gotools
34126maybe-installcheck-gotools: installcheck-gotools
34127
34128installcheck-gotools: \
34129 configure-gotools
34130 @: $(MAKE); $(unstage)
34131 @[ -f ./gotools/Makefile ] || exit 0; \
34132 r=`${PWD_COMMAND}`; export r; \
34133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34134 $(HOST_EXPORTS) \
34135 for flag in $(EXTRA_HOST_FLAGS) ; do \
34136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34137 done; \
22121df0 34138 echo "Doing installcheck in gotools"; \
1b6c0831
L
34139 (cd $(HOST_SUBDIR)/gotools && \
34140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34142 "RANLIB=$${RANLIB}" \
34143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34144 installcheck) \
34145 || exit 1
34146
34147@endif gotools
34148
34149.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
34150maybe-mostlyclean-gotools:
34151@if gotools
34152maybe-mostlyclean-gotools: mostlyclean-gotools
34153
34154mostlyclean-gotools:
34155 @: $(MAKE); $(unstage)
34156 @[ -f ./gotools/Makefile ] || exit 0; \
34157 r=`${PWD_COMMAND}`; export r; \
34158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34159 $(HOST_EXPORTS) \
34160 for flag in $(EXTRA_HOST_FLAGS) ; do \
34161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34162 done; \
22121df0 34163 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
34164 (cd $(HOST_SUBDIR)/gotools && \
34165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34167 "RANLIB=$${RANLIB}" \
34168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34169 mostlyclean) \
34170 || exit 1
34171
34172@endif gotools
34173
34174.PHONY: maybe-clean-gotools clean-gotools
34175maybe-clean-gotools:
34176@if gotools
34177maybe-clean-gotools: clean-gotools
34178
34179clean-gotools:
34180 @: $(MAKE); $(unstage)
34181 @[ -f ./gotools/Makefile ] || exit 0; \
34182 r=`${PWD_COMMAND}`; export r; \
34183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34184 $(HOST_EXPORTS) \
34185 for flag in $(EXTRA_HOST_FLAGS) ; do \
34186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34187 done; \
22121df0 34188 echo "Doing clean in gotools"; \
1b6c0831
L
34189 (cd $(HOST_SUBDIR)/gotools && \
34190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34192 "RANLIB=$${RANLIB}" \
34193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34194 clean) \
34195 || exit 1
34196
34197@endif gotools
34198
34199.PHONY: maybe-distclean-gotools distclean-gotools
34200maybe-distclean-gotools:
34201@if gotools
34202maybe-distclean-gotools: distclean-gotools
34203
34204distclean-gotools:
34205 @: $(MAKE); $(unstage)
34206 @[ -f ./gotools/Makefile ] || exit 0; \
34207 r=`${PWD_COMMAND}`; export r; \
34208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34209 $(HOST_EXPORTS) \
34210 for flag in $(EXTRA_HOST_FLAGS) ; do \
34211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34212 done; \
22121df0 34213 echo "Doing distclean in gotools"; \
1b6c0831
L
34214 (cd $(HOST_SUBDIR)/gotools && \
34215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34217 "RANLIB=$${RANLIB}" \
34218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34219 distclean) \
34220 || exit 1
34221
34222@endif gotools
34223
34224.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
34225maybe-maintainer-clean-gotools:
34226@if gotools
34227maybe-maintainer-clean-gotools: maintainer-clean-gotools
34228
34229maintainer-clean-gotools:
34230 @: $(MAKE); $(unstage)
34231 @[ -f ./gotools/Makefile ] || exit 0; \
34232 r=`${PWD_COMMAND}`; export r; \
34233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34234 $(HOST_EXPORTS) \
34235 for flag in $(EXTRA_HOST_FLAGS) ; do \
34236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34237 done; \
22121df0 34238 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
34239 (cd $(HOST_SUBDIR)/gotools && \
34240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34242 "RANLIB=$${RANLIB}" \
34243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34244 maintainer-clean) \
34245 || exit 1
34246
34247@endif gotools
34248
34249
34250
0e65dfba
NA
34251.PHONY: configure-libctf maybe-configure-libctf
34252maybe-configure-libctf:
34253@if gcc-bootstrap
34254configure-libctf: stage_current
34255@endif gcc-bootstrap
34256@if libctf
34257maybe-configure-libctf: configure-libctf
34258configure-libctf:
34259 @r=`${PWD_COMMAND}`; export r; \
34260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34261 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34262 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34263 $(HOST_EXPORTS) \
34264 echo Configuring in $(HOST_SUBDIR)/libctf; \
34265 cd "$(HOST_SUBDIR)/libctf" || exit 1; \
34266 case $(srcdir) in \
34267 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34268 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34269 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34270 esac; \
34271 module_srcdir=libctf; \
34272 $(SHELL) \
34273 $$s/$$module_srcdir/configure \
34274 --srcdir=$${topdir}/$$module_srcdir \
34275 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34276 --target=${target_alias} \
34277 || exit 1
34278@endif libctf
34279
34280
34281
34282.PHONY: configure-stage1-libctf maybe-configure-stage1-libctf
34283maybe-configure-stage1-libctf:
34284@if libctf-bootstrap
34285maybe-configure-stage1-libctf: configure-stage1-libctf
34286configure-stage1-libctf:
34287 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34288 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34289 @r=`${PWD_COMMAND}`; export r; \
34290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34291 TFLAGS="$(STAGE1_TFLAGS)"; \
34292 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34293 $(HOST_EXPORTS) \
34294 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
34295 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
34296 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
34297 echo Configuring stage 1 in $(HOST_SUBDIR)/libctf; \
34298 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34299 cd $(HOST_SUBDIR)/libctf || exit 1; \
34300 case $(srcdir) in \
34301 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34302 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34303 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34304 esac; \
34305 module_srcdir=libctf; \
34306 $(SHELL) $$s/$$module_srcdir/configure \
34307 --srcdir=$${topdir}/$$module_srcdir \
34308 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34309 --target=${target_alias} \
34310 \
34311 $(STAGE1_CONFIGURE_FLAGS)
34312@endif libctf-bootstrap
34313
34314.PHONY: configure-stage2-libctf maybe-configure-stage2-libctf
34315maybe-configure-stage2-libctf:
34316@if libctf-bootstrap
34317maybe-configure-stage2-libctf: configure-stage2-libctf
34318configure-stage2-libctf:
34319 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34320 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34321 @r=`${PWD_COMMAND}`; export r; \
34322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34323 TFLAGS="$(STAGE2_TFLAGS)"; \
34324 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34325 $(HOST_EXPORTS) \
34326 $(POSTSTAGE1_HOST_EXPORTS) \
34327 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
34328 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
34329 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
34330 echo Configuring stage 2 in $(HOST_SUBDIR)/libctf; \
34331 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34332 cd $(HOST_SUBDIR)/libctf || exit 1; \
34333 case $(srcdir) in \
34334 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34335 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34336 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34337 esac; \
34338 module_srcdir=libctf; \
34339 $(SHELL) $$s/$$module_srcdir/configure \
34340 --srcdir=$${topdir}/$$module_srcdir \
34341 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34342 --target=${target_alias} \
34343 --with-build-libsubdir=$(HOST_SUBDIR) \
34344 $(STAGE2_CONFIGURE_FLAGS)
34345@endif libctf-bootstrap
34346
34347.PHONY: configure-stage3-libctf maybe-configure-stage3-libctf
34348maybe-configure-stage3-libctf:
34349@if libctf-bootstrap
34350maybe-configure-stage3-libctf: configure-stage3-libctf
34351configure-stage3-libctf:
34352 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34353 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34354 @r=`${PWD_COMMAND}`; export r; \
34355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34356 TFLAGS="$(STAGE3_TFLAGS)"; \
34357 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34358 $(HOST_EXPORTS) \
34359 $(POSTSTAGE1_HOST_EXPORTS) \
34360 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
34361 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
34362 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
34363 echo Configuring stage 3 in $(HOST_SUBDIR)/libctf; \
34364 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34365 cd $(HOST_SUBDIR)/libctf || exit 1; \
34366 case $(srcdir) in \
34367 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34368 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34369 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34370 esac; \
34371 module_srcdir=libctf; \
34372 $(SHELL) $$s/$$module_srcdir/configure \
34373 --srcdir=$${topdir}/$$module_srcdir \
34374 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34375 --target=${target_alias} \
34376 --with-build-libsubdir=$(HOST_SUBDIR) \
34377 $(STAGE3_CONFIGURE_FLAGS)
34378@endif libctf-bootstrap
34379
34380.PHONY: configure-stage4-libctf maybe-configure-stage4-libctf
34381maybe-configure-stage4-libctf:
34382@if libctf-bootstrap
34383maybe-configure-stage4-libctf: configure-stage4-libctf
34384configure-stage4-libctf:
34385 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34386 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34387 @r=`${PWD_COMMAND}`; export r; \
34388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34389 TFLAGS="$(STAGE4_TFLAGS)"; \
34390 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34391 $(HOST_EXPORTS) \
34392 $(POSTSTAGE1_HOST_EXPORTS) \
34393 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
34394 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
34395 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
34396 echo Configuring stage 4 in $(HOST_SUBDIR)/libctf; \
34397 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34398 cd $(HOST_SUBDIR)/libctf || exit 1; \
34399 case $(srcdir) in \
34400 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34401 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34402 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34403 esac; \
34404 module_srcdir=libctf; \
34405 $(SHELL) $$s/$$module_srcdir/configure \
34406 --srcdir=$${topdir}/$$module_srcdir \
34407 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34408 --target=${target_alias} \
34409 --with-build-libsubdir=$(HOST_SUBDIR) \
34410 $(STAGE4_CONFIGURE_FLAGS)
34411@endif libctf-bootstrap
34412
34413.PHONY: configure-stageprofile-libctf maybe-configure-stageprofile-libctf
34414maybe-configure-stageprofile-libctf:
34415@if libctf-bootstrap
34416maybe-configure-stageprofile-libctf: configure-stageprofile-libctf
34417configure-stageprofile-libctf:
34418 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34419 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34420 @r=`${PWD_COMMAND}`; export r; \
34421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34422 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34423 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34424 $(HOST_EXPORTS) \
34425 $(POSTSTAGE1_HOST_EXPORTS) \
34426 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
34427 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
34428 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
34429 echo Configuring stage profile in $(HOST_SUBDIR)/libctf; \
34430 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34431 cd $(HOST_SUBDIR)/libctf || exit 1; \
34432 case $(srcdir) in \
34433 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34434 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34435 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34436 esac; \
34437 module_srcdir=libctf; \
34438 $(SHELL) $$s/$$module_srcdir/configure \
34439 --srcdir=$${topdir}/$$module_srcdir \
34440 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34441 --target=${target_alias} \
34442 --with-build-libsubdir=$(HOST_SUBDIR) \
34443 $(STAGEprofile_CONFIGURE_FLAGS)
34444@endif libctf-bootstrap
34445
34446.PHONY: configure-stagefeedback-libctf maybe-configure-stagefeedback-libctf
34447maybe-configure-stagefeedback-libctf:
34448@if libctf-bootstrap
34449maybe-configure-stagefeedback-libctf: configure-stagefeedback-libctf
34450configure-stagefeedback-libctf:
34451 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34452 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34453 @r=`${PWD_COMMAND}`; export r; \
34454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34455 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34456 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34457 $(HOST_EXPORTS) \
34458 $(POSTSTAGE1_HOST_EXPORTS) \
34459 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
34460 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
34461 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
34462 echo Configuring stage feedback in $(HOST_SUBDIR)/libctf; \
34463 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34464 cd $(HOST_SUBDIR)/libctf || exit 1; \
34465 case $(srcdir) in \
34466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34467 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34469 esac; \
34470 module_srcdir=libctf; \
34471 $(SHELL) $$s/$$module_srcdir/configure \
34472 --srcdir=$${topdir}/$$module_srcdir \
34473 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34474 --target=${target_alias} \
34475 --with-build-libsubdir=$(HOST_SUBDIR) \
34476 $(STAGEfeedback_CONFIGURE_FLAGS)
34477@endif libctf-bootstrap
34478
34479
34480
34481
34482
34483.PHONY: all-libctf maybe-all-libctf
34484maybe-all-libctf:
34485@if gcc-bootstrap
34486all-libctf: stage_current
34487@endif gcc-bootstrap
34488@if libctf
34489TARGET-libctf=all
34490maybe-all-libctf: all-libctf
34491all-libctf: configure-libctf
34492 @r=`${PWD_COMMAND}`; export r; \
34493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34494 $(HOST_EXPORTS) \
34495 (cd $(HOST_SUBDIR)/libctf && \
34496 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
34497 $(TARGET-libctf))
34498@endif libctf
34499
34500
34501
34502.PHONY: all-stage1-libctf maybe-all-stage1-libctf
34503.PHONY: clean-stage1-libctf maybe-clean-stage1-libctf
34504maybe-all-stage1-libctf:
34505maybe-clean-stage1-libctf:
34506@if libctf-bootstrap
34507maybe-all-stage1-libctf: all-stage1-libctf
34508all-stage1: all-stage1-libctf
34509TARGET-stage1-libctf = $(TARGET-libctf)
34510all-stage1-libctf: configure-stage1-libctf
34511 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34512 @r=`${PWD_COMMAND}`; export r; \
34513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34514 TFLAGS="$(STAGE1_TFLAGS)"; \
34515 $(HOST_EXPORTS) \
34516 cd $(HOST_SUBDIR)/libctf && \
34517 \
34518 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34519 CFLAGS="$(STAGE1_CFLAGS)" \
34520 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
34521 LIBCFLAGS="$(LIBCFLAGS)" \
34522 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34523 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34524 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34525 $(EXTRA_HOST_FLAGS) \
34526 $(STAGE1_FLAGS_TO_PASS) \
34527 TFLAGS="$(STAGE1_TFLAGS)" \
34528 $(TARGET-stage1-libctf)
34529
34530maybe-clean-stage1-libctf: clean-stage1-libctf
34531clean-stage1: clean-stage1-libctf
34532clean-stage1-libctf:
34533 @if [ $(current_stage) = stage1 ]; then \
34534 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34535 else \
34536 [ -f $(HOST_SUBDIR)/stage1-libctf/Makefile ] || exit 0; \
34537 $(MAKE) stage1-start; \
34538 fi; \
34539 cd $(HOST_SUBDIR)/libctf && \
34540 $(MAKE) $(EXTRA_HOST_FLAGS) \
34541 $(STAGE1_FLAGS_TO_PASS) clean
34542@endif libctf-bootstrap
34543
34544
34545.PHONY: all-stage2-libctf maybe-all-stage2-libctf
34546.PHONY: clean-stage2-libctf maybe-clean-stage2-libctf
34547maybe-all-stage2-libctf:
34548maybe-clean-stage2-libctf:
34549@if libctf-bootstrap
34550maybe-all-stage2-libctf: all-stage2-libctf
34551all-stage2: all-stage2-libctf
34552TARGET-stage2-libctf = $(TARGET-libctf)
34553all-stage2-libctf: configure-stage2-libctf
34554 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34555 @r=`${PWD_COMMAND}`; export r; \
34556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34557 TFLAGS="$(STAGE2_TFLAGS)"; \
34558 $(HOST_EXPORTS) \
34559 $(POSTSTAGE1_HOST_EXPORTS) \
34560 cd $(HOST_SUBDIR)/libctf && \
34561 \
34562 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34563 CFLAGS="$(STAGE2_CFLAGS)" \
34564 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
34565 LIBCFLAGS="$(STAGE2_CFLAGS)" \
34566 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34567 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34568 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34569 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34570 TFLAGS="$(STAGE2_TFLAGS)" \
34571 $(TARGET-stage2-libctf)
34572
34573maybe-clean-stage2-libctf: clean-stage2-libctf
34574clean-stage2: clean-stage2-libctf
34575clean-stage2-libctf:
34576 @if [ $(current_stage) = stage2 ]; then \
34577 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34578 else \
34579 [ -f $(HOST_SUBDIR)/stage2-libctf/Makefile ] || exit 0; \
34580 $(MAKE) stage2-start; \
34581 fi; \
34582 cd $(HOST_SUBDIR)/libctf && \
34583 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34584@endif libctf-bootstrap
34585
34586
34587.PHONY: all-stage3-libctf maybe-all-stage3-libctf
34588.PHONY: clean-stage3-libctf maybe-clean-stage3-libctf
34589maybe-all-stage3-libctf:
34590maybe-clean-stage3-libctf:
34591@if libctf-bootstrap
34592maybe-all-stage3-libctf: all-stage3-libctf
34593all-stage3: all-stage3-libctf
34594TARGET-stage3-libctf = $(TARGET-libctf)
34595all-stage3-libctf: configure-stage3-libctf
34596 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34597 @r=`${PWD_COMMAND}`; export r; \
34598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34599 TFLAGS="$(STAGE3_TFLAGS)"; \
34600 $(HOST_EXPORTS) \
34601 $(POSTSTAGE1_HOST_EXPORTS) \
34602 cd $(HOST_SUBDIR)/libctf && \
34603 \
34604 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34605 CFLAGS="$(STAGE3_CFLAGS)" \
34606 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
34607 LIBCFLAGS="$(STAGE3_CFLAGS)" \
34608 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34609 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34610 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34611 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34612 TFLAGS="$(STAGE3_TFLAGS)" \
34613 $(TARGET-stage3-libctf)
34614
34615maybe-clean-stage3-libctf: clean-stage3-libctf
34616clean-stage3: clean-stage3-libctf
34617clean-stage3-libctf:
34618 @if [ $(current_stage) = stage3 ]; then \
34619 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34620 else \
34621 [ -f $(HOST_SUBDIR)/stage3-libctf/Makefile ] || exit 0; \
34622 $(MAKE) stage3-start; \
34623 fi; \
34624 cd $(HOST_SUBDIR)/libctf && \
34625 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34626@endif libctf-bootstrap
34627
34628
34629.PHONY: all-stage4-libctf maybe-all-stage4-libctf
34630.PHONY: clean-stage4-libctf maybe-clean-stage4-libctf
34631maybe-all-stage4-libctf:
34632maybe-clean-stage4-libctf:
34633@if libctf-bootstrap
34634maybe-all-stage4-libctf: all-stage4-libctf
34635all-stage4: all-stage4-libctf
34636TARGET-stage4-libctf = $(TARGET-libctf)
34637all-stage4-libctf: configure-stage4-libctf
34638 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34639 @r=`${PWD_COMMAND}`; export r; \
34640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34641 TFLAGS="$(STAGE4_TFLAGS)"; \
34642 $(HOST_EXPORTS) \
34643 $(POSTSTAGE1_HOST_EXPORTS) \
34644 cd $(HOST_SUBDIR)/libctf && \
34645 \
34646 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34647 CFLAGS="$(STAGE4_CFLAGS)" \
34648 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
34649 LIBCFLAGS="$(STAGE4_CFLAGS)" \
34650 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34651 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34652 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34653 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34654 TFLAGS="$(STAGE4_TFLAGS)" \
34655 $(TARGET-stage4-libctf)
34656
34657maybe-clean-stage4-libctf: clean-stage4-libctf
34658clean-stage4: clean-stage4-libctf
34659clean-stage4-libctf:
34660 @if [ $(current_stage) = stage4 ]; then \
34661 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34662 else \
34663 [ -f $(HOST_SUBDIR)/stage4-libctf/Makefile ] || exit 0; \
34664 $(MAKE) stage4-start; \
34665 fi; \
34666 cd $(HOST_SUBDIR)/libctf && \
34667 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34668@endif libctf-bootstrap
34669
34670
34671.PHONY: all-stageprofile-libctf maybe-all-stageprofile-libctf
34672.PHONY: clean-stageprofile-libctf maybe-clean-stageprofile-libctf
34673maybe-all-stageprofile-libctf:
34674maybe-clean-stageprofile-libctf:
34675@if libctf-bootstrap
34676maybe-all-stageprofile-libctf: all-stageprofile-libctf
34677all-stageprofile: all-stageprofile-libctf
34678TARGET-stageprofile-libctf = $(TARGET-libctf)
34679all-stageprofile-libctf: configure-stageprofile-libctf
34680 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34681 @r=`${PWD_COMMAND}`; export r; \
34682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34683 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34684 $(HOST_EXPORTS) \
34685 $(POSTSTAGE1_HOST_EXPORTS) \
34686 cd $(HOST_SUBDIR)/libctf && \
34687 \
34688 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34689 CFLAGS="$(STAGEprofile_CFLAGS)" \
34690 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
34691 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
34692 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34693 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34694 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34695 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34696 TFLAGS="$(STAGEprofile_TFLAGS)" \
34697 $(TARGET-stageprofile-libctf)
34698
34699maybe-clean-stageprofile-libctf: clean-stageprofile-libctf
34700clean-stageprofile: clean-stageprofile-libctf
34701clean-stageprofile-libctf:
34702 @if [ $(current_stage) = stageprofile ]; then \
34703 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34704 else \
34705 [ -f $(HOST_SUBDIR)/stageprofile-libctf/Makefile ] || exit 0; \
34706 $(MAKE) stageprofile-start; \
34707 fi; \
34708 cd $(HOST_SUBDIR)/libctf && \
34709 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34710@endif libctf-bootstrap
34711
34712
34713.PHONY: all-stagefeedback-libctf maybe-all-stagefeedback-libctf
34714.PHONY: clean-stagefeedback-libctf maybe-clean-stagefeedback-libctf
34715maybe-all-stagefeedback-libctf:
34716maybe-clean-stagefeedback-libctf:
34717@if libctf-bootstrap
34718maybe-all-stagefeedback-libctf: all-stagefeedback-libctf
34719all-stagefeedback: all-stagefeedback-libctf
34720TARGET-stagefeedback-libctf = $(TARGET-libctf)
34721all-stagefeedback-libctf: configure-stagefeedback-libctf
34722 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34723 @r=`${PWD_COMMAND}`; export r; \
34724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34725 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34726 $(HOST_EXPORTS) \
34727 $(POSTSTAGE1_HOST_EXPORTS) \
34728 cd $(HOST_SUBDIR)/libctf && \
34729 \
34730 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34731 CFLAGS="$(STAGEfeedback_CFLAGS)" \
34732 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
34733 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
34734 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34735 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34736 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34737 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34738 TFLAGS="$(STAGEfeedback_TFLAGS)" \
34739 $(TARGET-stagefeedback-libctf)
34740
34741maybe-clean-stagefeedback-libctf: clean-stagefeedback-libctf
34742clean-stagefeedback: clean-stagefeedback-libctf
34743clean-stagefeedback-libctf:
34744 @if [ $(current_stage) = stagefeedback ]; then \
34745 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34746 else \
34747 [ -f $(HOST_SUBDIR)/stagefeedback-libctf/Makefile ] || exit 0; \
34748 $(MAKE) stagefeedback-start; \
34749 fi; \
34750 cd $(HOST_SUBDIR)/libctf && \
34751 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34752@endif libctf-bootstrap
34753
34754
34755
34756
34757
34758.PHONY: check-libctf maybe-check-libctf
34759maybe-check-libctf:
34760@if libctf
34761maybe-check-libctf: check-libctf
34762
34763check-libctf:
c59e30ed
NA
34764 @: $(MAKE); $(unstage)
34765 @r=`${PWD_COMMAND}`; export r; \
34766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34767 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
34768 (cd $(HOST_SUBDIR)/libctf && \
34769 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
0e65dfba
NA
34770
34771@endif libctf
34772
34773.PHONY: install-libctf maybe-install-libctf
34774maybe-install-libctf:
34775@if libctf
34776maybe-install-libctf: install-libctf
34777
87279e3c
NA
34778install-libctf: installdirs
34779 @: $(MAKE); $(unstage)
34780 @r=`${PWD_COMMAND}`; export r; \
34781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34782 $(HOST_EXPORTS) \
34783 (cd $(HOST_SUBDIR)/libctf && \
34784 $(MAKE) $(FLAGS_TO_PASS) install)
0e65dfba
NA
34785
34786@endif libctf
34787
34788.PHONY: install-strip-libctf maybe-install-strip-libctf
34789maybe-install-strip-libctf:
34790@if libctf
34791maybe-install-strip-libctf: install-strip-libctf
34792
87279e3c
NA
34793install-strip-libctf: installdirs
34794 @: $(MAKE); $(unstage)
34795 @r=`${PWD_COMMAND}`; export r; \
34796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34797 $(HOST_EXPORTS) \
34798 (cd $(HOST_SUBDIR)/libctf && \
34799 $(MAKE) $(FLAGS_TO_PASS) install-strip)
0e65dfba
NA
34800
34801@endif libctf
34802
34803# Other targets (info, dvi, pdf, etc.)
34804
34805.PHONY: maybe-info-libctf info-libctf
34806maybe-info-libctf:
34807@if libctf
34808maybe-info-libctf: info-libctf
34809
34810info-libctf: \
34811 configure-libctf
34812 @[ -f ./libctf/Makefile ] || exit 0; \
34813 r=`${PWD_COMMAND}`; export r; \
34814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34815 $(HOST_EXPORTS) \
34816 for flag in $(EXTRA_HOST_FLAGS) ; do \
34817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34818 done; \
34819 echo "Doing info in libctf"; \
34820 (cd $(HOST_SUBDIR)/libctf && \
34821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34823 "RANLIB=$${RANLIB}" \
34824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34825 info) \
34826 || exit 1
34827
34828@endif libctf
34829
34830.PHONY: maybe-dvi-libctf dvi-libctf
34831maybe-dvi-libctf:
34832@if libctf
34833maybe-dvi-libctf: dvi-libctf
34834
34835dvi-libctf: \
34836 configure-libctf
34837 @[ -f ./libctf/Makefile ] || exit 0; \
34838 r=`${PWD_COMMAND}`; export r; \
34839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34840 $(HOST_EXPORTS) \
34841 for flag in $(EXTRA_HOST_FLAGS) ; do \
34842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34843 done; \
34844 echo "Doing dvi in libctf"; \
34845 (cd $(HOST_SUBDIR)/libctf && \
34846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34848 "RANLIB=$${RANLIB}" \
34849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34850 dvi) \
34851 || exit 1
34852
34853@endif libctf
34854
34855.PHONY: maybe-pdf-libctf pdf-libctf
34856maybe-pdf-libctf:
34857@if libctf
34858maybe-pdf-libctf: pdf-libctf
34859
34860pdf-libctf: \
34861 configure-libctf
34862 @[ -f ./libctf/Makefile ] || exit 0; \
34863 r=`${PWD_COMMAND}`; export r; \
34864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34865 $(HOST_EXPORTS) \
34866 for flag in $(EXTRA_HOST_FLAGS) ; do \
34867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34868 done; \
34869 echo "Doing pdf in libctf"; \
34870 (cd $(HOST_SUBDIR)/libctf && \
34871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34873 "RANLIB=$${RANLIB}" \
34874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34875 pdf) \
34876 || exit 1
34877
34878@endif libctf
34879
34880.PHONY: maybe-html-libctf html-libctf
34881maybe-html-libctf:
34882@if libctf
34883maybe-html-libctf: html-libctf
34884
34885html-libctf: \
34886 configure-libctf
34887 @[ -f ./libctf/Makefile ] || exit 0; \
34888 r=`${PWD_COMMAND}`; export r; \
34889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34890 $(HOST_EXPORTS) \
34891 for flag in $(EXTRA_HOST_FLAGS) ; do \
34892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34893 done; \
34894 echo "Doing html in libctf"; \
34895 (cd $(HOST_SUBDIR)/libctf && \
34896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34898 "RANLIB=$${RANLIB}" \
34899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34900 html) \
34901 || exit 1
34902
34903@endif libctf
34904
34905.PHONY: maybe-TAGS-libctf TAGS-libctf
34906maybe-TAGS-libctf:
34907@if libctf
34908maybe-TAGS-libctf: TAGS-libctf
34909
34910TAGS-libctf: \
34911 configure-libctf
34912 @[ -f ./libctf/Makefile ] || exit 0; \
34913 r=`${PWD_COMMAND}`; export r; \
34914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34915 $(HOST_EXPORTS) \
34916 for flag in $(EXTRA_HOST_FLAGS) ; do \
34917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34918 done; \
34919 echo "Doing TAGS in libctf"; \
34920 (cd $(HOST_SUBDIR)/libctf && \
34921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34923 "RANLIB=$${RANLIB}" \
34924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34925 TAGS) \
34926 || exit 1
34927
34928@endif libctf
34929
34930.PHONY: maybe-install-info-libctf install-info-libctf
34931maybe-install-info-libctf:
34932@if libctf
34933maybe-install-info-libctf: install-info-libctf
34934
34935install-info-libctf: \
34936 configure-libctf \
34937 info-libctf
34938 @[ -f ./libctf/Makefile ] || exit 0; \
34939 r=`${PWD_COMMAND}`; export r; \
34940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34941 $(HOST_EXPORTS) \
34942 for flag in $(EXTRA_HOST_FLAGS) ; do \
34943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34944 done; \
34945 echo "Doing install-info in libctf"; \
34946 (cd $(HOST_SUBDIR)/libctf && \
34947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34949 "RANLIB=$${RANLIB}" \
34950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34951 install-info) \
34952 || exit 1
34953
34954@endif libctf
34955
34956.PHONY: maybe-install-pdf-libctf install-pdf-libctf
34957maybe-install-pdf-libctf:
34958@if libctf
34959maybe-install-pdf-libctf: install-pdf-libctf
34960
34961install-pdf-libctf: \
34962 configure-libctf \
34963 pdf-libctf
34964 @[ -f ./libctf/Makefile ] || exit 0; \
34965 r=`${PWD_COMMAND}`; export r; \
34966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34967 $(HOST_EXPORTS) \
34968 for flag in $(EXTRA_HOST_FLAGS) ; do \
34969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34970 done; \
34971 echo "Doing install-pdf in libctf"; \
34972 (cd $(HOST_SUBDIR)/libctf && \
34973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34975 "RANLIB=$${RANLIB}" \
34976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34977 install-pdf) \
34978 || exit 1
34979
34980@endif libctf
34981
34982.PHONY: maybe-install-html-libctf install-html-libctf
34983maybe-install-html-libctf:
34984@if libctf
34985maybe-install-html-libctf: install-html-libctf
34986
34987install-html-libctf: \
34988 configure-libctf \
34989 html-libctf
34990 @[ -f ./libctf/Makefile ] || exit 0; \
34991 r=`${PWD_COMMAND}`; export r; \
34992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34993 $(HOST_EXPORTS) \
34994 for flag in $(EXTRA_HOST_FLAGS) ; do \
34995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34996 done; \
34997 echo "Doing install-html in libctf"; \
34998 (cd $(HOST_SUBDIR)/libctf && \
34999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35001 "RANLIB=$${RANLIB}" \
35002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35003 install-html) \
35004 || exit 1
35005
35006@endif libctf
35007
35008.PHONY: maybe-installcheck-libctf installcheck-libctf
35009maybe-installcheck-libctf:
35010@if libctf
35011maybe-installcheck-libctf: installcheck-libctf
35012
35013installcheck-libctf: \
35014 configure-libctf
35015 @[ -f ./libctf/Makefile ] || exit 0; \
35016 r=`${PWD_COMMAND}`; export r; \
35017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35018 $(HOST_EXPORTS) \
35019 for flag in $(EXTRA_HOST_FLAGS) ; do \
35020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35021 done; \
35022 echo "Doing installcheck in libctf"; \
35023 (cd $(HOST_SUBDIR)/libctf && \
35024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35026 "RANLIB=$${RANLIB}" \
35027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35028 installcheck) \
35029 || exit 1
35030
35031@endif libctf
35032
35033.PHONY: maybe-mostlyclean-libctf mostlyclean-libctf
35034maybe-mostlyclean-libctf:
35035@if libctf
35036maybe-mostlyclean-libctf: mostlyclean-libctf
35037
35038mostlyclean-libctf:
35039 @[ -f ./libctf/Makefile ] || exit 0; \
35040 r=`${PWD_COMMAND}`; export r; \
35041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35042 $(HOST_EXPORTS) \
35043 for flag in $(EXTRA_HOST_FLAGS) ; do \
35044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35045 done; \
35046 echo "Doing mostlyclean in libctf"; \
35047 (cd $(HOST_SUBDIR)/libctf && \
35048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35050 "RANLIB=$${RANLIB}" \
35051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35052 mostlyclean) \
35053 || exit 1
35054
35055@endif libctf
35056
35057.PHONY: maybe-clean-libctf clean-libctf
35058maybe-clean-libctf:
35059@if libctf
35060maybe-clean-libctf: clean-libctf
35061
35062clean-libctf:
35063 @[ -f ./libctf/Makefile ] || exit 0; \
35064 r=`${PWD_COMMAND}`; export r; \
35065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35066 $(HOST_EXPORTS) \
35067 for flag in $(EXTRA_HOST_FLAGS) ; do \
35068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35069 done; \
35070 echo "Doing clean in libctf"; \
35071 (cd $(HOST_SUBDIR)/libctf && \
35072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35074 "RANLIB=$${RANLIB}" \
35075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35076 clean) \
35077 || exit 1
35078
35079@endif libctf
35080
35081.PHONY: maybe-distclean-libctf distclean-libctf
35082maybe-distclean-libctf:
35083@if libctf
35084maybe-distclean-libctf: distclean-libctf
35085
35086distclean-libctf:
35087 @[ -f ./libctf/Makefile ] || exit 0; \
35088 r=`${PWD_COMMAND}`; export r; \
35089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35090 $(HOST_EXPORTS) \
35091 for flag in $(EXTRA_HOST_FLAGS) ; do \
35092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35093 done; \
35094 echo "Doing distclean in libctf"; \
35095 (cd $(HOST_SUBDIR)/libctf && \
35096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35098 "RANLIB=$${RANLIB}" \
35099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35100 distclean) \
35101 || exit 1
35102
35103@endif libctf
35104
35105.PHONY: maybe-maintainer-clean-libctf maintainer-clean-libctf
35106maybe-maintainer-clean-libctf:
35107@if libctf
35108maybe-maintainer-clean-libctf: maintainer-clean-libctf
35109
35110maintainer-clean-libctf:
35111 @[ -f ./libctf/Makefile ] || exit 0; \
35112 r=`${PWD_COMMAND}`; export r; \
35113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35114 $(HOST_EXPORTS) \
35115 for flag in $(EXTRA_HOST_FLAGS) ; do \
35116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35117 done; \
35118 echo "Doing maintainer-clean in libctf"; \
35119 (cd $(HOST_SUBDIR)/libctf && \
35120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35122 "RANLIB=$${RANLIB}" \
35123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35124 maintainer-clean) \
35125 || exit 1
35126
35127@endif libctf
35128
35129
35130
1b6c0831
L
35131# ---------------------------------------
35132# Modules which run on the target machine
35133# ---------------------------------------
35134
35135
35136
35137
35138.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
35139maybe-configure-target-libstdc++-v3:
35140@if gcc-bootstrap
35141configure-target-libstdc++-v3: stage_current
35142@endif gcc-bootstrap
35143@if target-libstdc++-v3
35144maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
35145configure-target-libstdc++-v3:
35146 @r=`${PWD_COMMAND}`; export r; \
35147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35148 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
35149 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
35150 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35151 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35152 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35153 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35154 else \
35155 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35156 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35157 fi; \
35158 else \
35159 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35160 fi; \
35161 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 35162 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35163 $(RAW_CXX_TARGET_EXPORTS) \
35164 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
35165 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
35166 case $(srcdir) in \
35167 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35168 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35169 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35170 esac; \
35171 module_srcdir=libstdc++-v3; \
35172 rm -f no-such-file || : ; \
35173 CONFIG_SITE=no-such-file $(SHELL) \
35174 $$s/$$module_srcdir/configure \
35175 --srcdir=$${topdir}/$$module_srcdir \
35176 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35177 --target=${target_alias} \
35178 || exit 1
35179@endif target-libstdc++-v3
35180
35181
35182
35183.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
35184maybe-configure-stage1-target-libstdc++-v3:
35185@if target-libstdc++-v3-bootstrap
35186maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
35187configure-stage1-target-libstdc++-v3:
35188 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35189 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35190 @r=`${PWD_COMMAND}`; export r; \
35191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35192 TFLAGS="$(STAGE1_TFLAGS)"; \
35193 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35194 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35195 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35196 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35197 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35198 else \
35199 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35200 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35201 fi; \
35202 else \
35203 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35204 fi; \
35205 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35206 $(RAW_CXX_TARGET_EXPORTS) \
35207 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35208 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35209 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35210 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
35211 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35212 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35213 case $(srcdir) in \
35214 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35215 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35216 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35217 esac; \
35218 module_srcdir=libstdc++-v3; \
35219 $(SHELL) $$s/$$module_srcdir/configure \
35220 --srcdir=$${topdir}/$$module_srcdir \
35221 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35222 --target=${target_alias} \
35223 \
35224 $(STAGE1_CONFIGURE_FLAGS)
35225@endif target-libstdc++-v3-bootstrap
35226
35227.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
35228maybe-configure-stage2-target-libstdc++-v3:
35229@if target-libstdc++-v3-bootstrap
35230maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
35231configure-stage2-target-libstdc++-v3:
35232 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35233 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35234 @r=`${PWD_COMMAND}`; export r; \
35235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35236 TFLAGS="$(STAGE2_TFLAGS)"; \
35237 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35238 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35239 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35240 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35241 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35242 else \
35243 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35244 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35245 fi; \
35246 else \
35247 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35248 fi; \
35249 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35250 $(RAW_CXX_TARGET_EXPORTS) \
35251 \
35252 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35253 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35254 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35255 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
35256 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35257 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35258 case $(srcdir) in \
35259 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35260 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35261 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35262 esac; \
35263 module_srcdir=libstdc++-v3; \
35264 $(SHELL) $$s/$$module_srcdir/configure \
35265 --srcdir=$${topdir}/$$module_srcdir \
35266 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35267 --target=${target_alias} \
22121df0 35268 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35269 $(STAGE2_CONFIGURE_FLAGS)
35270@endif target-libstdc++-v3-bootstrap
35271
35272.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
35273maybe-configure-stage3-target-libstdc++-v3:
35274@if target-libstdc++-v3-bootstrap
35275maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
35276configure-stage3-target-libstdc++-v3:
35277 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35278 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35279 @r=`${PWD_COMMAND}`; export r; \
35280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35281 TFLAGS="$(STAGE3_TFLAGS)"; \
35282 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35283 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35284 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35285 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35286 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35287 else \
35288 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35289 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35290 fi; \
35291 else \
35292 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35293 fi; \
35294 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35295 $(RAW_CXX_TARGET_EXPORTS) \
35296 \
35297 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35298 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35299 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35300 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
35301 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35302 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35303 case $(srcdir) in \
35304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35305 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35307 esac; \
35308 module_srcdir=libstdc++-v3; \
35309 $(SHELL) $$s/$$module_srcdir/configure \
35310 --srcdir=$${topdir}/$$module_srcdir \
35311 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35312 --target=${target_alias} \
22121df0 35313 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35314 $(STAGE3_CONFIGURE_FLAGS)
35315@endif target-libstdc++-v3-bootstrap
35316
35317.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
35318maybe-configure-stage4-target-libstdc++-v3:
35319@if target-libstdc++-v3-bootstrap
35320maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
35321configure-stage4-target-libstdc++-v3:
35322 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35323 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35324 @r=`${PWD_COMMAND}`; export r; \
35325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35326 TFLAGS="$(STAGE4_TFLAGS)"; \
35327 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35328 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35329 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35330 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35331 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35332 else \
35333 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35334 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35335 fi; \
35336 else \
35337 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35338 fi; \
35339 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35340 $(RAW_CXX_TARGET_EXPORTS) \
35341 \
35342 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35343 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35344 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35345 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
35346 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35347 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35348 case $(srcdir) in \
35349 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35350 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35351 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35352 esac; \
35353 module_srcdir=libstdc++-v3; \
35354 $(SHELL) $$s/$$module_srcdir/configure \
35355 --srcdir=$${topdir}/$$module_srcdir \
35356 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35357 --target=${target_alias} \
22121df0 35358 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35359 $(STAGE4_CONFIGURE_FLAGS)
35360@endif target-libstdc++-v3-bootstrap
35361
35362.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
35363maybe-configure-stageprofile-target-libstdc++-v3:
35364@if target-libstdc++-v3-bootstrap
35365maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
35366configure-stageprofile-target-libstdc++-v3:
35367 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35368 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35369 @r=`${PWD_COMMAND}`; export r; \
35370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35371 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35372 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35373 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35374 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35375 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35376 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35377 else \
35378 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35379 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35380 fi; \
35381 else \
35382 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35383 fi; \
35384 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35385 $(RAW_CXX_TARGET_EXPORTS) \
35386 \
35387 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35388 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35389 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35390 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
35391 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35392 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35393 case $(srcdir) in \
35394 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35395 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35396 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35397 esac; \
35398 module_srcdir=libstdc++-v3; \
35399 $(SHELL) $$s/$$module_srcdir/configure \
35400 --srcdir=$${topdir}/$$module_srcdir \
35401 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35402 --target=${target_alias} \
22121df0 35403 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35404 $(STAGEprofile_CONFIGURE_FLAGS)
35405@endif target-libstdc++-v3-bootstrap
35406
35407.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
35408maybe-configure-stagefeedback-target-libstdc++-v3:
35409@if target-libstdc++-v3-bootstrap
35410maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
35411configure-stagefeedback-target-libstdc++-v3:
35412 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35413 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35414 @r=`${PWD_COMMAND}`; export r; \
35415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35416 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35417 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35418 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35419 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35420 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35421 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35422 else \
35423 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35424 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35425 fi; \
35426 else \
35427 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35428 fi; \
35429 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35430 $(RAW_CXX_TARGET_EXPORTS) \
35431 \
35432 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35433 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35434 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35435 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
35436 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35437 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35438 case $(srcdir) in \
35439 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35440 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35441 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35442 esac; \
35443 module_srcdir=libstdc++-v3; \
35444 $(SHELL) $$s/$$module_srcdir/configure \
35445 --srcdir=$${topdir}/$$module_srcdir \
35446 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35447 --target=${target_alias} \
22121df0 35448 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35449 $(STAGEfeedback_CONFIGURE_FLAGS)
35450@endif target-libstdc++-v3-bootstrap
35451
35452
35453
35454
35455
35456.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
35457maybe-all-target-libstdc++-v3:
35458@if gcc-bootstrap
35459all-target-libstdc++-v3: stage_current
35460@endif gcc-bootstrap
35461@if target-libstdc++-v3
35462TARGET-target-libstdc++-v3=all
35463maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
35464all-target-libstdc++-v3: configure-target-libstdc++-v3
35465 @r=`${PWD_COMMAND}`; export r; \
35466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35467 $(RAW_CXX_TARGET_EXPORTS) \
35468 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35469 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35470 $(TARGET-target-libstdc++-v3))
35471@endif target-libstdc++-v3
35472
35473
35474
35475.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
35476.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
35477maybe-all-stage1-target-libstdc++-v3:
35478maybe-clean-stage1-target-libstdc++-v3:
35479@if target-libstdc++-v3-bootstrap
35480maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
35481all-stage1: all-stage1-target-libstdc++-v3
35482TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35483all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
35484 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35485 @r=`${PWD_COMMAND}`; export r; \
35486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35487 TFLAGS="$(STAGE1_TFLAGS)"; \
35488 $(RAW_CXX_TARGET_EXPORTS) \
35489 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35490 \
1b6c0831
L
35491 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35492 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35493 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35494 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35495 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35496 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35497 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35498 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35499 \
05a13254 35500 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
35501 $(TARGET-stage1-target-libstdc++-v3)
35502
35503maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
35504clean-stage1: clean-stage1-target-libstdc++-v3
35505clean-stage1-target-libstdc++-v3:
35506 @if [ $(current_stage) = stage1 ]; then \
35507 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35508 else \
35509 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
35510 $(MAKE) stage1-start; \
35511 fi; \
35512 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35513 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35514 clean
35515@endif target-libstdc++-v3-bootstrap
35516
35517
35518.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
35519.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
35520maybe-all-stage2-target-libstdc++-v3:
35521maybe-clean-stage2-target-libstdc++-v3:
35522@if target-libstdc++-v3-bootstrap
35523maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
35524all-stage2: all-stage2-target-libstdc++-v3
35525TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35526all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
35527 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35528 @r=`${PWD_COMMAND}`; export r; \
35529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35530 TFLAGS="$(STAGE2_TFLAGS)"; \
35531 $(RAW_CXX_TARGET_EXPORTS) \
35532 \
35533 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35534 \
1b6c0831
L
35535 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35536 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35537 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35538 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35539 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35540 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35541 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35542 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35543 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
35544 $(TARGET-stage2-target-libstdc++-v3)
35545
35546maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
35547clean-stage2: clean-stage2-target-libstdc++-v3
35548clean-stage2-target-libstdc++-v3:
35549 @if [ $(current_stage) = stage2 ]; then \
35550 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35551 else \
35552 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
35553 $(MAKE) stage2-start; \
35554 fi; \
35555 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35556 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35557@endif target-libstdc++-v3-bootstrap
35558
35559
35560.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
35561.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
35562maybe-all-stage3-target-libstdc++-v3:
35563maybe-clean-stage3-target-libstdc++-v3:
35564@if target-libstdc++-v3-bootstrap
35565maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
35566all-stage3: all-stage3-target-libstdc++-v3
35567TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35568all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
35569 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35570 @r=`${PWD_COMMAND}`; export r; \
35571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35572 TFLAGS="$(STAGE3_TFLAGS)"; \
35573 $(RAW_CXX_TARGET_EXPORTS) \
35574 \
35575 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35576 \
1b6c0831
L
35577 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35578 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35579 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35580 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35581 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35582 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35583 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35584 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35585 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
35586 $(TARGET-stage3-target-libstdc++-v3)
35587
35588maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
35589clean-stage3: clean-stage3-target-libstdc++-v3
35590clean-stage3-target-libstdc++-v3:
35591 @if [ $(current_stage) = stage3 ]; then \
35592 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35593 else \
35594 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
35595 $(MAKE) stage3-start; \
35596 fi; \
35597 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35598 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35599@endif target-libstdc++-v3-bootstrap
35600
35601
35602.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
35603.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
35604maybe-all-stage4-target-libstdc++-v3:
35605maybe-clean-stage4-target-libstdc++-v3:
35606@if target-libstdc++-v3-bootstrap
35607maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
35608all-stage4: all-stage4-target-libstdc++-v3
35609TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35610all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
35611 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35612 @r=`${PWD_COMMAND}`; export r; \
35613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35614 TFLAGS="$(STAGE4_TFLAGS)"; \
35615 $(RAW_CXX_TARGET_EXPORTS) \
35616 \
35617 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35618 \
1b6c0831
L
35619 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35620 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35621 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35622 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35623 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35624 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35625 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35626 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35627 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
35628 $(TARGET-stage4-target-libstdc++-v3)
35629
35630maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
35631clean-stage4: clean-stage4-target-libstdc++-v3
35632clean-stage4-target-libstdc++-v3:
35633 @if [ $(current_stage) = stage4 ]; then \
35634 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35635 else \
35636 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
35637 $(MAKE) stage4-start; \
35638 fi; \
35639 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35640 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35641@endif target-libstdc++-v3-bootstrap
35642
35643
35644.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
35645.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
35646maybe-all-stageprofile-target-libstdc++-v3:
35647maybe-clean-stageprofile-target-libstdc++-v3:
35648@if target-libstdc++-v3-bootstrap
35649maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
35650all-stageprofile: all-stageprofile-target-libstdc++-v3
35651TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35652all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
35653 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35654 @r=`${PWD_COMMAND}`; export r; \
35655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35656 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35657 $(RAW_CXX_TARGET_EXPORTS) \
35658 \
35659 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35660 \
1b6c0831
L
35661 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35662 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35663 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35664 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35665 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35666 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35667 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35668 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35669 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
35670 $(TARGET-stageprofile-target-libstdc++-v3)
35671
35672maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
35673clean-stageprofile: clean-stageprofile-target-libstdc++-v3
35674clean-stageprofile-target-libstdc++-v3:
35675 @if [ $(current_stage) = stageprofile ]; then \
35676 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35677 else \
35678 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
35679 $(MAKE) stageprofile-start; \
35680 fi; \
35681 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35682 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35683@endif target-libstdc++-v3-bootstrap
35684
35685
35686.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
35687.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
35688maybe-all-stagefeedback-target-libstdc++-v3:
35689maybe-clean-stagefeedback-target-libstdc++-v3:
35690@if target-libstdc++-v3-bootstrap
35691maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
35692all-stagefeedback: all-stagefeedback-target-libstdc++-v3
35693TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35694all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
35695 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35696 @r=`${PWD_COMMAND}`; export r; \
35697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35698 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35699 $(RAW_CXX_TARGET_EXPORTS) \
35700 \
35701 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35702 \
1b6c0831
L
35703 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35704 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35705 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35706 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35707 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35708 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35709 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35710 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35711 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
35712 $(TARGET-stagefeedback-target-libstdc++-v3)
35713
35714maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
35715clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
35716clean-stagefeedback-target-libstdc++-v3:
35717 @if [ $(current_stage) = stagefeedback ]; then \
35718 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35719 else \
35720 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
35721 $(MAKE) stagefeedback-start; \
35722 fi; \
35723 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35724 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35725@endif target-libstdc++-v3-bootstrap
35726
35727
35728
35729
35730
35731
35732.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
35733maybe-check-target-libstdc++-v3:
35734@if target-libstdc++-v3
35735maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
35736
35737check-target-libstdc++-v3:
35738 @: $(MAKE); $(unstage)
35739 @r=`${PWD_COMMAND}`; export r; \
35740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35741 $(RAW_CXX_TARGET_EXPORTS) \
35742 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35743 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
35744
35745@endif target-libstdc++-v3
35746
35747.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
35748maybe-install-target-libstdc++-v3:
35749@if target-libstdc++-v3
35750maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
35751
35752install-target-libstdc++-v3: installdirs
35753 @: $(MAKE); $(unstage)
35754 @r=`${PWD_COMMAND}`; export r; \
35755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35756 $(RAW_CXX_TARGET_EXPORTS) \
35757 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35758 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35759
35760@endif target-libstdc++-v3
35761
35762.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
35763maybe-install-strip-target-libstdc++-v3:
35764@if target-libstdc++-v3
35765maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
35766
35767install-strip-target-libstdc++-v3: installdirs
35768 @: $(MAKE); $(unstage)
35769 @r=`${PWD_COMMAND}`; export r; \
35770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35771 $(RAW_CXX_TARGET_EXPORTS) \
35772 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35773 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35774
35775@endif target-libstdc++-v3
35776
35777# Other targets (info, dvi, pdf, etc.)
35778
35779.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
35780maybe-info-target-libstdc++-v3:
35781@if target-libstdc++-v3
35782maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
35783
35784info-target-libstdc++-v3: \
35785 configure-target-libstdc++-v3
35786 @: $(MAKE); $(unstage)
22121df0 35787 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35788 r=`${PWD_COMMAND}`; export r; \
35789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35790 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35791 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35792 for flag in $(EXTRA_TARGET_FLAGS); do \
35793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35794 done; \
35795 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35798 "RANLIB=$${RANLIB}" \
35799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35800 info) \
35801 || exit 1
35802
35803@endif target-libstdc++-v3
35804
35805.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
35806maybe-dvi-target-libstdc++-v3:
35807@if target-libstdc++-v3
35808maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
35809
35810dvi-target-libstdc++-v3: \
35811 configure-target-libstdc++-v3
35812 @: $(MAKE); $(unstage)
22121df0 35813 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35814 r=`${PWD_COMMAND}`; export r; \
35815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35816 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35817 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35818 for flag in $(EXTRA_TARGET_FLAGS); do \
35819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35820 done; \
35821 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35824 "RANLIB=$${RANLIB}" \
35825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35826 dvi) \
35827 || exit 1
35828
35829@endif target-libstdc++-v3
35830
35831.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
35832maybe-pdf-target-libstdc++-v3:
35833@if target-libstdc++-v3
35834maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
35835
35836pdf-target-libstdc++-v3: \
35837 configure-target-libstdc++-v3
35838 @: $(MAKE); $(unstage)
22121df0 35839 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35840 r=`${PWD_COMMAND}`; export r; \
35841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35842 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35843 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35844 for flag in $(EXTRA_TARGET_FLAGS); do \
35845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35846 done; \
35847 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35850 "RANLIB=$${RANLIB}" \
35851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35852 pdf) \
35853 || exit 1
35854
35855@endif target-libstdc++-v3
35856
35857.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
35858maybe-html-target-libstdc++-v3:
35859@if target-libstdc++-v3
35860maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
35861
35862html-target-libstdc++-v3: \
35863 configure-target-libstdc++-v3
35864 @: $(MAKE); $(unstage)
22121df0 35865 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35866 r=`${PWD_COMMAND}`; export r; \
35867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35868 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35869 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35870 for flag in $(EXTRA_TARGET_FLAGS); do \
35871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35872 done; \
35873 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35876 "RANLIB=$${RANLIB}" \
35877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35878 html) \
35879 || exit 1
35880
35881@endif target-libstdc++-v3
35882
35883.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
35884maybe-TAGS-target-libstdc++-v3:
35885@if target-libstdc++-v3
35886maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
35887
35888TAGS-target-libstdc++-v3: \
35889 configure-target-libstdc++-v3
35890 @: $(MAKE); $(unstage)
22121df0 35891 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35892 r=`${PWD_COMMAND}`; export r; \
35893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35894 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35895 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35896 for flag in $(EXTRA_TARGET_FLAGS); do \
35897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35898 done; \
35899 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35902 "RANLIB=$${RANLIB}" \
35903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35904 TAGS) \
35905 || exit 1
35906
35907@endif target-libstdc++-v3
35908
35909.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
35910maybe-install-info-target-libstdc++-v3:
35911@if target-libstdc++-v3
35912maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
35913
35914install-info-target-libstdc++-v3: \
35915 configure-target-libstdc++-v3 \
35916 info-target-libstdc++-v3
35917 @: $(MAKE); $(unstage)
22121df0 35918 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35919 r=`${PWD_COMMAND}`; export r; \
35920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35921 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35922 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35923 for flag in $(EXTRA_TARGET_FLAGS); do \
35924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35925 done; \
35926 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35929 "RANLIB=$${RANLIB}" \
35930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35931 install-info) \
35932 || exit 1
35933
35934@endif target-libstdc++-v3
35935
35936.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
35937maybe-install-pdf-target-libstdc++-v3:
35938@if target-libstdc++-v3
35939maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
35940
35941install-pdf-target-libstdc++-v3: \
35942 configure-target-libstdc++-v3 \
35943 pdf-target-libstdc++-v3
35944 @: $(MAKE); $(unstage)
22121df0 35945 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35946 r=`${PWD_COMMAND}`; export r; \
35947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35948 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35949 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35950 for flag in $(EXTRA_TARGET_FLAGS); do \
35951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35952 done; \
35953 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35956 "RANLIB=$${RANLIB}" \
35957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35958 install-pdf) \
35959 || exit 1
35960
35961@endif target-libstdc++-v3
35962
35963.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
35964maybe-install-html-target-libstdc++-v3:
35965@if target-libstdc++-v3
35966maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
35967
35968install-html-target-libstdc++-v3: \
35969 configure-target-libstdc++-v3 \
35970 html-target-libstdc++-v3
35971 @: $(MAKE); $(unstage)
22121df0 35972 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35973 r=`${PWD_COMMAND}`; export r; \
35974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35975 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35976 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35977 for flag in $(EXTRA_TARGET_FLAGS); do \
35978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35979 done; \
35980 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35983 "RANLIB=$${RANLIB}" \
35984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35985 install-html) \
35986 || exit 1
35987
35988@endif target-libstdc++-v3
35989
35990.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
35991maybe-installcheck-target-libstdc++-v3:
35992@if target-libstdc++-v3
35993maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
35994
35995installcheck-target-libstdc++-v3: \
35996 configure-target-libstdc++-v3
35997 @: $(MAKE); $(unstage)
22121df0 35998 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35999 r=`${PWD_COMMAND}`; export r; \
36000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36001 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36002 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36003 for flag in $(EXTRA_TARGET_FLAGS); do \
36004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36005 done; \
36006 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36009 "RANLIB=$${RANLIB}" \
36010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36011 installcheck) \
36012 || exit 1
36013
36014@endif target-libstdc++-v3
36015
36016.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
36017maybe-mostlyclean-target-libstdc++-v3:
36018@if target-libstdc++-v3
36019maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
36020
36021mostlyclean-target-libstdc++-v3:
36022 @: $(MAKE); $(unstage)
22121df0 36023 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36024 r=`${PWD_COMMAND}`; export r; \
36025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36026 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36027 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36028 for flag in $(EXTRA_TARGET_FLAGS); do \
36029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36030 done; \
36031 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36034 "RANLIB=$${RANLIB}" \
36035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36036 mostlyclean) \
36037 || exit 1
36038
36039@endif target-libstdc++-v3
36040
36041.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
36042maybe-clean-target-libstdc++-v3:
36043@if target-libstdc++-v3
36044maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
36045
36046clean-target-libstdc++-v3:
36047 @: $(MAKE); $(unstage)
22121df0 36048 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36049 r=`${PWD_COMMAND}`; export r; \
36050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36051 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36052 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36053 for flag in $(EXTRA_TARGET_FLAGS); do \
36054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36055 done; \
36056 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36059 "RANLIB=$${RANLIB}" \
36060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36061 clean) \
36062 || exit 1
36063
36064@endif target-libstdc++-v3
36065
36066.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
36067maybe-distclean-target-libstdc++-v3:
36068@if target-libstdc++-v3
36069maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
36070
36071distclean-target-libstdc++-v3:
36072 @: $(MAKE); $(unstage)
22121df0 36073 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36074 r=`${PWD_COMMAND}`; export r; \
36075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36076 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36077 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36078 for flag in $(EXTRA_TARGET_FLAGS); do \
36079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36080 done; \
36081 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36084 "RANLIB=$${RANLIB}" \
36085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36086 distclean) \
36087 || exit 1
36088
36089@endif target-libstdc++-v3
36090
36091.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
36092maybe-maintainer-clean-target-libstdc++-v3:
36093@if target-libstdc++-v3
36094maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
36095
36096maintainer-clean-target-libstdc++-v3:
36097 @: $(MAKE); $(unstage)
22121df0 36098 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36099 r=`${PWD_COMMAND}`; export r; \
36100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36101 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36102 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36103 for flag in $(EXTRA_TARGET_FLAGS); do \
36104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36105 done; \
36106 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36109 "RANLIB=$${RANLIB}" \
36110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36111 maintainer-clean) \
36112 || exit 1
36113
36114@endif target-libstdc++-v3
36115
36116
36117
36118
36119
36120.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
36121maybe-configure-target-libsanitizer:
36122@if gcc-bootstrap
36123configure-target-libsanitizer: stage_current
36124@endif gcc-bootstrap
36125@if target-libsanitizer
36126maybe-configure-target-libsanitizer: configure-target-libsanitizer
36127configure-target-libsanitizer:
36128 @r=`${PWD_COMMAND}`; export r; \
36129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36130 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
36131 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
36132 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36133 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36134 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36135 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36136 else \
36137 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36138 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36139 fi; \
36140 else \
36141 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36142 fi; \
36143 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 36144 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36145 $(RAW_CXX_TARGET_EXPORTS) \
36146 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
36147 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
36148 case $(srcdir) in \
36149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36150 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36152 esac; \
36153 module_srcdir=libsanitizer; \
36154 rm -f no-such-file || : ; \
36155 CONFIG_SITE=no-such-file $(SHELL) \
36156 $$s/$$module_srcdir/configure \
36157 --srcdir=$${topdir}/$$module_srcdir \
36158 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36159 --target=${target_alias} \
36160 || exit 1
36161@endif target-libsanitizer
36162
36163
36164
36165.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
36166maybe-configure-stage1-target-libsanitizer:
36167@if target-libsanitizer-bootstrap
36168maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
36169configure-stage1-target-libsanitizer:
36170 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36171 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36172 @r=`${PWD_COMMAND}`; export r; \
36173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36174 TFLAGS="$(STAGE1_TFLAGS)"; \
36175 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36176 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36177 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36178 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36179 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36180 else \
36181 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36182 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36183 fi; \
36184 else \
36185 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36186 fi; \
36187 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36188 $(RAW_CXX_TARGET_EXPORTS) \
36189 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36190 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36191 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36192 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
36193 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36194 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36195 case $(srcdir) in \
36196 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36197 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36198 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36199 esac; \
36200 module_srcdir=libsanitizer; \
36201 $(SHELL) $$s/$$module_srcdir/configure \
36202 --srcdir=$${topdir}/$$module_srcdir \
36203 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36204 --target=${target_alias} \
36205 \
36206 $(STAGE1_CONFIGURE_FLAGS)
36207@endif target-libsanitizer-bootstrap
36208
36209.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
36210maybe-configure-stage2-target-libsanitizer:
36211@if target-libsanitizer-bootstrap
36212maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
36213configure-stage2-target-libsanitizer:
36214 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36215 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36216 @r=`${PWD_COMMAND}`; export r; \
36217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36218 TFLAGS="$(STAGE2_TFLAGS)"; \
36219 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36220 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36221 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36222 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36223 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36224 else \
36225 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36226 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36227 fi; \
36228 else \
36229 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36230 fi; \
36231 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36232 $(RAW_CXX_TARGET_EXPORTS) \
36233 \
36234 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36235 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36236 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36237 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
36238 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36239 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36240 case $(srcdir) in \
36241 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36242 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36243 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36244 esac; \
36245 module_srcdir=libsanitizer; \
36246 $(SHELL) $$s/$$module_srcdir/configure \
36247 --srcdir=$${topdir}/$$module_srcdir \
36248 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36249 --target=${target_alias} \
22121df0 36250 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36251 $(STAGE2_CONFIGURE_FLAGS)
36252@endif target-libsanitizer-bootstrap
36253
36254.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
36255maybe-configure-stage3-target-libsanitizer:
36256@if target-libsanitizer-bootstrap
36257maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
36258configure-stage3-target-libsanitizer:
36259 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36260 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36261 @r=`${PWD_COMMAND}`; export r; \
36262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36263 TFLAGS="$(STAGE3_TFLAGS)"; \
36264 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36265 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36266 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36267 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36268 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36269 else \
36270 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36271 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36272 fi; \
36273 else \
36274 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36275 fi; \
36276 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36277 $(RAW_CXX_TARGET_EXPORTS) \
36278 \
36279 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36280 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36281 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36282 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
36283 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36284 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36285 case $(srcdir) in \
36286 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36287 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36288 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36289 esac; \
36290 module_srcdir=libsanitizer; \
36291 $(SHELL) $$s/$$module_srcdir/configure \
36292 --srcdir=$${topdir}/$$module_srcdir \
36293 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36294 --target=${target_alias} \
22121df0 36295 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36296 $(STAGE3_CONFIGURE_FLAGS)
36297@endif target-libsanitizer-bootstrap
36298
36299.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
36300maybe-configure-stage4-target-libsanitizer:
36301@if target-libsanitizer-bootstrap
36302maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
36303configure-stage4-target-libsanitizer:
36304 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36305 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36306 @r=`${PWD_COMMAND}`; export r; \
36307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36308 TFLAGS="$(STAGE4_TFLAGS)"; \
36309 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36310 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36311 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36312 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36313 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36314 else \
36315 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36316 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36317 fi; \
36318 else \
36319 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36320 fi; \
36321 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36322 $(RAW_CXX_TARGET_EXPORTS) \
36323 \
36324 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36325 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36326 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36327 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
36328 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36329 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36330 case $(srcdir) in \
36331 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36332 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36333 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36334 esac; \
36335 module_srcdir=libsanitizer; \
36336 $(SHELL) $$s/$$module_srcdir/configure \
36337 --srcdir=$${topdir}/$$module_srcdir \
36338 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36339 --target=${target_alias} \
22121df0 36340 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36341 $(STAGE4_CONFIGURE_FLAGS)
36342@endif target-libsanitizer-bootstrap
36343
36344.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
36345maybe-configure-stageprofile-target-libsanitizer:
36346@if target-libsanitizer-bootstrap
36347maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
36348configure-stageprofile-target-libsanitizer:
36349 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36350 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36351 @r=`${PWD_COMMAND}`; export r; \
36352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36353 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36354 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36355 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36356 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36357 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36358 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36359 else \
36360 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36361 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36362 fi; \
36363 else \
36364 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36365 fi; \
36366 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36367 $(RAW_CXX_TARGET_EXPORTS) \
36368 \
36369 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36370 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36371 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36372 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
36373 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36374 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36375 case $(srcdir) in \
36376 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36377 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36378 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36379 esac; \
36380 module_srcdir=libsanitizer; \
36381 $(SHELL) $$s/$$module_srcdir/configure \
36382 --srcdir=$${topdir}/$$module_srcdir \
36383 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36384 --target=${target_alias} \
22121df0 36385 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36386 $(STAGEprofile_CONFIGURE_FLAGS)
36387@endif target-libsanitizer-bootstrap
36388
36389.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
36390maybe-configure-stagefeedback-target-libsanitizer:
36391@if target-libsanitizer-bootstrap
36392maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
36393configure-stagefeedback-target-libsanitizer:
36394 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36395 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36396 @r=`${PWD_COMMAND}`; export r; \
36397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36398 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36399 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36400 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36401 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36402 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36403 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36404 else \
36405 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36406 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36407 fi; \
36408 else \
36409 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36410 fi; \
36411 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36412 $(RAW_CXX_TARGET_EXPORTS) \
36413 \
36414 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36415 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36416 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36417 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
36418 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36419 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36420 case $(srcdir) in \
36421 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36422 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36423 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36424 esac; \
36425 module_srcdir=libsanitizer; \
36426 $(SHELL) $$s/$$module_srcdir/configure \
36427 --srcdir=$${topdir}/$$module_srcdir \
36428 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36429 --target=${target_alias} \
22121df0 36430 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36431 $(STAGEfeedback_CONFIGURE_FLAGS)
36432@endif target-libsanitizer-bootstrap
36433
36434
36435
36436
36437
36438.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
36439maybe-all-target-libsanitizer:
36440@if gcc-bootstrap
36441all-target-libsanitizer: stage_current
36442@endif gcc-bootstrap
36443@if target-libsanitizer
36444TARGET-target-libsanitizer=all
36445maybe-all-target-libsanitizer: all-target-libsanitizer
36446all-target-libsanitizer: configure-target-libsanitizer
36447 @r=`${PWD_COMMAND}`; export r; \
36448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36449 $(RAW_CXX_TARGET_EXPORTS) \
36450 (cd $(TARGET_SUBDIR)/libsanitizer && \
36451 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36452 $(TARGET-target-libsanitizer))
36453@endif target-libsanitizer
36454
36455
36456
36457.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
36458.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
36459maybe-all-stage1-target-libsanitizer:
36460maybe-clean-stage1-target-libsanitizer:
36461@if target-libsanitizer-bootstrap
36462maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
36463all-stage1: all-stage1-target-libsanitizer
36464TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
36465all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
36466 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36467 @r=`${PWD_COMMAND}`; export r; \
36468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36469 TFLAGS="$(STAGE1_TFLAGS)"; \
36470 $(RAW_CXX_TARGET_EXPORTS) \
36471 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36472 \
1b6c0831
L
36473 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36474 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36475 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36476 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36477 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36478 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36479 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36480 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36481 \
05a13254 36482 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
36483 $(TARGET-stage1-target-libsanitizer)
36484
36485maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
36486clean-stage1: clean-stage1-target-libsanitizer
36487clean-stage1-target-libsanitizer:
36488 @if [ $(current_stage) = stage1 ]; then \
36489 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36490 else \
36491 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
36492 $(MAKE) stage1-start; \
36493 fi; \
36494 cd $(TARGET_SUBDIR)/libsanitizer && \
36495 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36496 clean
36497@endif target-libsanitizer-bootstrap
36498
36499
36500.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
36501.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
36502maybe-all-stage2-target-libsanitizer:
36503maybe-clean-stage2-target-libsanitizer:
36504@if target-libsanitizer-bootstrap
36505maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
36506all-stage2: all-stage2-target-libsanitizer
36507TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
36508all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
36509 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36510 @r=`${PWD_COMMAND}`; export r; \
36511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36512 TFLAGS="$(STAGE2_TFLAGS)"; \
36513 $(RAW_CXX_TARGET_EXPORTS) \
36514 \
36515 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36516 \
1b6c0831
L
36517 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36518 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36519 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36520 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36521 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36522 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36523 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36524 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36525 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
36526 $(TARGET-stage2-target-libsanitizer)
36527
36528maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
36529clean-stage2: clean-stage2-target-libsanitizer
36530clean-stage2-target-libsanitizer:
36531 @if [ $(current_stage) = stage2 ]; then \
36532 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36533 else \
36534 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
36535 $(MAKE) stage2-start; \
36536 fi; \
36537 cd $(TARGET_SUBDIR)/libsanitizer && \
36538 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36539@endif target-libsanitizer-bootstrap
36540
36541
36542.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
36543.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
36544maybe-all-stage3-target-libsanitizer:
36545maybe-clean-stage3-target-libsanitizer:
36546@if target-libsanitizer-bootstrap
36547maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
36548all-stage3: all-stage3-target-libsanitizer
36549TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
36550all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
36551 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36552 @r=`${PWD_COMMAND}`; export r; \
36553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36554 TFLAGS="$(STAGE3_TFLAGS)"; \
36555 $(RAW_CXX_TARGET_EXPORTS) \
36556 \
36557 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36558 \
1b6c0831
L
36559 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36560 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36561 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36562 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36563 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36564 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36565 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36566 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36567 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
36568 $(TARGET-stage3-target-libsanitizer)
36569
36570maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
36571clean-stage3: clean-stage3-target-libsanitizer
36572clean-stage3-target-libsanitizer:
36573 @if [ $(current_stage) = stage3 ]; then \
36574 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36575 else \
36576 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
36577 $(MAKE) stage3-start; \
36578 fi; \
36579 cd $(TARGET_SUBDIR)/libsanitizer && \
36580 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36581@endif target-libsanitizer-bootstrap
36582
36583
36584.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
36585.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
36586maybe-all-stage4-target-libsanitizer:
36587maybe-clean-stage4-target-libsanitizer:
36588@if target-libsanitizer-bootstrap
36589maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
36590all-stage4: all-stage4-target-libsanitizer
36591TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
36592all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
36593 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36594 @r=`${PWD_COMMAND}`; export r; \
36595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36596 TFLAGS="$(STAGE4_TFLAGS)"; \
36597 $(RAW_CXX_TARGET_EXPORTS) \
36598 \
36599 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36600 \
1b6c0831
L
36601 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36602 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36603 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36604 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
36605 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36606 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36607 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36608 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36609 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 36610 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 36611
1b6c0831
L
36612maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
36613clean-stage4: clean-stage4-target-libsanitizer
36614clean-stage4-target-libsanitizer:
e8a5fa9c 36615 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 36616 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36617 else \
1b6c0831 36618 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36619 $(MAKE) stage4-start; \
36620 fi; \
1b6c0831 36621 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36622 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36623@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36624
36625
1b6c0831
L
36626.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
36627.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
36628maybe-all-stageprofile-target-libsanitizer:
36629maybe-clean-stageprofile-target-libsanitizer:
36630@if target-libsanitizer-bootstrap
36631maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
36632all-stageprofile: all-stageprofile-target-libsanitizer
36633TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
36634all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
36635 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36636 @r=`${PWD_COMMAND}`; export r; \
36637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36638 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36639 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 36640 \
1b6c0831 36641 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36642 \
e8a5fa9c
RW
36643 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36644 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36645 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36646 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36647 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36648 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36649 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36650 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36651 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 36652 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 36653
1b6c0831
L
36654maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
36655clean-stageprofile: clean-stageprofile-target-libsanitizer
36656clean-stageprofile-target-libsanitizer:
e8a5fa9c 36657 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 36658 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36659 else \
1b6c0831 36660 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36661 $(MAKE) stageprofile-start; \
36662 fi; \
1b6c0831 36663 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36664 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36665@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36666
36667
1b6c0831
L
36668.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
36669.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
36670maybe-all-stagefeedback-target-libsanitizer:
36671maybe-clean-stagefeedback-target-libsanitizer:
36672@if target-libsanitizer-bootstrap
36673maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
36674all-stagefeedback: all-stagefeedback-target-libsanitizer
36675TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
36676all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
36677 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36678 @r=`${PWD_COMMAND}`; export r; \
36679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36680 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36681 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 36682 \
1b6c0831 36683 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36684 \
e8a5fa9c
RW
36685 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36686 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36687 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36688 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36689 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36690 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36691 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36692 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36693 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 36694 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 36695
1b6c0831
L
36696maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
36697clean-stagefeedback: clean-stagefeedback-target-libsanitizer
36698clean-stagefeedback-target-libsanitizer:
e8a5fa9c 36699 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 36700 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36701 else \
1b6c0831 36702 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36703 $(MAKE) stagefeedback-start; \
36704 fi; \
1b6c0831 36705 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36706 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36707@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36708
36709
36710
36711
d545f33b
PB
36712
36713
1b6c0831
L
36714.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
36715maybe-check-target-libsanitizer:
36716@if target-libsanitizer
36717maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 36718
1b6c0831 36719check-target-libsanitizer:
0aed8855 36720 @: $(MAKE); $(unstage)
b40e3958
L
36721 @r=`${PWD_COMMAND}`; export r; \
36722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36723 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36724 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 36725 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 36726
1b6c0831 36727@endif target-libsanitizer
3866be5d 36728
1b6c0831
L
36729.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
36730maybe-install-target-libsanitizer:
36731@if target-libsanitizer
36732maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 36733
1b6c0831 36734install-target-libsanitizer: installdirs
0aed8855 36735 @: $(MAKE); $(unstage)
b40e3958
L
36736 @r=`${PWD_COMMAND}`; export r; \
36737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36738 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36739 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 36740 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 36741
1b6c0831 36742@endif target-libsanitizer
e2b9e2dc 36743
1b6c0831
L
36744.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
36745maybe-install-strip-target-libsanitizer:
36746@if target-libsanitizer
36747maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 36748
1b6c0831 36749install-strip-target-libsanitizer: installdirs
9b980aa1
RW
36750 @: $(MAKE); $(unstage)
36751 @r=`${PWD_COMMAND}`; export r; \
36752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36753 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36754 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
36755 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36756
1b6c0831 36757@endif target-libsanitizer
9b980aa1 36758
56a8fe78 36759# Other targets (info, dvi, pdf, etc.)
3866be5d 36760
1b6c0831
L
36761.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
36762maybe-info-target-libsanitizer:
36763@if target-libsanitizer
36764maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 36765
1b6c0831
L
36766info-target-libsanitizer: \
36767 configure-target-libsanitizer
0aed8855 36768 @: $(MAKE); $(unstage)
22121df0 36769 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36770 r=`${PWD_COMMAND}`; export r; \
b40e3958 36771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36772 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36773 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36774 for flag in $(EXTRA_TARGET_FLAGS); do \
36775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36776 done; \
1b6c0831 36777 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36780 "RANLIB=$${RANLIB}" \
0c24b341 36781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36782 info) \
4fa63067 36783 || exit 1
3866be5d 36784
1b6c0831 36785@endif target-libsanitizer
3866be5d 36786
1b6c0831
L
36787.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
36788maybe-dvi-target-libsanitizer:
36789@if target-libsanitizer
36790maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 36791
1b6c0831
L
36792dvi-target-libsanitizer: \
36793 configure-target-libsanitizer
0aed8855 36794 @: $(MAKE); $(unstage)
22121df0 36795 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36796 r=`${PWD_COMMAND}`; export r; \
b40e3958 36797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36798 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36799 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36800 for flag in $(EXTRA_TARGET_FLAGS); do \
36801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36802 done; \
1b6c0831 36803 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36806 "RANLIB=$${RANLIB}" \
0c24b341 36807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36808 dvi) \
4fa63067 36809 || exit 1
3866be5d 36810
1b6c0831 36811@endif target-libsanitizer
3866be5d 36812
1b6c0831
L
36813.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
36814maybe-pdf-target-libsanitizer:
36815@if target-libsanitizer
36816maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 36817
1b6c0831
L
36818pdf-target-libsanitizer: \
36819 configure-target-libsanitizer
56a8fe78 36820 @: $(MAKE); $(unstage)
22121df0 36821 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
36822 r=`${PWD_COMMAND}`; export r; \
36823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36824 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36825 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
36826 for flag in $(EXTRA_TARGET_FLAGS); do \
36827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36828 done; \
1b6c0831 36829 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
36830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36832 "RANLIB=$${RANLIB}" \
0c24b341 36833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
36834 pdf) \
36835 || exit 1
36836
1b6c0831 36837@endif target-libsanitizer
56a8fe78 36838
1b6c0831
L
36839.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
36840maybe-html-target-libsanitizer:
36841@if target-libsanitizer
36842maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 36843
1b6c0831
L
36844html-target-libsanitizer: \
36845 configure-target-libsanitizer
0aed8855 36846 @: $(MAKE); $(unstage)
22121df0 36847 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
36848 r=`${PWD_COMMAND}`; export r; \
36849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 36850 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36851 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
36852 for flag in $(EXTRA_TARGET_FLAGS); do \
36853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36854 done; \
1b6c0831 36855 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
36856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36858 "RANLIB=$${RANLIB}" \
0c24b341 36859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
36860 html) \
36861 || exit 1
36862
1b6c0831 36863@endif target-libsanitizer
6d389afc 36864
1b6c0831
L
36865.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
36866maybe-TAGS-target-libsanitizer:
36867@if target-libsanitizer
36868maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 36869
1b6c0831
L
36870TAGS-target-libsanitizer: \
36871 configure-target-libsanitizer
0aed8855 36872 @: $(MAKE); $(unstage)
22121df0 36873 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
36874 r=`${PWD_COMMAND}`; export r; \
36875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36876 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36877 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36878 for flag in $(EXTRA_TARGET_FLAGS); do \
36879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36880 done; \
1b6c0831 36881 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36884 "RANLIB=$${RANLIB}" \
0c24b341 36885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36886 TAGS) \
e2b9e2dc
NN
36887 || exit 1
36888
1b6c0831 36889@endif target-libsanitizer
3866be5d 36890
1b6c0831
L
36891.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
36892maybe-install-info-target-libsanitizer:
36893@if target-libsanitizer
36894maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 36895
1b6c0831
L
36896install-info-target-libsanitizer: \
36897 configure-target-libsanitizer \
36898 info-target-libsanitizer
0aed8855 36899 @: $(MAKE); $(unstage)
22121df0 36900 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36901 r=`${PWD_COMMAND}`; export r; \
b40e3958 36902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36903 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36904 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36905 for flag in $(EXTRA_TARGET_FLAGS); do \
36906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36907 done; \
1b6c0831 36908 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36911 "RANLIB=$${RANLIB}" \
0c24b341 36912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36913 install-info) \
4fa63067 36914 || exit 1
3866be5d 36915
1b6c0831 36916@endif target-libsanitizer
3866be5d 36917
1b6c0831
L
36918.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
36919maybe-install-pdf-target-libsanitizer:
36920@if target-libsanitizer
36921maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 36922
1b6c0831
L
36923install-pdf-target-libsanitizer: \
36924 configure-target-libsanitizer \
36925 pdf-target-libsanitizer
a3ca38d2 36926 @: $(MAKE); $(unstage)
22121df0 36927 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
36928 r=`${PWD_COMMAND}`; export r; \
36929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36930 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36931 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
36932 for flag in $(EXTRA_TARGET_FLAGS); do \
36933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36934 done; \
1b6c0831 36935 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
36936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36938 "RANLIB=$${RANLIB}" \
0c24b341 36939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
36940 install-pdf) \
36941 || exit 1
36942
1b6c0831 36943@endif target-libsanitizer
a3ca38d2 36944
1b6c0831
L
36945.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
36946maybe-install-html-target-libsanitizer:
36947@if target-libsanitizer
36948maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 36949
1b6c0831
L
36950install-html-target-libsanitizer: \
36951 configure-target-libsanitizer \
36952 html-target-libsanitizer
108a6f8e 36953 @: $(MAKE); $(unstage)
22121df0 36954 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
36955 r=`${PWD_COMMAND}`; export r; \
36956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36957 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36958 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
36959 for flag in $(EXTRA_TARGET_FLAGS); do \
36960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36961 done; \
1b6c0831 36962 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
36963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36965 "RANLIB=$${RANLIB}" \
0c24b341 36966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
36967 install-html) \
36968 || exit 1
36969
1b6c0831 36970@endif target-libsanitizer
108a6f8e 36971
1b6c0831
L
36972.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
36973maybe-installcheck-target-libsanitizer:
36974@if target-libsanitizer
36975maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 36976
1b6c0831
L
36977installcheck-target-libsanitizer: \
36978 configure-target-libsanitizer
0aed8855 36979 @: $(MAKE); $(unstage)
22121df0 36980 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36981 r=`${PWD_COMMAND}`; export r; \
b40e3958 36982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36983 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36984 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36985 for flag in $(EXTRA_TARGET_FLAGS); do \
36986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36987 done; \
1b6c0831 36988 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36991 "RANLIB=$${RANLIB}" \
0c24b341 36992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36993 installcheck) \
4fa63067 36994 || exit 1
3866be5d 36995
1b6c0831 36996@endif target-libsanitizer
3866be5d 36997
1b6c0831
L
36998.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
36999maybe-mostlyclean-target-libsanitizer:
37000@if target-libsanitizer
37001maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 37002
1b6c0831 37003mostlyclean-target-libsanitizer:
0aed8855 37004 @: $(MAKE); $(unstage)
22121df0 37005 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
37006 r=`${PWD_COMMAND}`; export r; \
37007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37008 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37009 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37010 for flag in $(EXTRA_TARGET_FLAGS); do \
37011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37012 done; \
1b6c0831 37013 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37016 "RANLIB=$${RANLIB}" \
0c24b341 37017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37018 mostlyclean) \
e2b9e2dc
NN
37019 || exit 1
37020
1b6c0831 37021@endif target-libsanitizer
4fa63067 37022
1b6c0831
L
37023.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
37024maybe-clean-target-libsanitizer:
37025@if target-libsanitizer
37026maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 37027
1b6c0831 37028clean-target-libsanitizer:
0aed8855 37029 @: $(MAKE); $(unstage)
22121df0 37030 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37031 r=`${PWD_COMMAND}`; export r; \
b40e3958 37032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37033 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37034 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37035 for flag in $(EXTRA_TARGET_FLAGS); do \
37036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37037 done; \
1b6c0831 37038 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37041 "RANLIB=$${RANLIB}" \
0c24b341 37042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37043 clean) \
4fa63067 37044 || exit 1
3866be5d 37045
1b6c0831 37046@endif target-libsanitizer
3866be5d 37047
1b6c0831
L
37048.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
37049maybe-distclean-target-libsanitizer:
37050@if target-libsanitizer
37051maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 37052
1b6c0831 37053distclean-target-libsanitizer:
0aed8855 37054 @: $(MAKE); $(unstage)
22121df0 37055 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37056 r=`${PWD_COMMAND}`; export r; \
b40e3958 37057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37058 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37059 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37060 for flag in $(EXTRA_TARGET_FLAGS); do \
37061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37062 done; \
1b6c0831 37063 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37066 "RANLIB=$${RANLIB}" \
0c24b341 37067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37068 distclean) \
4fa63067 37069 || exit 1
3866be5d 37070
1b6c0831 37071@endif target-libsanitizer
3866be5d 37072
1b6c0831
L
37073.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
37074maybe-maintainer-clean-target-libsanitizer:
37075@if target-libsanitizer
37076maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 37077
1b6c0831 37078maintainer-clean-target-libsanitizer:
0aed8855 37079 @: $(MAKE); $(unstage)
22121df0 37080 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37081 r=`${PWD_COMMAND}`; export r; \
b40e3958 37082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37083 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37084 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37085 for flag in $(EXTRA_TARGET_FLAGS); do \
37086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37087 done; \
1b6c0831 37088 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37091 "RANLIB=$${RANLIB}" \
0c24b341 37092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37093 maintainer-clean) \
4fa63067 37094 || exit 1
3866be5d 37095
1b6c0831 37096@endif target-libsanitizer
3866be5d 37097
4fa63067 37098
4fa63067 37099
a7254363
PB
37100
37101
1b6c0831
L
37102.PHONY: configure-target-libmpx maybe-configure-target-libmpx
37103maybe-configure-target-libmpx:
5286fdef 37104@if gcc-bootstrap
1b6c0831 37105configure-target-libmpx: stage_current
5286fdef 37106@endif gcc-bootstrap
1b6c0831
L
37107@if target-libmpx
37108maybe-configure-target-libmpx: configure-target-libmpx
37109configure-target-libmpx:
5286fdef
L
37110 @r=`${PWD_COMMAND}`; export r; \
37111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37112 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
37113 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
37114 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37115 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37116 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37117 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 37118 else \
1b6c0831
L
37119 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37120 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
37121 fi; \
37122 else \
1b6c0831 37123 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 37124 fi; \
1b6c0831 37125 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 37126 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
37127 $(NORMAL_TARGET_EXPORTS) \
37128 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
37129 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
37130 case $(srcdir) in \
37131 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37132 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
37133 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37134 esac; \
1b6c0831 37135 module_srcdir=libmpx; \
5286fdef 37136 rm -f no-such-file || : ; \
1b6c0831
L
37137 CONFIG_SITE=no-such-file $(SHELL) \
37138 $$s/$$module_srcdir/configure \
37139 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 37140 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37141 --target=${target_alias} \
5286fdef 37142 || exit 1
1b6c0831 37143@endif target-libmpx
5286fdef
L
37144
37145
37146
1b6c0831
L
37147.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
37148maybe-configure-stage1-target-libmpx:
37149@if target-libmpx-bootstrap
37150maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
37151configure-stage1-target-libmpx:
5eb08693 37152 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 37153 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37154 @r=`${PWD_COMMAND}`; export r; \
37155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37156 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 37157 echo "Checking multilib configuration for libmpx..."; \
22121df0 37158 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37159 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37160 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37161 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37162 else \
1b6c0831
L
37163 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37164 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37165 fi; \
37166 else \
1b6c0831 37167 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37168 fi; \
1b6c0831
L
37169 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37170 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37171 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37172 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37173 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37174 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
37175 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37176 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37177 case $(srcdir) in \
37178 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37179 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37180 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37181 esac; \
1b6c0831
L
37182 module_srcdir=libmpx; \
37183 $(SHELL) $$s/$$module_srcdir/configure \
37184 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37185 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
37186 --target=${target_alias} \
37187 \
5eb08693 37188 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 37189@endif target-libmpx-bootstrap
5eb08693 37190
1b6c0831
L
37191.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
37192maybe-configure-stage2-target-libmpx:
37193@if target-libmpx-bootstrap
37194maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
37195configure-stage2-target-libmpx:
5eb08693 37196 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 37197 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37198 @r=`${PWD_COMMAND}`; export r; \
37199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37200 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 37201 echo "Checking multilib configuration for libmpx..."; \
22121df0 37202 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37203 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37204 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37205 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37206 else \
1b6c0831
L
37207 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37208 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37209 fi; \
37210 else \
1b6c0831 37211 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37212 fi; \
1b6c0831
L
37213 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37214 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37215 \
37216 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37217 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37218 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37219 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
37220 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37221 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37222 case $(srcdir) in \
37223 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37224 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37225 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37226 esac; \
1b6c0831
L
37227 module_srcdir=libmpx; \
37228 $(SHELL) $$s/$$module_srcdir/configure \
37229 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37230 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37231 --target=${target_alias} \
22121df0 37232 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37233 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 37234@endif target-libmpx-bootstrap
5eb08693 37235
1b6c0831
L
37236.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
37237maybe-configure-stage3-target-libmpx:
37238@if target-libmpx-bootstrap
37239maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
37240configure-stage3-target-libmpx:
5eb08693 37241 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 37242 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37243 @r=`${PWD_COMMAND}`; export r; \
37244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37245 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 37246 echo "Checking multilib configuration for libmpx..."; \
22121df0 37247 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37248 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37249 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37250 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37251 else \
1b6c0831
L
37252 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37253 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37254 fi; \
37255 else \
1b6c0831 37256 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37257 fi; \
1b6c0831
L
37258 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37259 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37260 \
37261 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37262 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37263 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37264 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
37265 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37266 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37267 case $(srcdir) in \
37268 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37269 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37270 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37271 esac; \
1b6c0831
L
37272 module_srcdir=libmpx; \
37273 $(SHELL) $$s/$$module_srcdir/configure \
37274 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37275 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37276 --target=${target_alias} \
22121df0 37277 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37278 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 37279@endif target-libmpx-bootstrap
5eb08693 37280
1b6c0831
L
37281.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
37282maybe-configure-stage4-target-libmpx:
37283@if target-libmpx-bootstrap
37284maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
37285configure-stage4-target-libmpx:
5eb08693 37286 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 37287 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37288 @r=`${PWD_COMMAND}`; export r; \
37289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37290 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 37291 echo "Checking multilib configuration for libmpx..."; \
22121df0 37292 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37293 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37294 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37295 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37296 else \
1b6c0831
L
37297 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37298 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37299 fi; \
37300 else \
1b6c0831 37301 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37302 fi; \
1b6c0831
L
37303 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37304 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37305 \
37306 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37307 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37308 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37309 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
37310 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37311 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37312 case $(srcdir) in \
37313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37314 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37316 esac; \
1b6c0831
L
37317 module_srcdir=libmpx; \
37318 $(SHELL) $$s/$$module_srcdir/configure \
37319 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37320 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37321 --target=${target_alias} \
22121df0 37322 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37323 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 37324@endif target-libmpx-bootstrap
5eb08693 37325
1b6c0831
L
37326.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
37327maybe-configure-stageprofile-target-libmpx:
37328@if target-libmpx-bootstrap
37329maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
37330configure-stageprofile-target-libmpx:
5eb08693 37331 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 37332 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37333 @r=`${PWD_COMMAND}`; export r; \
37334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37335 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 37336 echo "Checking multilib configuration for libmpx..."; \
22121df0 37337 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37338 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37339 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37340 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37341 else \
1b6c0831
L
37342 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37343 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37344 fi; \
37345 else \
1b6c0831 37346 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37347 fi; \
1b6c0831
L
37348 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37349 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37350 \
37351 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37352 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37353 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37354 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
37355 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37356 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37357 case $(srcdir) in \
37358 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37359 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37360 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37361 esac; \
1b6c0831
L
37362 module_srcdir=libmpx; \
37363 $(SHELL) $$s/$$module_srcdir/configure \
37364 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37365 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37366 --target=${target_alias} \
22121df0 37367 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37368 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 37369@endif target-libmpx-bootstrap
5eb08693 37370
1b6c0831
L
37371.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
37372maybe-configure-stagefeedback-target-libmpx:
37373@if target-libmpx-bootstrap
37374maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
37375configure-stagefeedback-target-libmpx:
5eb08693 37376 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 37377 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37378 @r=`${PWD_COMMAND}`; export r; \
37379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37380 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 37381 echo "Checking multilib configuration for libmpx..."; \
22121df0 37382 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37383 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37384 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37385 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37386 else \
1b6c0831
L
37387 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37388 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37389 fi; \
37390 else \
1b6c0831 37391 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37392 fi; \
1b6c0831
L
37393 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37394 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37395 \
37396 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37397 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37398 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37399 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
37400 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37401 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37402 case $(srcdir) in \
37403 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37404 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37405 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37406 esac; \
1b6c0831
L
37407 module_srcdir=libmpx; \
37408 $(SHELL) $$s/$$module_srcdir/configure \
37409 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37410 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37411 --target=${target_alias} \
22121df0 37412 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37413 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 37414@endif target-libmpx-bootstrap
5eb08693
L
37415
37416
37417
5286fdef
L
37418
37419
1b6c0831
L
37420.PHONY: all-target-libmpx maybe-all-target-libmpx
37421maybe-all-target-libmpx:
5286fdef 37422@if gcc-bootstrap
1b6c0831 37423all-target-libmpx: stage_current
5286fdef 37424@endif gcc-bootstrap
1b6c0831
L
37425@if target-libmpx
37426TARGET-target-libmpx=all
37427maybe-all-target-libmpx: all-target-libmpx
37428all-target-libmpx: configure-target-libmpx
5286fdef
L
37429 @r=`${PWD_COMMAND}`; export r; \
37430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37431 $(NORMAL_TARGET_EXPORTS) \
37432 (cd $(TARGET_SUBDIR)/libmpx && \
37433 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37434 $(TARGET-target-libmpx))
37435@endif target-libmpx
5286fdef
L
37436
37437
37438
1b6c0831
L
37439.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
37440.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
37441maybe-all-stage1-target-libmpx:
37442maybe-clean-stage1-target-libmpx:
37443@if target-libmpx-bootstrap
37444maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
37445all-stage1: all-stage1-target-libmpx
37446TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
37447all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
37448 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37449 @r=`${PWD_COMMAND}`; export r; \
37450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37451 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
37452 $(NORMAL_TARGET_EXPORTS) \
37453 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37454 \
5eb08693
L
37455 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37456 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37457 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37458 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37459 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37460 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37461 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37462 $(EXTRA_TARGET_FLAGS) \
5eb08693 37463 \
05a13254 37464 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 37465 $(TARGET-stage1-target-libmpx)
5eb08693 37466
1b6c0831
L
37467maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
37468clean-stage1: clean-stage1-target-libmpx
37469clean-stage1-target-libmpx:
5eb08693 37470 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 37471 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37472 else \
1b6c0831 37473 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
37474 $(MAKE) stage1-start; \
37475 fi; \
1b6c0831
L
37476 cd $(TARGET_SUBDIR)/libmpx && \
37477 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 37478 clean
1b6c0831
L
37479@endif target-libmpx-bootstrap
37480
37481
37482.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
37483.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
37484maybe-all-stage2-target-libmpx:
37485maybe-clean-stage2-target-libmpx:
37486@if target-libmpx-bootstrap
37487maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
37488all-stage2: all-stage2-target-libmpx
37489TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
37490all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
37491 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37492 @r=`${PWD_COMMAND}`; export r; \
37493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37494 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 37495 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37496 \
1b6c0831 37497 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37498 \
5eb08693
L
37499 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37500 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37501 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37502 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37503 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37504 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37505 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37506 $(EXTRA_TARGET_FLAGS) \
05a13254 37507 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 37508 $(TARGET-stage2-target-libmpx)
5eb08693 37509
1b6c0831
L
37510maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
37511clean-stage2: clean-stage2-target-libmpx
37512clean-stage2-target-libmpx:
5eb08693 37513 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 37514 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37515 else \
1b6c0831 37516 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
37517 $(MAKE) stage2-start; \
37518 fi; \
1b6c0831
L
37519 cd $(TARGET_SUBDIR)/libmpx && \
37520 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37521@endif target-libmpx-bootstrap
37522
37523
37524.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
37525.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
37526maybe-all-stage3-target-libmpx:
37527maybe-clean-stage3-target-libmpx:
37528@if target-libmpx-bootstrap
37529maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
37530all-stage3: all-stage3-target-libmpx
37531TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
37532all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
37533 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37534 @r=`${PWD_COMMAND}`; export r; \
37535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37536 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 37537 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37538 \
1b6c0831 37539 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37540 \
5eb08693
L
37541 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37542 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37543 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37544 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37545 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37546 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37547 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37548 $(EXTRA_TARGET_FLAGS) \
05a13254 37549 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 37550 $(TARGET-stage3-target-libmpx)
5eb08693 37551
1b6c0831
L
37552maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
37553clean-stage3: clean-stage3-target-libmpx
37554clean-stage3-target-libmpx:
5eb08693 37555 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 37556 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37557 else \
1b6c0831 37558 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
37559 $(MAKE) stage3-start; \
37560 fi; \
1b6c0831
L
37561 cd $(TARGET_SUBDIR)/libmpx && \
37562 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37563@endif target-libmpx-bootstrap
37564
37565
37566.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
37567.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
37568maybe-all-stage4-target-libmpx:
37569maybe-clean-stage4-target-libmpx:
37570@if target-libmpx-bootstrap
37571maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
37572all-stage4: all-stage4-target-libmpx
37573TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
37574all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
37575 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37576 @r=`${PWD_COMMAND}`; export r; \
37577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37578 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 37579 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37580 \
1b6c0831 37581 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37582 \
5eb08693
L
37583 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37584 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37585 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37586 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37587 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37588 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37589 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37590 $(EXTRA_TARGET_FLAGS) \
05a13254 37591 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 37592 $(TARGET-stage4-target-libmpx)
5eb08693 37593
1b6c0831
L
37594maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
37595clean-stage4: clean-stage4-target-libmpx
37596clean-stage4-target-libmpx:
5eb08693 37597 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 37598 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37599 else \
1b6c0831 37600 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
37601 $(MAKE) stage4-start; \
37602 fi; \
1b6c0831
L
37603 cd $(TARGET_SUBDIR)/libmpx && \
37604 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37605@endif target-libmpx-bootstrap
37606
37607
37608.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
37609.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
37610maybe-all-stageprofile-target-libmpx:
37611maybe-clean-stageprofile-target-libmpx:
37612@if target-libmpx-bootstrap
37613maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
37614all-stageprofile: all-stageprofile-target-libmpx
37615TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
37616all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
37617 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37618 @r=`${PWD_COMMAND}`; export r; \
37619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37620 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 37621 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37622 \
1b6c0831 37623 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37624 \
5eb08693
L
37625 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37626 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37627 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37628 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37629 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37630 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37631 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37632 $(EXTRA_TARGET_FLAGS) \
05a13254 37633 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 37634 $(TARGET-stageprofile-target-libmpx)
5eb08693 37635
1b6c0831
L
37636maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
37637clean-stageprofile: clean-stageprofile-target-libmpx
37638clean-stageprofile-target-libmpx:
5eb08693 37639 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 37640 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37641 else \
1b6c0831 37642 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
37643 $(MAKE) stageprofile-start; \
37644 fi; \
1b6c0831
L
37645 cd $(TARGET_SUBDIR)/libmpx && \
37646 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37647@endif target-libmpx-bootstrap
37648
37649
37650.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
37651.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
37652maybe-all-stagefeedback-target-libmpx:
37653maybe-clean-stagefeedback-target-libmpx:
37654@if target-libmpx-bootstrap
37655maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
37656all-stagefeedback: all-stagefeedback-target-libmpx
37657TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
37658all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
37659 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37660 @r=`${PWD_COMMAND}`; export r; \
37661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37662 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 37663 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37664 \
1b6c0831 37665 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37666 \
5eb08693
L
37667 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37668 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37669 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37670 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37671 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37672 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37673 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37674 $(EXTRA_TARGET_FLAGS) \
05a13254 37675 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 37676 $(TARGET-stagefeedback-target-libmpx)
5eb08693 37677
1b6c0831
L
37678maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
37679clean-stagefeedback: clean-stagefeedback-target-libmpx
37680clean-stagefeedback-target-libmpx:
5eb08693 37681 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 37682 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37683 else \
1b6c0831 37684 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
37685 $(MAKE) stagefeedback-start; \
37686 fi; \
1b6c0831
L
37687 cd $(TARGET_SUBDIR)/libmpx && \
37688 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37689@endif target-libmpx-bootstrap
5eb08693
L
37690
37691
37692
37693
5286fdef
L
37694
37695
1b6c0831
L
37696.PHONY: check-target-libmpx maybe-check-target-libmpx
37697maybe-check-target-libmpx:
37698@if target-libmpx
37699maybe-check-target-libmpx: check-target-libmpx
5286fdef 37700
1b6c0831 37701check-target-libmpx:
5286fdef
L
37702 @: $(MAKE); $(unstage)
37703 @r=`${PWD_COMMAND}`; export r; \
37704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37705 $(NORMAL_TARGET_EXPORTS) \
37706 (cd $(TARGET_SUBDIR)/libmpx && \
37707 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 37708
1b6c0831 37709@endif target-libmpx
5286fdef 37710
1b6c0831
L
37711.PHONY: install-target-libmpx maybe-install-target-libmpx
37712maybe-install-target-libmpx:
37713@if target-libmpx
37714maybe-install-target-libmpx: install-target-libmpx
5286fdef 37715
1b6c0831 37716install-target-libmpx: installdirs
5286fdef
L
37717 @: $(MAKE); $(unstage)
37718 @r=`${PWD_COMMAND}`; export r; \
37719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37720 $(NORMAL_TARGET_EXPORTS) \
37721 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37722 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37723
1b6c0831 37724@endif target-libmpx
5286fdef 37725
1b6c0831
L
37726.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
37727maybe-install-strip-target-libmpx:
37728@if target-libmpx
37729maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 37730
1b6c0831 37731install-strip-target-libmpx: installdirs
5286fdef
L
37732 @: $(MAKE); $(unstage)
37733 @r=`${PWD_COMMAND}`; export r; \
37734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37735 $(NORMAL_TARGET_EXPORTS) \
37736 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37737 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37738
1b6c0831 37739@endif target-libmpx
5286fdef
L
37740
37741# Other targets (info, dvi, pdf, etc.)
37742
1b6c0831
L
37743.PHONY: maybe-info-target-libmpx info-target-libmpx
37744maybe-info-target-libmpx:
37745@if target-libmpx
37746maybe-info-target-libmpx: info-target-libmpx
5286fdef 37747
1b6c0831
L
37748info-target-libmpx: \
37749 configure-target-libmpx
5286fdef 37750 @: $(MAKE); $(unstage)
22121df0 37751 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37752 r=`${PWD_COMMAND}`; export r; \
37753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37754 $(NORMAL_TARGET_EXPORTS) \
22121df0 37755 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37756 for flag in $(EXTRA_TARGET_FLAGS); do \
37757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37758 done; \
1b6c0831 37759 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37762 "RANLIB=$${RANLIB}" \
37763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37764 info) \
37765 || exit 1
37766
1b6c0831 37767@endif target-libmpx
5286fdef 37768
1b6c0831
L
37769.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
37770maybe-dvi-target-libmpx:
37771@if target-libmpx
37772maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 37773
1b6c0831
L
37774dvi-target-libmpx: \
37775 configure-target-libmpx
5286fdef 37776 @: $(MAKE); $(unstage)
22121df0 37777 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37778 r=`${PWD_COMMAND}`; export r; \
37779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37780 $(NORMAL_TARGET_EXPORTS) \
22121df0 37781 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37782 for flag in $(EXTRA_TARGET_FLAGS); do \
37783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37784 done; \
1b6c0831 37785 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37788 "RANLIB=$${RANLIB}" \
37789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37790 dvi) \
37791 || exit 1
37792
1b6c0831 37793@endif target-libmpx
5286fdef 37794
1b6c0831
L
37795.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
37796maybe-pdf-target-libmpx:
37797@if target-libmpx
37798maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 37799
1b6c0831
L
37800pdf-target-libmpx: \
37801 configure-target-libmpx
5286fdef 37802 @: $(MAKE); $(unstage)
22121df0 37803 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37804 r=`${PWD_COMMAND}`; export r; \
37805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37806 $(NORMAL_TARGET_EXPORTS) \
22121df0 37807 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37808 for flag in $(EXTRA_TARGET_FLAGS); do \
37809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37810 done; \
1b6c0831 37811 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37814 "RANLIB=$${RANLIB}" \
37815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37816 pdf) \
37817 || exit 1
37818
1b6c0831 37819@endif target-libmpx
5286fdef 37820
1b6c0831
L
37821.PHONY: maybe-html-target-libmpx html-target-libmpx
37822maybe-html-target-libmpx:
37823@if target-libmpx
37824maybe-html-target-libmpx: html-target-libmpx
5286fdef 37825
1b6c0831
L
37826html-target-libmpx: \
37827 configure-target-libmpx
5286fdef 37828 @: $(MAKE); $(unstage)
22121df0 37829 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37830 r=`${PWD_COMMAND}`; export r; \
37831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37832 $(NORMAL_TARGET_EXPORTS) \
22121df0 37833 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37834 for flag in $(EXTRA_TARGET_FLAGS); do \
37835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37836 done; \
1b6c0831 37837 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37840 "RANLIB=$${RANLIB}" \
37841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37842 html) \
37843 || exit 1
37844
1b6c0831 37845@endif target-libmpx
5286fdef 37846
1b6c0831
L
37847.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
37848maybe-TAGS-target-libmpx:
37849@if target-libmpx
37850maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 37851
1b6c0831
L
37852TAGS-target-libmpx: \
37853 configure-target-libmpx
5286fdef 37854 @: $(MAKE); $(unstage)
22121df0 37855 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37856 r=`${PWD_COMMAND}`; export r; \
37857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37858 $(NORMAL_TARGET_EXPORTS) \
22121df0 37859 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37860 for flag in $(EXTRA_TARGET_FLAGS); do \
37861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37862 done; \
1b6c0831 37863 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37866 "RANLIB=$${RANLIB}" \
37867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37868 TAGS) \
37869 || exit 1
37870
1b6c0831 37871@endif target-libmpx
5286fdef 37872
1b6c0831
L
37873.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
37874maybe-install-info-target-libmpx:
37875@if target-libmpx
37876maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 37877
1b6c0831
L
37878install-info-target-libmpx: \
37879 configure-target-libmpx \
37880 info-target-libmpx
5286fdef 37881 @: $(MAKE); $(unstage)
22121df0 37882 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37883 r=`${PWD_COMMAND}`; export r; \
37884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37885 $(NORMAL_TARGET_EXPORTS) \
22121df0 37886 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37887 for flag in $(EXTRA_TARGET_FLAGS); do \
37888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37889 done; \
1b6c0831 37890 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37893 "RANLIB=$${RANLIB}" \
37894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37895 install-info) \
37896 || exit 1
37897
1b6c0831 37898@endif target-libmpx
5286fdef 37899
1b6c0831
L
37900.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
37901maybe-install-pdf-target-libmpx:
37902@if target-libmpx
37903maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 37904
1b6c0831
L
37905install-pdf-target-libmpx: \
37906 configure-target-libmpx \
37907 pdf-target-libmpx
5286fdef 37908 @: $(MAKE); $(unstage)
22121df0 37909 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37910 r=`${PWD_COMMAND}`; export r; \
37911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37912 $(NORMAL_TARGET_EXPORTS) \
22121df0 37913 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37914 for flag in $(EXTRA_TARGET_FLAGS); do \
37915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37916 done; \
1b6c0831 37917 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37920 "RANLIB=$${RANLIB}" \
37921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37922 install-pdf) \
37923 || exit 1
37924
1b6c0831 37925@endif target-libmpx
5286fdef 37926
1b6c0831
L
37927.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
37928maybe-install-html-target-libmpx:
37929@if target-libmpx
37930maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 37931
1b6c0831
L
37932install-html-target-libmpx: \
37933 configure-target-libmpx \
37934 html-target-libmpx
5286fdef 37935 @: $(MAKE); $(unstage)
22121df0 37936 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37937 r=`${PWD_COMMAND}`; export r; \
37938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37939 $(NORMAL_TARGET_EXPORTS) \
22121df0 37940 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37941 for flag in $(EXTRA_TARGET_FLAGS); do \
37942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37943 done; \
1b6c0831 37944 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37947 "RANLIB=$${RANLIB}" \
37948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37949 install-html) \
37950 || exit 1
37951
1b6c0831 37952@endif target-libmpx
5286fdef 37953
1b6c0831
L
37954.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
37955maybe-installcheck-target-libmpx:
37956@if target-libmpx
37957maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 37958
1b6c0831
L
37959installcheck-target-libmpx: \
37960 configure-target-libmpx
5286fdef 37961 @: $(MAKE); $(unstage)
22121df0 37962 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37963 r=`${PWD_COMMAND}`; export r; \
37964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37965 $(NORMAL_TARGET_EXPORTS) \
22121df0 37966 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37967 for flag in $(EXTRA_TARGET_FLAGS); do \
37968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37969 done; \
1b6c0831 37970 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37973 "RANLIB=$${RANLIB}" \
37974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37975 installcheck) \
37976 || exit 1
37977
1b6c0831 37978@endif target-libmpx
5286fdef 37979
1b6c0831
L
37980.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
37981maybe-mostlyclean-target-libmpx:
37982@if target-libmpx
37983maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 37984
1b6c0831 37985mostlyclean-target-libmpx:
5286fdef 37986 @: $(MAKE); $(unstage)
22121df0 37987 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37988 r=`${PWD_COMMAND}`; export r; \
37989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37990 $(NORMAL_TARGET_EXPORTS) \
22121df0 37991 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37992 for flag in $(EXTRA_TARGET_FLAGS); do \
37993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37994 done; \
1b6c0831 37995 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37998 "RANLIB=$${RANLIB}" \
37999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38000 mostlyclean) \
38001 || exit 1
38002
1b6c0831 38003@endif target-libmpx
5286fdef 38004
1b6c0831
L
38005.PHONY: maybe-clean-target-libmpx clean-target-libmpx
38006maybe-clean-target-libmpx:
38007@if target-libmpx
38008maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 38009
1b6c0831 38010clean-target-libmpx:
5286fdef 38011 @: $(MAKE); $(unstage)
22121df0 38012 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38013 r=`${PWD_COMMAND}`; export r; \
38014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38015 $(NORMAL_TARGET_EXPORTS) \
22121df0 38016 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38017 for flag in $(EXTRA_TARGET_FLAGS); do \
38018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38019 done; \
1b6c0831 38020 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38023 "RANLIB=$${RANLIB}" \
38024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38025 clean) \
38026 || exit 1
38027
1b6c0831 38028@endif target-libmpx
5286fdef 38029
1b6c0831
L
38030.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
38031maybe-distclean-target-libmpx:
38032@if target-libmpx
38033maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 38034
1b6c0831 38035distclean-target-libmpx:
5286fdef 38036 @: $(MAKE); $(unstage)
22121df0 38037 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38038 r=`${PWD_COMMAND}`; export r; \
38039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38040 $(NORMAL_TARGET_EXPORTS) \
22121df0 38041 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38042 for flag in $(EXTRA_TARGET_FLAGS); do \
38043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38044 done; \
1b6c0831 38045 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38048 "RANLIB=$${RANLIB}" \
38049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38050 distclean) \
38051 || exit 1
38052
1b6c0831 38053@endif target-libmpx
5286fdef 38054
1b6c0831
L
38055.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
38056maybe-maintainer-clean-target-libmpx:
38057@if target-libmpx
38058maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 38059
1b6c0831 38060maintainer-clean-target-libmpx:
5286fdef 38061 @: $(MAKE); $(unstage)
22121df0 38062 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38063 r=`${PWD_COMMAND}`; export r; \
38064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38065 $(NORMAL_TARGET_EXPORTS) \
22121df0 38066 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38067 for flag in $(EXTRA_TARGET_FLAGS); do \
38068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38069 done; \
1b6c0831 38070 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38073 "RANLIB=$${RANLIB}" \
38074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38075 maintainer-clean) \
38076 || exit 1
38077
1b6c0831 38078@endif target-libmpx
5286fdef
L
38079
38080
38081
38082
38083
95e43135
JBG
38084.PHONY: configure-target-libvtv maybe-configure-target-libvtv
38085maybe-configure-target-libvtv:
38086@if gcc-bootstrap
38087configure-target-libvtv: stage_current
38088@endif gcc-bootstrap
38089@if target-libvtv
38090maybe-configure-target-libvtv: configure-target-libvtv
38091configure-target-libvtv:
38092 @r=`${PWD_COMMAND}`; export r; \
38093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38094 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
38095 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
38096 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38097 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38098 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38099 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38100 else \
38101 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38102 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38103 fi; \
38104 else \
38105 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38106 fi; \
38107 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 38108 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38109 $(RAW_CXX_TARGET_EXPORTS) \
38110 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
38111 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
38112 case $(srcdir) in \
38113 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38114 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38115 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38116 esac; \
1b6c0831 38117 module_srcdir=libvtv; \
95e43135 38118 rm -f no-such-file || : ; \
1b6c0831
L
38119 CONFIG_SITE=no-such-file $(SHELL) \
38120 $$s/$$module_srcdir/configure \
38121 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38122 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38123 --target=${target_alias} \
95e43135
JBG
38124 || exit 1
38125@endif target-libvtv
38126
38127
38128
38129.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
38130maybe-configure-stage1-target-libvtv:
38131@if target-libvtv-bootstrap
38132maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
38133configure-stage1-target-libvtv:
38134 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38135 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38136 @r=`${PWD_COMMAND}`; export r; \
38137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38138 TFLAGS="$(STAGE1_TFLAGS)"; \
38139 echo "Checking multilib configuration for libvtv..."; \
22121df0 38140 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38141 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38142 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38143 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38144 else \
38145 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38146 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38147 fi; \
38148 else \
38149 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38150 fi; \
38151 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38152 $(RAW_CXX_TARGET_EXPORTS) \
38153 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38154 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38155 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38156 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
38157 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38158 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38159 case $(srcdir) in \
38160 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38161 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38162 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38163 esac; \
1b6c0831
L
38164 module_srcdir=libvtv; \
38165 $(SHELL) $$s/$$module_srcdir/configure \
38166 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38167 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38168 --target=${target_alias} \
38169 \
95e43135
JBG
38170 $(STAGE1_CONFIGURE_FLAGS)
38171@endif target-libvtv-bootstrap
38172
38173.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
38174maybe-configure-stage2-target-libvtv:
38175@if target-libvtv-bootstrap
38176maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
38177configure-stage2-target-libvtv:
38178 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38179 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38180 @r=`${PWD_COMMAND}`; export r; \
38181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38182 TFLAGS="$(STAGE2_TFLAGS)"; \
38183 echo "Checking multilib configuration for libvtv..."; \
22121df0 38184 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38185 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38186 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38187 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38188 else \
38189 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38190 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38191 fi; \
38192 else \
38193 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38194 fi; \
38195 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38196 $(RAW_CXX_TARGET_EXPORTS) \
38197 \
38198 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38199 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38200 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38201 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
38202 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38203 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38204 case $(srcdir) in \
38205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38206 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38208 esac; \
1b6c0831
L
38209 module_srcdir=libvtv; \
38210 $(SHELL) $$s/$$module_srcdir/configure \
38211 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38212 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38213 --target=${target_alias} \
22121df0 38214 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38215 $(STAGE2_CONFIGURE_FLAGS)
38216@endif target-libvtv-bootstrap
38217
38218.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
38219maybe-configure-stage3-target-libvtv:
38220@if target-libvtv-bootstrap
38221maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
38222configure-stage3-target-libvtv:
38223 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38224 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38225 @r=`${PWD_COMMAND}`; export r; \
38226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38227 TFLAGS="$(STAGE3_TFLAGS)"; \
38228 echo "Checking multilib configuration for libvtv..."; \
22121df0 38229 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38230 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38231 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38232 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38233 else \
38234 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38235 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38236 fi; \
38237 else \
38238 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38239 fi; \
38240 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38241 $(RAW_CXX_TARGET_EXPORTS) \
38242 \
38243 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38244 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38245 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38246 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
38247 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38248 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38249 case $(srcdir) in \
38250 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38251 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38252 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38253 esac; \
1b6c0831
L
38254 module_srcdir=libvtv; \
38255 $(SHELL) $$s/$$module_srcdir/configure \
38256 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38257 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38258 --target=${target_alias} \
22121df0 38259 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38260 $(STAGE3_CONFIGURE_FLAGS)
38261@endif target-libvtv-bootstrap
38262
38263.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
38264maybe-configure-stage4-target-libvtv:
38265@if target-libvtv-bootstrap
38266maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
38267configure-stage4-target-libvtv:
38268 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38269 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38270 @r=`${PWD_COMMAND}`; export r; \
38271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38272 TFLAGS="$(STAGE4_TFLAGS)"; \
38273 echo "Checking multilib configuration for libvtv..."; \
22121df0 38274 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38275 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38276 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38277 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38278 else \
38279 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38280 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38281 fi; \
38282 else \
38283 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38284 fi; \
38285 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38286 $(RAW_CXX_TARGET_EXPORTS) \
38287 \
38288 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38289 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38290 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38291 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
38292 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38293 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38294 case $(srcdir) in \
38295 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38296 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38297 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38298 esac; \
1b6c0831
L
38299 module_srcdir=libvtv; \
38300 $(SHELL) $$s/$$module_srcdir/configure \
38301 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38302 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38303 --target=${target_alias} \
22121df0 38304 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38305 $(STAGE4_CONFIGURE_FLAGS)
38306@endif target-libvtv-bootstrap
38307
38308.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
38309maybe-configure-stageprofile-target-libvtv:
38310@if target-libvtv-bootstrap
38311maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
38312configure-stageprofile-target-libvtv:
38313 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38314 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38315 @r=`${PWD_COMMAND}`; export r; \
38316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38317 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38318 echo "Checking multilib configuration for libvtv..."; \
22121df0 38319 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38320 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38321 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38322 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38323 else \
38324 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38325 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38326 fi; \
38327 else \
38328 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38329 fi; \
38330 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38331 $(RAW_CXX_TARGET_EXPORTS) \
38332 \
38333 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38334 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38335 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38336 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
38337 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38338 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38339 case $(srcdir) in \
38340 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38341 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38342 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38343 esac; \
1b6c0831
L
38344 module_srcdir=libvtv; \
38345 $(SHELL) $$s/$$module_srcdir/configure \
38346 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38347 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38348 --target=${target_alias} \
22121df0 38349 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38350 $(STAGEprofile_CONFIGURE_FLAGS)
38351@endif target-libvtv-bootstrap
38352
38353.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
38354maybe-configure-stagefeedback-target-libvtv:
38355@if target-libvtv-bootstrap
38356maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
38357configure-stagefeedback-target-libvtv:
38358 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38359 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38360 @r=`${PWD_COMMAND}`; export r; \
38361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38362 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38363 echo "Checking multilib configuration for libvtv..."; \
22121df0 38364 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38365 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38366 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38367 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38368 else \
38369 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38370 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38371 fi; \
38372 else \
38373 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38374 fi; \
38375 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38376 $(RAW_CXX_TARGET_EXPORTS) \
38377 \
38378 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38379 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38380 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38381 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
38382 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38383 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38384 case $(srcdir) in \
38385 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38386 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38387 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38388 esac; \
1b6c0831
L
38389 module_srcdir=libvtv; \
38390 $(SHELL) $$s/$$module_srcdir/configure \
38391 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38392 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38393 --target=${target_alias} \
22121df0 38394 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38395 $(STAGEfeedback_CONFIGURE_FLAGS)
38396@endif target-libvtv-bootstrap
38397
38398
38399
38400
38401
38402.PHONY: all-target-libvtv maybe-all-target-libvtv
38403maybe-all-target-libvtv:
38404@if gcc-bootstrap
38405all-target-libvtv: stage_current
38406@endif gcc-bootstrap
38407@if target-libvtv
38408TARGET-target-libvtv=all
38409maybe-all-target-libvtv: all-target-libvtv
38410all-target-libvtv: configure-target-libvtv
38411 @r=`${PWD_COMMAND}`; export r; \
38412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38413 $(RAW_CXX_TARGET_EXPORTS) \
38414 (cd $(TARGET_SUBDIR)/libvtv && \
38415 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
38416 $(TARGET-target-libvtv))
38417@endif target-libvtv
38418
38419
38420
38421.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
38422.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
38423maybe-all-stage1-target-libvtv:
38424maybe-clean-stage1-target-libvtv:
38425@if target-libvtv-bootstrap
38426maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
38427all-stage1: all-stage1-target-libvtv
38428TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
38429all-stage1-target-libvtv: configure-stage1-target-libvtv
38430 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38431 @r=`${PWD_COMMAND}`; export r; \
38432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38433 TFLAGS="$(STAGE1_TFLAGS)"; \
38434 $(RAW_CXX_TARGET_EXPORTS) \
38435 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38436 \
95e43135
JBG
38437 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38438 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38439 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38440 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38441 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38442 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38443 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38444 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
38445 \
05a13254 38446 TFLAGS="$(STAGE1_TFLAGS)" \
95e43135
JBG
38447 $(TARGET-stage1-target-libvtv)
38448
38449maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
38450clean-stage1: clean-stage1-target-libvtv
38451clean-stage1-target-libvtv:
38452 @if [ $(current_stage) = stage1 ]; then \
38453 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38454 else \
38455 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
38456 $(MAKE) stage1-start; \
38457 fi; \
38458 cd $(TARGET_SUBDIR)/libvtv && \
38459 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
38460 clean
38461@endif target-libvtv-bootstrap
38462
38463
38464.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
38465.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
38466maybe-all-stage2-target-libvtv:
38467maybe-clean-stage2-target-libvtv:
38468@if target-libvtv-bootstrap
38469maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
38470all-stage2: all-stage2-target-libvtv
38471TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
38472all-stage2-target-libvtv: configure-stage2-target-libvtv
38473 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38474 @r=`${PWD_COMMAND}`; export r; \
38475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38476 TFLAGS="$(STAGE2_TFLAGS)"; \
38477 $(RAW_CXX_TARGET_EXPORTS) \
38478 \
38479 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38480 \
95e43135
JBG
38481 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38482 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38483 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38484 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38485 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38486 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38487 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38488 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38489 TFLAGS="$(STAGE2_TFLAGS)" \
95e43135
JBG
38490 $(TARGET-stage2-target-libvtv)
38491
38492maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
38493clean-stage2: clean-stage2-target-libvtv
38494clean-stage2-target-libvtv:
38495 @if [ $(current_stage) = stage2 ]; then \
38496 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38497 else \
38498 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
38499 $(MAKE) stage2-start; \
38500 fi; \
38501 cd $(TARGET_SUBDIR)/libvtv && \
38502 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38503@endif target-libvtv-bootstrap
38504
38505
38506.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
38507.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
38508maybe-all-stage3-target-libvtv:
38509maybe-clean-stage3-target-libvtv:
38510@if target-libvtv-bootstrap
38511maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
38512all-stage3: all-stage3-target-libvtv
38513TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
38514all-stage3-target-libvtv: configure-stage3-target-libvtv
38515 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38516 @r=`${PWD_COMMAND}`; export r; \
38517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38518 TFLAGS="$(STAGE3_TFLAGS)"; \
38519 $(RAW_CXX_TARGET_EXPORTS) \
38520 \
38521 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38522 \
95e43135
JBG
38523 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38524 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38525 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38526 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38527 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38528 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38529 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38530 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38531 TFLAGS="$(STAGE3_TFLAGS)" \
95e43135
JBG
38532 $(TARGET-stage3-target-libvtv)
38533
38534maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
38535clean-stage3: clean-stage3-target-libvtv
38536clean-stage3-target-libvtv:
38537 @if [ $(current_stage) = stage3 ]; then \
38538 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38539 else \
38540 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
38541 $(MAKE) stage3-start; \
38542 fi; \
38543 cd $(TARGET_SUBDIR)/libvtv && \
38544 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38545@endif target-libvtv-bootstrap
38546
38547
38548.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
38549.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
38550maybe-all-stage4-target-libvtv:
38551maybe-clean-stage4-target-libvtv:
38552@if target-libvtv-bootstrap
38553maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
38554all-stage4: all-stage4-target-libvtv
38555TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
38556all-stage4-target-libvtv: configure-stage4-target-libvtv
38557 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38558 @r=`${PWD_COMMAND}`; export r; \
38559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38560 TFLAGS="$(STAGE4_TFLAGS)"; \
38561 $(RAW_CXX_TARGET_EXPORTS) \
38562 \
38563 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38564 \
95e43135
JBG
38565 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38566 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38567 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38568 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38569 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38570 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38571 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38572 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38573 TFLAGS="$(STAGE4_TFLAGS)" \
95e43135
JBG
38574 $(TARGET-stage4-target-libvtv)
38575
38576maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
38577clean-stage4: clean-stage4-target-libvtv
38578clean-stage4-target-libvtv:
38579 @if [ $(current_stage) = stage4 ]; then \
38580 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38581 else \
38582 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
38583 $(MAKE) stage4-start; \
38584 fi; \
38585 cd $(TARGET_SUBDIR)/libvtv && \
38586 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38587@endif target-libvtv-bootstrap
38588
38589
38590.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
38591.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
38592maybe-all-stageprofile-target-libvtv:
38593maybe-clean-stageprofile-target-libvtv:
38594@if target-libvtv-bootstrap
38595maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
38596all-stageprofile: all-stageprofile-target-libvtv
38597TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
38598all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
38599 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38600 @r=`${PWD_COMMAND}`; export r; \
38601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38602 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38603 $(RAW_CXX_TARGET_EXPORTS) \
38604 \
38605 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38606 \
95e43135
JBG
38607 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38608 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38609 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38610 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38611 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38612 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38613 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38614 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38615 TFLAGS="$(STAGEprofile_TFLAGS)" \
95e43135
JBG
38616 $(TARGET-stageprofile-target-libvtv)
38617
38618maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
38619clean-stageprofile: clean-stageprofile-target-libvtv
38620clean-stageprofile-target-libvtv:
38621 @if [ $(current_stage) = stageprofile ]; then \
38622 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38623 else \
38624 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
38625 $(MAKE) stageprofile-start; \
38626 fi; \
38627 cd $(TARGET_SUBDIR)/libvtv && \
38628 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38629@endif target-libvtv-bootstrap
38630
38631
38632.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
38633.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
38634maybe-all-stagefeedback-target-libvtv:
38635maybe-clean-stagefeedback-target-libvtv:
38636@if target-libvtv-bootstrap
38637maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
38638all-stagefeedback: all-stagefeedback-target-libvtv
38639TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
38640all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
38641 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38642 @r=`${PWD_COMMAND}`; export r; \
38643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38644 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38645 $(RAW_CXX_TARGET_EXPORTS) \
38646 \
38647 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38648 \
95e43135
JBG
38649 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38650 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38651 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38652 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38653 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38654 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38655 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38656 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38657 TFLAGS="$(STAGEfeedback_TFLAGS)" \
95e43135
JBG
38658 $(TARGET-stagefeedback-target-libvtv)
38659
38660maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
38661clean-stagefeedback: clean-stagefeedback-target-libvtv
38662clean-stagefeedback-target-libvtv:
38663 @if [ $(current_stage) = stagefeedback ]; then \
38664 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38665 else \
38666 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
38667 $(MAKE) stagefeedback-start; \
38668 fi; \
38669 cd $(TARGET_SUBDIR)/libvtv && \
38670 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38671@endif target-libvtv-bootstrap
38672
38673
38674
38675
38676
38677
38678.PHONY: check-target-libvtv maybe-check-target-libvtv
38679maybe-check-target-libvtv:
38680@if target-libvtv
38681maybe-check-target-libvtv: check-target-libvtv
38682
38683check-target-libvtv:
38684 @: $(MAKE); $(unstage)
38685 @r=`${PWD_COMMAND}`; export r; \
38686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38687 $(RAW_CXX_TARGET_EXPORTS) \
38688 (cd $(TARGET_SUBDIR)/libvtv && \
38689 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
38690
38691@endif target-libvtv
38692
38693.PHONY: install-target-libvtv maybe-install-target-libvtv
38694maybe-install-target-libvtv:
38695@if target-libvtv
38696maybe-install-target-libvtv: install-target-libvtv
38697
38698install-target-libvtv: installdirs
38699 @: $(MAKE); $(unstage)
38700 @r=`${PWD_COMMAND}`; export r; \
38701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38702 $(RAW_CXX_TARGET_EXPORTS) \
38703 (cd $(TARGET_SUBDIR)/libvtv && \
38704 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38705
38706@endif target-libvtv
38707
38708.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
38709maybe-install-strip-target-libvtv:
38710@if target-libvtv
38711maybe-install-strip-target-libvtv: install-strip-target-libvtv
38712
38713install-strip-target-libvtv: installdirs
38714 @: $(MAKE); $(unstage)
38715 @r=`${PWD_COMMAND}`; export r; \
38716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38717 $(RAW_CXX_TARGET_EXPORTS) \
38718 (cd $(TARGET_SUBDIR)/libvtv && \
38719 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38720
38721@endif target-libvtv
38722
38723# Other targets (info, dvi, pdf, etc.)
38724
38725.PHONY: maybe-info-target-libvtv info-target-libvtv
38726maybe-info-target-libvtv:
38727@if target-libvtv
38728maybe-info-target-libvtv: info-target-libvtv
38729
38730info-target-libvtv: \
38731 configure-target-libvtv
38732 @: $(MAKE); $(unstage)
22121df0 38733 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38734 r=`${PWD_COMMAND}`; export r; \
38735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38736 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38737 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38738 for flag in $(EXTRA_TARGET_FLAGS); do \
38739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38740 done; \
38741 (cd $(TARGET_SUBDIR)/libvtv && \
38742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38744 "RANLIB=$${RANLIB}" \
38745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38746 info) \
38747 || exit 1
38748
38749@endif target-libvtv
38750
38751.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
38752maybe-dvi-target-libvtv:
38753@if target-libvtv
38754maybe-dvi-target-libvtv: dvi-target-libvtv
38755
38756dvi-target-libvtv: \
38757 configure-target-libvtv
38758 @: $(MAKE); $(unstage)
22121df0 38759 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38760 r=`${PWD_COMMAND}`; export r; \
38761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38762 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38763 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38764 for flag in $(EXTRA_TARGET_FLAGS); do \
38765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38766 done; \
38767 (cd $(TARGET_SUBDIR)/libvtv && \
38768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38770 "RANLIB=$${RANLIB}" \
38771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38772 dvi) \
38773 || exit 1
38774
38775@endif target-libvtv
38776
38777.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
38778maybe-pdf-target-libvtv:
38779@if target-libvtv
38780maybe-pdf-target-libvtv: pdf-target-libvtv
38781
38782pdf-target-libvtv: \
38783 configure-target-libvtv
38784 @: $(MAKE); $(unstage)
22121df0 38785 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38786 r=`${PWD_COMMAND}`; export r; \
38787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38788 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38789 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38790 for flag in $(EXTRA_TARGET_FLAGS); do \
38791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38792 done; \
38793 (cd $(TARGET_SUBDIR)/libvtv && \
38794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38796 "RANLIB=$${RANLIB}" \
38797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38798 pdf) \
38799 || exit 1
38800
38801@endif target-libvtv
38802
38803.PHONY: maybe-html-target-libvtv html-target-libvtv
38804maybe-html-target-libvtv:
38805@if target-libvtv
38806maybe-html-target-libvtv: html-target-libvtv
38807
38808html-target-libvtv: \
38809 configure-target-libvtv
38810 @: $(MAKE); $(unstage)
22121df0 38811 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38812 r=`${PWD_COMMAND}`; export r; \
38813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38814 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38815 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38816 for flag in $(EXTRA_TARGET_FLAGS); do \
38817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38818 done; \
38819 (cd $(TARGET_SUBDIR)/libvtv && \
38820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38822 "RANLIB=$${RANLIB}" \
38823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38824 html) \
38825 || exit 1
38826
38827@endif target-libvtv
38828
38829.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
38830maybe-TAGS-target-libvtv:
38831@if target-libvtv
38832maybe-TAGS-target-libvtv: TAGS-target-libvtv
38833
38834TAGS-target-libvtv: \
38835 configure-target-libvtv
38836 @: $(MAKE); $(unstage)
22121df0 38837 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38838 r=`${PWD_COMMAND}`; export r; \
38839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38840 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38841 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38842 for flag in $(EXTRA_TARGET_FLAGS); do \
38843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38844 done; \
38845 (cd $(TARGET_SUBDIR)/libvtv && \
38846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38848 "RANLIB=$${RANLIB}" \
38849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38850 TAGS) \
38851 || exit 1
38852
38853@endif target-libvtv
38854
38855.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
38856maybe-install-info-target-libvtv:
38857@if target-libvtv
38858maybe-install-info-target-libvtv: install-info-target-libvtv
38859
38860install-info-target-libvtv: \
38861 configure-target-libvtv \
38862 info-target-libvtv
38863 @: $(MAKE); $(unstage)
22121df0 38864 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38865 r=`${PWD_COMMAND}`; export r; \
38866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38867 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38868 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38869 for flag in $(EXTRA_TARGET_FLAGS); do \
38870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38871 done; \
38872 (cd $(TARGET_SUBDIR)/libvtv && \
38873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38875 "RANLIB=$${RANLIB}" \
38876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38877 install-info) \
38878 || exit 1
38879
38880@endif target-libvtv
38881
38882.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
38883maybe-install-pdf-target-libvtv:
38884@if target-libvtv
38885maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
38886
38887install-pdf-target-libvtv: \
38888 configure-target-libvtv \
38889 pdf-target-libvtv
38890 @: $(MAKE); $(unstage)
22121df0 38891 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38892 r=`${PWD_COMMAND}`; export r; \
38893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38894 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38895 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38896 for flag in $(EXTRA_TARGET_FLAGS); do \
38897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38898 done; \
38899 (cd $(TARGET_SUBDIR)/libvtv && \
38900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38902 "RANLIB=$${RANLIB}" \
38903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38904 install-pdf) \
38905 || exit 1
38906
38907@endif target-libvtv
38908
38909.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
38910maybe-install-html-target-libvtv:
38911@if target-libvtv
38912maybe-install-html-target-libvtv: install-html-target-libvtv
38913
38914install-html-target-libvtv: \
38915 configure-target-libvtv \
38916 html-target-libvtv
38917 @: $(MAKE); $(unstage)
22121df0 38918 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38919 r=`${PWD_COMMAND}`; export r; \
38920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38921 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38922 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38923 for flag in $(EXTRA_TARGET_FLAGS); do \
38924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38925 done; \
38926 (cd $(TARGET_SUBDIR)/libvtv && \
38927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38929 "RANLIB=$${RANLIB}" \
38930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38931 install-html) \
38932 || exit 1
38933
38934@endif target-libvtv
38935
38936.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
38937maybe-installcheck-target-libvtv:
38938@if target-libvtv
38939maybe-installcheck-target-libvtv: installcheck-target-libvtv
38940
38941installcheck-target-libvtv: \
38942 configure-target-libvtv
38943 @: $(MAKE); $(unstage)
22121df0 38944 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38945 r=`${PWD_COMMAND}`; export r; \
38946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38947 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38948 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38949 for flag in $(EXTRA_TARGET_FLAGS); do \
38950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38951 done; \
38952 (cd $(TARGET_SUBDIR)/libvtv && \
38953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38955 "RANLIB=$${RANLIB}" \
38956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38957 installcheck) \
38958 || exit 1
38959
38960@endif target-libvtv
38961
38962.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
38963maybe-mostlyclean-target-libvtv:
38964@if target-libvtv
38965maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
38966
38967mostlyclean-target-libvtv:
38968 @: $(MAKE); $(unstage)
22121df0 38969 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38970 r=`${PWD_COMMAND}`; export r; \
38971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38972 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38973 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38974 for flag in $(EXTRA_TARGET_FLAGS); do \
38975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38976 done; \
38977 (cd $(TARGET_SUBDIR)/libvtv && \
38978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38980 "RANLIB=$${RANLIB}" \
38981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38982 mostlyclean) \
38983 || exit 1
38984
38985@endif target-libvtv
38986
38987.PHONY: maybe-clean-target-libvtv clean-target-libvtv
38988maybe-clean-target-libvtv:
38989@if target-libvtv
38990maybe-clean-target-libvtv: clean-target-libvtv
38991
38992clean-target-libvtv:
38993 @: $(MAKE); $(unstage)
22121df0 38994 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38995 r=`${PWD_COMMAND}`; export r; \
38996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38997 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38998 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38999 for flag in $(EXTRA_TARGET_FLAGS); do \
39000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39001 done; \
39002 (cd $(TARGET_SUBDIR)/libvtv && \
39003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39005 "RANLIB=$${RANLIB}" \
39006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39007 clean) \
39008 || exit 1
39009
39010@endif target-libvtv
39011
39012.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
39013maybe-distclean-target-libvtv:
39014@if target-libvtv
39015maybe-distclean-target-libvtv: distclean-target-libvtv
39016
39017distclean-target-libvtv:
39018 @: $(MAKE); $(unstage)
22121df0 39019 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
39020 r=`${PWD_COMMAND}`; export r; \
39021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39022 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 39023 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
39024 for flag in $(EXTRA_TARGET_FLAGS); do \
39025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39026 done; \
39027 (cd $(TARGET_SUBDIR)/libvtv && \
39028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39030 "RANLIB=$${RANLIB}" \
39031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39032 distclean) \
39033 || exit 1
39034
39035@endif target-libvtv
39036
39037.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
39038maybe-maintainer-clean-target-libvtv:
39039@if target-libvtv
39040maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
39041
39042maintainer-clean-target-libvtv:
39043 @: $(MAKE); $(unstage)
22121df0 39044 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
39045 r=`${PWD_COMMAND}`; export r; \
39046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39047 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 39048 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
39049 for flag in $(EXTRA_TARGET_FLAGS); do \
39050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39051 done; \
39052 (cd $(TARGET_SUBDIR)/libvtv && \
39053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39055 "RANLIB=$${RANLIB}" \
39056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39057 maintainer-clean) \
39058 || exit 1
39059
39060@endif target-libvtv
39061
39062
39063
39064
39065
e3f56a99
NC
39066.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
39067maybe-configure-target-libcilkrts:
39068@if gcc-bootstrap
39069configure-target-libcilkrts: stage_current
39070@endif gcc-bootstrap
39071@if target-libcilkrts
39072maybe-configure-target-libcilkrts: configure-target-libcilkrts
39073configure-target-libcilkrts:
39074 @: $(MAKE); $(unstage)
39075 @r=`${PWD_COMMAND}`; export r; \
39076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39077 echo "Checking multilib configuration for libcilkrts..."; \
39078 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
39079 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
39080 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
39081 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
39082 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
39083 else \
39084 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
39085 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
39086 fi; \
39087 else \
39088 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
39089 fi; \
39090 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
39091 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
39092 $(NORMAL_TARGET_EXPORTS) \
39093 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
39094 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
39095 case $(srcdir) in \
39096 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39097 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
39098 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39099 esac; \
39100 module_srcdir=libcilkrts; \
39101 rm -f no-such-file || : ; \
39102 CONFIG_SITE=no-such-file $(SHELL) \
39103 $$s/$$module_srcdir/configure \
39104 --srcdir=$${topdir}/$$module_srcdir \
39105 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39106 --target=${target_alias} \
39107 || exit 1
39108@endif target-libcilkrts
39109
39110
39111
39112
39113
39114.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
39115maybe-all-target-libcilkrts:
39116@if gcc-bootstrap
39117all-target-libcilkrts: stage_current
39118@endif gcc-bootstrap
39119@if target-libcilkrts
39120TARGET-target-libcilkrts=all
39121maybe-all-target-libcilkrts: all-target-libcilkrts
39122all-target-libcilkrts: configure-target-libcilkrts
39123 @: $(MAKE); $(unstage)
39124 @r=`${PWD_COMMAND}`; export r; \
39125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39126 $(NORMAL_TARGET_EXPORTS) \
39127 (cd $(TARGET_SUBDIR)/libcilkrts && \
39128 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
39129 $(TARGET-target-libcilkrts))
39130@endif target-libcilkrts
39131
39132
39133
39134
39135
39136.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
39137maybe-check-target-libcilkrts:
39138@if target-libcilkrts
39139maybe-check-target-libcilkrts: check-target-libcilkrts
39140
39141check-target-libcilkrts:
39142 @: $(MAKE); $(unstage)
39143 @r=`${PWD_COMMAND}`; export r; \
39144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39145 $(NORMAL_TARGET_EXPORTS) \
39146 (cd $(TARGET_SUBDIR)/libcilkrts && \
39147 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39148
39149@endif target-libcilkrts
39150
39151.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
39152maybe-install-target-libcilkrts:
39153@if target-libcilkrts
39154maybe-install-target-libcilkrts: install-target-libcilkrts
39155
39156install-target-libcilkrts: installdirs
39157 @: $(MAKE); $(unstage)
39158 @r=`${PWD_COMMAND}`; export r; \
39159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39160 $(NORMAL_TARGET_EXPORTS) \
39161 (cd $(TARGET_SUBDIR)/libcilkrts && \
39162 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39163
39164@endif target-libcilkrts
39165
39166.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
39167maybe-install-strip-target-libcilkrts:
39168@if target-libcilkrts
39169maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
39170
39171install-strip-target-libcilkrts: installdirs
39172 @: $(MAKE); $(unstage)
39173 @r=`${PWD_COMMAND}`; export r; \
39174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39175 $(NORMAL_TARGET_EXPORTS) \
39176 (cd $(TARGET_SUBDIR)/libcilkrts && \
39177 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39178
39179@endif target-libcilkrts
39180
39181# Other targets (info, dvi, pdf, etc.)
39182
39183.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
39184maybe-info-target-libcilkrts:
39185@if target-libcilkrts
39186maybe-info-target-libcilkrts: info-target-libcilkrts
39187
39188info-target-libcilkrts: \
39189 configure-target-libcilkrts
39190 @: $(MAKE); $(unstage)
39191 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39192 r=`${PWD_COMMAND}`; export r; \
39193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39194 $(NORMAL_TARGET_EXPORTS) \
39195 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
39196 for flag in $(EXTRA_TARGET_FLAGS); do \
39197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39198 done; \
39199 (cd $(TARGET_SUBDIR)/libcilkrts && \
39200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39202 "RANLIB=$${RANLIB}" \
39203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39204 info) \
39205 || exit 1
39206
39207@endif target-libcilkrts
39208
39209.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
39210maybe-dvi-target-libcilkrts:
39211@if target-libcilkrts
39212maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
39213
39214dvi-target-libcilkrts: \
39215 configure-target-libcilkrts
39216 @: $(MAKE); $(unstage)
39217 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39218 r=`${PWD_COMMAND}`; export r; \
39219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39220 $(NORMAL_TARGET_EXPORTS) \
39221 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
39222 for flag in $(EXTRA_TARGET_FLAGS); do \
39223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39224 done; \
39225 (cd $(TARGET_SUBDIR)/libcilkrts && \
39226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39228 "RANLIB=$${RANLIB}" \
39229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39230 dvi) \
39231 || exit 1
39232
39233@endif target-libcilkrts
39234
39235.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
39236maybe-pdf-target-libcilkrts:
39237@if target-libcilkrts
39238maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
39239
39240pdf-target-libcilkrts: \
39241 configure-target-libcilkrts
39242 @: $(MAKE); $(unstage)
39243 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39244 r=`${PWD_COMMAND}`; export r; \
39245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39246 $(NORMAL_TARGET_EXPORTS) \
39247 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
39248 for flag in $(EXTRA_TARGET_FLAGS); do \
39249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39250 done; \
39251 (cd $(TARGET_SUBDIR)/libcilkrts && \
39252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39254 "RANLIB=$${RANLIB}" \
39255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39256 pdf) \
39257 || exit 1
39258
39259@endif target-libcilkrts
39260
39261.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
39262maybe-html-target-libcilkrts:
39263@if target-libcilkrts
39264maybe-html-target-libcilkrts: html-target-libcilkrts
39265
39266html-target-libcilkrts: \
39267 configure-target-libcilkrts
39268 @: $(MAKE); $(unstage)
39269 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39270 r=`${PWD_COMMAND}`; export r; \
39271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39272 $(NORMAL_TARGET_EXPORTS) \
39273 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
39274 for flag in $(EXTRA_TARGET_FLAGS); do \
39275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39276 done; \
39277 (cd $(TARGET_SUBDIR)/libcilkrts && \
39278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39280 "RANLIB=$${RANLIB}" \
39281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39282 html) \
39283 || exit 1
39284
39285@endif target-libcilkrts
39286
39287.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
39288maybe-TAGS-target-libcilkrts:
39289@if target-libcilkrts
39290maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
39291
39292TAGS-target-libcilkrts: \
39293 configure-target-libcilkrts
39294 @: $(MAKE); $(unstage)
39295 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39296 r=`${PWD_COMMAND}`; export r; \
39297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39298 $(NORMAL_TARGET_EXPORTS) \
39299 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
39300 for flag in $(EXTRA_TARGET_FLAGS); do \
39301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39302 done; \
39303 (cd $(TARGET_SUBDIR)/libcilkrts && \
39304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39306 "RANLIB=$${RANLIB}" \
39307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39308 TAGS) \
39309 || exit 1
39310
39311@endif target-libcilkrts
39312
39313.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
39314maybe-install-info-target-libcilkrts:
39315@if target-libcilkrts
39316maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
39317
39318install-info-target-libcilkrts: \
39319 configure-target-libcilkrts \
39320 info-target-libcilkrts
39321 @: $(MAKE); $(unstage)
39322 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39323 r=`${PWD_COMMAND}`; export r; \
39324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39325 $(NORMAL_TARGET_EXPORTS) \
39326 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
39327 for flag in $(EXTRA_TARGET_FLAGS); do \
39328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39329 done; \
39330 (cd $(TARGET_SUBDIR)/libcilkrts && \
39331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39333 "RANLIB=$${RANLIB}" \
39334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39335 install-info) \
39336 || exit 1
39337
39338@endif target-libcilkrts
39339
39340.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
39341maybe-install-pdf-target-libcilkrts:
39342@if target-libcilkrts
39343maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
39344
39345install-pdf-target-libcilkrts: \
39346 configure-target-libcilkrts \
39347 pdf-target-libcilkrts
39348 @: $(MAKE); $(unstage)
39349 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39350 r=`${PWD_COMMAND}`; export r; \
39351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39352 $(NORMAL_TARGET_EXPORTS) \
39353 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
39354 for flag in $(EXTRA_TARGET_FLAGS); do \
39355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39356 done; \
39357 (cd $(TARGET_SUBDIR)/libcilkrts && \
39358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39360 "RANLIB=$${RANLIB}" \
39361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39362 install-pdf) \
39363 || exit 1
39364
39365@endif target-libcilkrts
39366
39367.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
39368maybe-install-html-target-libcilkrts:
39369@if target-libcilkrts
39370maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
39371
39372install-html-target-libcilkrts: \
39373 configure-target-libcilkrts \
39374 html-target-libcilkrts
39375 @: $(MAKE); $(unstage)
39376 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39377 r=`${PWD_COMMAND}`; export r; \
39378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39379 $(NORMAL_TARGET_EXPORTS) \
39380 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
39381 for flag in $(EXTRA_TARGET_FLAGS); do \
39382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39383 done; \
39384 (cd $(TARGET_SUBDIR)/libcilkrts && \
39385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39387 "RANLIB=$${RANLIB}" \
39388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39389 install-html) \
39390 || exit 1
39391
39392@endif target-libcilkrts
39393
39394.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
39395maybe-installcheck-target-libcilkrts:
39396@if target-libcilkrts
39397maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
39398
39399installcheck-target-libcilkrts: \
39400 configure-target-libcilkrts
39401 @: $(MAKE); $(unstage)
39402 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39403 r=`${PWD_COMMAND}`; export r; \
39404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39405 $(NORMAL_TARGET_EXPORTS) \
39406 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
39407 for flag in $(EXTRA_TARGET_FLAGS); do \
39408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39409 done; \
39410 (cd $(TARGET_SUBDIR)/libcilkrts && \
39411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39413 "RANLIB=$${RANLIB}" \
39414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39415 installcheck) \
39416 || exit 1
39417
39418@endif target-libcilkrts
39419
39420.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
39421maybe-mostlyclean-target-libcilkrts:
39422@if target-libcilkrts
39423maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
39424
39425mostlyclean-target-libcilkrts:
39426 @: $(MAKE); $(unstage)
39427 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39428 r=`${PWD_COMMAND}`; export r; \
39429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39430 $(NORMAL_TARGET_EXPORTS) \
39431 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
39432 for flag in $(EXTRA_TARGET_FLAGS); do \
39433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39434 done; \
39435 (cd $(TARGET_SUBDIR)/libcilkrts && \
39436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39438 "RANLIB=$${RANLIB}" \
39439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39440 mostlyclean) \
39441 || exit 1
39442
39443@endif target-libcilkrts
39444
39445.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
39446maybe-clean-target-libcilkrts:
39447@if target-libcilkrts
39448maybe-clean-target-libcilkrts: clean-target-libcilkrts
39449
39450clean-target-libcilkrts:
39451 @: $(MAKE); $(unstage)
39452 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39453 r=`${PWD_COMMAND}`; export r; \
39454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39455 $(NORMAL_TARGET_EXPORTS) \
39456 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
39457 for flag in $(EXTRA_TARGET_FLAGS); do \
39458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39459 done; \
39460 (cd $(TARGET_SUBDIR)/libcilkrts && \
39461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39463 "RANLIB=$${RANLIB}" \
39464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39465 clean) \
39466 || exit 1
39467
39468@endif target-libcilkrts
39469
39470.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
39471maybe-distclean-target-libcilkrts:
39472@if target-libcilkrts
39473maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
39474
39475distclean-target-libcilkrts:
39476 @: $(MAKE); $(unstage)
39477 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39478 r=`${PWD_COMMAND}`; export r; \
39479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39480 $(NORMAL_TARGET_EXPORTS) \
39481 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
39482 for flag in $(EXTRA_TARGET_FLAGS); do \
39483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39484 done; \
39485 (cd $(TARGET_SUBDIR)/libcilkrts && \
39486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39488 "RANLIB=$${RANLIB}" \
39489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39490 distclean) \
39491 || exit 1
39492
39493@endif target-libcilkrts
39494
39495.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
39496maybe-maintainer-clean-target-libcilkrts:
39497@if target-libcilkrts
39498maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
39499
39500maintainer-clean-target-libcilkrts:
39501 @: $(MAKE); $(unstage)
39502 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39503 r=`${PWD_COMMAND}`; export r; \
39504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39505 $(NORMAL_TARGET_EXPORTS) \
39506 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
39507 for flag in $(EXTRA_TARGET_FLAGS); do \
39508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39509 done; \
39510 (cd $(TARGET_SUBDIR)/libcilkrts && \
39511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39513 "RANLIB=$${RANLIB}" \
39514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39515 maintainer-clean) \
39516 || exit 1
39517
39518@endif target-libcilkrts
39519
39520
39521
39522
39523
1b6c0831
L
39524.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
39525maybe-configure-target-liboffloadmic:
39526@if gcc-bootstrap
39527configure-target-liboffloadmic: stage_current
39528@endif gcc-bootstrap
39529@if target-liboffloadmic
39530maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
39531configure-target-liboffloadmic:
39532 @: $(MAKE); $(unstage)
39533 @r=`${PWD_COMMAND}`; export r; \
39534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39535 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
39536 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
39537 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
39538 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
39539 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
39540 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
39541 else \
39542 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
39543 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
39544 fi; \
39545 else \
39546 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
39547 fi; \
39548 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 39549 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
39550 $(NORMAL_TARGET_EXPORTS) \
39551 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
39552 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
39553 case $(srcdir) in \
39554 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39555 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
39556 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39557 esac; \
39558 module_srcdir=liboffloadmic; \
39559 rm -f no-such-file || : ; \
39560 CONFIG_SITE=no-such-file $(SHELL) \
39561 $$s/$$module_srcdir/configure \
39562 --srcdir=$${topdir}/$$module_srcdir \
39563 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39564 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
39565 || exit 1
39566@endif target-liboffloadmic
39567
39568
39569
39570
39571
39572.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
39573maybe-all-target-liboffloadmic:
39574@if gcc-bootstrap
39575all-target-liboffloadmic: stage_current
39576@endif gcc-bootstrap
39577@if target-liboffloadmic
39578TARGET-target-liboffloadmic=all
39579maybe-all-target-liboffloadmic: all-target-liboffloadmic
39580all-target-liboffloadmic: configure-target-liboffloadmic
39581 @: $(MAKE); $(unstage)
39582 @r=`${PWD_COMMAND}`; export r; \
39583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39584 $(NORMAL_TARGET_EXPORTS) \
39585 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39586 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
39587 $(TARGET-target-liboffloadmic))
39588@endif target-liboffloadmic
39589
39590
39591
39592
39593
39594.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
39595maybe-check-target-liboffloadmic:
39596@if target-liboffloadmic
39597maybe-check-target-liboffloadmic: check-target-liboffloadmic
39598
39599check-target-liboffloadmic:
39600 @: $(MAKE); $(unstage)
39601 @r=`${PWD_COMMAND}`; export r; \
39602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39603 $(NORMAL_TARGET_EXPORTS) \
39604 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39605 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39606
39607@endif target-liboffloadmic
39608
39609.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
39610maybe-install-target-liboffloadmic:
39611@if target-liboffloadmic
39612maybe-install-target-liboffloadmic: install-target-liboffloadmic
39613
39614install-target-liboffloadmic: installdirs
39615 @: $(MAKE); $(unstage)
39616 @r=`${PWD_COMMAND}`; export r; \
39617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39618 $(NORMAL_TARGET_EXPORTS) \
39619 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39620 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39621
39622@endif target-liboffloadmic
39623
39624.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
39625maybe-install-strip-target-liboffloadmic:
39626@if target-liboffloadmic
39627maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
39628
39629install-strip-target-liboffloadmic: installdirs
39630 @: $(MAKE); $(unstage)
39631 @r=`${PWD_COMMAND}`; export r; \
39632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39633 $(NORMAL_TARGET_EXPORTS) \
39634 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39635 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39636
39637@endif target-liboffloadmic
39638
39639# Other targets (info, dvi, pdf, etc.)
39640
39641.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
39642maybe-info-target-liboffloadmic:
39643@if target-liboffloadmic
39644maybe-info-target-liboffloadmic: info-target-liboffloadmic
39645
39646info-target-liboffloadmic: \
39647 configure-target-liboffloadmic
39648 @: $(MAKE); $(unstage)
22121df0 39649 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39650 r=`${PWD_COMMAND}`; export r; \
39651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39652 $(NORMAL_TARGET_EXPORTS) \
22121df0 39653 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39654 for flag in $(EXTRA_TARGET_FLAGS); do \
39655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39656 done; \
39657 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39660 "RANLIB=$${RANLIB}" \
39661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39662 info) \
39663 || exit 1
39664
39665@endif target-liboffloadmic
39666
39667.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
39668maybe-dvi-target-liboffloadmic:
39669@if target-liboffloadmic
39670maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
39671
39672dvi-target-liboffloadmic: \
39673 configure-target-liboffloadmic
39674 @: $(MAKE); $(unstage)
22121df0 39675 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39676 r=`${PWD_COMMAND}`; export r; \
39677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39678 $(NORMAL_TARGET_EXPORTS) \
22121df0 39679 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39680 for flag in $(EXTRA_TARGET_FLAGS); do \
39681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39682 done; \
39683 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39686 "RANLIB=$${RANLIB}" \
39687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39688 dvi) \
39689 || exit 1
39690
39691@endif target-liboffloadmic
39692
39693.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
39694maybe-pdf-target-liboffloadmic:
39695@if target-liboffloadmic
39696maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
39697
39698pdf-target-liboffloadmic: \
39699 configure-target-liboffloadmic
39700 @: $(MAKE); $(unstage)
22121df0 39701 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39702 r=`${PWD_COMMAND}`; export r; \
39703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39704 $(NORMAL_TARGET_EXPORTS) \
22121df0 39705 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39706 for flag in $(EXTRA_TARGET_FLAGS); do \
39707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39708 done; \
39709 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39712 "RANLIB=$${RANLIB}" \
39713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39714 pdf) \
39715 || exit 1
39716
39717@endif target-liboffloadmic
39718
39719.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
39720maybe-html-target-liboffloadmic:
39721@if target-liboffloadmic
39722maybe-html-target-liboffloadmic: html-target-liboffloadmic
39723
39724html-target-liboffloadmic: \
39725 configure-target-liboffloadmic
39726 @: $(MAKE); $(unstage)
22121df0 39727 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39728 r=`${PWD_COMMAND}`; export r; \
39729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39730 $(NORMAL_TARGET_EXPORTS) \
22121df0 39731 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39732 for flag in $(EXTRA_TARGET_FLAGS); do \
39733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39734 done; \
39735 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39738 "RANLIB=$${RANLIB}" \
39739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39740 html) \
39741 || exit 1
39742
39743@endif target-liboffloadmic
39744
39745.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
39746maybe-TAGS-target-liboffloadmic:
39747@if target-liboffloadmic
39748maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
39749
39750TAGS-target-liboffloadmic: \
39751 configure-target-liboffloadmic
39752 @: $(MAKE); $(unstage)
22121df0 39753 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39754 r=`${PWD_COMMAND}`; export r; \
39755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39756 $(NORMAL_TARGET_EXPORTS) \
22121df0 39757 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39758 for flag in $(EXTRA_TARGET_FLAGS); do \
39759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39760 done; \
39761 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39764 "RANLIB=$${RANLIB}" \
39765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39766 TAGS) \
39767 || exit 1
39768
39769@endif target-liboffloadmic
39770
39771.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
39772maybe-install-info-target-liboffloadmic:
39773@if target-liboffloadmic
39774maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
39775
39776install-info-target-liboffloadmic: \
39777 configure-target-liboffloadmic \
39778 info-target-liboffloadmic
39779 @: $(MAKE); $(unstage)
22121df0 39780 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39781 r=`${PWD_COMMAND}`; export r; \
39782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39783 $(NORMAL_TARGET_EXPORTS) \
22121df0 39784 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39785 for flag in $(EXTRA_TARGET_FLAGS); do \
39786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39787 done; \
39788 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39791 "RANLIB=$${RANLIB}" \
39792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39793 install-info) \
39794 || exit 1
39795
39796@endif target-liboffloadmic
39797
39798.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
39799maybe-install-pdf-target-liboffloadmic:
39800@if target-liboffloadmic
39801maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
39802
39803install-pdf-target-liboffloadmic: \
39804 configure-target-liboffloadmic \
39805 pdf-target-liboffloadmic
39806 @: $(MAKE); $(unstage)
22121df0 39807 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39808 r=`${PWD_COMMAND}`; export r; \
39809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39810 $(NORMAL_TARGET_EXPORTS) \
22121df0 39811 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39812 for flag in $(EXTRA_TARGET_FLAGS); do \
39813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39814 done; \
39815 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39818 "RANLIB=$${RANLIB}" \
39819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39820 install-pdf) \
39821 || exit 1
39822
39823@endif target-liboffloadmic
39824
39825.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
39826maybe-install-html-target-liboffloadmic:
39827@if target-liboffloadmic
39828maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
39829
39830install-html-target-liboffloadmic: \
39831 configure-target-liboffloadmic \
39832 html-target-liboffloadmic
39833 @: $(MAKE); $(unstage)
22121df0 39834 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39835 r=`${PWD_COMMAND}`; export r; \
39836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39837 $(NORMAL_TARGET_EXPORTS) \
22121df0 39838 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39839 for flag in $(EXTRA_TARGET_FLAGS); do \
39840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39841 done; \
39842 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39845 "RANLIB=$${RANLIB}" \
39846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39847 install-html) \
39848 || exit 1
39849
39850@endif target-liboffloadmic
39851
39852.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
39853maybe-installcheck-target-liboffloadmic:
39854@if target-liboffloadmic
39855maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
39856
39857installcheck-target-liboffloadmic: \
39858 configure-target-liboffloadmic
39859 @: $(MAKE); $(unstage)
22121df0 39860 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39861 r=`${PWD_COMMAND}`; export r; \
39862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39863 $(NORMAL_TARGET_EXPORTS) \
22121df0 39864 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39865 for flag in $(EXTRA_TARGET_FLAGS); do \
39866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39867 done; \
39868 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39871 "RANLIB=$${RANLIB}" \
39872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39873 installcheck) \
39874 || exit 1
39875
39876@endif target-liboffloadmic
39877
39878.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
39879maybe-mostlyclean-target-liboffloadmic:
39880@if target-liboffloadmic
39881maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
39882
39883mostlyclean-target-liboffloadmic:
39884 @: $(MAKE); $(unstage)
22121df0 39885 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39886 r=`${PWD_COMMAND}`; export r; \
39887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39888 $(NORMAL_TARGET_EXPORTS) \
22121df0 39889 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39890 for flag in $(EXTRA_TARGET_FLAGS); do \
39891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39892 done; \
39893 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39896 "RANLIB=$${RANLIB}" \
39897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39898 mostlyclean) \
39899 || exit 1
39900
39901@endif target-liboffloadmic
39902
39903.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
39904maybe-clean-target-liboffloadmic:
39905@if target-liboffloadmic
39906maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
39907
39908clean-target-liboffloadmic:
39909 @: $(MAKE); $(unstage)
22121df0 39910 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39911 r=`${PWD_COMMAND}`; export r; \
39912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39913 $(NORMAL_TARGET_EXPORTS) \
22121df0 39914 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39915 for flag in $(EXTRA_TARGET_FLAGS); do \
39916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39917 done; \
39918 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39921 "RANLIB=$${RANLIB}" \
39922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39923 clean) \
39924 || exit 1
39925
39926@endif target-liboffloadmic
39927
39928.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
39929maybe-distclean-target-liboffloadmic:
39930@if target-liboffloadmic
39931maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
39932
39933distclean-target-liboffloadmic:
39934 @: $(MAKE); $(unstage)
22121df0 39935 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39936 r=`${PWD_COMMAND}`; export r; \
39937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39938 $(NORMAL_TARGET_EXPORTS) \
22121df0 39939 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39940 for flag in $(EXTRA_TARGET_FLAGS); do \
39941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39942 done; \
39943 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39946 "RANLIB=$${RANLIB}" \
39947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39948 distclean) \
39949 || exit 1
39950
39951@endif target-liboffloadmic
39952
39953.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
39954maybe-maintainer-clean-target-liboffloadmic:
39955@if target-liboffloadmic
39956maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
39957
39958maintainer-clean-target-liboffloadmic:
39959 @: $(MAKE); $(unstage)
22121df0 39960 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39961 r=`${PWD_COMMAND}`; export r; \
39962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39963 $(NORMAL_TARGET_EXPORTS) \
22121df0 39964 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39965 for flag in $(EXTRA_TARGET_FLAGS); do \
39966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39967 done; \
39968 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39971 "RANLIB=$${RANLIB}" \
39972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39973 maintainer-clean) \
39974 || exit 1
39975
39976@endif target-liboffloadmic
39977
39978
39979
39980
39981
a90ef4bf
JM
39982.PHONY: configure-target-libssp maybe-configure-target-libssp
39983maybe-configure-target-libssp:
4f0ef2d8 39984@if gcc-bootstrap
a90ef4bf 39985configure-target-libssp: stage_current
4f0ef2d8 39986@endif gcc-bootstrap
a90ef4bf
JM
39987@if target-libssp
39988maybe-configure-target-libssp: configure-target-libssp
39989configure-target-libssp:
0aed8855
PB
39990 @: $(MAKE); $(unstage)
39991 @r=`${PWD_COMMAND}`; export r; \
39992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39993 echo "Checking multilib configuration for libssp..."; \
22121df0
L
39994 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
39995 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39996 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
39997 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
39998 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 39999 else \
a90ef4bf
JM
40000 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
40001 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
40002 fi; \
40003 else \
a90ef4bf 40004 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 40005 fi; \
a90ef4bf 40006 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 40007 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 40008 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40009 echo Configuring in $(TARGET_SUBDIR)/libssp; \
40010 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 40011 case $(srcdir) in \
b00612cc 40012 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40013 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 40014 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 40015 esac; \
1b6c0831 40016 module_srcdir=libssp; \
4b1cb4fe 40017 rm -f no-such-file || : ; \
1b6c0831
L
40018 CONFIG_SITE=no-such-file $(SHELL) \
40019 $$s/$$module_srcdir/configure \
40020 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40021 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40022 --target=${target_alias} \
4b1cb4fe 40023 || exit 1
a90ef4bf 40024@endif target-libssp
4b1cb4fe 40025
a7254363
PB
40026
40027
d545f33b
PB
40028
40029
a90ef4bf
JM
40030.PHONY: all-target-libssp maybe-all-target-libssp
40031maybe-all-target-libssp:
4f0ef2d8 40032@if gcc-bootstrap
a90ef4bf 40033all-target-libssp: stage_current
4f0ef2d8 40034@endif gcc-bootstrap
a90ef4bf
JM
40035@if target-libssp
40036TARGET-target-libssp=all
40037maybe-all-target-libssp: all-target-libssp
40038all-target-libssp: configure-target-libssp
0aed8855 40039 @: $(MAKE); $(unstage)
4b1cb4fe
DD
40040 @r=`${PWD_COMMAND}`; export r; \
40041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40042 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40043 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 40044 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40045 $(TARGET-target-libssp))
40046@endif target-libssp
4b1cb4fe 40047
a7254363
PB
40048
40049
d545f33b
PB
40050
40051
a90ef4bf
JM
40052.PHONY: check-target-libssp maybe-check-target-libssp
40053maybe-check-target-libssp:
40054@if target-libssp
40055maybe-check-target-libssp: check-target-libssp
4b1cb4fe 40056
a90ef4bf 40057check-target-libssp:
0aed8855 40058 @: $(MAKE); $(unstage)
b40e3958
L
40059 @r=`${PWD_COMMAND}`; export r; \
40060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40061 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40062 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 40063 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 40064
a90ef4bf 40065@endif target-libssp
3866be5d 40066
a90ef4bf
JM
40067.PHONY: install-target-libssp maybe-install-target-libssp
40068maybe-install-target-libssp:
40069@if target-libssp
40070maybe-install-target-libssp: install-target-libssp
e2b9e2dc 40071
a90ef4bf 40072install-target-libssp: installdirs
0aed8855 40073 @: $(MAKE); $(unstage)
b40e3958
L
40074 @r=`${PWD_COMMAND}`; export r; \
40075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40076 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40077 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 40078 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40079
a90ef4bf 40080@endif target-libssp
3866be5d 40081
a90ef4bf
JM
40082.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
40083maybe-install-strip-target-libssp:
40084@if target-libssp
40085maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 40086
a90ef4bf 40087install-strip-target-libssp: installdirs
9b980aa1
RW
40088 @: $(MAKE); $(unstage)
40089 @r=`${PWD_COMMAND}`; export r; \
40090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40091 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40092 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
40093 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40094
a90ef4bf 40095@endif target-libssp
9b980aa1 40096
56a8fe78 40097# Other targets (info, dvi, pdf, etc.)
3866be5d 40098
a90ef4bf
JM
40099.PHONY: maybe-info-target-libssp info-target-libssp
40100maybe-info-target-libssp:
40101@if target-libssp
40102maybe-info-target-libssp: info-target-libssp
3866be5d 40103
a90ef4bf
JM
40104info-target-libssp: \
40105 configure-target-libssp
0aed8855 40106 @: $(MAKE); $(unstage)
22121df0 40107 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
40108 r=`${PWD_COMMAND}`; export r; \
40109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40110 $(NORMAL_TARGET_EXPORTS) \
22121df0 40111 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40112 for flag in $(EXTRA_TARGET_FLAGS); do \
40113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40114 done; \
a90ef4bf 40115 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40118 "RANLIB=$${RANLIB}" \
0c24b341 40119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40120 info) \
4fa63067 40121 || exit 1
16ae0395 40122
a90ef4bf 40123@endif target-libssp
3866be5d 40124
a90ef4bf
JM
40125.PHONY: maybe-dvi-target-libssp dvi-target-libssp
40126maybe-dvi-target-libssp:
40127@if target-libssp
40128maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 40129
a90ef4bf
JM
40130dvi-target-libssp: \
40131 configure-target-libssp
0aed8855 40132 @: $(MAKE); $(unstage)
22121df0 40133 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
40134 r=`${PWD_COMMAND}`; export r; \
40135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40136 $(NORMAL_TARGET_EXPORTS) \
22121df0 40137 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40138 for flag in $(EXTRA_TARGET_FLAGS); do \
40139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40140 done; \
a90ef4bf 40141 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40144 "RANLIB=$${RANLIB}" \
0c24b341 40145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40146 dvi) \
e2b9e2dc
NN
40147 || exit 1
40148
a90ef4bf 40149@endif target-libssp
3866be5d 40150
a90ef4bf
JM
40151.PHONY: maybe-pdf-target-libssp pdf-target-libssp
40152maybe-pdf-target-libssp:
40153@if target-libssp
40154maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 40155
a90ef4bf
JM
40156pdf-target-libssp: \
40157 configure-target-libssp
56a8fe78 40158 @: $(MAKE); $(unstage)
22121df0 40159 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
40160 r=`${PWD_COMMAND}`; export r; \
40161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40162 $(NORMAL_TARGET_EXPORTS) \
22121df0 40163 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
40164 for flag in $(EXTRA_TARGET_FLAGS); do \
40165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40166 done; \
a90ef4bf 40167 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
40168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40170 "RANLIB=$${RANLIB}" \
0c24b341 40171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40172 pdf) \
40173 || exit 1
40174
a90ef4bf 40175@endif target-libssp
a3ca38d2 40176
a90ef4bf
JM
40177.PHONY: maybe-html-target-libssp html-target-libssp
40178maybe-html-target-libssp:
40179@if target-libssp
40180maybe-html-target-libssp: html-target-libssp
108a6f8e 40181
a90ef4bf
JM
40182html-target-libssp: \
40183 configure-target-libssp
108a6f8e 40184 @: $(MAKE); $(unstage)
22121df0 40185 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
40186 r=`${PWD_COMMAND}`; export r; \
40187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40188 $(NORMAL_TARGET_EXPORTS) \
22121df0 40189 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
40190 for flag in $(EXTRA_TARGET_FLAGS); do \
40191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40192 done; \
a90ef4bf 40193 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
40194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40196 "RANLIB=$${RANLIB}" \
0c24b341 40197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40198 html) \
108a6f8e
CD
40199 || exit 1
40200
a90ef4bf 40201@endif target-libssp
108a6f8e 40202
a90ef4bf
JM
40203.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
40204maybe-TAGS-target-libssp:
40205@if target-libssp
40206maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 40207
a90ef4bf
JM
40208TAGS-target-libssp: \
40209 configure-target-libssp
0aed8855 40210 @: $(MAKE); $(unstage)
22121df0 40211 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
40212 r=`${PWD_COMMAND}`; export r; \
40213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40214 $(NORMAL_TARGET_EXPORTS) \
22121df0 40215 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40216 for flag in $(EXTRA_TARGET_FLAGS); do \
40217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40218 done; \
a90ef4bf 40219 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40222 "RANLIB=$${RANLIB}" \
0c24b341 40223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40224 TAGS) \
e2b9e2dc
NN
40225 || exit 1
40226
a90ef4bf 40227@endif target-libssp
3866be5d 40228
a90ef4bf
JM
40229.PHONY: maybe-install-info-target-libssp install-info-target-libssp
40230maybe-install-info-target-libssp:
40231@if target-libssp
40232maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 40233
a90ef4bf
JM
40234install-info-target-libssp: \
40235 configure-target-libssp \
40236 info-target-libssp
0aed8855 40237 @: $(MAKE); $(unstage)
22121df0 40238 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 40239 r=`${PWD_COMMAND}`; export r; \
b40e3958 40240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40241 $(NORMAL_TARGET_EXPORTS) \
22121df0 40242 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40243 for flag in $(EXTRA_TARGET_FLAGS); do \
40244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40245 done; \
a90ef4bf 40246 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40249 "RANLIB=$${RANLIB}" \
0c24b341 40250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40251 install-info) \
4fa63067 40252 || exit 1
3866be5d 40253
a90ef4bf 40254@endif target-libssp
3866be5d 40255
a90ef4bf
JM
40256.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
40257maybe-install-pdf-target-libssp:
40258@if target-libssp
40259maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 40260
a90ef4bf
JM
40261install-pdf-target-libssp: \
40262 configure-target-libssp \
40263 pdf-target-libssp
0aed8855 40264 @: $(MAKE); $(unstage)
22121df0 40265 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 40266 r=`${PWD_COMMAND}`; export r; \
b40e3958 40267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40268 $(NORMAL_TARGET_EXPORTS) \
22121df0 40269 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40270 for flag in $(EXTRA_TARGET_FLAGS); do \
40271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40272 done; \
a90ef4bf 40273 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40276 "RANLIB=$${RANLIB}" \
0c24b341 40277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40278 install-pdf) \
4fa63067 40279 || exit 1
3866be5d 40280
a90ef4bf 40281@endif target-libssp
3866be5d 40282
a90ef4bf
JM
40283.PHONY: maybe-install-html-target-libssp install-html-target-libssp
40284maybe-install-html-target-libssp:
40285@if target-libssp
40286maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 40287
a90ef4bf
JM
40288install-html-target-libssp: \
40289 configure-target-libssp \
40290 html-target-libssp
0aed8855 40291 @: $(MAKE); $(unstage)
22121df0 40292 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
40293 r=`${PWD_COMMAND}`; export r; \
40294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40295 $(NORMAL_TARGET_EXPORTS) \
22121df0 40296 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40297 for flag in $(EXTRA_TARGET_FLAGS); do \
40298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40299 done; \
a90ef4bf 40300 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40303 "RANLIB=$${RANLIB}" \
0c24b341 40304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40305 install-html) \
e2b9e2dc
NN
40306 || exit 1
40307
a90ef4bf 40308@endif target-libssp
3866be5d 40309
a90ef4bf
JM
40310.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
40311maybe-installcheck-target-libssp:
40312@if target-libssp
40313maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 40314
a90ef4bf
JM
40315installcheck-target-libssp: \
40316 configure-target-libssp
0aed8855 40317 @: $(MAKE); $(unstage)
22121df0 40318 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 40319 r=`${PWD_COMMAND}`; export r; \
b40e3958 40320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40321 $(NORMAL_TARGET_EXPORTS) \
22121df0 40322 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40323 for flag in $(EXTRA_TARGET_FLAGS); do \
40324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40325 done; \
a90ef4bf 40326 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40329 "RANLIB=$${RANLIB}" \
0c24b341 40330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40331 installcheck) \
6aa8ef82 40332 || exit 1
6aa8ef82 40333
a90ef4bf 40334@endif target-libssp
6aa8ef82 40335
a90ef4bf
JM
40336.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
40337maybe-mostlyclean-target-libssp:
40338@if target-libssp
40339maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 40340
a90ef4bf
JM
40341mostlyclean-target-libssp:
40342 @: $(MAKE); $(unstage)
22121df0 40343 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40344 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40346 $(NORMAL_TARGET_EXPORTS) \
22121df0 40347 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40348 for flag in $(EXTRA_TARGET_FLAGS); do \
40349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40350 done; \
40351 (cd $(TARGET_SUBDIR)/libssp && \
40352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40354 "RANLIB=$${RANLIB}" \
40355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40356 mostlyclean) \
40357 || exit 1
6aa8ef82 40358
a90ef4bf 40359@endif target-libssp
6aa8ef82 40360
a90ef4bf
JM
40361.PHONY: maybe-clean-target-libssp clean-target-libssp
40362maybe-clean-target-libssp:
40363@if target-libssp
40364maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 40365
a90ef4bf
JM
40366clean-target-libssp:
40367 @: $(MAKE); $(unstage)
22121df0 40368 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40369 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40371 $(NORMAL_TARGET_EXPORTS) \
22121df0 40372 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40373 for flag in $(EXTRA_TARGET_FLAGS); do \
40374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40375 done; \
40376 (cd $(TARGET_SUBDIR)/libssp && \
40377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40379 "RANLIB=$${RANLIB}" \
40380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40381 clean) \
40382 || exit 1
6aa8ef82 40383
a90ef4bf 40384@endif target-libssp
6aa8ef82 40385
a90ef4bf
JM
40386.PHONY: maybe-distclean-target-libssp distclean-target-libssp
40387maybe-distclean-target-libssp:
40388@if target-libssp
40389maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 40390
a90ef4bf
JM
40391distclean-target-libssp:
40392 @: $(MAKE); $(unstage)
22121df0 40393 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40394 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40396 $(NORMAL_TARGET_EXPORTS) \
22121df0 40397 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40398 for flag in $(EXTRA_TARGET_FLAGS); do \
40399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40400 done; \
40401 (cd $(TARGET_SUBDIR)/libssp && \
40402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40404 "RANLIB=$${RANLIB}" \
40405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40406 distclean) \
40407 || exit 1
6aa8ef82 40408
a90ef4bf 40409@endif target-libssp
6aa8ef82 40410
a90ef4bf
JM
40411.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
40412maybe-maintainer-clean-target-libssp:
40413@if target-libssp
40414maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 40415
a90ef4bf
JM
40416maintainer-clean-target-libssp:
40417 @: $(MAKE); $(unstage)
22121df0 40418 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40419 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40421 $(NORMAL_TARGET_EXPORTS) \
22121df0 40422 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40423 for flag in $(EXTRA_TARGET_FLAGS); do \
40424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40425 done; \
40426 (cd $(TARGET_SUBDIR)/libssp && \
40427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40429 "RANLIB=$${RANLIB}" \
40430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40431 maintainer-clean) \
40432 || exit 1
6aa8ef82 40433
a90ef4bf 40434@endif target-libssp
6aa8ef82
DJ
40435
40436
a90ef4bf
JM
40437
40438
40439
40440.PHONY: configure-target-newlib maybe-configure-target-newlib
40441maybe-configure-target-newlib:
40442@if gcc-bootstrap
40443configure-target-newlib: stage_current
40444@endif gcc-bootstrap
40445@if target-newlib
40446maybe-configure-target-newlib: configure-target-newlib
40447configure-target-newlib:
40448 @: $(MAKE); $(unstage)
6aa8ef82
DJ
40449 @r=`${PWD_COMMAND}`; export r; \
40450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40451 echo "Checking multilib configuration for newlib..."; \
22121df0
L
40452 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
40453 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40454 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
40455 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
40456 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
40457 else \
40458 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
40459 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
40460 fi; \
6aa8ef82 40461 else \
a90ef4bf 40462 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 40463 fi; \
a90ef4bf 40464 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 40465 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
40466 $(NORMAL_TARGET_EXPORTS) \
40467 echo Configuring in $(TARGET_SUBDIR)/newlib; \
40468 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
40469 case $(srcdir) in \
40470 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40471 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
40472 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40473 esac; \
1b6c0831 40474 module_srcdir=newlib; \
a90ef4bf 40475 rm -f no-such-file || : ; \
1b6c0831
L
40476 CONFIG_SITE=no-such-file $(SHELL) \
40477 $$s/$$module_srcdir/configure \
40478 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40479 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40480 --target=${target_alias} \
a90ef4bf
JM
40481 || exit 1
40482@endif target-newlib
6aa8ef82
DJ
40483
40484
40485
40486
40487
a90ef4bf
JM
40488.PHONY: all-target-newlib maybe-all-target-newlib
40489maybe-all-target-newlib:
40490@if gcc-bootstrap
40491all-target-newlib: stage_current
40492@endif gcc-bootstrap
40493@if target-newlib
40494TARGET-target-newlib=all
40495maybe-all-target-newlib: all-target-newlib
40496all-target-newlib: configure-target-newlib
40497 @: $(MAKE); $(unstage)
40498 @r=`${PWD_COMMAND}`; export r; \
40499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40500 $(NORMAL_TARGET_EXPORTS) \
40501 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 40502 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40503 $(TARGET-target-newlib))
40504@endif target-newlib
6aa8ef82 40505
6aa8ef82 40506
6aa8ef82 40507
6aa8ef82 40508
6aa8ef82 40509
a90ef4bf
JM
40510.PHONY: check-target-newlib maybe-check-target-newlib
40511maybe-check-target-newlib:
40512@if target-newlib
40513maybe-check-target-newlib: check-target-newlib
40514
40515check-target-newlib:
6aa8ef82
DJ
40516 @: $(MAKE); $(unstage)
40517 @r=`${PWD_COMMAND}`; export r; \
40518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40519 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40520 (cd $(TARGET_SUBDIR)/newlib && \
40521 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40522
40523@endif target-newlib
40524
40525.PHONY: install-target-newlib maybe-install-target-newlib
40526maybe-install-target-newlib:
40527@if target-newlib
40528maybe-install-target-newlib: install-target-newlib
40529
40530install-target-newlib: installdirs
40531 @: $(MAKE); $(unstage)
40532 @r=`${PWD_COMMAND}`; export r; \
40533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40534 $(NORMAL_TARGET_EXPORTS) \
40535 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40536 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40537
a90ef4bf 40538@endif target-newlib
6aa8ef82 40539
a90ef4bf
JM
40540.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
40541maybe-install-strip-target-newlib:
40542@if target-newlib
40543maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 40544
a90ef4bf 40545install-strip-target-newlib: installdirs
9b980aa1
RW
40546 @: $(MAKE); $(unstage)
40547 @r=`${PWD_COMMAND}`; export r; \
40548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40549 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40550 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
40551 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40552
a90ef4bf 40553@endif target-newlib
9b980aa1 40554
6aa8ef82
DJ
40555# Other targets (info, dvi, pdf, etc.)
40556
a90ef4bf
JM
40557.PHONY: maybe-info-target-newlib info-target-newlib
40558maybe-info-target-newlib:
40559@if target-newlib
40560maybe-info-target-newlib: info-target-newlib
6aa8ef82 40561
a90ef4bf
JM
40562info-target-newlib: \
40563 configure-target-newlib
6aa8ef82 40564 @: $(MAKE); $(unstage)
22121df0 40565 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40566 r=`${PWD_COMMAND}`; export r; \
40567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40568 $(NORMAL_TARGET_EXPORTS) \
22121df0 40569 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40570 for flag in $(EXTRA_TARGET_FLAGS); do \
40571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40572 done; \
a90ef4bf 40573 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40576 "RANLIB=$${RANLIB}" \
0c24b341 40577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40578 info) \
40579 || exit 1
40580
a90ef4bf 40581@endif target-newlib
6aa8ef82 40582
a90ef4bf
JM
40583.PHONY: maybe-dvi-target-newlib dvi-target-newlib
40584maybe-dvi-target-newlib:
40585@if target-newlib
40586maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 40587
a90ef4bf
JM
40588dvi-target-newlib: \
40589 configure-target-newlib
6aa8ef82 40590 @: $(MAKE); $(unstage)
22121df0 40591 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40592 r=`${PWD_COMMAND}`; export r; \
40593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40594 $(NORMAL_TARGET_EXPORTS) \
22121df0 40595 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40596 for flag in $(EXTRA_TARGET_FLAGS); do \
40597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40598 done; \
a90ef4bf 40599 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40602 "RANLIB=$${RANLIB}" \
0c24b341 40603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40604 dvi) \
40605 || exit 1
40606
a90ef4bf 40607@endif target-newlib
6aa8ef82 40608
a90ef4bf
JM
40609.PHONY: maybe-pdf-target-newlib pdf-target-newlib
40610maybe-pdf-target-newlib:
40611@if target-newlib
40612maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 40613
a90ef4bf
JM
40614pdf-target-newlib: \
40615 configure-target-newlib
6aa8ef82 40616 @: $(MAKE); $(unstage)
22121df0 40617 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40618 r=`${PWD_COMMAND}`; export r; \
40619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40620 $(NORMAL_TARGET_EXPORTS) \
22121df0 40621 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40622 for flag in $(EXTRA_TARGET_FLAGS); do \
40623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40624 done; \
a90ef4bf 40625 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40628 "RANLIB=$${RANLIB}" \
0c24b341 40629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40630 pdf) \
40631 || exit 1
40632
a90ef4bf 40633@endif target-newlib
6aa8ef82 40634
a90ef4bf
JM
40635.PHONY: maybe-html-target-newlib html-target-newlib
40636maybe-html-target-newlib:
40637@if target-newlib
40638maybe-html-target-newlib: html-target-newlib
6aa8ef82 40639
a90ef4bf
JM
40640html-target-newlib: \
40641 configure-target-newlib
6aa8ef82 40642 @: $(MAKE); $(unstage)
22121df0 40643 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40644 r=`${PWD_COMMAND}`; export r; \
40645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40646 $(NORMAL_TARGET_EXPORTS) \
22121df0 40647 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40648 for flag in $(EXTRA_TARGET_FLAGS); do \
40649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40650 done; \
a90ef4bf 40651 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40654 "RANLIB=$${RANLIB}" \
0c24b341 40655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40656 html) \
40657 || exit 1
40658
a90ef4bf 40659@endif target-newlib
6aa8ef82 40660
a90ef4bf
JM
40661.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
40662maybe-TAGS-target-newlib:
40663@if target-newlib
40664maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 40665
a90ef4bf
JM
40666TAGS-target-newlib: \
40667 configure-target-newlib
6aa8ef82 40668 @: $(MAKE); $(unstage)
22121df0 40669 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40670 r=`${PWD_COMMAND}`; export r; \
40671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40672 $(NORMAL_TARGET_EXPORTS) \
22121df0 40673 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40674 for flag in $(EXTRA_TARGET_FLAGS); do \
40675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40676 done; \
a90ef4bf 40677 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40680 "RANLIB=$${RANLIB}" \
0c24b341 40681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40682 TAGS) \
40683 || exit 1
40684
a90ef4bf 40685@endif target-newlib
6aa8ef82 40686
a90ef4bf
JM
40687.PHONY: maybe-install-info-target-newlib install-info-target-newlib
40688maybe-install-info-target-newlib:
40689@if target-newlib
40690maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 40691
a90ef4bf
JM
40692install-info-target-newlib: \
40693 configure-target-newlib \
40694 info-target-newlib
6aa8ef82 40695 @: $(MAKE); $(unstage)
22121df0 40696 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40697 r=`${PWD_COMMAND}`; export r; \
40698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40699 $(NORMAL_TARGET_EXPORTS) \
22121df0 40700 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40701 for flag in $(EXTRA_TARGET_FLAGS); do \
40702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40703 done; \
a90ef4bf 40704 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40707 "RANLIB=$${RANLIB}" \
0c24b341 40708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40709 install-info) \
40710 || exit 1
40711
a90ef4bf 40712@endif target-newlib
6aa8ef82 40713
a90ef4bf
JM
40714.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
40715maybe-install-pdf-target-newlib:
40716@if target-newlib
40717maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 40718
a90ef4bf
JM
40719install-pdf-target-newlib: \
40720 configure-target-newlib \
40721 pdf-target-newlib
a3ca38d2 40722 @: $(MAKE); $(unstage)
22121df0 40723 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
40724 r=`${PWD_COMMAND}`; export r; \
40725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40726 $(NORMAL_TARGET_EXPORTS) \
22121df0 40727 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
40728 for flag in $(EXTRA_TARGET_FLAGS); do \
40729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40730 done; \
a90ef4bf 40731 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
40732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40734 "RANLIB=$${RANLIB}" \
0c24b341 40735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40736 install-pdf) \
40737 || exit 1
40738
a90ef4bf 40739@endif target-newlib
a3ca38d2 40740
a90ef4bf
JM
40741.PHONY: maybe-install-html-target-newlib install-html-target-newlib
40742maybe-install-html-target-newlib:
40743@if target-newlib
40744maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 40745
a90ef4bf
JM
40746install-html-target-newlib: \
40747 configure-target-newlib \
40748 html-target-newlib
6aa8ef82 40749 @: $(MAKE); $(unstage)
22121df0 40750 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40751 r=`${PWD_COMMAND}`; export r; \
40752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40753 $(NORMAL_TARGET_EXPORTS) \
22121df0 40754 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40755 for flag in $(EXTRA_TARGET_FLAGS); do \
40756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40757 done; \
a90ef4bf 40758 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40761 "RANLIB=$${RANLIB}" \
0c24b341 40762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40763 install-html) \
40764 || exit 1
40765
a90ef4bf 40766@endif target-newlib
6aa8ef82 40767
a90ef4bf
JM
40768.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
40769maybe-installcheck-target-newlib:
40770@if target-newlib
40771maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 40772
a90ef4bf
JM
40773installcheck-target-newlib: \
40774 configure-target-newlib
6aa8ef82 40775 @: $(MAKE); $(unstage)
22121df0 40776 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40777 r=`${PWD_COMMAND}`; export r; \
40778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40779 $(NORMAL_TARGET_EXPORTS) \
22121df0 40780 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40781 for flag in $(EXTRA_TARGET_FLAGS); do \
40782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40783 done; \
a90ef4bf 40784 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40787 "RANLIB=$${RANLIB}" \
0c24b341 40788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40789 installcheck) \
40790 || exit 1
40791
a90ef4bf 40792@endif target-newlib
6aa8ef82 40793
a90ef4bf
JM
40794.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
40795maybe-mostlyclean-target-newlib:
40796@if target-newlib
40797maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 40798
a90ef4bf 40799mostlyclean-target-newlib:
6aa8ef82 40800 @: $(MAKE); $(unstage)
22121df0 40801 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40802 r=`${PWD_COMMAND}`; export r; \
40803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40804 $(NORMAL_TARGET_EXPORTS) \
22121df0 40805 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40806 for flag in $(EXTRA_TARGET_FLAGS); do \
40807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40808 done; \
a90ef4bf 40809 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40812 "RANLIB=$${RANLIB}" \
0c24b341 40813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40814 mostlyclean) \
40815 || exit 1
40816
a90ef4bf 40817@endif target-newlib
6aa8ef82 40818
a90ef4bf
JM
40819.PHONY: maybe-clean-target-newlib clean-target-newlib
40820maybe-clean-target-newlib:
40821@if target-newlib
40822maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 40823
a90ef4bf 40824clean-target-newlib:
6aa8ef82 40825 @: $(MAKE); $(unstage)
22121df0 40826 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40827 r=`${PWD_COMMAND}`; export r; \
40828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40829 $(NORMAL_TARGET_EXPORTS) \
22121df0 40830 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40831 for flag in $(EXTRA_TARGET_FLAGS); do \
40832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40833 done; \
a90ef4bf 40834 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40837 "RANLIB=$${RANLIB}" \
0c24b341 40838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40839 clean) \
40840 || exit 1
40841
a90ef4bf 40842@endif target-newlib
6aa8ef82 40843
a90ef4bf
JM
40844.PHONY: maybe-distclean-target-newlib distclean-target-newlib
40845maybe-distclean-target-newlib:
40846@if target-newlib
40847maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 40848
a90ef4bf 40849distclean-target-newlib:
6aa8ef82 40850 @: $(MAKE); $(unstage)
22121df0 40851 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40852 r=`${PWD_COMMAND}`; export r; \
40853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40854 $(NORMAL_TARGET_EXPORTS) \
22121df0 40855 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40856 for flag in $(EXTRA_TARGET_FLAGS); do \
40857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40858 done; \
a90ef4bf 40859 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40862 "RANLIB=$${RANLIB}" \
0c24b341 40863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40864 distclean) \
40865 || exit 1
40866
a90ef4bf 40867@endif target-newlib
6aa8ef82 40868
a90ef4bf
JM
40869.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
40870maybe-maintainer-clean-target-newlib:
40871@if target-newlib
40872maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 40873
a90ef4bf 40874maintainer-clean-target-newlib:
6aa8ef82 40875 @: $(MAKE); $(unstage)
22121df0 40876 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40877 r=`${PWD_COMMAND}`; export r; \
40878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40879 $(NORMAL_TARGET_EXPORTS) \
22121df0 40880 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40881 for flag in $(EXTRA_TARGET_FLAGS); do \
40882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40883 done; \
a90ef4bf 40884 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40887 "RANLIB=$${RANLIB}" \
0c24b341 40888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40889 maintainer-clean) \
40890 || exit 1
40891
a90ef4bf 40892@endif target-newlib
6aa8ef82
DJ
40893
40894
40895
40896
40897
a90ef4bf
JM
40898.PHONY: configure-target-libgcc maybe-configure-target-libgcc
40899maybe-configure-target-libgcc:
e552509b 40900@if gcc-bootstrap
a90ef4bf 40901configure-target-libgcc: stage_current
e552509b 40902@endif gcc-bootstrap
a90ef4bf
JM
40903@if target-libgcc
40904maybe-configure-target-libgcc: configure-target-libgcc
40905configure-target-libgcc:
e552509b
ILT
40906 @r=`${PWD_COMMAND}`; export r; \
40907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40908 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
40909 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
40910 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40911 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40912 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40913 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 40914 else \
a90ef4bf
JM
40915 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40916 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
40917 fi; \
40918 else \
a90ef4bf 40919 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 40920 fi; \
a90ef4bf 40921 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 40922 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 40923 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40924 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
40925 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
40926 case $(srcdir) in \
40927 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40928 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
40929 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40930 esac; \
1b6c0831 40931 module_srcdir=libgcc; \
e552509b 40932 rm -f no-such-file || : ; \
1b6c0831
L
40933 CONFIG_SITE=no-such-file $(SHELL) \
40934 $$s/$$module_srcdir/configure \
40935 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40936 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40937 --target=${target_alias} \
e552509b 40938 || exit 1
a90ef4bf 40939@endif target-libgcc
e552509b
ILT
40940
40941
e552509b 40942
a90ef4bf
JM
40943.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
40944maybe-configure-stage1-target-libgcc:
40945@if target-libgcc-bootstrap
40946maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
40947configure-stage1-target-libgcc:
40948 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40949 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40950 @r=`${PWD_COMMAND}`; export r; \
40951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40952 TFLAGS="$(STAGE1_TFLAGS)"; \
40953 echo "Checking multilib configuration for libgcc..."; \
22121df0 40954 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40955 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40956 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40957 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40958 else \
40959 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40960 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40961 fi; \
40962 else \
40963 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40964 fi; \
40965 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40966 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40967 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40968 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40969 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40970 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
40971 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40972 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40973 case $(srcdir) in \
40974 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40975 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40976 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40977 esac; \
1b6c0831
L
40978 module_srcdir=libgcc; \
40979 $(SHELL) $$s/$$module_srcdir/configure \
40980 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40981 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
40982 --target=${target_alias} \
40983 \
a90ef4bf
JM
40984 $(STAGE1_CONFIGURE_FLAGS)
40985@endif target-libgcc-bootstrap
e552509b 40986
a90ef4bf
JM
40987.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
40988maybe-configure-stage2-target-libgcc:
40989@if target-libgcc-bootstrap
40990maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
40991configure-stage2-target-libgcc:
40992 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
40993 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40994 @r=`${PWD_COMMAND}`; export r; \
40995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40996 TFLAGS="$(STAGE2_TFLAGS)"; \
40997 echo "Checking multilib configuration for libgcc..."; \
22121df0 40998 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40999 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41000 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41001 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41002 else \
41003 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41004 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41005 fi; \
41006 else \
41007 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41008 fi; \
41009 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41010 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41011 \
41012 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41013 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41014 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41015 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
41016 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41017 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41018 case $(srcdir) in \
41019 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41020 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41021 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41022 esac; \
1b6c0831
L
41023 module_srcdir=libgcc; \
41024 $(SHELL) $$s/$$module_srcdir/configure \
41025 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41026 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41027 --target=${target_alias} \
22121df0 41028 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41029 $(STAGE2_CONFIGURE_FLAGS)
41030@endif target-libgcc-bootstrap
9b980aa1 41031
a90ef4bf
JM
41032.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
41033maybe-configure-stage3-target-libgcc:
41034@if target-libgcc-bootstrap
41035maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
41036configure-stage3-target-libgcc:
41037 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
41038 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
41039 @r=`${PWD_COMMAND}`; export r; \
41040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41041 TFLAGS="$(STAGE3_TFLAGS)"; \
41042 echo "Checking multilib configuration for libgcc..."; \
22121df0 41043 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41044 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41045 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41046 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41047 else \
41048 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41049 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41050 fi; \
41051 else \
41052 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41053 fi; \
41054 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 41055 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41056 \
41057 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41058 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41059 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41060 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
41061 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41062 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41063 case $(srcdir) in \
41064 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41065 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41066 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41067 esac; \
1b6c0831
L
41068 module_srcdir=libgcc; \
41069 $(SHELL) $$s/$$module_srcdir/configure \
41070 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41071 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41072 --target=${target_alias} \
22121df0 41073 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41074 $(STAGE3_CONFIGURE_FLAGS)
41075@endif target-libgcc-bootstrap
e552509b 41076
a90ef4bf
JM
41077.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
41078maybe-configure-stage4-target-libgcc:
41079@if target-libgcc-bootstrap
41080maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
41081configure-stage4-target-libgcc:
41082 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
41083 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
41084 @r=`${PWD_COMMAND}`; export r; \
e552509b 41085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41086 TFLAGS="$(STAGE4_TFLAGS)"; \
41087 echo "Checking multilib configuration for libgcc..."; \
22121df0 41088 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41089 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41090 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41091 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41092 else \
41093 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41094 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41095 fi; \
41096 else \
41097 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41098 fi; \
41099 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41100 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41101 \
41102 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41103 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41104 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41105 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
41106 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41107 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41108 case $(srcdir) in \
41109 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41110 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41111 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41112 esac; \
1b6c0831
L
41113 module_srcdir=libgcc; \
41114 $(SHELL) $$s/$$module_srcdir/configure \
41115 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41116 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41117 --target=${target_alias} \
22121df0 41118 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41119 $(STAGE4_CONFIGURE_FLAGS)
41120@endif target-libgcc-bootstrap
41121
41122.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
41123maybe-configure-stageprofile-target-libgcc:
41124@if target-libgcc-bootstrap
41125maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
41126configure-stageprofile-target-libgcc:
41127 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
41128 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
41129 @r=`${PWD_COMMAND}`; export r; \
e552509b 41130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41131 TFLAGS="$(STAGEprofile_TFLAGS)"; \
41132 echo "Checking multilib configuration for libgcc..."; \
22121df0 41133 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41134 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41135 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41136 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41137 else \
41138 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41139 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41140 fi; \
41141 else \
41142 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41143 fi; \
41144 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41145 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41146 \
41147 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41148 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41149 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41150 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
41151 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41152 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41153 case $(srcdir) in \
41154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41155 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41157 esac; \
1b6c0831
L
41158 module_srcdir=libgcc; \
41159 $(SHELL) $$s/$$module_srcdir/configure \
41160 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41161 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41162 --target=${target_alias} \
22121df0 41163 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41164 $(STAGEprofile_CONFIGURE_FLAGS)
41165@endif target-libgcc-bootstrap
e552509b 41166
a90ef4bf
JM
41167.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
41168maybe-configure-stagefeedback-target-libgcc:
41169@if target-libgcc-bootstrap
41170maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
41171configure-stagefeedback-target-libgcc:
41172 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
41173 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
41174 @r=`${PWD_COMMAND}`; export r; \
e552509b 41175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41176 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
41177 echo "Checking multilib configuration for libgcc..."; \
22121df0 41178 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41179 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41180 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41181 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41182 else \
41183 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41184 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41185 fi; \
41186 else \
41187 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41188 fi; \
41189 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41190 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41191 \
41192 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41193 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41194 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41195 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
41196 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41197 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41198 case $(srcdir) in \
41199 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41200 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41201 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41202 esac; \
1b6c0831
L
41203 module_srcdir=libgcc; \
41204 $(SHELL) $$s/$$module_srcdir/configure \
41205 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41206 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41207 --target=${target_alias} \
22121df0 41208 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41209 $(STAGEfeedback_CONFIGURE_FLAGS)
41210@endif target-libgcc-bootstrap
e552509b 41211
e552509b 41212
e552509b 41213
e552509b 41214
e552509b 41215
a90ef4bf
JM
41216.PHONY: all-target-libgcc maybe-all-target-libgcc
41217maybe-all-target-libgcc:
41218@if gcc-bootstrap
41219all-target-libgcc: stage_current
41220@endif gcc-bootstrap
41221@if target-libgcc
41222TARGET-target-libgcc=all
41223maybe-all-target-libgcc: all-target-libgcc
41224all-target-libgcc: configure-target-libgcc
41225 @r=`${PWD_COMMAND}`; export r; \
e552509b 41226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41227 $(NORMAL_TARGET_EXPORTS) \
41228 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41229 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41230 $(TARGET-target-libgcc))
41231@endif target-libgcc
e552509b 41232
e552509b 41233
e552509b 41234
a90ef4bf
JM
41235.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
41236.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
41237maybe-all-stage1-target-libgcc:
41238maybe-clean-stage1-target-libgcc:
41239@if target-libgcc-bootstrap
41240maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
41241all-stage1: all-stage1-target-libgcc
41242TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
41243all-stage1-target-libgcc: configure-stage1-target-libgcc
41244 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
41245 @r=`${PWD_COMMAND}`; export r; \
e552509b 41246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41247 TFLAGS="$(STAGE1_TFLAGS)"; \
41248 $(NORMAL_TARGET_EXPORTS) \
41249 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41250 \
a90ef4bf
JM
41251 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41252 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41253 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41254 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41255 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41256 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41257 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
41258 $(EXTRA_TARGET_FLAGS) \
41259 \
05a13254 41260 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 41261 $(TARGET-stage1-target-libgcc)
e552509b 41262
a90ef4bf
JM
41263maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
41264clean-stage1: clean-stage1-target-libgcc
41265clean-stage1-target-libgcc:
41266 @if [ $(current_stage) = stage1 ]; then \
41267 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41268 else \
41269 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
41270 $(MAKE) stage1-start; \
41271 fi; \
41272 cd $(TARGET_SUBDIR)/libgcc && \
41273 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 41274 clean
a90ef4bf 41275@endif target-libgcc-bootstrap
e552509b 41276
e552509b 41277
a90ef4bf
JM
41278.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
41279.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
41280maybe-all-stage2-target-libgcc:
41281maybe-clean-stage2-target-libgcc:
41282@if target-libgcc-bootstrap
41283maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
41284all-stage2: all-stage2-target-libgcc
41285TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
41286all-stage2-target-libgcc: configure-stage2-target-libgcc
41287 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
41288 @r=`${PWD_COMMAND}`; export r; \
e552509b 41289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41290 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 41291 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41292 \
41293 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41294 \
a90ef4bf
JM
41295 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41296 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41297 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41298 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41299 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41300 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41301 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41302 $(EXTRA_TARGET_FLAGS) \
05a13254 41303 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 41304 $(TARGET-stage2-target-libgcc)
e552509b 41305
a90ef4bf
JM
41306maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
41307clean-stage2: clean-stage2-target-libgcc
41308clean-stage2-target-libgcc:
41309 @if [ $(current_stage) = stage2 ]; then \
41310 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41311 else \
41312 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
41313 $(MAKE) stage2-start; \
41314 fi; \
41315 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41316 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41317@endif target-libgcc-bootstrap
e552509b 41318
e552509b 41319
a90ef4bf
JM
41320.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
41321.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
41322maybe-all-stage3-target-libgcc:
41323maybe-clean-stage3-target-libgcc:
41324@if target-libgcc-bootstrap
41325maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
41326all-stage3: all-stage3-target-libgcc
41327TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
41328all-stage3-target-libgcc: configure-stage3-target-libgcc
41329 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
41330 @r=`${PWD_COMMAND}`; export r; \
e552509b 41331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41332 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 41333 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41334 \
41335 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41336 \
a90ef4bf
JM
41337 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41338 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41339 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41340 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41341 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41342 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41343 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41344 $(EXTRA_TARGET_FLAGS) \
05a13254 41345 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 41346 $(TARGET-stage3-target-libgcc)
e552509b 41347
a90ef4bf
JM
41348maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
41349clean-stage3: clean-stage3-target-libgcc
41350clean-stage3-target-libgcc:
41351 @if [ $(current_stage) = stage3 ]; then \
41352 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41353 else \
41354 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
41355 $(MAKE) stage3-start; \
41356 fi; \
41357 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41358 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41359@endif target-libgcc-bootstrap
e552509b 41360
e552509b 41361
a90ef4bf
JM
41362.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
41363.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
41364maybe-all-stage4-target-libgcc:
41365maybe-clean-stage4-target-libgcc:
41366@if target-libgcc-bootstrap
41367maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
41368all-stage4: all-stage4-target-libgcc
41369TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
41370all-stage4-target-libgcc: configure-stage4-target-libgcc
41371 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
41372 @r=`${PWD_COMMAND}`; export r; \
e552509b 41373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41374 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 41375 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41376 \
41377 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41378 \
a90ef4bf
JM
41379 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41380 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41381 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41382 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41383 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41384 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41385 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41386 $(EXTRA_TARGET_FLAGS) \
05a13254 41387 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 41388 $(TARGET-stage4-target-libgcc)
e552509b 41389
a90ef4bf
JM
41390maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
41391clean-stage4: clean-stage4-target-libgcc
41392clean-stage4-target-libgcc:
41393 @if [ $(current_stage) = stage4 ]; then \
41394 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41395 else \
41396 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
41397 $(MAKE) stage4-start; \
41398 fi; \
41399 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41400 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41401@endif target-libgcc-bootstrap
e552509b
ILT
41402
41403
a90ef4bf
JM
41404.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
41405.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
41406maybe-all-stageprofile-target-libgcc:
41407maybe-clean-stageprofile-target-libgcc:
41408@if target-libgcc-bootstrap
41409maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
41410all-stageprofile: all-stageprofile-target-libgcc
41411TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
41412all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
41413 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
41414 @r=`${PWD_COMMAND}`; export r; \
41415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41416 TFLAGS="$(STAGEprofile_TFLAGS)"; \
41417 $(NORMAL_TARGET_EXPORTS) \
41418 \
41419 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41420 \
a90ef4bf
JM
41421 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41422 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41423 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41424 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41425 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41426 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41427 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41428 $(EXTRA_TARGET_FLAGS) \
05a13254 41429 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
41430 $(TARGET-stageprofile-target-libgcc)
41431
41432maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
41433clean-stageprofile: clean-stageprofile-target-libgcc
41434clean-stageprofile-target-libgcc:
41435 @if [ $(current_stage) = stageprofile ]; then \
41436 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 41437 else \
a90ef4bf
JM
41438 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
41439 $(MAKE) stageprofile-start; \
c52c6897 41440 fi; \
a90ef4bf 41441 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41442 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41443@endif target-libgcc-bootstrap
d545f33b
PB
41444
41445
a90ef4bf
JM
41446.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
41447.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
41448maybe-all-stagefeedback-target-libgcc:
41449maybe-clean-stagefeedback-target-libgcc:
41450@if target-libgcc-bootstrap
41451maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
41452all-stagefeedback: all-stagefeedback-target-libgcc
41453TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
41454all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
41455 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
41456 @r=`${PWD_COMMAND}`; export r; \
41457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41458 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
41459 $(NORMAL_TARGET_EXPORTS) \
41460 \
41461 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41462 \
a90ef4bf
JM
41463 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41464 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41465 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41466 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41467 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41468 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41469 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41470 $(EXTRA_TARGET_FLAGS) \
05a13254 41471 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
41472 $(TARGET-stagefeedback-target-libgcc)
41473
41474maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
41475clean-stagefeedback: clean-stagefeedback-target-libgcc
41476clean-stagefeedback-target-libgcc:
41477 @if [ $(current_stage) = stagefeedback ]; then \
41478 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41479 else \
41480 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
41481 $(MAKE) stagefeedback-start; \
41482 fi; \
41483 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41484 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41485@endif target-libgcc-bootstrap
4b1cb4fe 41486
a7254363
PB
41487
41488
d545f33b
PB
41489
41490
4b1cb4fe 41491
a90ef4bf
JM
41492.PHONY: check-target-libgcc maybe-check-target-libgcc
41493maybe-check-target-libgcc:
41494@if target-libgcc
41495maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 41496
a90ef4bf
JM
41497# Dummy target for uncheckable module.
41498check-target-libgcc:
4b1cb4fe 41499
a90ef4bf 41500@endif target-libgcc
4b1cb4fe 41501
a90ef4bf
JM
41502.PHONY: install-target-libgcc maybe-install-target-libgcc
41503maybe-install-target-libgcc:
41504@if target-libgcc
41505maybe-install-target-libgcc: install-target-libgcc
41506
41507install-target-libgcc: installdirs
0aed8855 41508 @: $(MAKE); $(unstage)
4b1cb4fe
DD
41509 @r=`${PWD_COMMAND}`; export r; \
41510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41511 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41512 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 41513 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 41514
a90ef4bf 41515@endif target-libgcc
4b1cb4fe 41516
a90ef4bf
JM
41517.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
41518maybe-install-strip-target-libgcc:
41519@if target-libgcc
41520maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 41521
a90ef4bf 41522install-strip-target-libgcc: installdirs
9b980aa1
RW
41523 @: $(MAKE); $(unstage)
41524 @r=`${PWD_COMMAND}`; export r; \
41525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41526 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41527 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
41528 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41529
a90ef4bf 41530@endif target-libgcc
9b980aa1 41531
56a8fe78 41532# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 41533
a90ef4bf
JM
41534.PHONY: maybe-info-target-libgcc info-target-libgcc
41535maybe-info-target-libgcc:
41536@if target-libgcc
41537maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 41538
a90ef4bf
JM
41539info-target-libgcc: \
41540 configure-target-libgcc
0aed8855 41541 @: $(MAKE); $(unstage)
22121df0 41542 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41543 r=`${PWD_COMMAND}`; export r; \
41544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41545 $(NORMAL_TARGET_EXPORTS) \
22121df0 41546 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41547 for flag in $(EXTRA_TARGET_FLAGS); do \
41548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41549 done; \
a90ef4bf 41550 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41553 "RANLIB=$${RANLIB}" \
0c24b341 41554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41555 info) \
4b1cb4fe
DD
41556 || exit 1
41557
a90ef4bf 41558@endif target-libgcc
4b1cb4fe 41559
a90ef4bf
JM
41560.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
41561maybe-dvi-target-libgcc:
41562@if target-libgcc
41563maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 41564
a90ef4bf
JM
41565dvi-target-libgcc: \
41566 configure-target-libgcc
0aed8855 41567 @: $(MAKE); $(unstage)
22121df0 41568 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41569 r=`${PWD_COMMAND}`; export r; \
41570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41571 $(NORMAL_TARGET_EXPORTS) \
22121df0 41572 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41573 for flag in $(EXTRA_TARGET_FLAGS); do \
41574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41575 done; \
a90ef4bf 41576 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41579 "RANLIB=$${RANLIB}" \
0c24b341 41580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41581 dvi) \
4b1cb4fe
DD
41582 || exit 1
41583
a90ef4bf 41584@endif target-libgcc
4b1cb4fe 41585
a90ef4bf
JM
41586.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
41587maybe-pdf-target-libgcc:
41588@if target-libgcc
41589maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 41590
a90ef4bf
JM
41591pdf-target-libgcc: \
41592 configure-target-libgcc
56a8fe78 41593 @: $(MAKE); $(unstage)
22121df0 41594 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
41595 r=`${PWD_COMMAND}`; export r; \
41596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41597 $(NORMAL_TARGET_EXPORTS) \
22121df0 41598 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
41599 for flag in $(EXTRA_TARGET_FLAGS); do \
41600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41601 done; \
a90ef4bf 41602 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
41603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41605 "RANLIB=$${RANLIB}" \
0c24b341 41606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41607 pdf) \
41608 || exit 1
41609
a90ef4bf 41610@endif target-libgcc
56a8fe78 41611
a90ef4bf
JM
41612.PHONY: maybe-html-target-libgcc html-target-libgcc
41613maybe-html-target-libgcc:
41614@if target-libgcc
41615maybe-html-target-libgcc: html-target-libgcc
6d389afc 41616
a90ef4bf
JM
41617html-target-libgcc: \
41618 configure-target-libgcc
0aed8855 41619 @: $(MAKE); $(unstage)
22121df0 41620 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
41621 r=`${PWD_COMMAND}`; export r; \
41622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41623 $(NORMAL_TARGET_EXPORTS) \
22121df0 41624 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
41625 for flag in $(EXTRA_TARGET_FLAGS); do \
41626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41627 done; \
a90ef4bf 41628 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
41629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41631 "RANLIB=$${RANLIB}" \
0c24b341 41632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41633 html) \
41634 || exit 1
41635
a90ef4bf 41636@endif target-libgcc
6d389afc 41637
a90ef4bf
JM
41638.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
41639maybe-TAGS-target-libgcc:
41640@if target-libgcc
41641maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 41642
a90ef4bf
JM
41643TAGS-target-libgcc: \
41644 configure-target-libgcc
0aed8855 41645 @: $(MAKE); $(unstage)
22121df0 41646 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41647 r=`${PWD_COMMAND}`; export r; \
41648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41649 $(NORMAL_TARGET_EXPORTS) \
22121df0 41650 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41651 for flag in $(EXTRA_TARGET_FLAGS); do \
41652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41653 done; \
a90ef4bf 41654 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41657 "RANLIB=$${RANLIB}" \
0c24b341 41658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41659 TAGS) \
4b1cb4fe
DD
41660 || exit 1
41661
a90ef4bf 41662@endif target-libgcc
4b1cb4fe 41663
a90ef4bf
JM
41664.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
41665maybe-install-info-target-libgcc:
41666@if target-libgcc
41667maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 41668
a90ef4bf
JM
41669install-info-target-libgcc: \
41670 configure-target-libgcc \
41671 info-target-libgcc
0aed8855 41672 @: $(MAKE); $(unstage)
22121df0 41673 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41674 r=`${PWD_COMMAND}`; export r; \
41675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41676 $(NORMAL_TARGET_EXPORTS) \
22121df0 41677 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41678 for flag in $(EXTRA_TARGET_FLAGS); do \
41679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41680 done; \
a90ef4bf 41681 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41684 "RANLIB=$${RANLIB}" \
0c24b341 41685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41686 install-info) \
4b1cb4fe
DD
41687 || exit 1
41688
a90ef4bf 41689@endif target-libgcc
4b1cb4fe 41690
a90ef4bf
JM
41691.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
41692maybe-install-pdf-target-libgcc:
41693@if target-libgcc
41694maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 41695
a90ef4bf
JM
41696install-pdf-target-libgcc: \
41697 configure-target-libgcc \
41698 pdf-target-libgcc
a3ca38d2 41699 @: $(MAKE); $(unstage)
22121df0 41700 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
41701 r=`${PWD_COMMAND}`; export r; \
41702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41703 $(NORMAL_TARGET_EXPORTS) \
22121df0 41704 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
41705 for flag in $(EXTRA_TARGET_FLAGS); do \
41706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41707 done; \
a90ef4bf 41708 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
41709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41711 "RANLIB=$${RANLIB}" \
0c24b341 41712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41713 install-pdf) \
41714 || exit 1
41715
a90ef4bf 41716@endif target-libgcc
a3ca38d2 41717
a90ef4bf
JM
41718.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
41719maybe-install-html-target-libgcc:
41720@if target-libgcc
41721maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 41722
a90ef4bf
JM
41723install-html-target-libgcc: \
41724 configure-target-libgcc \
41725 html-target-libgcc
108a6f8e 41726 @: $(MAKE); $(unstage)
22121df0 41727 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
41728 r=`${PWD_COMMAND}`; export r; \
41729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41730 $(NORMAL_TARGET_EXPORTS) \
22121df0 41731 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
41732 for flag in $(EXTRA_TARGET_FLAGS); do \
41733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41734 done; \
a90ef4bf 41735 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
41736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41738 "RANLIB=$${RANLIB}" \
0c24b341 41739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41740 install-html) \
41741 || exit 1
41742
a90ef4bf 41743@endif target-libgcc
108a6f8e 41744
a90ef4bf
JM
41745.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
41746maybe-installcheck-target-libgcc:
41747@if target-libgcc
41748maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 41749
a90ef4bf
JM
41750installcheck-target-libgcc: \
41751 configure-target-libgcc
0aed8855 41752 @: $(MAKE); $(unstage)
22121df0 41753 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41754 r=`${PWD_COMMAND}`; export r; \
41755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41756 $(NORMAL_TARGET_EXPORTS) \
22121df0 41757 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41758 for flag in $(EXTRA_TARGET_FLAGS); do \
41759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41760 done; \
a90ef4bf 41761 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41764 "RANLIB=$${RANLIB}" \
0c24b341 41765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41766 installcheck) \
4b1cb4fe
DD
41767 || exit 1
41768
a90ef4bf 41769@endif target-libgcc
4b1cb4fe 41770
a90ef4bf
JM
41771.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
41772maybe-mostlyclean-target-libgcc:
41773@if target-libgcc
41774maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 41775
a90ef4bf 41776mostlyclean-target-libgcc:
0aed8855 41777 @: $(MAKE); $(unstage)
22121df0 41778 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41779 r=`${PWD_COMMAND}`; export r; \
41780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41781 $(NORMAL_TARGET_EXPORTS) \
22121df0 41782 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41783 for flag in $(EXTRA_TARGET_FLAGS); do \
41784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41785 done; \
a90ef4bf 41786 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41789 "RANLIB=$${RANLIB}" \
0c24b341 41790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41791 mostlyclean) \
4b1cb4fe
DD
41792 || exit 1
41793
a90ef4bf 41794@endif target-libgcc
4b1cb4fe 41795
a90ef4bf
JM
41796.PHONY: maybe-clean-target-libgcc clean-target-libgcc
41797maybe-clean-target-libgcc:
41798@if target-libgcc
41799maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 41800
a90ef4bf 41801clean-target-libgcc:
0aed8855 41802 @: $(MAKE); $(unstage)
22121df0 41803 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41804 r=`${PWD_COMMAND}`; export r; \
41805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41806 $(NORMAL_TARGET_EXPORTS) \
22121df0 41807 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41808 for flag in $(EXTRA_TARGET_FLAGS); do \
41809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41810 done; \
a90ef4bf 41811 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41814 "RANLIB=$${RANLIB}" \
0c24b341 41815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41816 clean) \
4b1cb4fe
DD
41817 || exit 1
41818
a90ef4bf 41819@endif target-libgcc
4b1cb4fe 41820
a90ef4bf
JM
41821.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
41822maybe-distclean-target-libgcc:
41823@if target-libgcc
41824maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 41825
a90ef4bf 41826distclean-target-libgcc:
0aed8855 41827 @: $(MAKE); $(unstage)
22121df0 41828 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41829 r=`${PWD_COMMAND}`; export r; \
41830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41831 $(NORMAL_TARGET_EXPORTS) \
22121df0 41832 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41833 for flag in $(EXTRA_TARGET_FLAGS); do \
41834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41835 done; \
a90ef4bf 41836 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41839 "RANLIB=$${RANLIB}" \
0c24b341 41840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41841 distclean) \
4b1cb4fe
DD
41842 || exit 1
41843
a90ef4bf 41844@endif target-libgcc
4b1cb4fe 41845
a90ef4bf
JM
41846.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
41847maybe-maintainer-clean-target-libgcc:
41848@if target-libgcc
41849maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 41850
a90ef4bf 41851maintainer-clean-target-libgcc:
0aed8855 41852 @: $(MAKE); $(unstage)
22121df0 41853 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41854 r=`${PWD_COMMAND}`; export r; \
41855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41856 $(NORMAL_TARGET_EXPORTS) \
22121df0 41857 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41858 for flag in $(EXTRA_TARGET_FLAGS); do \
41859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41860 done; \
a90ef4bf 41861 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41864 "RANLIB=$${RANLIB}" \
0c24b341 41865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41866 maintainer-clean) \
4b1cb4fe
DD
41867 || exit 1
41868
a90ef4bf 41869@endif target-libgcc
4b1cb4fe
DD
41870
41871
3866be5d 41872
a7254363 41873
e90269c8 41874
2bf680c4
ILT
41875.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
41876maybe-configure-target-libbacktrace:
41877@if gcc-bootstrap
41878configure-target-libbacktrace: stage_current
41879@endif gcc-bootstrap
41880@if target-libbacktrace
41881maybe-configure-target-libbacktrace: configure-target-libbacktrace
41882configure-target-libbacktrace:
41883 @: $(MAKE); $(unstage)
41884 @r=`${PWD_COMMAND}`; export r; \
41885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41886 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
41887 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
41888 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
41889 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
41890 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
41891 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
41892 else \
41893 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
41894 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
41895 fi; \
41896 else \
41897 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
41898 fi; \
41899 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 41900 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
41901 $(NORMAL_TARGET_EXPORTS) \
41902 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
41903 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
41904 case $(srcdir) in \
41905 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41906 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
41907 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41908 esac; \
1b6c0831 41909 module_srcdir=libbacktrace; \
2bf680c4 41910 rm -f no-such-file || : ; \
1b6c0831
L
41911 CONFIG_SITE=no-such-file $(SHELL) \
41912 $$s/$$module_srcdir/configure \
41913 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 41914 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41915 --target=${target_alias} \
2bf680c4
ILT
41916 || exit 1
41917@endif target-libbacktrace
41918
41919
41920
41921
41922
41923.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
41924maybe-all-target-libbacktrace:
41925@if gcc-bootstrap
41926all-target-libbacktrace: stage_current
41927@endif gcc-bootstrap
41928@if target-libbacktrace
41929TARGET-target-libbacktrace=all
41930maybe-all-target-libbacktrace: all-target-libbacktrace
41931all-target-libbacktrace: configure-target-libbacktrace
41932 @: $(MAKE); $(unstage)
41933 @r=`${PWD_COMMAND}`; export r; \
41934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41935 $(NORMAL_TARGET_EXPORTS) \
41936 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 41937 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
41938 $(TARGET-target-libbacktrace))
41939@endif target-libbacktrace
41940
41941
41942
41943
41944
41945.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
41946maybe-check-target-libbacktrace:
41947@if target-libbacktrace
41948maybe-check-target-libbacktrace: check-target-libbacktrace
41949
41950check-target-libbacktrace:
41951 @: $(MAKE); $(unstage)
41952 @r=`${PWD_COMMAND}`; export r; \
41953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41954 $(NORMAL_TARGET_EXPORTS) \
41955 (cd $(TARGET_SUBDIR)/libbacktrace && \
41956 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
41957
41958@endif target-libbacktrace
41959
41960.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
41961maybe-install-target-libbacktrace:
41962@if target-libbacktrace
41963maybe-install-target-libbacktrace: install-target-libbacktrace
41964
41965install-target-libbacktrace: installdirs
41966 @: $(MAKE); $(unstage)
41967 @r=`${PWD_COMMAND}`; export r; \
41968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41969 $(NORMAL_TARGET_EXPORTS) \
41970 (cd $(TARGET_SUBDIR)/libbacktrace && \
41971 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
41972
41973@endif target-libbacktrace
41974
41975.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
41976maybe-install-strip-target-libbacktrace:
41977@if target-libbacktrace
41978maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
41979
41980install-strip-target-libbacktrace: installdirs
41981 @: $(MAKE); $(unstage)
41982 @r=`${PWD_COMMAND}`; export r; \
41983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41984 $(NORMAL_TARGET_EXPORTS) \
41985 (cd $(TARGET_SUBDIR)/libbacktrace && \
41986 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41987
41988@endif target-libbacktrace
41989
41990# Other targets (info, dvi, pdf, etc.)
41991
41992.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
41993maybe-info-target-libbacktrace:
41994@if target-libbacktrace
41995maybe-info-target-libbacktrace: info-target-libbacktrace
41996
41997info-target-libbacktrace: \
41998 configure-target-libbacktrace
41999 @: $(MAKE); $(unstage)
22121df0 42000 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42001 r=`${PWD_COMMAND}`; export r; \
42002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42003 $(NORMAL_TARGET_EXPORTS) \
22121df0 42004 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42005 for flag in $(EXTRA_TARGET_FLAGS); do \
42006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42007 done; \
42008 (cd $(TARGET_SUBDIR)/libbacktrace && \
42009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42011 "RANLIB=$${RANLIB}" \
42012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42013 info) \
42014 || exit 1
42015
42016@endif target-libbacktrace
42017
42018.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
42019maybe-dvi-target-libbacktrace:
42020@if target-libbacktrace
42021maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
42022
42023dvi-target-libbacktrace: \
42024 configure-target-libbacktrace
42025 @: $(MAKE); $(unstage)
22121df0 42026 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42027 r=`${PWD_COMMAND}`; export r; \
42028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42029 $(NORMAL_TARGET_EXPORTS) \
22121df0 42030 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42031 for flag in $(EXTRA_TARGET_FLAGS); do \
42032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42033 done; \
42034 (cd $(TARGET_SUBDIR)/libbacktrace && \
42035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42037 "RANLIB=$${RANLIB}" \
42038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42039 dvi) \
42040 || exit 1
42041
42042@endif target-libbacktrace
42043
42044.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
42045maybe-pdf-target-libbacktrace:
42046@if target-libbacktrace
42047maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
42048
42049pdf-target-libbacktrace: \
42050 configure-target-libbacktrace
42051 @: $(MAKE); $(unstage)
22121df0 42052 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42053 r=`${PWD_COMMAND}`; export r; \
42054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42055 $(NORMAL_TARGET_EXPORTS) \
22121df0 42056 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42057 for flag in $(EXTRA_TARGET_FLAGS); do \
42058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42059 done; \
42060 (cd $(TARGET_SUBDIR)/libbacktrace && \
42061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42063 "RANLIB=$${RANLIB}" \
42064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42065 pdf) \
42066 || exit 1
42067
42068@endif target-libbacktrace
42069
42070.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
42071maybe-html-target-libbacktrace:
42072@if target-libbacktrace
42073maybe-html-target-libbacktrace: html-target-libbacktrace
42074
42075html-target-libbacktrace: \
42076 configure-target-libbacktrace
42077 @: $(MAKE); $(unstage)
22121df0 42078 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42079 r=`${PWD_COMMAND}`; export r; \
42080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42081 $(NORMAL_TARGET_EXPORTS) \
22121df0 42082 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42083 for flag in $(EXTRA_TARGET_FLAGS); do \
42084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42085 done; \
42086 (cd $(TARGET_SUBDIR)/libbacktrace && \
42087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42089 "RANLIB=$${RANLIB}" \
42090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42091 html) \
42092 || exit 1
42093
42094@endif target-libbacktrace
42095
42096.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
42097maybe-TAGS-target-libbacktrace:
42098@if target-libbacktrace
42099maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
42100
42101TAGS-target-libbacktrace: \
42102 configure-target-libbacktrace
42103 @: $(MAKE); $(unstage)
22121df0 42104 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42105 r=`${PWD_COMMAND}`; export r; \
42106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42107 $(NORMAL_TARGET_EXPORTS) \
22121df0 42108 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42109 for flag in $(EXTRA_TARGET_FLAGS); do \
42110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42111 done; \
42112 (cd $(TARGET_SUBDIR)/libbacktrace && \
42113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42115 "RANLIB=$${RANLIB}" \
42116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42117 TAGS) \
42118 || exit 1
42119
42120@endif target-libbacktrace
42121
42122.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
42123maybe-install-info-target-libbacktrace:
42124@if target-libbacktrace
42125maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
42126
42127install-info-target-libbacktrace: \
42128 configure-target-libbacktrace \
42129 info-target-libbacktrace
42130 @: $(MAKE); $(unstage)
22121df0 42131 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42132 r=`${PWD_COMMAND}`; export r; \
42133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42134 $(NORMAL_TARGET_EXPORTS) \
22121df0 42135 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42136 for flag in $(EXTRA_TARGET_FLAGS); do \
42137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42138 done; \
42139 (cd $(TARGET_SUBDIR)/libbacktrace && \
42140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42142 "RANLIB=$${RANLIB}" \
42143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42144 install-info) \
42145 || exit 1
42146
42147@endif target-libbacktrace
42148
42149.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
42150maybe-install-pdf-target-libbacktrace:
42151@if target-libbacktrace
42152maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
42153
42154install-pdf-target-libbacktrace: \
42155 configure-target-libbacktrace \
42156 pdf-target-libbacktrace
42157 @: $(MAKE); $(unstage)
22121df0 42158 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42159 r=`${PWD_COMMAND}`; export r; \
42160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42161 $(NORMAL_TARGET_EXPORTS) \
22121df0 42162 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42163 for flag in $(EXTRA_TARGET_FLAGS); do \
42164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42165 done; \
42166 (cd $(TARGET_SUBDIR)/libbacktrace && \
42167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42169 "RANLIB=$${RANLIB}" \
42170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42171 install-pdf) \
42172 || exit 1
42173
42174@endif target-libbacktrace
42175
42176.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
42177maybe-install-html-target-libbacktrace:
42178@if target-libbacktrace
42179maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
42180
42181install-html-target-libbacktrace: \
42182 configure-target-libbacktrace \
42183 html-target-libbacktrace
42184 @: $(MAKE); $(unstage)
22121df0 42185 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42186 r=`${PWD_COMMAND}`; export r; \
42187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42188 $(NORMAL_TARGET_EXPORTS) \
22121df0 42189 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42190 for flag in $(EXTRA_TARGET_FLAGS); do \
42191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42192 done; \
42193 (cd $(TARGET_SUBDIR)/libbacktrace && \
42194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42196 "RANLIB=$${RANLIB}" \
42197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42198 install-html) \
42199 || exit 1
42200
42201@endif target-libbacktrace
42202
42203.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
42204maybe-installcheck-target-libbacktrace:
42205@if target-libbacktrace
42206maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
42207
42208installcheck-target-libbacktrace: \
42209 configure-target-libbacktrace
42210 @: $(MAKE); $(unstage)
22121df0 42211 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42212 r=`${PWD_COMMAND}`; export r; \
42213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42214 $(NORMAL_TARGET_EXPORTS) \
22121df0 42215 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42216 for flag in $(EXTRA_TARGET_FLAGS); do \
42217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42218 done; \
42219 (cd $(TARGET_SUBDIR)/libbacktrace && \
42220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42222 "RANLIB=$${RANLIB}" \
42223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42224 installcheck) \
42225 || exit 1
42226
42227@endif target-libbacktrace
42228
42229.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
42230maybe-mostlyclean-target-libbacktrace:
42231@if target-libbacktrace
42232maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
42233
42234mostlyclean-target-libbacktrace:
42235 @: $(MAKE); $(unstage)
22121df0 42236 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42237 r=`${PWD_COMMAND}`; export r; \
42238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42239 $(NORMAL_TARGET_EXPORTS) \
22121df0 42240 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42241 for flag in $(EXTRA_TARGET_FLAGS); do \
42242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42243 done; \
42244 (cd $(TARGET_SUBDIR)/libbacktrace && \
42245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42247 "RANLIB=$${RANLIB}" \
42248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42249 mostlyclean) \
42250 || exit 1
42251
42252@endif target-libbacktrace
42253
42254.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
42255maybe-clean-target-libbacktrace:
42256@if target-libbacktrace
42257maybe-clean-target-libbacktrace: clean-target-libbacktrace
42258
42259clean-target-libbacktrace:
42260 @: $(MAKE); $(unstage)
22121df0 42261 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42262 r=`${PWD_COMMAND}`; export r; \
42263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42264 $(NORMAL_TARGET_EXPORTS) \
22121df0 42265 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42266 for flag in $(EXTRA_TARGET_FLAGS); do \
42267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42268 done; \
42269 (cd $(TARGET_SUBDIR)/libbacktrace && \
42270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42272 "RANLIB=$${RANLIB}" \
42273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42274 clean) \
42275 || exit 1
42276
42277@endif target-libbacktrace
42278
42279.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
42280maybe-distclean-target-libbacktrace:
42281@if target-libbacktrace
42282maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
42283
42284distclean-target-libbacktrace:
42285 @: $(MAKE); $(unstage)
22121df0 42286 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42287 r=`${PWD_COMMAND}`; export r; \
42288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42289 $(NORMAL_TARGET_EXPORTS) \
22121df0 42290 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42291 for flag in $(EXTRA_TARGET_FLAGS); do \
42292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42293 done; \
42294 (cd $(TARGET_SUBDIR)/libbacktrace && \
42295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42297 "RANLIB=$${RANLIB}" \
42298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42299 distclean) \
42300 || exit 1
42301
42302@endif target-libbacktrace
42303
42304.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
42305maybe-maintainer-clean-target-libbacktrace:
42306@if target-libbacktrace
42307maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
42308
42309maintainer-clean-target-libbacktrace:
42310 @: $(MAKE); $(unstage)
22121df0 42311 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42312 r=`${PWD_COMMAND}`; export r; \
42313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42314 $(NORMAL_TARGET_EXPORTS) \
22121df0 42315 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42316 for flag in $(EXTRA_TARGET_FLAGS); do \
42317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42318 done; \
42319 (cd $(TARGET_SUBDIR)/libbacktrace && \
42320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42322 "RANLIB=$${RANLIB}" \
42323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42324 maintainer-clean) \
42325 || exit 1
42326
42327@endif target-libbacktrace
42328
42329
42330
42331
42332
a90ef4bf
JM
42333.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
42334maybe-configure-target-libquadmath:
4f0ef2d8 42335@if gcc-bootstrap
a90ef4bf 42336configure-target-libquadmath: stage_current
4f0ef2d8 42337@endif gcc-bootstrap
a90ef4bf
JM
42338@if target-libquadmath
42339maybe-configure-target-libquadmath: configure-target-libquadmath
42340configure-target-libquadmath:
0aed8855
PB
42341 @: $(MAKE); $(unstage)
42342 @r=`${PWD_COMMAND}`; export r; \
42343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42344 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
42345 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
42346 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42347 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
42348 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
42349 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 42350 else \
a90ef4bf
JM
42351 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
42352 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
42353 fi; \
42354 else \
a90ef4bf 42355 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 42356 fi; \
a90ef4bf 42357 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 42358 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 42359 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42360 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
42361 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 42362 case $(srcdir) in \
b00612cc 42363 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42364 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 42365 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 42366 esac; \
1b6c0831 42367 module_srcdir=libquadmath; \
4fa63067 42368 rm -f no-such-file || : ; \
1b6c0831
L
42369 CONFIG_SITE=no-such-file $(SHELL) \
42370 $$s/$$module_srcdir/configure \
42371 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42372 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42373 --target=${target_alias} \
e2b9e2dc 42374 || exit 1
a90ef4bf 42375@endif target-libquadmath
e2b9e2dc 42376
a7254363
PB
42377
42378
d545f33b
PB
42379
42380
a90ef4bf
JM
42381.PHONY: all-target-libquadmath maybe-all-target-libquadmath
42382maybe-all-target-libquadmath:
4f0ef2d8 42383@if gcc-bootstrap
a90ef4bf 42384all-target-libquadmath: stage_current
4f0ef2d8 42385@endif gcc-bootstrap
a90ef4bf
JM
42386@if target-libquadmath
42387TARGET-target-libquadmath=all
42388maybe-all-target-libquadmath: all-target-libquadmath
42389all-target-libquadmath: configure-target-libquadmath
0aed8855 42390 @: $(MAKE); $(unstage)
b40e3958
L
42391 @r=`${PWD_COMMAND}`; export r; \
42392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42393 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42394 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 42395 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42396 $(TARGET-target-libquadmath))
42397@endif target-libquadmath
3866be5d 42398
a7254363
PB
42399
42400
d545f33b
PB
42401
42402
a90ef4bf
JM
42403.PHONY: check-target-libquadmath maybe-check-target-libquadmath
42404maybe-check-target-libquadmath:
42405@if target-libquadmath
42406maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 42407
a90ef4bf 42408check-target-libquadmath:
0aed8855 42409 @: $(MAKE); $(unstage)
b40e3958
L
42410 @r=`${PWD_COMMAND}`; export r; \
42411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42412 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42413 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 42414 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 42415
a90ef4bf 42416@endif target-libquadmath
3866be5d 42417
a90ef4bf
JM
42418.PHONY: install-target-libquadmath maybe-install-target-libquadmath
42419maybe-install-target-libquadmath:
42420@if target-libquadmath
42421maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 42422
a90ef4bf 42423install-target-libquadmath: installdirs
0aed8855 42424 @: $(MAKE); $(unstage)
b40e3958
L
42425 @r=`${PWD_COMMAND}`; export r; \
42426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42427 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42428 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 42429 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 42430
a90ef4bf 42431@endif target-libquadmath
3866be5d 42432
a90ef4bf
JM
42433.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
42434maybe-install-strip-target-libquadmath:
42435@if target-libquadmath
42436maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 42437
a90ef4bf 42438install-strip-target-libquadmath: installdirs
9b980aa1
RW
42439 @: $(MAKE); $(unstage)
42440 @r=`${PWD_COMMAND}`; export r; \
42441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42442 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42443 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
42444 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42445
a90ef4bf 42446@endif target-libquadmath
9b980aa1 42447
56a8fe78 42448# Other targets (info, dvi, pdf, etc.)
4fa63067 42449
a90ef4bf
JM
42450.PHONY: maybe-info-target-libquadmath info-target-libquadmath
42451maybe-info-target-libquadmath:
42452@if target-libquadmath
42453maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 42454
a90ef4bf
JM
42455info-target-libquadmath: \
42456 configure-target-libquadmath
0aed8855 42457 @: $(MAKE); $(unstage)
22121df0 42458 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42459 r=`${PWD_COMMAND}`; export r; \
b40e3958 42460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42461 $(NORMAL_TARGET_EXPORTS) \
22121df0 42462 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42463 for flag in $(EXTRA_TARGET_FLAGS); do \
42464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42465 done; \
a90ef4bf 42466 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42469 "RANLIB=$${RANLIB}" \
0c24b341 42470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42471 info) \
4fa63067 42472 || exit 1
3866be5d 42473
a90ef4bf 42474@endif target-libquadmath
3866be5d 42475
a90ef4bf
JM
42476.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
42477maybe-dvi-target-libquadmath:
42478@if target-libquadmath
42479maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 42480
a90ef4bf
JM
42481dvi-target-libquadmath: \
42482 configure-target-libquadmath
0aed8855 42483 @: $(MAKE); $(unstage)
22121df0 42484 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42485 r=`${PWD_COMMAND}`; export r; \
b40e3958 42486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42487 $(NORMAL_TARGET_EXPORTS) \
22121df0 42488 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42489 for flag in $(EXTRA_TARGET_FLAGS); do \
42490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42491 done; \
a90ef4bf 42492 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42495 "RANLIB=$${RANLIB}" \
0c24b341 42496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42497 dvi) \
4fa63067 42498 || exit 1
3866be5d 42499
a90ef4bf 42500@endif target-libquadmath
3866be5d 42501
a90ef4bf
JM
42502.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
42503maybe-pdf-target-libquadmath:
42504@if target-libquadmath
42505maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 42506
a90ef4bf
JM
42507pdf-target-libquadmath: \
42508 configure-target-libquadmath
56a8fe78 42509 @: $(MAKE); $(unstage)
22121df0 42510 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
42511 r=`${PWD_COMMAND}`; export r; \
42512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42513 $(NORMAL_TARGET_EXPORTS) \
22121df0 42514 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
42515 for flag in $(EXTRA_TARGET_FLAGS); do \
42516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42517 done; \
a90ef4bf 42518 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
42519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42521 "RANLIB=$${RANLIB}" \
0c24b341 42522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42523 pdf) \
42524 || exit 1
42525
a90ef4bf 42526@endif target-libquadmath
56a8fe78 42527
a90ef4bf
JM
42528.PHONY: maybe-html-target-libquadmath html-target-libquadmath
42529maybe-html-target-libquadmath:
42530@if target-libquadmath
42531maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 42532
a90ef4bf
JM
42533html-target-libquadmath: \
42534 configure-target-libquadmath
0aed8855 42535 @: $(MAKE); $(unstage)
22121df0 42536 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
42537 r=`${PWD_COMMAND}`; export r; \
42538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42539 $(NORMAL_TARGET_EXPORTS) \
22121df0 42540 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
42541 for flag in $(EXTRA_TARGET_FLAGS); do \
42542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42543 done; \
a90ef4bf 42544 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
42545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42547 "RANLIB=$${RANLIB}" \
0c24b341 42548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42549 html) \
42550 || exit 1
42551
a90ef4bf 42552@endif target-libquadmath
6d389afc 42553
a90ef4bf
JM
42554.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
42555maybe-TAGS-target-libquadmath:
42556@if target-libquadmath
42557maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 42558
a90ef4bf
JM
42559TAGS-target-libquadmath: \
42560 configure-target-libquadmath
0aed8855 42561 @: $(MAKE); $(unstage)
22121df0 42562 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
42563 r=`${PWD_COMMAND}`; export r; \
42564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42565 $(NORMAL_TARGET_EXPORTS) \
22121df0 42566 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42567 for flag in $(EXTRA_TARGET_FLAGS); do \
42568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42569 done; \
a90ef4bf 42570 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42573 "RANLIB=$${RANLIB}" \
0c24b341 42574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42575 TAGS) \
e2b9e2dc
NN
42576 || exit 1
42577
a90ef4bf 42578@endif target-libquadmath
4fa63067 42579
a90ef4bf
JM
42580.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
42581maybe-install-info-target-libquadmath:
42582@if target-libquadmath
42583maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 42584
a90ef4bf
JM
42585install-info-target-libquadmath: \
42586 configure-target-libquadmath \
42587 info-target-libquadmath
0aed8855 42588 @: $(MAKE); $(unstage)
22121df0 42589 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42590 r=`${PWD_COMMAND}`; export r; \
b40e3958 42591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42592 $(NORMAL_TARGET_EXPORTS) \
22121df0 42593 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42594 for flag in $(EXTRA_TARGET_FLAGS); do \
42595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42596 done; \
a90ef4bf 42597 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42600 "RANLIB=$${RANLIB}" \
0c24b341 42601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42602 install-info) \
4fa63067 42603 || exit 1
3866be5d 42604
a90ef4bf 42605@endif target-libquadmath
3866be5d 42606
a90ef4bf
JM
42607.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
42608maybe-install-pdf-target-libquadmath:
42609@if target-libquadmath
42610maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 42611
a90ef4bf
JM
42612install-pdf-target-libquadmath: \
42613 configure-target-libquadmath \
42614 pdf-target-libquadmath
a3ca38d2 42615 @: $(MAKE); $(unstage)
22121df0 42616 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
42617 r=`${PWD_COMMAND}`; export r; \
42618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42619 $(NORMAL_TARGET_EXPORTS) \
22121df0 42620 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
42621 for flag in $(EXTRA_TARGET_FLAGS); do \
42622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42623 done; \
a90ef4bf 42624 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
42625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42627 "RANLIB=$${RANLIB}" \
0c24b341 42628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42629 install-pdf) \
42630 || exit 1
42631
a90ef4bf 42632@endif target-libquadmath
a3ca38d2 42633
a90ef4bf
JM
42634.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
42635maybe-install-html-target-libquadmath:
42636@if target-libquadmath
42637maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 42638
a90ef4bf
JM
42639install-html-target-libquadmath: \
42640 configure-target-libquadmath \
42641 html-target-libquadmath
108a6f8e 42642 @: $(MAKE); $(unstage)
22121df0 42643 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
42644 r=`${PWD_COMMAND}`; export r; \
42645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42646 $(NORMAL_TARGET_EXPORTS) \
22121df0 42647 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
42648 for flag in $(EXTRA_TARGET_FLAGS); do \
42649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42650 done; \
a90ef4bf 42651 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
42652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42654 "RANLIB=$${RANLIB}" \
0c24b341 42655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42656 install-html) \
42657 || exit 1
42658
a90ef4bf 42659@endif target-libquadmath
108a6f8e 42660
a90ef4bf
JM
42661.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
42662maybe-installcheck-target-libquadmath:
42663@if target-libquadmath
42664maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 42665
a90ef4bf
JM
42666installcheck-target-libquadmath: \
42667 configure-target-libquadmath
0aed8855 42668 @: $(MAKE); $(unstage)
22121df0 42669 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42670 r=`${PWD_COMMAND}`; export r; \
b40e3958 42671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42672 $(NORMAL_TARGET_EXPORTS) \
22121df0 42673 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42674 for flag in $(EXTRA_TARGET_FLAGS); do \
42675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42676 done; \
a90ef4bf 42677 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42680 "RANLIB=$${RANLIB}" \
0c24b341 42681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42682 installcheck) \
4fa63067 42683 || exit 1
3866be5d 42684
a90ef4bf 42685@endif target-libquadmath
3866be5d 42686
a90ef4bf
JM
42687.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
42688maybe-mostlyclean-target-libquadmath:
42689@if target-libquadmath
42690maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 42691
a90ef4bf 42692mostlyclean-target-libquadmath:
0aed8855 42693 @: $(MAKE); $(unstage)
22121df0 42694 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42695 r=`${PWD_COMMAND}`; export r; \
b40e3958 42696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42697 $(NORMAL_TARGET_EXPORTS) \
22121df0 42698 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42699 for flag in $(EXTRA_TARGET_FLAGS); do \
42700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42701 done; \
a90ef4bf 42702 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42705 "RANLIB=$${RANLIB}" \
0c24b341 42706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42707 mostlyclean) \
4fa63067 42708 || exit 1
3866be5d 42709
a90ef4bf 42710@endif target-libquadmath
3866be5d 42711
a90ef4bf
JM
42712.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
42713maybe-clean-target-libquadmath:
42714@if target-libquadmath
42715maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 42716
a90ef4bf 42717clean-target-libquadmath:
0aed8855 42718 @: $(MAKE); $(unstage)
22121df0 42719 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
42720 r=`${PWD_COMMAND}`; export r; \
42721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42722 $(NORMAL_TARGET_EXPORTS) \
22121df0 42723 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42724 for flag in $(EXTRA_TARGET_FLAGS); do \
42725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42726 done; \
a90ef4bf 42727 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42730 "RANLIB=$${RANLIB}" \
0c24b341 42731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42732 clean) \
e2b9e2dc
NN
42733 || exit 1
42734
a90ef4bf 42735@endif target-libquadmath
3866be5d 42736
a90ef4bf
JM
42737.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
42738maybe-distclean-target-libquadmath:
42739@if target-libquadmath
42740maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 42741
a90ef4bf 42742distclean-target-libquadmath:
0aed8855 42743 @: $(MAKE); $(unstage)
22121df0 42744 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42745 r=`${PWD_COMMAND}`; export r; \
b40e3958 42746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42747 $(NORMAL_TARGET_EXPORTS) \
22121df0 42748 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42749 for flag in $(EXTRA_TARGET_FLAGS); do \
42750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42751 done; \
a90ef4bf 42752 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42755 "RANLIB=$${RANLIB}" \
0c24b341 42756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42757 distclean) \
4fa63067 42758 || exit 1
3866be5d 42759
a90ef4bf 42760@endif target-libquadmath
3866be5d 42761
a90ef4bf
JM
42762.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
42763maybe-maintainer-clean-target-libquadmath:
42764@if target-libquadmath
42765maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 42766
a90ef4bf 42767maintainer-clean-target-libquadmath:
0aed8855 42768 @: $(MAKE); $(unstage)
22121df0 42769 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42770 r=`${PWD_COMMAND}`; export r; \
b40e3958 42771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42772 $(NORMAL_TARGET_EXPORTS) \
22121df0 42773 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42774 for flag in $(EXTRA_TARGET_FLAGS); do \
42775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42776 done; \
a90ef4bf 42777 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42780 "RANLIB=$${RANLIB}" \
0c24b341 42781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42782 maintainer-clean) \
4fa63067 42783 || exit 1
3866be5d 42784
a90ef4bf 42785@endif target-libquadmath
3866be5d 42786
4fa63067 42787
4fa63067 42788
a7254363 42789
e90269c8 42790
a90ef4bf
JM
42791.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
42792maybe-configure-target-libgfortran:
e552509b 42793@if gcc-bootstrap
a90ef4bf 42794configure-target-libgfortran: stage_current
e552509b 42795@endif gcc-bootstrap
a90ef4bf
JM
42796@if target-libgfortran
42797maybe-configure-target-libgfortran: configure-target-libgfortran
42798configure-target-libgfortran:
e552509b
ILT
42799 @: $(MAKE); $(unstage)
42800 @r=`${PWD_COMMAND}`; export r; \
42801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42802 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
42803 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
42804 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42805 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
42806 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
42807 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 42808 else \
a90ef4bf
JM
42809 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
42810 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
42811 fi; \
42812 else \
a90ef4bf 42813 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 42814 fi; \
a90ef4bf 42815 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 42816 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 42817 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42818 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
42819 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
42820 case $(srcdir) in \
42821 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42822 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
42823 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42824 esac; \
1b6c0831 42825 module_srcdir=libgfortran; \
e552509b 42826 rm -f no-such-file || : ; \
1b6c0831
L
42827 CONFIG_SITE=no-such-file $(SHELL) \
42828 $$s/$$module_srcdir/configure \
42829 --srcdir=$${topdir}/$$module_srcdir \
e552509b 42830 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42831 --target=${target_alias} \
e552509b 42832 || exit 1
a90ef4bf 42833@endif target-libgfortran
e552509b
ILT
42834
42835
42836
42837
42838
a90ef4bf
JM
42839.PHONY: all-target-libgfortran maybe-all-target-libgfortran
42840maybe-all-target-libgfortran:
e552509b 42841@if gcc-bootstrap
a90ef4bf 42842all-target-libgfortran: stage_current
e552509b 42843@endif gcc-bootstrap
a90ef4bf
JM
42844@if target-libgfortran
42845TARGET-target-libgfortran=all
42846maybe-all-target-libgfortran: all-target-libgfortran
42847all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
42848 @: $(MAKE); $(unstage)
42849 @r=`${PWD_COMMAND}`; export r; \
42850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42851 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42852 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 42853 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42854 $(TARGET-target-libgfortran))
42855@endif target-libgfortran
e552509b
ILT
42856
42857
42858
42859
42860
a90ef4bf
JM
42861.PHONY: check-target-libgfortran maybe-check-target-libgfortran
42862maybe-check-target-libgfortran:
42863@if target-libgfortran
42864maybe-check-target-libgfortran: check-target-libgfortran
e552509b 42865
a90ef4bf 42866check-target-libgfortran:
e552509b
ILT
42867 @: $(MAKE); $(unstage)
42868 @r=`${PWD_COMMAND}`; export r; \
42869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42870 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42871 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42872 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
42873
a90ef4bf 42874@endif target-libgfortran
e552509b 42875
a90ef4bf
JM
42876.PHONY: install-target-libgfortran maybe-install-target-libgfortran
42877maybe-install-target-libgfortran:
42878@if target-libgfortran
42879maybe-install-target-libgfortran: install-target-libgfortran
e552509b 42880
a90ef4bf 42881install-target-libgfortran: installdirs
e552509b
ILT
42882 @: $(MAKE); $(unstage)
42883 @r=`${PWD_COMMAND}`; export r; \
42884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42885 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42886 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42887 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
42888
a90ef4bf 42889@endif target-libgfortran
e552509b 42890
a90ef4bf
JM
42891.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
42892maybe-install-strip-target-libgfortran:
42893@if target-libgfortran
42894maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 42895
a90ef4bf 42896install-strip-target-libgfortran: installdirs
9b980aa1
RW
42897 @: $(MAKE); $(unstage)
42898 @r=`${PWD_COMMAND}`; export r; \
42899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42900 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42901 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
42902 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42903
a90ef4bf 42904@endif target-libgfortran
9b980aa1 42905
e552509b
ILT
42906# Other targets (info, dvi, pdf, etc.)
42907
a90ef4bf
JM
42908.PHONY: maybe-info-target-libgfortran info-target-libgfortran
42909maybe-info-target-libgfortran:
42910@if target-libgfortran
42911maybe-info-target-libgfortran: info-target-libgfortran
e552509b 42912
a90ef4bf
JM
42913info-target-libgfortran: \
42914 configure-target-libgfortran
e552509b 42915 @: $(MAKE); $(unstage)
22121df0 42916 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42917 r=`${PWD_COMMAND}`; export r; \
42918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42919 $(NORMAL_TARGET_EXPORTS) \
22121df0 42920 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42921 for flag in $(EXTRA_TARGET_FLAGS); do \
42922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42923 done; \
a90ef4bf 42924 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42927 "RANLIB=$${RANLIB}" \
42928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42929 info) \
42930 || exit 1
42931
a90ef4bf 42932@endif target-libgfortran
e552509b 42933
a90ef4bf
JM
42934.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
42935maybe-dvi-target-libgfortran:
42936@if target-libgfortran
42937maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 42938
a90ef4bf
JM
42939dvi-target-libgfortran: \
42940 configure-target-libgfortran
e552509b 42941 @: $(MAKE); $(unstage)
22121df0 42942 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42943 r=`${PWD_COMMAND}`; export r; \
42944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42945 $(NORMAL_TARGET_EXPORTS) \
22121df0 42946 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42947 for flag in $(EXTRA_TARGET_FLAGS); do \
42948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42949 done; \
a90ef4bf 42950 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42953 "RANLIB=$${RANLIB}" \
42954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42955 dvi) \
42956 || exit 1
42957
a90ef4bf 42958@endif target-libgfortran
e552509b 42959
a90ef4bf
JM
42960.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
42961maybe-pdf-target-libgfortran:
42962@if target-libgfortran
42963maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 42964
a90ef4bf
JM
42965pdf-target-libgfortran: \
42966 configure-target-libgfortran
e552509b 42967 @: $(MAKE); $(unstage)
22121df0 42968 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42969 r=`${PWD_COMMAND}`; export r; \
42970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42971 $(NORMAL_TARGET_EXPORTS) \
22121df0 42972 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42973 for flag in $(EXTRA_TARGET_FLAGS); do \
42974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42975 done; \
a90ef4bf 42976 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42979 "RANLIB=$${RANLIB}" \
42980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42981 pdf) \
42982 || exit 1
42983
a90ef4bf 42984@endif target-libgfortran
e552509b 42985
a90ef4bf
JM
42986.PHONY: maybe-html-target-libgfortran html-target-libgfortran
42987maybe-html-target-libgfortran:
42988@if target-libgfortran
42989maybe-html-target-libgfortran: html-target-libgfortran
e552509b 42990
a90ef4bf
JM
42991html-target-libgfortran: \
42992 configure-target-libgfortran
e552509b 42993 @: $(MAKE); $(unstage)
22121df0 42994 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42995 r=`${PWD_COMMAND}`; export r; \
42996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42997 $(NORMAL_TARGET_EXPORTS) \
22121df0 42998 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42999 for flag in $(EXTRA_TARGET_FLAGS); do \
43000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43001 done; \
a90ef4bf 43002 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43005 "RANLIB=$${RANLIB}" \
43006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43007 html) \
43008 || exit 1
43009
a90ef4bf 43010@endif target-libgfortran
e552509b 43011
a90ef4bf
JM
43012.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
43013maybe-TAGS-target-libgfortran:
43014@if target-libgfortran
43015maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 43016
a90ef4bf
JM
43017TAGS-target-libgfortran: \
43018 configure-target-libgfortran
e552509b 43019 @: $(MAKE); $(unstage)
22121df0 43020 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43021 r=`${PWD_COMMAND}`; export r; \
43022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43023 $(NORMAL_TARGET_EXPORTS) \
22121df0 43024 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43025 for flag in $(EXTRA_TARGET_FLAGS); do \
43026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43027 done; \
a90ef4bf 43028 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43031 "RANLIB=$${RANLIB}" \
43032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43033 TAGS) \
43034 || exit 1
43035
a90ef4bf 43036@endif target-libgfortran
e552509b 43037
a90ef4bf
JM
43038.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
43039maybe-install-info-target-libgfortran:
43040@if target-libgfortran
43041maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 43042
a90ef4bf
JM
43043install-info-target-libgfortran: \
43044 configure-target-libgfortran \
43045 info-target-libgfortran
e552509b 43046 @: $(MAKE); $(unstage)
22121df0 43047 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43048 r=`${PWD_COMMAND}`; export r; \
43049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43050 $(NORMAL_TARGET_EXPORTS) \
22121df0 43051 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43052 for flag in $(EXTRA_TARGET_FLAGS); do \
43053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43054 done; \
a90ef4bf 43055 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43058 "RANLIB=$${RANLIB}" \
43059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43060 install-info) \
43061 || exit 1
43062
a90ef4bf 43063@endif target-libgfortran
e552509b 43064
a90ef4bf
JM
43065.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
43066maybe-install-pdf-target-libgfortran:
43067@if target-libgfortran
43068maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 43069
a90ef4bf
JM
43070install-pdf-target-libgfortran: \
43071 configure-target-libgfortran \
43072 pdf-target-libgfortran
e552509b 43073 @: $(MAKE); $(unstage)
22121df0 43074 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43075 r=`${PWD_COMMAND}`; export r; \
43076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43077 $(NORMAL_TARGET_EXPORTS) \
22121df0 43078 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43079 for flag in $(EXTRA_TARGET_FLAGS); do \
43080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43081 done; \
a90ef4bf 43082 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43085 "RANLIB=$${RANLIB}" \
43086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43087 install-pdf) \
43088 || exit 1
43089
a90ef4bf 43090@endif target-libgfortran
e552509b 43091
a90ef4bf
JM
43092.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
43093maybe-install-html-target-libgfortran:
43094@if target-libgfortran
43095maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 43096
a90ef4bf
JM
43097install-html-target-libgfortran: \
43098 configure-target-libgfortran \
43099 html-target-libgfortran
e552509b 43100 @: $(MAKE); $(unstage)
22121df0 43101 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43102 r=`${PWD_COMMAND}`; export r; \
43103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43104 $(NORMAL_TARGET_EXPORTS) \
22121df0 43105 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43106 for flag in $(EXTRA_TARGET_FLAGS); do \
43107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43108 done; \
a90ef4bf 43109 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43112 "RANLIB=$${RANLIB}" \
43113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43114 install-html) \
43115 || exit 1
43116
a90ef4bf 43117@endif target-libgfortran
e552509b 43118
a90ef4bf
JM
43119.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
43120maybe-installcheck-target-libgfortran:
43121@if target-libgfortran
43122maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 43123
a90ef4bf
JM
43124installcheck-target-libgfortran: \
43125 configure-target-libgfortran
e552509b 43126 @: $(MAKE); $(unstage)
22121df0 43127 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43128 r=`${PWD_COMMAND}`; export r; \
43129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43130 $(NORMAL_TARGET_EXPORTS) \
22121df0 43131 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43132 for flag in $(EXTRA_TARGET_FLAGS); do \
43133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43134 done; \
a90ef4bf 43135 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43138 "RANLIB=$${RANLIB}" \
43139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43140 installcheck) \
43141 || exit 1
43142
a90ef4bf 43143@endif target-libgfortran
e552509b 43144
a90ef4bf
JM
43145.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
43146maybe-mostlyclean-target-libgfortran:
43147@if target-libgfortran
43148maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 43149
a90ef4bf 43150mostlyclean-target-libgfortran:
e552509b 43151 @: $(MAKE); $(unstage)
22121df0 43152 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43153 r=`${PWD_COMMAND}`; export r; \
43154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43155 $(NORMAL_TARGET_EXPORTS) \
22121df0 43156 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43157 for flag in $(EXTRA_TARGET_FLAGS); do \
43158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43159 done; \
a90ef4bf 43160 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43163 "RANLIB=$${RANLIB}" \
43164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43165 mostlyclean) \
43166 || exit 1
43167
a90ef4bf 43168@endif target-libgfortran
e552509b 43169
a90ef4bf
JM
43170.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
43171maybe-clean-target-libgfortran:
43172@if target-libgfortran
43173maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 43174
a90ef4bf 43175clean-target-libgfortran:
e552509b 43176 @: $(MAKE); $(unstage)
22121df0 43177 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43178 r=`${PWD_COMMAND}`; export r; \
43179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43180 $(NORMAL_TARGET_EXPORTS) \
22121df0 43181 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43182 for flag in $(EXTRA_TARGET_FLAGS); do \
43183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43184 done; \
a90ef4bf 43185 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43188 "RANLIB=$${RANLIB}" \
43189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43190 clean) \
43191 || exit 1
43192
a90ef4bf 43193@endif target-libgfortran
e552509b 43194
a90ef4bf
JM
43195.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
43196maybe-distclean-target-libgfortran:
43197@if target-libgfortran
43198maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 43199
a90ef4bf 43200distclean-target-libgfortran:
e552509b 43201 @: $(MAKE); $(unstage)
22121df0 43202 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43203 r=`${PWD_COMMAND}`; export r; \
43204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43205 $(NORMAL_TARGET_EXPORTS) \
22121df0 43206 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43207 for flag in $(EXTRA_TARGET_FLAGS); do \
43208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43209 done; \
a90ef4bf 43210 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43213 "RANLIB=$${RANLIB}" \
43214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43215 distclean) \
43216 || exit 1
43217
a90ef4bf 43218@endif target-libgfortran
e552509b 43219
a90ef4bf
JM
43220.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
43221maybe-maintainer-clean-target-libgfortran:
43222@if target-libgfortran
43223maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 43224
a90ef4bf 43225maintainer-clean-target-libgfortran:
e552509b 43226 @: $(MAKE); $(unstage)
22121df0 43227 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43228 r=`${PWD_COMMAND}`; export r; \
43229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43230 $(NORMAL_TARGET_EXPORTS) \
22121df0 43231 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43232 for flag in $(EXTRA_TARGET_FLAGS); do \
43233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43234 done; \
a90ef4bf 43235 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43238 "RANLIB=$${RANLIB}" \
43239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43240 maintainer-clean) \
43241 || exit 1
43242
a90ef4bf 43243@endif target-libgfortran
e552509b
ILT
43244
43245
43246
43247
43248
a90ef4bf
JM
43249.PHONY: configure-target-libobjc maybe-configure-target-libobjc
43250maybe-configure-target-libobjc:
4f0ef2d8 43251@if gcc-bootstrap
a90ef4bf 43252configure-target-libobjc: stage_current
4f0ef2d8 43253@endif gcc-bootstrap
a90ef4bf
JM
43254@if target-libobjc
43255maybe-configure-target-libobjc: configure-target-libobjc
43256configure-target-libobjc:
0aed8855
PB
43257 @: $(MAKE); $(unstage)
43258 @r=`${PWD_COMMAND}`; export r; \
43259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43260 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
43261 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
43262 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43263 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
43264 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
43265 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 43266 else \
a90ef4bf
JM
43267 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
43268 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
43269 fi; \
43270 else \
a90ef4bf 43271 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 43272 fi; \
a90ef4bf 43273 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 43274 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 43275 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43276 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
43277 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 43278 case $(srcdir) in \
b00612cc 43279 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43280 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 43281 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 43282 esac; \
1b6c0831 43283 module_srcdir=libobjc; \
4fa63067 43284 rm -f no-such-file || : ; \
1b6c0831
L
43285 CONFIG_SITE=no-such-file $(SHELL) \
43286 $$s/$$module_srcdir/configure \
43287 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43288 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43289 --target=${target_alias} \
e2b9e2dc 43290 || exit 1
a90ef4bf 43291@endif target-libobjc
e2b9e2dc 43292
a7254363
PB
43293
43294
d545f33b
PB
43295
43296
a90ef4bf
JM
43297.PHONY: all-target-libobjc maybe-all-target-libobjc
43298maybe-all-target-libobjc:
4f0ef2d8 43299@if gcc-bootstrap
a90ef4bf 43300all-target-libobjc: stage_current
4f0ef2d8 43301@endif gcc-bootstrap
a90ef4bf
JM
43302@if target-libobjc
43303TARGET-target-libobjc=all
43304maybe-all-target-libobjc: all-target-libobjc
43305all-target-libobjc: configure-target-libobjc
0aed8855 43306 @: $(MAKE); $(unstage)
b40e3958
L
43307 @r=`${PWD_COMMAND}`; export r; \
43308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43309 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43310 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 43311 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43312 $(TARGET-target-libobjc))
43313@endif target-libobjc
3866be5d 43314
a7254363
PB
43315
43316
d545f33b
PB
43317
43318
a90ef4bf
JM
43319.PHONY: check-target-libobjc maybe-check-target-libobjc
43320maybe-check-target-libobjc:
43321@if target-libobjc
43322maybe-check-target-libobjc: check-target-libobjc
3866be5d 43323
a90ef4bf
JM
43324check-target-libobjc:
43325 @: $(MAKE); $(unstage)
43326 @r=`${PWD_COMMAND}`; export r; \
43327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43328 $(NORMAL_TARGET_EXPORTS) \
43329 (cd $(TARGET_SUBDIR)/libobjc && \
43330 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 43331
a90ef4bf 43332@endif target-libobjc
4fa63067 43333
a90ef4bf
JM
43334.PHONY: install-target-libobjc maybe-install-target-libobjc
43335maybe-install-target-libobjc:
43336@if target-libobjc
43337maybe-install-target-libobjc: install-target-libobjc
4fa63067 43338
a90ef4bf 43339install-target-libobjc: installdirs
0aed8855 43340 @: $(MAKE); $(unstage)
b40e3958
L
43341 @r=`${PWD_COMMAND}`; export r; \
43342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43343 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43344 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 43345 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 43346
a90ef4bf 43347@endif target-libobjc
3866be5d 43348
a90ef4bf
JM
43349.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
43350maybe-install-strip-target-libobjc:
43351@if target-libobjc
43352maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 43353
a90ef4bf 43354install-strip-target-libobjc: installdirs
9b980aa1
RW
43355 @: $(MAKE); $(unstage)
43356 @r=`${PWD_COMMAND}`; export r; \
43357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43358 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43359 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
43360 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43361
a90ef4bf 43362@endif target-libobjc
9b980aa1 43363
56a8fe78 43364# Other targets (info, dvi, pdf, etc.)
16ae0395 43365
a90ef4bf
JM
43366.PHONY: maybe-info-target-libobjc info-target-libobjc
43367maybe-info-target-libobjc:
43368@if target-libobjc
43369maybe-info-target-libobjc: info-target-libobjc
6d389afc 43370
a90ef4bf
JM
43371info-target-libobjc: \
43372 configure-target-libobjc
0aed8855 43373 @: $(MAKE); $(unstage)
22121df0 43374 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
43375 r=`${PWD_COMMAND}`; export r; \
43376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43377 $(NORMAL_TARGET_EXPORTS) \
22121df0 43378 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
43379 for flag in $(EXTRA_TARGET_FLAGS); do \
43380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43381 done; \
a90ef4bf 43382 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
43383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43385 "RANLIB=$${RANLIB}" \
0c24b341 43386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43387 info) \
43388 || exit 1
43389
a90ef4bf 43390@endif target-libobjc
6d389afc 43391
a90ef4bf
JM
43392.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
43393maybe-dvi-target-libobjc:
43394@if target-libobjc
43395maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 43396
a90ef4bf
JM
43397dvi-target-libobjc: \
43398 configure-target-libobjc
0aed8855 43399 @: $(MAKE); $(unstage)
22121df0 43400 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43401 r=`${PWD_COMMAND}`; export r; \
b40e3958 43402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43403 $(NORMAL_TARGET_EXPORTS) \
22121df0 43404 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43405 for flag in $(EXTRA_TARGET_FLAGS); do \
43406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43407 done; \
a90ef4bf 43408 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43411 "RANLIB=$${RANLIB}" \
0c24b341 43412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 43413 dvi) \
4fa63067 43414 || exit 1
3866be5d 43415
a90ef4bf 43416@endif target-libobjc
3866be5d 43417
a90ef4bf
JM
43418.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
43419maybe-pdf-target-libobjc:
43420@if target-libobjc
43421maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 43422
a90ef4bf
JM
43423pdf-target-libobjc: \
43424 configure-target-libobjc
56a8fe78 43425 @: $(MAKE); $(unstage)
22121df0 43426 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
43427 r=`${PWD_COMMAND}`; export r; \
43428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43429 $(NORMAL_TARGET_EXPORTS) \
22121df0 43430 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
43431 for flag in $(EXTRA_TARGET_FLAGS); do \
43432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43433 done; \
a90ef4bf 43434 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
43435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43437 "RANLIB=$${RANLIB}" \
0c24b341 43438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43439 pdf) \
43440 || exit 1
43441
a90ef4bf 43442@endif target-libobjc
56a8fe78 43443
a90ef4bf
JM
43444.PHONY: maybe-html-target-libobjc html-target-libobjc
43445maybe-html-target-libobjc:
43446@if target-libobjc
43447maybe-html-target-libobjc: html-target-libobjc
4fa63067 43448
a90ef4bf
JM
43449html-target-libobjc: \
43450 configure-target-libobjc
0aed8855 43451 @: $(MAKE); $(unstage)
22121df0 43452 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
43453 r=`${PWD_COMMAND}`; export r; \
43454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43455 $(NORMAL_TARGET_EXPORTS) \
22121df0 43456 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43457 for flag in $(EXTRA_TARGET_FLAGS); do \
43458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43459 done; \
a90ef4bf 43460 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43463 "RANLIB=$${RANLIB}" \
0c24b341 43464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 43465 html) \
e2b9e2dc
NN
43466 || exit 1
43467
a90ef4bf 43468@endif target-libobjc
4fa63067 43469
a90ef4bf
JM
43470.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
43471maybe-TAGS-target-libobjc:
43472@if target-libobjc
43473maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 43474
a90ef4bf
JM
43475TAGS-target-libobjc: \
43476 configure-target-libobjc
0aed8855 43477 @: $(MAKE); $(unstage)
22121df0 43478 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43479 r=`${PWD_COMMAND}`; export r; \
b40e3958 43480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43481 $(NORMAL_TARGET_EXPORTS) \
22121df0 43482 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43483 for flag in $(EXTRA_TARGET_FLAGS); do \
43484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43485 done; \
a90ef4bf 43486 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43489 "RANLIB=$${RANLIB}" \
0c24b341 43490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43491 TAGS) \
4fa63067 43492 || exit 1
3866be5d 43493
a90ef4bf 43494@endif target-libobjc
3866be5d 43495
a90ef4bf
JM
43496.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
43497maybe-install-info-target-libobjc:
43498@if target-libobjc
43499maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 43500
a90ef4bf
JM
43501install-info-target-libobjc: \
43502 configure-target-libobjc \
43503 info-target-libobjc
0aed8855 43504 @: $(MAKE); $(unstage)
22121df0 43505 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
43506 r=`${PWD_COMMAND}`; export r; \
43507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43508 $(NORMAL_TARGET_EXPORTS) \
22121df0 43509 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43510 for flag in $(EXTRA_TARGET_FLAGS); do \
43511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43512 done; \
a90ef4bf 43513 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43516 "RANLIB=$${RANLIB}" \
0c24b341 43517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43518 install-info) \
4fa63067 43519 || exit 1
3866be5d 43520
a90ef4bf 43521@endif target-libobjc
16ae0395 43522
a90ef4bf
JM
43523.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
43524maybe-install-pdf-target-libobjc:
43525@if target-libobjc
43526maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 43527
a90ef4bf
JM
43528install-pdf-target-libobjc: \
43529 configure-target-libobjc \
43530 pdf-target-libobjc
a3ca38d2 43531 @: $(MAKE); $(unstage)
22121df0 43532 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
43533 r=`${PWD_COMMAND}`; export r; \
43534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43535 $(NORMAL_TARGET_EXPORTS) \
22121df0 43536 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
43537 for flag in $(EXTRA_TARGET_FLAGS); do \
43538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43539 done; \
a90ef4bf 43540 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
43541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43543 "RANLIB=$${RANLIB}" \
0c24b341 43544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43545 install-pdf) \
43546 || exit 1
43547
a90ef4bf 43548@endif target-libobjc
a3ca38d2 43549
a90ef4bf
JM
43550.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
43551maybe-install-html-target-libobjc:
43552@if target-libobjc
43553maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 43554
a90ef4bf
JM
43555install-html-target-libobjc: \
43556 configure-target-libobjc \
43557 html-target-libobjc
108a6f8e 43558 @: $(MAKE); $(unstage)
22121df0 43559 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
43560 r=`${PWD_COMMAND}`; export r; \
43561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43562 $(NORMAL_TARGET_EXPORTS) \
22121df0 43563 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
43564 for flag in $(EXTRA_TARGET_FLAGS); do \
43565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43566 done; \
a90ef4bf 43567 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
43568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43570 "RANLIB=$${RANLIB}" \
0c24b341 43571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43572 install-html) \
43573 || exit 1
43574
a90ef4bf 43575@endif target-libobjc
108a6f8e 43576
a90ef4bf
JM
43577.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
43578maybe-installcheck-target-libobjc:
43579@if target-libobjc
43580maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 43581
a90ef4bf
JM
43582installcheck-target-libobjc: \
43583 configure-target-libobjc
0aed8855 43584 @: $(MAKE); $(unstage)
22121df0 43585 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43586 r=`${PWD_COMMAND}`; export r; \
b40e3958 43587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43588 $(NORMAL_TARGET_EXPORTS) \
22121df0 43589 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43590 for flag in $(EXTRA_TARGET_FLAGS); do \
43591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43592 done; \
a90ef4bf 43593 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43596 "RANLIB=$${RANLIB}" \
0c24b341 43597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43598 installcheck) \
4fa63067 43599 || exit 1
3866be5d 43600
a90ef4bf 43601@endif target-libobjc
3866be5d 43602
a90ef4bf
JM
43603.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
43604maybe-mostlyclean-target-libobjc:
43605@if target-libobjc
43606maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 43607
a90ef4bf
JM
43608mostlyclean-target-libobjc:
43609 @: $(MAKE); $(unstage)
22121df0 43610 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43611 r=`${PWD_COMMAND}`; export r; \
43612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43613 $(NORMAL_TARGET_EXPORTS) \
22121df0 43614 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43615 for flag in $(EXTRA_TARGET_FLAGS); do \
43616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43617 done; \
43618 (cd $(TARGET_SUBDIR)/libobjc && \
43619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43621 "RANLIB=$${RANLIB}" \
43622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43623 mostlyclean) \
43624 || exit 1
4fa63067 43625
a90ef4bf 43626@endif target-libobjc
4fa63067 43627
a90ef4bf
JM
43628.PHONY: maybe-clean-target-libobjc clean-target-libobjc
43629maybe-clean-target-libobjc:
43630@if target-libobjc
43631maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 43632
a90ef4bf
JM
43633clean-target-libobjc:
43634 @: $(MAKE); $(unstage)
22121df0 43635 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43636 r=`${PWD_COMMAND}`; export r; \
43637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43638 $(NORMAL_TARGET_EXPORTS) \
22121df0 43639 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43640 for flag in $(EXTRA_TARGET_FLAGS); do \
43641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43642 done; \
43643 (cd $(TARGET_SUBDIR)/libobjc && \
43644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43646 "RANLIB=$${RANLIB}" \
43647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43648 clean) \
43649 || exit 1
4fa63067 43650
a90ef4bf 43651@endif target-libobjc
4fa63067 43652
a90ef4bf
JM
43653.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
43654maybe-distclean-target-libobjc:
43655@if target-libobjc
43656maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 43657
a90ef4bf
JM
43658distclean-target-libobjc:
43659 @: $(MAKE); $(unstage)
22121df0 43660 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43661 r=`${PWD_COMMAND}`; export r; \
43662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43663 $(NORMAL_TARGET_EXPORTS) \
22121df0 43664 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43665 for flag in $(EXTRA_TARGET_FLAGS); do \
43666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43667 done; \
43668 (cd $(TARGET_SUBDIR)/libobjc && \
43669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43671 "RANLIB=$${RANLIB}" \
43672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43673 distclean) \
43674 || exit 1
4fa63067 43675
a90ef4bf 43676@endif target-libobjc
4fa63067 43677
a90ef4bf
JM
43678.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
43679maybe-maintainer-clean-target-libobjc:
43680@if target-libobjc
43681maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 43682
a90ef4bf
JM
43683maintainer-clean-target-libobjc:
43684 @: $(MAKE); $(unstage)
22121df0 43685 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43686 r=`${PWD_COMMAND}`; export r; \
43687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43688 $(NORMAL_TARGET_EXPORTS) \
22121df0 43689 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43690 for flag in $(EXTRA_TARGET_FLAGS); do \
43691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43692 done; \
43693 (cd $(TARGET_SUBDIR)/libobjc && \
43694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43696 "RANLIB=$${RANLIB}" \
43697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43698 maintainer-clean) \
43699 || exit 1
4fa63067 43700
a90ef4bf 43701@endif target-libobjc
4fa63067
NN
43702
43703
4fa63067 43704
4fa63067 43705
a7254363 43706
a90ef4bf
JM
43707.PHONY: configure-target-libgo maybe-configure-target-libgo
43708maybe-configure-target-libgo:
4f0ef2d8 43709@if gcc-bootstrap
a90ef4bf 43710configure-target-libgo: stage_current
4f0ef2d8 43711@endif gcc-bootstrap
a90ef4bf
JM
43712@if target-libgo
43713maybe-configure-target-libgo: configure-target-libgo
43714configure-target-libgo:
0aed8855
PB
43715 @: $(MAKE); $(unstage)
43716 @r=`${PWD_COMMAND}`; export r; \
43717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43718 echo "Checking multilib configuration for libgo..."; \
22121df0
L
43719 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
43720 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43721 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
43722 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
43723 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 43724 else \
a90ef4bf
JM
43725 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
43726 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
43727 fi; \
43728 else \
a90ef4bf 43729 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 43730 fi; \
a90ef4bf 43731 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 43732 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 43733 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43734 echo Configuring in $(TARGET_SUBDIR)/libgo; \
43735 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 43736 case $(srcdir) in \
b00612cc 43737 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43738 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 43739 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 43740 esac; \
1b6c0831 43741 module_srcdir=libgo; \
4fa63067 43742 rm -f no-such-file || : ; \
1b6c0831
L
43743 CONFIG_SITE=no-such-file $(SHELL) \
43744 $$s/$$module_srcdir/configure \
43745 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43746 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43747 --target=${target_alias} \
e2b9e2dc 43748 || exit 1
a90ef4bf 43749@endif target-libgo
e2b9e2dc 43750
a7254363
PB
43751
43752
d545f33b
PB
43753
43754
a90ef4bf
JM
43755.PHONY: all-target-libgo maybe-all-target-libgo
43756maybe-all-target-libgo:
4f0ef2d8 43757@if gcc-bootstrap
a90ef4bf 43758all-target-libgo: stage_current
4f0ef2d8 43759@endif gcc-bootstrap
a90ef4bf
JM
43760@if target-libgo
43761TARGET-target-libgo=all
43762maybe-all-target-libgo: all-target-libgo
43763all-target-libgo: configure-target-libgo
0aed8855 43764 @: $(MAKE); $(unstage)
b40e3958
L
43765 @r=`${PWD_COMMAND}`; export r; \
43766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43767 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43768 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 43769 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43770 $(TARGET-target-libgo))
43771@endif target-libgo
3866be5d 43772
a7254363
PB
43773
43774
d545f33b
PB
43775
43776
a90ef4bf
JM
43777.PHONY: check-target-libgo maybe-check-target-libgo
43778maybe-check-target-libgo:
43779@if target-libgo
43780maybe-check-target-libgo: check-target-libgo
3866be5d 43781
a90ef4bf 43782check-target-libgo:
0aed8855 43783 @: $(MAKE); $(unstage)
4fa63067
NN
43784 @r=`${PWD_COMMAND}`; export r; \
43785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43786 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43787 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 43788 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 43789
a90ef4bf 43790@endif target-libgo
3866be5d 43791
a90ef4bf
JM
43792.PHONY: install-target-libgo maybe-install-target-libgo
43793maybe-install-target-libgo:
43794@if target-libgo
43795maybe-install-target-libgo: install-target-libgo
16ae0395 43796
a90ef4bf 43797install-target-libgo: installdirs
0aed8855 43798 @: $(MAKE); $(unstage)
4fa63067
NN
43799 @r=`${PWD_COMMAND}`; export r; \
43800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43801 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43802 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 43803 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 43804
a90ef4bf 43805@endif target-libgo
3866be5d 43806
a90ef4bf
JM
43807.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
43808maybe-install-strip-target-libgo:
43809@if target-libgo
43810maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 43811
a90ef4bf 43812install-strip-target-libgo: installdirs
9b980aa1
RW
43813 @: $(MAKE); $(unstage)
43814 @r=`${PWD_COMMAND}`; export r; \
43815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43816 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43817 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
43818 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43819
a90ef4bf 43820@endif target-libgo
9b980aa1 43821
56a8fe78 43822# Other targets (info, dvi, pdf, etc.)
4fa63067 43823
a90ef4bf
JM
43824.PHONY: maybe-info-target-libgo info-target-libgo
43825maybe-info-target-libgo:
43826@if target-libgo
43827maybe-info-target-libgo: info-target-libgo
4fa63067 43828
a90ef4bf
JM
43829info-target-libgo: \
43830 configure-target-libgo
0aed8855 43831 @: $(MAKE); $(unstage)
22121df0 43832 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43833 r=`${PWD_COMMAND}`; export r; \
43834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43835 $(NORMAL_TARGET_EXPORTS) \
22121df0 43836 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43837 for flag in $(EXTRA_TARGET_FLAGS); do \
43838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43839 done; \
a90ef4bf 43840 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43843 "RANLIB=$${RANLIB}" \
0c24b341 43844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43845 info) \
e2b9e2dc
NN
43846 || exit 1
43847
a90ef4bf 43848@endif target-libgo
3866be5d 43849
a90ef4bf
JM
43850.PHONY: maybe-dvi-target-libgo dvi-target-libgo
43851maybe-dvi-target-libgo:
43852@if target-libgo
43853maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 43854
a90ef4bf
JM
43855dvi-target-libgo: \
43856 configure-target-libgo
0aed8855 43857 @: $(MAKE); $(unstage)
22121df0 43858 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43859 r=`${PWD_COMMAND}`; export r; \
b40e3958 43860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43861 $(NORMAL_TARGET_EXPORTS) \
22121df0 43862 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43863 for flag in $(EXTRA_TARGET_FLAGS); do \
43864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43865 done; \
a90ef4bf 43866 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43869 "RANLIB=$${RANLIB}" \
0c24b341 43870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43871 dvi) \
4fa63067 43872 || exit 1
3866be5d 43873
a90ef4bf 43874@endif target-libgo
3866be5d 43875
a90ef4bf
JM
43876.PHONY: maybe-pdf-target-libgo pdf-target-libgo
43877maybe-pdf-target-libgo:
43878@if target-libgo
43879maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 43880
a90ef4bf
JM
43881pdf-target-libgo: \
43882 configure-target-libgo
56a8fe78 43883 @: $(MAKE); $(unstage)
22121df0 43884 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
43885 r=`${PWD_COMMAND}`; export r; \
43886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43887 $(NORMAL_TARGET_EXPORTS) \
22121df0 43888 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
43889 for flag in $(EXTRA_TARGET_FLAGS); do \
43890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43891 done; \
a90ef4bf 43892 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
43893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43895 "RANLIB=$${RANLIB}" \
0c24b341 43896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43897 pdf) \
43898 || exit 1
43899
a90ef4bf 43900@endif target-libgo
56a8fe78 43901
a90ef4bf
JM
43902.PHONY: maybe-html-target-libgo html-target-libgo
43903maybe-html-target-libgo:
43904@if target-libgo
43905maybe-html-target-libgo: html-target-libgo
6d389afc 43906
a90ef4bf
JM
43907html-target-libgo: \
43908 configure-target-libgo
0aed8855 43909 @: $(MAKE); $(unstage)
22121df0 43910 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
43911 r=`${PWD_COMMAND}`; export r; \
43912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43913 $(NORMAL_TARGET_EXPORTS) \
22121df0 43914 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
43915 for flag in $(EXTRA_TARGET_FLAGS); do \
43916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43917 done; \
a90ef4bf 43918 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
43919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43921 "RANLIB=$${RANLIB}" \
0c24b341 43922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43923 html) \
43924 || exit 1
43925
a90ef4bf 43926@endif target-libgo
6d389afc 43927
a90ef4bf
JM
43928.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
43929maybe-TAGS-target-libgo:
43930@if target-libgo
43931maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 43932
a90ef4bf
JM
43933TAGS-target-libgo: \
43934 configure-target-libgo
0aed8855 43935 @: $(MAKE); $(unstage)
22121df0 43936 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43937 r=`${PWD_COMMAND}`; export r; \
b40e3958 43938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43939 $(NORMAL_TARGET_EXPORTS) \
22121df0 43940 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43941 for flag in $(EXTRA_TARGET_FLAGS); do \
43942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43943 done; \
a90ef4bf 43944 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43947 "RANLIB=$${RANLIB}" \
0c24b341 43948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43949 TAGS) \
4fa63067 43950 || exit 1
3866be5d 43951
a90ef4bf 43952@endif target-libgo
3866be5d 43953
a90ef4bf
JM
43954.PHONY: maybe-install-info-target-libgo install-info-target-libgo
43955maybe-install-info-target-libgo:
43956@if target-libgo
43957maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 43958
a90ef4bf
JM
43959install-info-target-libgo: \
43960 configure-target-libgo \
43961 info-target-libgo
0aed8855 43962 @: $(MAKE); $(unstage)
22121df0 43963 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43964 r=`${PWD_COMMAND}`; export r; \
43965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43966 $(NORMAL_TARGET_EXPORTS) \
22121df0 43967 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43968 for flag in $(EXTRA_TARGET_FLAGS); do \
43969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43970 done; \
a90ef4bf 43971 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43974 "RANLIB=$${RANLIB}" \
0c24b341 43975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43976 install-info) \
e2b9e2dc
NN
43977 || exit 1
43978
a90ef4bf 43979@endif target-libgo
4fa63067 43980
a90ef4bf
JM
43981.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
43982maybe-install-pdf-target-libgo:
43983@if target-libgo
43984maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 43985
a90ef4bf
JM
43986install-pdf-target-libgo: \
43987 configure-target-libgo \
43988 pdf-target-libgo
a3ca38d2 43989 @: $(MAKE); $(unstage)
22121df0 43990 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
43991 r=`${PWD_COMMAND}`; export r; \
43992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43993 $(NORMAL_TARGET_EXPORTS) \
22121df0 43994 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
43995 for flag in $(EXTRA_TARGET_FLAGS); do \
43996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43997 done; \
a90ef4bf 43998 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
43999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44001 "RANLIB=$${RANLIB}" \
0c24b341 44002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44003 install-pdf) \
44004 || exit 1
44005
a90ef4bf 44006@endif target-libgo
a3ca38d2 44007
a90ef4bf
JM
44008.PHONY: maybe-install-html-target-libgo install-html-target-libgo
44009maybe-install-html-target-libgo:
44010@if target-libgo
44011maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 44012
a90ef4bf
JM
44013install-html-target-libgo: \
44014 configure-target-libgo \
44015 html-target-libgo
108a6f8e 44016 @: $(MAKE); $(unstage)
22121df0 44017 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
44018 r=`${PWD_COMMAND}`; export r; \
44019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44020 $(NORMAL_TARGET_EXPORTS) \
22121df0 44021 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
44022 for flag in $(EXTRA_TARGET_FLAGS); do \
44023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44024 done; \
a90ef4bf 44025 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
44026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44028 "RANLIB=$${RANLIB}" \
0c24b341 44029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44030 install-html) \
44031 || exit 1
44032
a90ef4bf 44033@endif target-libgo
108a6f8e 44034
a90ef4bf
JM
44035.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
44036maybe-installcheck-target-libgo:
44037@if target-libgo
44038maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 44039
a90ef4bf
JM
44040installcheck-target-libgo: \
44041 configure-target-libgo
0aed8855 44042 @: $(MAKE); $(unstage)
22121df0 44043 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44044 r=`${PWD_COMMAND}`; export r; \
b40e3958 44045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44046 $(NORMAL_TARGET_EXPORTS) \
22121df0 44047 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44048 for flag in $(EXTRA_TARGET_FLAGS); do \
44049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44050 done; \
a90ef4bf 44051 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44054 "RANLIB=$${RANLIB}" \
0c24b341 44055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44056 installcheck) \
4fa63067 44057 || exit 1
3866be5d 44058
a90ef4bf 44059@endif target-libgo
3866be5d 44060
a90ef4bf
JM
44061.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
44062maybe-mostlyclean-target-libgo:
44063@if target-libgo
44064maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 44065
a90ef4bf 44066mostlyclean-target-libgo:
0aed8855 44067 @: $(MAKE); $(unstage)
22121df0 44068 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44069 r=`${PWD_COMMAND}`; export r; \
b40e3958 44070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44071 $(NORMAL_TARGET_EXPORTS) \
22121df0 44072 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44073 for flag in $(EXTRA_TARGET_FLAGS); do \
44074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44075 done; \
a90ef4bf 44076 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44079 "RANLIB=$${RANLIB}" \
0c24b341 44080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44081 mostlyclean) \
4fa63067 44082 || exit 1
3866be5d 44083
a90ef4bf 44084@endif target-libgo
3866be5d 44085
a90ef4bf
JM
44086.PHONY: maybe-clean-target-libgo clean-target-libgo
44087maybe-clean-target-libgo:
44088@if target-libgo
44089maybe-clean-target-libgo: clean-target-libgo
16ae0395 44090
a90ef4bf 44091clean-target-libgo:
0aed8855 44092 @: $(MAKE); $(unstage)
22121df0 44093 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44094 r=`${PWD_COMMAND}`; export r; \
b40e3958 44095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44096 $(NORMAL_TARGET_EXPORTS) \
22121df0 44097 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44098 for flag in $(EXTRA_TARGET_FLAGS); do \
44099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44100 done; \
a90ef4bf 44101 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44104 "RANLIB=$${RANLIB}" \
0c24b341 44105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44106 clean) \
4fa63067 44107 || exit 1
3866be5d 44108
a90ef4bf 44109@endif target-libgo
3866be5d 44110
a90ef4bf
JM
44111.PHONY: maybe-distclean-target-libgo distclean-target-libgo
44112maybe-distclean-target-libgo:
44113@if target-libgo
44114maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 44115
a90ef4bf 44116distclean-target-libgo:
0aed8855 44117 @: $(MAKE); $(unstage)
22121df0 44118 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
44119 r=`${PWD_COMMAND}`; export r; \
44120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44121 $(NORMAL_TARGET_EXPORTS) \
22121df0 44122 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44123 for flag in $(EXTRA_TARGET_FLAGS); do \
44124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44125 done; \
a90ef4bf 44126 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44129 "RANLIB=$${RANLIB}" \
0c24b341 44130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44131 distclean) \
e2b9e2dc
NN
44132 || exit 1
44133
a90ef4bf 44134@endif target-libgo
3866be5d 44135
a90ef4bf
JM
44136.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
44137maybe-maintainer-clean-target-libgo:
44138@if target-libgo
44139maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 44140
a90ef4bf 44141maintainer-clean-target-libgo:
0aed8855 44142 @: $(MAKE); $(unstage)
22121df0 44143 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44144 r=`${PWD_COMMAND}`; export r; \
b40e3958 44145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44146 $(NORMAL_TARGET_EXPORTS) \
22121df0 44147 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44148 for flag in $(EXTRA_TARGET_FLAGS); do \
44149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44150 done; \
a90ef4bf 44151 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44154 "RANLIB=$${RANLIB}" \
0c24b341 44155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44156 maintainer-clean) \
4fa63067 44157 || exit 1
3866be5d 44158
a90ef4bf 44159@endif target-libgo
3866be5d 44160
16ae0395 44161
3866be5d 44162
e90269c8 44163
a7254363 44164
a90ef4bf
JM
44165.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
44166maybe-configure-target-libtermcap:
4f0ef2d8 44167@if gcc-bootstrap
a90ef4bf 44168configure-target-libtermcap: stage_current
4f0ef2d8 44169@endif gcc-bootstrap
a90ef4bf
JM
44170@if target-libtermcap
44171maybe-configure-target-libtermcap: configure-target-libtermcap
44172configure-target-libtermcap:
0aed8855
PB
44173 @: $(MAKE); $(unstage)
44174 @r=`${PWD_COMMAND}`; export r; \
44175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44176 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
44177 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
44178 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44179 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
44180 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
44181 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 44182 else \
a90ef4bf
JM
44183 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
44184 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
44185 fi; \
44186 else \
a90ef4bf 44187 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 44188 fi; \
a90ef4bf 44189 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 44190 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 44191 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44192 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
44193 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 44194 case $(srcdir) in \
b00612cc 44195 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44196 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 44197 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 44198 esac; \
1b6c0831 44199 module_srcdir=libtermcap; \
4fa63067 44200 rm -f no-such-file || : ; \
1b6c0831
L
44201 CONFIG_SITE=no-such-file $(SHELL) \
44202 $$s/$$module_srcdir/configure \
44203 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44204 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44205 --target=${target_alias} \
e2b9e2dc 44206 || exit 1
a90ef4bf 44207@endif target-libtermcap
e2b9e2dc 44208
a7254363
PB
44209
44210
d545f33b
PB
44211
44212
a90ef4bf
JM
44213.PHONY: all-target-libtermcap maybe-all-target-libtermcap
44214maybe-all-target-libtermcap:
4f0ef2d8 44215@if gcc-bootstrap
a90ef4bf 44216all-target-libtermcap: stage_current
4f0ef2d8 44217@endif gcc-bootstrap
a90ef4bf
JM
44218@if target-libtermcap
44219TARGET-target-libtermcap=all
44220maybe-all-target-libtermcap: all-target-libtermcap
44221all-target-libtermcap: configure-target-libtermcap
0aed8855 44222 @: $(MAKE); $(unstage)
b40e3958
L
44223 @r=`${PWD_COMMAND}`; export r; \
44224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44225 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44226 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 44227 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44228 $(TARGET-target-libtermcap))
44229@endif target-libtermcap
e393202e 44230
a7254363
PB
44231
44232
d545f33b
PB
44233
44234
a90ef4bf
JM
44235.PHONY: check-target-libtermcap maybe-check-target-libtermcap
44236maybe-check-target-libtermcap:
44237@if target-libtermcap
44238maybe-check-target-libtermcap: check-target-libtermcap
e393202e 44239
4fa63067 44240# Dummy target for uncheckable module.
a90ef4bf 44241check-target-libtermcap:
e393202e 44242
a90ef4bf 44243@endif target-libtermcap
e393202e 44244
a90ef4bf
JM
44245.PHONY: install-target-libtermcap maybe-install-target-libtermcap
44246maybe-install-target-libtermcap:
44247@if target-libtermcap
44248maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 44249
a90ef4bf 44250install-target-libtermcap: installdirs
0aed8855 44251 @: $(MAKE); $(unstage)
b40e3958
L
44252 @r=`${PWD_COMMAND}`; export r; \
44253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44254 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44255 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 44256 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44257
a90ef4bf 44258@endif target-libtermcap
56a8fe78 44259
a90ef4bf
JM
44260.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
44261maybe-install-strip-target-libtermcap:
44262@if target-libtermcap
44263maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 44264
a90ef4bf 44265install-strip-target-libtermcap: installdirs
0aed8855 44266 @: $(MAKE); $(unstage)
a90ef4bf 44267 @r=`${PWD_COMMAND}`; export r; \
6d389afc 44268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44269 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44270 (cd $(TARGET_SUBDIR)/libtermcap && \
44271 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 44272
a90ef4bf 44273@endif target-libtermcap
6d389afc 44274
a90ef4bf 44275# Other targets (info, dvi, pdf, etc.)
16ae0395 44276
a90ef4bf
JM
44277.PHONY: maybe-info-target-libtermcap info-target-libtermcap
44278maybe-info-target-libtermcap:
44279@if target-libtermcap
44280maybe-info-target-libtermcap: info-target-libtermcap
44281
44282info-target-libtermcap: \
44283 configure-target-libtermcap
0aed8855 44284 @: $(MAKE); $(unstage)
22121df0 44285 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44286 r=`${PWD_COMMAND}`; export r; \
b40e3958 44287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44288 $(NORMAL_TARGET_EXPORTS) \
22121df0 44289 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44290 for flag in $(EXTRA_TARGET_FLAGS); do \
44291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44292 done; \
a90ef4bf 44293 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44296 "RANLIB=$${RANLIB}" \
0c24b341 44297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44298 info) \
4fa63067 44299 || exit 1
ce5b542e 44300
a90ef4bf 44301@endif target-libtermcap
ce5b542e 44302
a90ef4bf
JM
44303.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
44304maybe-dvi-target-libtermcap:
44305@if target-libtermcap
44306maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 44307
a90ef4bf
JM
44308dvi-target-libtermcap: \
44309 configure-target-libtermcap
0aed8855 44310 @: $(MAKE); $(unstage)
22121df0 44311 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
44312 r=`${PWD_COMMAND}`; export r; \
44313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44314 $(NORMAL_TARGET_EXPORTS) \
22121df0 44315 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44316 for flag in $(EXTRA_TARGET_FLAGS); do \
44317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44318 done; \
a90ef4bf 44319 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44322 "RANLIB=$${RANLIB}" \
0c24b341 44323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44324 dvi) \
e2b9e2dc
NN
44325 || exit 1
44326
a90ef4bf 44327@endif target-libtermcap
e393202e 44328
a90ef4bf
JM
44329.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
44330maybe-pdf-target-libtermcap:
44331@if target-libtermcap
44332maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 44333
a90ef4bf
JM
44334pdf-target-libtermcap: \
44335 configure-target-libtermcap
a3ca38d2 44336 @: $(MAKE); $(unstage)
22121df0 44337 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
44338 r=`${PWD_COMMAND}`; export r; \
44339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44340 $(NORMAL_TARGET_EXPORTS) \
22121df0 44341 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
44342 for flag in $(EXTRA_TARGET_FLAGS); do \
44343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44344 done; \
a90ef4bf 44345 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
44346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44348 "RANLIB=$${RANLIB}" \
0c24b341 44349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44350 pdf) \
a3ca38d2
DD
44351 || exit 1
44352
a90ef4bf 44353@endif target-libtermcap
a3ca38d2 44354
a90ef4bf
JM
44355.PHONY: maybe-html-target-libtermcap html-target-libtermcap
44356maybe-html-target-libtermcap:
44357@if target-libtermcap
44358maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 44359
a90ef4bf
JM
44360html-target-libtermcap: \
44361 configure-target-libtermcap
108a6f8e 44362 @: $(MAKE); $(unstage)
22121df0 44363 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
44364 r=`${PWD_COMMAND}`; export r; \
44365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44366 $(NORMAL_TARGET_EXPORTS) \
22121df0 44367 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
44368 for flag in $(EXTRA_TARGET_FLAGS); do \
44369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44370 done; \
a90ef4bf 44371 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
44372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44374 "RANLIB=$${RANLIB}" \
0c24b341 44375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44376 html) \
108a6f8e
CD
44377 || exit 1
44378
a90ef4bf 44379@endif target-libtermcap
108a6f8e 44380
a90ef4bf
JM
44381.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
44382maybe-TAGS-target-libtermcap:
44383@if target-libtermcap
44384maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 44385
a90ef4bf
JM
44386TAGS-target-libtermcap: \
44387 configure-target-libtermcap
0aed8855 44388 @: $(MAKE); $(unstage)
22121df0 44389 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
44390 r=`${PWD_COMMAND}`; export r; \
44391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44392 $(NORMAL_TARGET_EXPORTS) \
22121df0 44393 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44394 for flag in $(EXTRA_TARGET_FLAGS); do \
44395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44396 done; \
a90ef4bf 44397 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44400 "RANLIB=$${RANLIB}" \
0c24b341 44401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44402 TAGS) \
4fa63067 44403 || exit 1
3866be5d 44404
a90ef4bf 44405@endif target-libtermcap
3866be5d 44406
a90ef4bf
JM
44407.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
44408maybe-install-info-target-libtermcap:
44409@if target-libtermcap
44410maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 44411
a90ef4bf
JM
44412install-info-target-libtermcap: \
44413 configure-target-libtermcap \
44414 info-target-libtermcap
0aed8855 44415 @: $(MAKE); $(unstage)
22121df0 44416 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44417 r=`${PWD_COMMAND}`; export r; \
b40e3958 44418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44419 $(NORMAL_TARGET_EXPORTS) \
22121df0 44420 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44421 for flag in $(EXTRA_TARGET_FLAGS); do \
44422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44423 done; \
a90ef4bf 44424 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44427 "RANLIB=$${RANLIB}" \
0c24b341 44428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44429 install-info) \
4fa63067 44430 || exit 1
e393202e 44431
a90ef4bf 44432@endif target-libtermcap
3866be5d 44433
a90ef4bf
JM
44434.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
44435maybe-install-pdf-target-libtermcap:
44436@if target-libtermcap
44437maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 44438
a90ef4bf
JM
44439install-pdf-target-libtermcap: \
44440 configure-target-libtermcap \
44441 pdf-target-libtermcap
0aed8855 44442 @: $(MAKE); $(unstage)
22121df0 44443 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
44444 r=`${PWD_COMMAND}`; export r; \
44445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44446 $(NORMAL_TARGET_EXPORTS) \
22121df0 44447 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44448 for flag in $(EXTRA_TARGET_FLAGS); do \
44449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44450 done; \
a90ef4bf 44451 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44454 "RANLIB=$${RANLIB}" \
0c24b341 44455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44456 install-pdf) \
e2b9e2dc
NN
44457 || exit 1
44458
a90ef4bf 44459@endif target-libtermcap
e393202e 44460
a90ef4bf
JM
44461.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
44462maybe-install-html-target-libtermcap:
44463@if target-libtermcap
44464maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 44465
a90ef4bf
JM
44466install-html-target-libtermcap: \
44467 configure-target-libtermcap \
44468 html-target-libtermcap
0aed8855 44469 @: $(MAKE); $(unstage)
22121df0 44470 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
44471 r=`${PWD_COMMAND}`; export r; \
44472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44473 $(NORMAL_TARGET_EXPORTS) \
22121df0 44474 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44475 for flag in $(EXTRA_TARGET_FLAGS); do \
44476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44477 done; \
a90ef4bf 44478 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44481 "RANLIB=$${RANLIB}" \
0c24b341 44482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44483 install-html) \
4fa63067 44484 || exit 1
3866be5d 44485
a90ef4bf 44486@endif target-libtermcap
3866be5d 44487
a90ef4bf
JM
44488.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
44489maybe-installcheck-target-libtermcap:
44490@if target-libtermcap
44491maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 44492
a90ef4bf
JM
44493installcheck-target-libtermcap: \
44494 configure-target-libtermcap
0aed8855 44495 @: $(MAKE); $(unstage)
22121df0 44496 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44497 r=`${PWD_COMMAND}`; export r; \
b40e3958 44498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44499 $(NORMAL_TARGET_EXPORTS) \
22121df0 44500 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44501 for flag in $(EXTRA_TARGET_FLAGS); do \
44502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44503 done; \
a90ef4bf 44504 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44507 "RANLIB=$${RANLIB}" \
0c24b341 44508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44509 installcheck) \
4fa63067 44510 || exit 1
3866be5d 44511
a90ef4bf
JM
44512@endif target-libtermcap
44513
44514.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
44515maybe-mostlyclean-target-libtermcap:
44516@if target-libtermcap
44517maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
44518
44519# libtermcap doesn't support mostlyclean.
44520mostlyclean-target-libtermcap:
44521
44522@endif target-libtermcap
3866be5d 44523
a90ef4bf
JM
44524.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
44525maybe-clean-target-libtermcap:
44526@if target-libtermcap
44527maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 44528
a90ef4bf
JM
44529# libtermcap doesn't support clean.
44530clean-target-libtermcap:
15723a45 44531
a90ef4bf 44532@endif target-libtermcap
e90269c8 44533
a90ef4bf
JM
44534.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
44535maybe-distclean-target-libtermcap:
44536@if target-libtermcap
44537maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 44538
a90ef4bf
JM
44539# libtermcap doesn't support distclean.
44540distclean-target-libtermcap:
44541
44542@endif target-libtermcap
44543
44544.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
44545maybe-maintainer-clean-target-libtermcap:
44546@if target-libtermcap
44547maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
44548
44549# libtermcap doesn't support maintainer-clean.
44550maintainer-clean-target-libtermcap:
44551
44552@endif target-libtermcap
44553
44554
44555
44556
44557
44558.PHONY: configure-target-winsup maybe-configure-target-winsup
44559maybe-configure-target-winsup:
4f0ef2d8 44560@if gcc-bootstrap
a90ef4bf 44561configure-target-winsup: stage_current
4f0ef2d8 44562@endif gcc-bootstrap
a90ef4bf
JM
44563@if target-winsup
44564maybe-configure-target-winsup: configure-target-winsup
44565configure-target-winsup:
0aed8855
PB
44566 @: $(MAKE); $(unstage)
44567 @r=`${PWD_COMMAND}`; export r; \
44568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44569 echo "Checking multilib configuration for winsup..."; \
22121df0
L
44570 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
44571 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44572 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
44573 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
44574 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 44575 else \
a90ef4bf
JM
44576 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
44577 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
44578 fi; \
44579 else \
a90ef4bf 44580 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 44581 fi; \
a90ef4bf 44582 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 44583 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 44584 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44585 echo Configuring in $(TARGET_SUBDIR)/winsup; \
44586 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 44587 case $(srcdir) in \
b00612cc 44588 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44589 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 44590 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44591 esac; \
1b6c0831 44592 module_srcdir=winsup; \
bba45b8b 44593 rm -f no-such-file || : ; \
1b6c0831
L
44594 CONFIG_SITE=no-such-file $(SHELL) \
44595 $$s/$$module_srcdir/configure \
44596 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44597 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44598 --target=${target_alias} \
bba45b8b 44599 || exit 1
a90ef4bf 44600@endif target-winsup
e393202e 44601
a7254363
PB
44602
44603
d545f33b
PB
44604
44605
a90ef4bf
JM
44606.PHONY: all-target-winsup maybe-all-target-winsup
44607maybe-all-target-winsup:
4f0ef2d8 44608@if gcc-bootstrap
a90ef4bf 44609all-target-winsup: stage_current
4f0ef2d8 44610@endif gcc-bootstrap
a90ef4bf
JM
44611@if target-winsup
44612TARGET-target-winsup=all
44613maybe-all-target-winsup: all-target-winsup
44614all-target-winsup: configure-target-winsup
0aed8855 44615 @: $(MAKE); $(unstage)
b40e3958
L
44616 @r=`${PWD_COMMAND}`; export r; \
44617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44618 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44619 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 44620 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44621 $(TARGET-target-winsup))
44622@endif target-winsup
e393202e 44623
a7254363
PB
44624
44625
d545f33b
PB
44626
44627
a90ef4bf
JM
44628.PHONY: check-target-winsup maybe-check-target-winsup
44629maybe-check-target-winsup:
44630@if target-winsup
44631maybe-check-target-winsup: check-target-winsup
16ae0395 44632
a90ef4bf 44633check-target-winsup:
0aed8855 44634 @: $(MAKE); $(unstage)
b40e3958
L
44635 @r=`${PWD_COMMAND}`; export r; \
44636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44637 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44638 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 44639 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 44640
a90ef4bf 44641@endif target-winsup
e393202e 44642
a90ef4bf
JM
44643.PHONY: install-target-winsup maybe-install-target-winsup
44644maybe-install-target-winsup:
44645@if target-winsup
44646maybe-install-target-winsup: install-target-winsup
4fa63067 44647
a90ef4bf 44648install-target-winsup: installdirs
0aed8855 44649 @: $(MAKE); $(unstage)
4fa63067
NN
44650 @r=`${PWD_COMMAND}`; export r; \
44651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44652 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44653 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 44654 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 44655
a90ef4bf 44656@endif target-winsup
4fa63067 44657
a90ef4bf
JM
44658.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
44659maybe-install-strip-target-winsup:
44660@if target-winsup
44661maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 44662
a90ef4bf 44663install-strip-target-winsup: installdirs
9b980aa1
RW
44664 @: $(MAKE); $(unstage)
44665 @r=`${PWD_COMMAND}`; export r; \
44666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44667 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44668 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
44669 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44670
a90ef4bf 44671@endif target-winsup
9b980aa1 44672
56a8fe78 44673# Other targets (info, dvi, pdf, etc.)
4fa63067 44674
a90ef4bf
JM
44675.PHONY: maybe-info-target-winsup info-target-winsup
44676maybe-info-target-winsup:
44677@if target-winsup
44678maybe-info-target-winsup: info-target-winsup
4fa63067 44679
a90ef4bf
JM
44680info-target-winsup: \
44681 configure-target-winsup
0aed8855 44682 @: $(MAKE); $(unstage)
22121df0 44683 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44684 r=`${PWD_COMMAND}`; export r; \
44685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44686 $(NORMAL_TARGET_EXPORTS) \
22121df0 44687 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44688 for flag in $(EXTRA_TARGET_FLAGS); do \
44689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44690 done; \
a90ef4bf 44691 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44694 "RANLIB=$${RANLIB}" \
0c24b341 44695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44696 info) \
4fa63067
NN
44697 || exit 1
44698
a90ef4bf 44699@endif target-winsup
4fa63067 44700
a90ef4bf
JM
44701.PHONY: maybe-dvi-target-winsup dvi-target-winsup
44702maybe-dvi-target-winsup:
44703@if target-winsup
44704maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 44705
a90ef4bf
JM
44706dvi-target-winsup: \
44707 configure-target-winsup
0aed8855 44708 @: $(MAKE); $(unstage)
22121df0 44709 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44710 r=`${PWD_COMMAND}`; export r; \
44711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44712 $(NORMAL_TARGET_EXPORTS) \
22121df0 44713 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44714 for flag in $(EXTRA_TARGET_FLAGS); do \
44715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44716 done; \
a90ef4bf 44717 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44720 "RANLIB=$${RANLIB}" \
0c24b341 44721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44722 dvi) \
4fa63067
NN
44723 || exit 1
44724
a90ef4bf 44725@endif target-winsup
4fa63067 44726
a90ef4bf
JM
44727.PHONY: maybe-pdf-target-winsup pdf-target-winsup
44728maybe-pdf-target-winsup:
44729@if target-winsup
44730maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 44731
a90ef4bf
JM
44732pdf-target-winsup: \
44733 configure-target-winsup
56a8fe78 44734 @: $(MAKE); $(unstage)
22121df0 44735 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
44736 r=`${PWD_COMMAND}`; export r; \
44737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44738 $(NORMAL_TARGET_EXPORTS) \
22121df0 44739 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
44740 for flag in $(EXTRA_TARGET_FLAGS); do \
44741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44742 done; \
a90ef4bf 44743 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
44744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44746 "RANLIB=$${RANLIB}" \
0c24b341 44747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44748 pdf) \
44749 || exit 1
44750
a90ef4bf 44751@endif target-winsup
56a8fe78 44752
a90ef4bf
JM
44753.PHONY: maybe-html-target-winsup html-target-winsup
44754maybe-html-target-winsup:
44755@if target-winsup
44756maybe-html-target-winsup: html-target-winsup
6d389afc 44757
a90ef4bf
JM
44758html-target-winsup: \
44759 configure-target-winsup
0aed8855 44760 @: $(MAKE); $(unstage)
22121df0 44761 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
44762 r=`${PWD_COMMAND}`; export r; \
44763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44764 $(NORMAL_TARGET_EXPORTS) \
22121df0 44765 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
44766 for flag in $(EXTRA_TARGET_FLAGS); do \
44767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44768 done; \
a90ef4bf 44769 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
44770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44772 "RANLIB=$${RANLIB}" \
0c24b341 44773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44774 html) \
44775 || exit 1
44776
a90ef4bf 44777@endif target-winsup
6d389afc 44778
a90ef4bf
JM
44779.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
44780maybe-TAGS-target-winsup:
44781@if target-winsup
44782maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 44783
a90ef4bf
JM
44784TAGS-target-winsup: \
44785 configure-target-winsup
0aed8855 44786 @: $(MAKE); $(unstage)
22121df0 44787 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44788 r=`${PWD_COMMAND}`; export r; \
44789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44790 $(NORMAL_TARGET_EXPORTS) \
22121df0 44791 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44792 for flag in $(EXTRA_TARGET_FLAGS); do \
44793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44794 done; \
a90ef4bf 44795 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44798 "RANLIB=$${RANLIB}" \
0c24b341 44799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44800 TAGS) \
4fa63067
NN
44801 || exit 1
44802
a90ef4bf 44803@endif target-winsup
4fa63067 44804
a90ef4bf
JM
44805.PHONY: maybe-install-info-target-winsup install-info-target-winsup
44806maybe-install-info-target-winsup:
44807@if target-winsup
44808maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 44809
a90ef4bf
JM
44810install-info-target-winsup: \
44811 configure-target-winsup \
44812 info-target-winsup
0aed8855 44813 @: $(MAKE); $(unstage)
22121df0 44814 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44815 r=`${PWD_COMMAND}`; export r; \
44816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44817 $(NORMAL_TARGET_EXPORTS) \
22121df0 44818 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44819 for flag in $(EXTRA_TARGET_FLAGS); do \
44820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44821 done; \
a90ef4bf 44822 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44825 "RANLIB=$${RANLIB}" \
0c24b341 44826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44827 install-info) \
4fa63067
NN
44828 || exit 1
44829
a90ef4bf 44830@endif target-winsup
4fa63067 44831
a90ef4bf
JM
44832.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
44833maybe-install-pdf-target-winsup:
44834@if target-winsup
44835maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 44836
a90ef4bf
JM
44837install-pdf-target-winsup: \
44838 configure-target-winsup \
44839 pdf-target-winsup
a3ca38d2 44840 @: $(MAKE); $(unstage)
22121df0 44841 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
44842 r=`${PWD_COMMAND}`; export r; \
44843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44844 $(NORMAL_TARGET_EXPORTS) \
22121df0 44845 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
44846 for flag in $(EXTRA_TARGET_FLAGS); do \
44847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44848 done; \
a90ef4bf 44849 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
44850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44852 "RANLIB=$${RANLIB}" \
0c24b341 44853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44854 install-pdf) \
44855 || exit 1
44856
a90ef4bf 44857@endif target-winsup
a3ca38d2 44858
a90ef4bf
JM
44859.PHONY: maybe-install-html-target-winsup install-html-target-winsup
44860maybe-install-html-target-winsup:
44861@if target-winsup
44862maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 44863
a90ef4bf
JM
44864install-html-target-winsup: \
44865 configure-target-winsup \
44866 html-target-winsup
108a6f8e 44867 @: $(MAKE); $(unstage)
22121df0 44868 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
44869 r=`${PWD_COMMAND}`; export r; \
44870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44871 $(NORMAL_TARGET_EXPORTS) \
22121df0 44872 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
44873 for flag in $(EXTRA_TARGET_FLAGS); do \
44874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44875 done; \
a90ef4bf 44876 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
44877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44879 "RANLIB=$${RANLIB}" \
0c24b341 44880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44881 install-html) \
44882 || exit 1
44883
a90ef4bf 44884@endif target-winsup
108a6f8e 44885
a90ef4bf
JM
44886.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
44887maybe-installcheck-target-winsup:
44888@if target-winsup
44889maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 44890
a90ef4bf
JM
44891installcheck-target-winsup: \
44892 configure-target-winsup
0aed8855 44893 @: $(MAKE); $(unstage)
22121df0 44894 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44895 r=`${PWD_COMMAND}`; export r; \
44896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44897 $(NORMAL_TARGET_EXPORTS) \
22121df0 44898 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44899 for flag in $(EXTRA_TARGET_FLAGS); do \
44900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44901 done; \
a90ef4bf 44902 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44905 "RANLIB=$${RANLIB}" \
0c24b341 44906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44907 installcheck) \
4fa63067
NN
44908 || exit 1
44909
a90ef4bf 44910@endif target-winsup
4fa63067 44911
a90ef4bf
JM
44912.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
44913maybe-mostlyclean-target-winsup:
44914@if target-winsup
44915maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 44916
a90ef4bf 44917mostlyclean-target-winsup:
0aed8855 44918 @: $(MAKE); $(unstage)
22121df0 44919 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44920 r=`${PWD_COMMAND}`; export r; \
44921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44922 $(NORMAL_TARGET_EXPORTS) \
22121df0 44923 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44924 for flag in $(EXTRA_TARGET_FLAGS); do \
44925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44926 done; \
a90ef4bf 44927 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44930 "RANLIB=$${RANLIB}" \
0c24b341 44931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44932 mostlyclean) \
4fa63067
NN
44933 || exit 1
44934
a90ef4bf 44935@endif target-winsup
4fa63067 44936
a90ef4bf
JM
44937.PHONY: maybe-clean-target-winsup clean-target-winsup
44938maybe-clean-target-winsup:
44939@if target-winsup
44940maybe-clean-target-winsup: clean-target-winsup
4fa63067 44941
a90ef4bf 44942clean-target-winsup:
0aed8855 44943 @: $(MAKE); $(unstage)
22121df0 44944 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44945 r=`${PWD_COMMAND}`; export r; \
44946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44947 $(NORMAL_TARGET_EXPORTS) \
22121df0 44948 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44949 for flag in $(EXTRA_TARGET_FLAGS); do \
44950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44951 done; \
a90ef4bf 44952 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44955 "RANLIB=$${RANLIB}" \
0c24b341 44956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44957 clean) \
4fa63067
NN
44958 || exit 1
44959
a90ef4bf 44960@endif target-winsup
4fa63067 44961
a90ef4bf
JM
44962.PHONY: maybe-distclean-target-winsup distclean-target-winsup
44963maybe-distclean-target-winsup:
44964@if target-winsup
44965maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 44966
a90ef4bf 44967distclean-target-winsup:
0aed8855 44968 @: $(MAKE); $(unstage)
22121df0 44969 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44970 r=`${PWD_COMMAND}`; export r; \
44971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44972 $(NORMAL_TARGET_EXPORTS) \
22121df0 44973 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44974 for flag in $(EXTRA_TARGET_FLAGS); do \
44975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44976 done; \
a90ef4bf 44977 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44980 "RANLIB=$${RANLIB}" \
0c24b341 44981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44982 distclean) \
4fa63067
NN
44983 || exit 1
44984
a90ef4bf 44985@endif target-winsup
4fa63067 44986
a90ef4bf
JM
44987.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
44988maybe-maintainer-clean-target-winsup:
44989@if target-winsup
44990maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 44991
a90ef4bf 44992maintainer-clean-target-winsup:
0aed8855 44993 @: $(MAKE); $(unstage)
22121df0 44994 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44995 r=`${PWD_COMMAND}`; export r; \
44996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44997 $(NORMAL_TARGET_EXPORTS) \
22121df0 44998 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44999 for flag in $(EXTRA_TARGET_FLAGS); do \
45000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45001 done; \
a90ef4bf 45002 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
45003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45005 "RANLIB=$${RANLIB}" \
0c24b341 45006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45007 maintainer-clean) \
4fa63067 45008 || exit 1
16ae0395 45009
a90ef4bf 45010@endif target-winsup
e393202e
NN
45011
45012
15723a45 45013
e90269c8 45014
a7254363 45015
a90ef4bf
JM
45016.PHONY: configure-target-libgloss maybe-configure-target-libgloss
45017maybe-configure-target-libgloss:
4f0ef2d8 45018@if gcc-bootstrap
a90ef4bf 45019configure-target-libgloss: stage_current
4f0ef2d8 45020@endif gcc-bootstrap
a90ef4bf
JM
45021@if target-libgloss
45022maybe-configure-target-libgloss: configure-target-libgloss
45023configure-target-libgloss:
0aed8855
PB
45024 @: $(MAKE); $(unstage)
45025 @r=`${PWD_COMMAND}`; export r; \
45026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 45027 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
45028 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
45029 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45030 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
45031 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
45032 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 45033 else \
a90ef4bf
JM
45034 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
45035 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
45036 fi; \
45037 else \
a90ef4bf 45038 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 45039 fi; \
a90ef4bf 45040 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 45041 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 45042 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45043 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
45044 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 45045 case $(srcdir) in \
b00612cc 45046 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 45047 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 45048 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45049 esac; \
1b6c0831 45050 module_srcdir=libgloss; \
bba45b8b 45051 rm -f no-such-file || : ; \
1b6c0831
L
45052 CONFIG_SITE=no-such-file $(SHELL) \
45053 $$s/$$module_srcdir/configure \
45054 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45055 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45056 --target=${target_alias} \
bba45b8b 45057 || exit 1
a90ef4bf 45058@endif target-libgloss
e393202e 45059
a7254363
PB
45060
45061
d545f33b
PB
45062
45063
a90ef4bf
JM
45064.PHONY: all-target-libgloss maybe-all-target-libgloss
45065maybe-all-target-libgloss:
4f0ef2d8 45066@if gcc-bootstrap
a90ef4bf 45067all-target-libgloss: stage_current
4f0ef2d8 45068@endif gcc-bootstrap
a90ef4bf
JM
45069@if target-libgloss
45070TARGET-target-libgloss=all
45071maybe-all-target-libgloss: all-target-libgloss
45072all-target-libgloss: configure-target-libgloss
0aed8855 45073 @: $(MAKE); $(unstage)
b40e3958
L
45074 @r=`${PWD_COMMAND}`; export r; \
45075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45076 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45077 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 45078 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
45079 $(TARGET-target-libgloss))
45080@endif target-libgloss
e393202e 45081
a7254363
PB
45082
45083
d545f33b
PB
45084
45085
a90ef4bf
JM
45086.PHONY: check-target-libgloss maybe-check-target-libgloss
45087maybe-check-target-libgloss:
45088@if target-libgloss
45089maybe-check-target-libgloss: check-target-libgloss
16ae0395 45090
a90ef4bf
JM
45091# Dummy target for uncheckable module.
45092check-target-libgloss:
930314a4 45093
a90ef4bf 45094@endif target-libgloss
e393202e 45095
a90ef4bf
JM
45096.PHONY: install-target-libgloss maybe-install-target-libgloss
45097maybe-install-target-libgloss:
45098@if target-libgloss
45099maybe-install-target-libgloss: install-target-libgloss
4fa63067 45100
a90ef4bf 45101install-target-libgloss: installdirs
0aed8855 45102 @: $(MAKE); $(unstage)
4fa63067
NN
45103 @r=`${PWD_COMMAND}`; export r; \
45104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45105 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45106 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 45107 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45108
a90ef4bf 45109@endif target-libgloss
4fa63067 45110
a90ef4bf
JM
45111.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
45112maybe-install-strip-target-libgloss:
45113@if target-libgloss
45114maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 45115
a90ef4bf 45116install-strip-target-libgloss: installdirs
9b980aa1
RW
45117 @: $(MAKE); $(unstage)
45118 @r=`${PWD_COMMAND}`; export r; \
45119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45120 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45121 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
45122 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45123
a90ef4bf 45124@endif target-libgloss
9b980aa1 45125
56a8fe78 45126# Other targets (info, dvi, pdf, etc.)
4fa63067 45127
a90ef4bf
JM
45128.PHONY: maybe-info-target-libgloss info-target-libgloss
45129maybe-info-target-libgloss:
45130@if target-libgloss
45131maybe-info-target-libgloss: info-target-libgloss
4fa63067 45132
a90ef4bf
JM
45133info-target-libgloss: \
45134 configure-target-libgloss
0aed8855 45135 @: $(MAKE); $(unstage)
22121df0 45136 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45137 r=`${PWD_COMMAND}`; export r; \
45138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45139 $(NORMAL_TARGET_EXPORTS) \
22121df0 45140 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45141 for flag in $(EXTRA_TARGET_FLAGS); do \
45142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45143 done; \
a90ef4bf 45144 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45147 "RANLIB=$${RANLIB}" \
0c24b341 45148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45149 info) \
4fa63067
NN
45150 || exit 1
45151
a90ef4bf 45152@endif target-libgloss
4fa63067 45153
a90ef4bf
JM
45154.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
45155maybe-dvi-target-libgloss:
45156@if target-libgloss
45157maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 45158
a90ef4bf
JM
45159dvi-target-libgloss: \
45160 configure-target-libgloss
0aed8855 45161 @: $(MAKE); $(unstage)
22121df0 45162 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45163 r=`${PWD_COMMAND}`; export r; \
45164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45165 $(NORMAL_TARGET_EXPORTS) \
22121df0 45166 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45167 for flag in $(EXTRA_TARGET_FLAGS); do \
45168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45169 done; \
a90ef4bf 45170 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45173 "RANLIB=$${RANLIB}" \
0c24b341 45174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45175 dvi) \
4fa63067
NN
45176 || exit 1
45177
a90ef4bf 45178@endif target-libgloss
4fa63067 45179
a90ef4bf
JM
45180.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
45181maybe-pdf-target-libgloss:
45182@if target-libgloss
45183maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 45184
a90ef4bf
JM
45185pdf-target-libgloss: \
45186 configure-target-libgloss
56a8fe78 45187 @: $(MAKE); $(unstage)
22121df0 45188 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
45189 r=`${PWD_COMMAND}`; export r; \
45190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45191 $(NORMAL_TARGET_EXPORTS) \
22121df0 45192 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
45193 for flag in $(EXTRA_TARGET_FLAGS); do \
45194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45195 done; \
a90ef4bf 45196 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
45197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45199 "RANLIB=$${RANLIB}" \
0c24b341 45200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45201 pdf) \
45202 || exit 1
45203
a90ef4bf 45204@endif target-libgloss
56a8fe78 45205
a90ef4bf
JM
45206.PHONY: maybe-html-target-libgloss html-target-libgloss
45207maybe-html-target-libgloss:
45208@if target-libgloss
45209maybe-html-target-libgloss: html-target-libgloss
6d389afc 45210
a90ef4bf
JM
45211html-target-libgloss: \
45212 configure-target-libgloss
0aed8855 45213 @: $(MAKE); $(unstage)
22121df0 45214 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
45215 r=`${PWD_COMMAND}`; export r; \
45216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45217 $(NORMAL_TARGET_EXPORTS) \
22121df0 45218 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
45219 for flag in $(EXTRA_TARGET_FLAGS); do \
45220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45221 done; \
a90ef4bf 45222 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
45223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45225 "RANLIB=$${RANLIB}" \
0c24b341 45226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45227 html) \
45228 || exit 1
45229
a90ef4bf 45230@endif target-libgloss
6d389afc 45231
a90ef4bf
JM
45232.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
45233maybe-TAGS-target-libgloss:
45234@if target-libgloss
45235maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 45236
a90ef4bf
JM
45237TAGS-target-libgloss: \
45238 configure-target-libgloss
0aed8855 45239 @: $(MAKE); $(unstage)
22121df0 45240 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45241 r=`${PWD_COMMAND}`; export r; \
45242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45243 $(NORMAL_TARGET_EXPORTS) \
22121df0 45244 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45245 for flag in $(EXTRA_TARGET_FLAGS); do \
45246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45247 done; \
a90ef4bf 45248 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45251 "RANLIB=$${RANLIB}" \
0c24b341 45252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45253 TAGS) \
4fa63067
NN
45254 || exit 1
45255
a90ef4bf 45256@endif target-libgloss
4fa63067 45257
a90ef4bf
JM
45258.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
45259maybe-install-info-target-libgloss:
45260@if target-libgloss
45261maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 45262
a90ef4bf
JM
45263install-info-target-libgloss: \
45264 configure-target-libgloss \
45265 info-target-libgloss
0aed8855 45266 @: $(MAKE); $(unstage)
22121df0 45267 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45268 r=`${PWD_COMMAND}`; export r; \
45269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45270 $(NORMAL_TARGET_EXPORTS) \
22121df0 45271 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45272 for flag in $(EXTRA_TARGET_FLAGS); do \
45273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45274 done; \
a90ef4bf 45275 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45278 "RANLIB=$${RANLIB}" \
0c24b341 45279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45280 install-info) \
4fa63067
NN
45281 || exit 1
45282
a90ef4bf 45283@endif target-libgloss
4fa63067 45284
a90ef4bf
JM
45285.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
45286maybe-install-pdf-target-libgloss:
45287@if target-libgloss
45288maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 45289
a90ef4bf
JM
45290install-pdf-target-libgloss: \
45291 configure-target-libgloss \
45292 pdf-target-libgloss
a3ca38d2 45293 @: $(MAKE); $(unstage)
22121df0 45294 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
45295 r=`${PWD_COMMAND}`; export r; \
45296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45297 $(NORMAL_TARGET_EXPORTS) \
22121df0 45298 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
45299 for flag in $(EXTRA_TARGET_FLAGS); do \
45300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45301 done; \
a90ef4bf 45302 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
45303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45305 "RANLIB=$${RANLIB}" \
0c24b341 45306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45307 install-pdf) \
45308 || exit 1
45309
a90ef4bf 45310@endif target-libgloss
a3ca38d2 45311
a90ef4bf
JM
45312.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
45313maybe-install-html-target-libgloss:
45314@if target-libgloss
45315maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 45316
a90ef4bf
JM
45317install-html-target-libgloss: \
45318 configure-target-libgloss \
45319 html-target-libgloss
108a6f8e 45320 @: $(MAKE); $(unstage)
22121df0 45321 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
45322 r=`${PWD_COMMAND}`; export r; \
45323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45324 $(NORMAL_TARGET_EXPORTS) \
22121df0 45325 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
45326 for flag in $(EXTRA_TARGET_FLAGS); do \
45327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45328 done; \
a90ef4bf 45329 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
45330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45332 "RANLIB=$${RANLIB}" \
0c24b341 45333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45334 install-html) \
45335 || exit 1
45336
a90ef4bf 45337@endif target-libgloss
108a6f8e 45338
a90ef4bf
JM
45339.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
45340maybe-installcheck-target-libgloss:
45341@if target-libgloss
45342maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 45343
a90ef4bf
JM
45344installcheck-target-libgloss: \
45345 configure-target-libgloss
0aed8855 45346 @: $(MAKE); $(unstage)
22121df0 45347 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45348 r=`${PWD_COMMAND}`; export r; \
45349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45350 $(NORMAL_TARGET_EXPORTS) \
22121df0 45351 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45352 for flag in $(EXTRA_TARGET_FLAGS); do \
45353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45354 done; \
a90ef4bf 45355 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45358 "RANLIB=$${RANLIB}" \
0c24b341 45359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45360 installcheck) \
4fa63067
NN
45361 || exit 1
45362
a90ef4bf 45363@endif target-libgloss
4fa63067 45364
a90ef4bf
JM
45365.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
45366maybe-mostlyclean-target-libgloss:
45367@if target-libgloss
45368maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 45369
a90ef4bf 45370mostlyclean-target-libgloss:
0aed8855 45371 @: $(MAKE); $(unstage)
22121df0 45372 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45373 r=`${PWD_COMMAND}`; export r; \
45374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45375 $(NORMAL_TARGET_EXPORTS) \
22121df0 45376 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45377 for flag in $(EXTRA_TARGET_FLAGS); do \
45378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45379 done; \
a90ef4bf 45380 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45383 "RANLIB=$${RANLIB}" \
0c24b341 45384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45385 mostlyclean) \
4fa63067
NN
45386 || exit 1
45387
a90ef4bf 45388@endif target-libgloss
4fa63067 45389
a90ef4bf
JM
45390.PHONY: maybe-clean-target-libgloss clean-target-libgloss
45391maybe-clean-target-libgloss:
45392@if target-libgloss
45393maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 45394
a90ef4bf 45395clean-target-libgloss:
0aed8855 45396 @: $(MAKE); $(unstage)
22121df0 45397 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45398 r=`${PWD_COMMAND}`; export r; \
45399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45400 $(NORMAL_TARGET_EXPORTS) \
22121df0 45401 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45402 for flag in $(EXTRA_TARGET_FLAGS); do \
45403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45404 done; \
a90ef4bf 45405 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45408 "RANLIB=$${RANLIB}" \
0c24b341 45409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45410 clean) \
4fa63067
NN
45411 || exit 1
45412
a90ef4bf 45413@endif target-libgloss
4fa63067 45414
a90ef4bf
JM
45415.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
45416maybe-distclean-target-libgloss:
45417@if target-libgloss
45418maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 45419
a90ef4bf 45420distclean-target-libgloss:
0aed8855 45421 @: $(MAKE); $(unstage)
22121df0 45422 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45423 r=`${PWD_COMMAND}`; export r; \
45424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45425 $(NORMAL_TARGET_EXPORTS) \
22121df0 45426 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45427 for flag in $(EXTRA_TARGET_FLAGS); do \
45428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45429 done; \
a90ef4bf 45430 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45433 "RANLIB=$${RANLIB}" \
0c24b341 45434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45435 distclean) \
4fa63067
NN
45436 || exit 1
45437
a90ef4bf 45438@endif target-libgloss
4fa63067 45439
a90ef4bf
JM
45440.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
45441maybe-maintainer-clean-target-libgloss:
45442@if target-libgloss
45443maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 45444
a90ef4bf 45445maintainer-clean-target-libgloss:
0aed8855 45446 @: $(MAKE); $(unstage)
22121df0 45447 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45448 r=`${PWD_COMMAND}`; export r; \
45449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45450 $(NORMAL_TARGET_EXPORTS) \
22121df0 45451 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45452 for flag in $(EXTRA_TARGET_FLAGS); do \
45453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45454 done; \
a90ef4bf 45455 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45458 "RANLIB=$${RANLIB}" \
0c24b341 45459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45460 maintainer-clean) \
4fa63067 45461 || exit 1
16ae0395 45462
a90ef4bf 45463@endif target-libgloss
e393202e
NN
45464
45465
15723a45 45466
a7254363
PB
45467
45468
a7254363
PB
45469.PHONY: configure-target-libffi maybe-configure-target-libffi
45470maybe-configure-target-libffi:
4f0ef2d8
CD
45471@if gcc-bootstrap
45472configure-target-libffi: stage_current
45473@endif gcc-bootstrap
a7254363
PB
45474@if target-libffi
45475maybe-configure-target-libffi: configure-target-libffi
c52c6897 45476configure-target-libffi:
0aed8855
PB
45477 @: $(MAKE); $(unstage)
45478 @r=`${PWD_COMMAND}`; export r; \
45479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45480 echo "Checking multilib configuration for libffi..."; \
22121df0
L
45481 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
45482 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
45483 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
45484 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
45485 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
45486 else \
45487 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
45488 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
45489 fi; \
45490 else \
45491 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
45492 fi; \
45493 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 45494 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 45495 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45496 echo Configuring in $(TARGET_SUBDIR)/libffi; \
45497 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 45498 case $(srcdir) in \
b00612cc
PB
45499 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45500 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
45501 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45502 esac; \
1b6c0831 45503 module_srcdir=libffi; \
bba45b8b 45504 rm -f no-such-file || : ; \
1b6c0831
L
45505 CONFIG_SITE=no-such-file $(SHELL) \
45506 $$s/$$module_srcdir/configure \
45507 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45508 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45509 --target=${target_alias} \
bba45b8b 45510 || exit 1
6bd3dfaa 45511@endif target-libffi
e393202e 45512
a7254363
PB
45513
45514
d545f33b
PB
45515
45516
4fa63067
NN
45517.PHONY: all-target-libffi maybe-all-target-libffi
45518maybe-all-target-libffi:
4f0ef2d8
CD
45519@if gcc-bootstrap
45520all-target-libffi: stage_current
45521@endif gcc-bootstrap
6bd3dfaa 45522@if target-libffi
72b2455a 45523TARGET-target-libffi=all
6bd3dfaa 45524maybe-all-target-libffi: all-target-libffi
4fa63067 45525all-target-libffi: configure-target-libffi
0aed8855 45526 @: $(MAKE); $(unstage)
b40e3958
L
45527 @r=`${PWD_COMMAND}`; export r; \
45528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45529 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45530 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 45531 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45532 $(TARGET-target-libffi))
6bd3dfaa 45533@endif target-libffi
e393202e 45534
a7254363
PB
45535
45536
d545f33b
PB
45537
45538
4fa63067
NN
45539.PHONY: check-target-libffi maybe-check-target-libffi
45540maybe-check-target-libffi:
6bd3dfaa
PB
45541@if target-libffi
45542maybe-check-target-libffi: check-target-libffi
16ae0395 45543
4fa63067 45544check-target-libffi:
0aed8855 45545 @: $(MAKE); $(unstage)
b40e3958
L
45546 @r=`${PWD_COMMAND}`; export r; \
45547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45548 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45549 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 45550 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 45551
6bd3dfaa 45552@endif target-libffi
e393202e 45553
4fa63067
NN
45554.PHONY: install-target-libffi maybe-install-target-libffi
45555maybe-install-target-libffi:
6bd3dfaa
PB
45556@if target-libffi
45557maybe-install-target-libffi: install-target-libffi
16ae0395 45558
b836cb18
JBG
45559# Dummy target for uninstallable.
45560install-target-libffi:
e393202e 45561
6bd3dfaa 45562@endif target-libffi
e393202e 45563
9b980aa1
RW
45564.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
45565maybe-install-strip-target-libffi:
45566@if target-libffi
45567maybe-install-strip-target-libffi: install-strip-target-libffi
45568
b836cb18
JBG
45569# Dummy target for uninstallable.
45570install-strip-target-libffi:
9b980aa1
RW
45571
45572@endif target-libffi
45573
56a8fe78 45574# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45575
45576.PHONY: maybe-info-target-libffi info-target-libffi
45577maybe-info-target-libffi:
6bd3dfaa
PB
45578@if target-libffi
45579maybe-info-target-libffi: info-target-libffi
4fa63067
NN
45580
45581info-target-libffi: \
45582 configure-target-libffi
0aed8855 45583 @: $(MAKE); $(unstage)
22121df0 45584 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45585 r=`${PWD_COMMAND}`; export r; \
45586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45587 $(NORMAL_TARGET_EXPORTS) \
22121df0 45588 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45589 for flag in $(EXTRA_TARGET_FLAGS); do \
45590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45591 done; \
45592 (cd $(TARGET_SUBDIR)/libffi && \
45593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45595 "RANLIB=$${RANLIB}" \
0c24b341 45596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45597 info) \
4fa63067
NN
45598 || exit 1
45599
6bd3dfaa 45600@endif target-libffi
4fa63067
NN
45601
45602.PHONY: maybe-dvi-target-libffi dvi-target-libffi
45603maybe-dvi-target-libffi:
6bd3dfaa
PB
45604@if target-libffi
45605maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
45606
45607dvi-target-libffi: \
45608 configure-target-libffi
0aed8855 45609 @: $(MAKE); $(unstage)
22121df0 45610 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45611 r=`${PWD_COMMAND}`; export r; \
45612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45613 $(NORMAL_TARGET_EXPORTS) \
22121df0 45614 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45615 for flag in $(EXTRA_TARGET_FLAGS); do \
45616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45617 done; \
45618 (cd $(TARGET_SUBDIR)/libffi && \
45619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45621 "RANLIB=$${RANLIB}" \
0c24b341 45622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45623 dvi) \
4fa63067
NN
45624 || exit 1
45625
6bd3dfaa 45626@endif target-libffi
4fa63067 45627
56a8fe78
DD
45628.PHONY: maybe-pdf-target-libffi pdf-target-libffi
45629maybe-pdf-target-libffi:
45630@if target-libffi
45631maybe-pdf-target-libffi: pdf-target-libffi
45632
45633pdf-target-libffi: \
45634 configure-target-libffi
45635 @: $(MAKE); $(unstage)
22121df0 45636 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
45637 r=`${PWD_COMMAND}`; export r; \
45638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45639 $(NORMAL_TARGET_EXPORTS) \
22121df0 45640 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
45641 for flag in $(EXTRA_TARGET_FLAGS); do \
45642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45643 done; \
45644 (cd $(TARGET_SUBDIR)/libffi && \
45645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45647 "RANLIB=$${RANLIB}" \
0c24b341 45648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45649 pdf) \
45650 || exit 1
45651
45652@endif target-libffi
45653
6d389afc
MS
45654.PHONY: maybe-html-target-libffi html-target-libffi
45655maybe-html-target-libffi:
45656@if target-libffi
45657maybe-html-target-libffi: html-target-libffi
45658
45659html-target-libffi: \
45660 configure-target-libffi
0aed8855 45661 @: $(MAKE); $(unstage)
22121df0 45662 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
45663 r=`${PWD_COMMAND}`; export r; \
45664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45665 $(NORMAL_TARGET_EXPORTS) \
22121df0 45666 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
45667 for flag in $(EXTRA_TARGET_FLAGS); do \
45668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45669 done; \
45670 (cd $(TARGET_SUBDIR)/libffi && \
45671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45673 "RANLIB=$${RANLIB}" \
0c24b341 45674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45675 html) \
45676 || exit 1
45677
45678@endif target-libffi
45679
4fa63067
NN
45680.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
45681maybe-TAGS-target-libffi:
6bd3dfaa
PB
45682@if target-libffi
45683maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
45684
45685TAGS-target-libffi: \
45686 configure-target-libffi
0aed8855 45687 @: $(MAKE); $(unstage)
22121df0 45688 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45689 r=`${PWD_COMMAND}`; export r; \
45690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45691 $(NORMAL_TARGET_EXPORTS) \
22121df0 45692 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45693 for flag in $(EXTRA_TARGET_FLAGS); do \
45694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45695 done; \
45696 (cd $(TARGET_SUBDIR)/libffi && \
45697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45699 "RANLIB=$${RANLIB}" \
0c24b341 45700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45701 TAGS) \
4fa63067
NN
45702 || exit 1
45703
6bd3dfaa 45704@endif target-libffi
4fa63067
NN
45705
45706.PHONY: maybe-install-info-target-libffi install-info-target-libffi
45707maybe-install-info-target-libffi:
6bd3dfaa
PB
45708@if target-libffi
45709maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
45710
45711install-info-target-libffi: \
45712 configure-target-libffi \
45713 info-target-libffi
0aed8855 45714 @: $(MAKE); $(unstage)
22121df0 45715 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45716 r=`${PWD_COMMAND}`; export r; \
45717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45718 $(NORMAL_TARGET_EXPORTS) \
22121df0 45719 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45720 for flag in $(EXTRA_TARGET_FLAGS); do \
45721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45722 done; \
45723 (cd $(TARGET_SUBDIR)/libffi && \
45724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45726 "RANLIB=$${RANLIB}" \
0c24b341 45727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45728 install-info) \
4fa63067
NN
45729 || exit 1
45730
6bd3dfaa 45731@endif target-libffi
4fa63067 45732
a3ca38d2
DD
45733.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
45734maybe-install-pdf-target-libffi:
45735@if target-libffi
45736maybe-install-pdf-target-libffi: install-pdf-target-libffi
45737
45738install-pdf-target-libffi: \
45739 configure-target-libffi \
45740 pdf-target-libffi
45741 @: $(MAKE); $(unstage)
22121df0 45742 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
45743 r=`${PWD_COMMAND}`; export r; \
45744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45745 $(NORMAL_TARGET_EXPORTS) \
22121df0 45746 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
45747 for flag in $(EXTRA_TARGET_FLAGS); do \
45748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45749 done; \
45750 (cd $(TARGET_SUBDIR)/libffi && \
45751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45753 "RANLIB=$${RANLIB}" \
0c24b341 45754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45755 install-pdf) \
45756 || exit 1
45757
45758@endif target-libffi
45759
108a6f8e
CD
45760.PHONY: maybe-install-html-target-libffi install-html-target-libffi
45761maybe-install-html-target-libffi:
45762@if target-libffi
45763maybe-install-html-target-libffi: install-html-target-libffi
45764
45765install-html-target-libffi: \
45766 configure-target-libffi \
45767 html-target-libffi
45768 @: $(MAKE); $(unstage)
22121df0 45769 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
45770 r=`${PWD_COMMAND}`; export r; \
45771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45772 $(NORMAL_TARGET_EXPORTS) \
22121df0 45773 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
45774 for flag in $(EXTRA_TARGET_FLAGS); do \
45775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45776 done; \
45777 (cd $(TARGET_SUBDIR)/libffi && \
45778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45780 "RANLIB=$${RANLIB}" \
0c24b341 45781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45782 install-html) \
45783 || exit 1
45784
45785@endif target-libffi
45786
4fa63067
NN
45787.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
45788maybe-installcheck-target-libffi:
6bd3dfaa
PB
45789@if target-libffi
45790maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
45791
45792installcheck-target-libffi: \
45793 configure-target-libffi
0aed8855 45794 @: $(MAKE); $(unstage)
22121df0 45795 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45796 r=`${PWD_COMMAND}`; export r; \
45797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45798 $(NORMAL_TARGET_EXPORTS) \
22121df0 45799 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45800 for flag in $(EXTRA_TARGET_FLAGS); do \
45801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45802 done; \
45803 (cd $(TARGET_SUBDIR)/libffi && \
45804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45806 "RANLIB=$${RANLIB}" \
0c24b341 45807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45808 installcheck) \
4fa63067
NN
45809 || exit 1
45810
6bd3dfaa 45811@endif target-libffi
4fa63067
NN
45812
45813.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
45814maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
45815@if target-libffi
45816maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
45817
45818mostlyclean-target-libffi:
0aed8855 45819 @: $(MAKE); $(unstage)
22121df0 45820 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45821 r=`${PWD_COMMAND}`; export r; \
45822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45823 $(NORMAL_TARGET_EXPORTS) \
22121df0 45824 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45825 for flag in $(EXTRA_TARGET_FLAGS); do \
45826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45827 done; \
45828 (cd $(TARGET_SUBDIR)/libffi && \
45829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45831 "RANLIB=$${RANLIB}" \
0c24b341 45832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45833 mostlyclean) \
4fa63067
NN
45834 || exit 1
45835
6bd3dfaa 45836@endif target-libffi
4fa63067
NN
45837
45838.PHONY: maybe-clean-target-libffi clean-target-libffi
45839maybe-clean-target-libffi:
6bd3dfaa
PB
45840@if target-libffi
45841maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
45842
45843clean-target-libffi:
0aed8855 45844 @: $(MAKE); $(unstage)
22121df0 45845 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45846 r=`${PWD_COMMAND}`; export r; \
45847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45848 $(NORMAL_TARGET_EXPORTS) \
22121df0 45849 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45850 for flag in $(EXTRA_TARGET_FLAGS); do \
45851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45852 done; \
45853 (cd $(TARGET_SUBDIR)/libffi && \
45854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45856 "RANLIB=$${RANLIB}" \
0c24b341 45857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45858 clean) \
4fa63067
NN
45859 || exit 1
45860
6bd3dfaa 45861@endif target-libffi
4fa63067
NN
45862
45863.PHONY: maybe-distclean-target-libffi distclean-target-libffi
45864maybe-distclean-target-libffi:
6bd3dfaa
PB
45865@if target-libffi
45866maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
45867
45868distclean-target-libffi:
0aed8855 45869 @: $(MAKE); $(unstage)
22121df0 45870 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45871 r=`${PWD_COMMAND}`; export r; \
45872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45873 $(NORMAL_TARGET_EXPORTS) \
22121df0 45874 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45875 for flag in $(EXTRA_TARGET_FLAGS); do \
45876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45877 done; \
45878 (cd $(TARGET_SUBDIR)/libffi && \
45879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45881 "RANLIB=$${RANLIB}" \
0c24b341 45882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45883 distclean) \
4fa63067
NN
45884 || exit 1
45885
6bd3dfaa 45886@endif target-libffi
4fa63067
NN
45887
45888.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
45889maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
45890@if target-libffi
45891maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
45892
45893maintainer-clean-target-libffi:
0aed8855 45894 @: $(MAKE); $(unstage)
22121df0 45895 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45896 r=`${PWD_COMMAND}`; export r; \
45897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45898 $(NORMAL_TARGET_EXPORTS) \
22121df0 45899 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45900 for flag in $(EXTRA_TARGET_FLAGS); do \
45901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45902 done; \
45903 (cd $(TARGET_SUBDIR)/libffi && \
45904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45906 "RANLIB=$${RANLIB}" \
0c24b341 45907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45908 maintainer-clean) \
4fa63067
NN
45909 || exit 1
45910
6bd3dfaa 45911@endif target-libffi
4fa63067
NN
45912
45913
15723a45 45914
a7254363 45915
15723a45 45916
a7254363
PB
45917.PHONY: configure-target-zlib maybe-configure-target-zlib
45918maybe-configure-target-zlib:
4f0ef2d8
CD
45919@if gcc-bootstrap
45920configure-target-zlib: stage_current
45921@endif gcc-bootstrap
a7254363
PB
45922@if target-zlib
45923maybe-configure-target-zlib: configure-target-zlib
c52c6897 45924configure-target-zlib:
0aed8855
PB
45925 @: $(MAKE); $(unstage)
45926 @r=`${PWD_COMMAND}`; export r; \
45927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45928 echo "Checking multilib configuration for zlib..."; \
22121df0
L
45929 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
45930 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
45931 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
45932 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
45933 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
45934 else \
45935 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
45936 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
45937 fi; \
45938 else \
45939 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
45940 fi; \
45941 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 45942 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 45943 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45944 echo Configuring in $(TARGET_SUBDIR)/zlib; \
45945 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 45946 case $(srcdir) in \
b00612cc
PB
45947 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45948 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
45949 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45950 esac; \
1b6c0831 45951 module_srcdir=zlib; \
bba45b8b 45952 rm -f no-such-file || : ; \
1b6c0831
L
45953 CONFIG_SITE=no-such-file $(SHELL) \
45954 $$s/$$module_srcdir/configure \
45955 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45956 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45957 --target=${target_alias} \
bba45b8b 45958 || exit 1
6bd3dfaa 45959@endif target-zlib
e393202e 45960
a7254363
PB
45961
45962
d545f33b
PB
45963
45964
4fa63067
NN
45965.PHONY: all-target-zlib maybe-all-target-zlib
45966maybe-all-target-zlib:
4f0ef2d8
CD
45967@if gcc-bootstrap
45968all-target-zlib: stage_current
45969@endif gcc-bootstrap
6bd3dfaa 45970@if target-zlib
72b2455a 45971TARGET-target-zlib=all
6bd3dfaa 45972maybe-all-target-zlib: all-target-zlib
4fa63067 45973all-target-zlib: configure-target-zlib
0aed8855 45974 @: $(MAKE); $(unstage)
b40e3958
L
45975 @r=`${PWD_COMMAND}`; export r; \
45976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45977 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45978 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 45979 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45980 $(TARGET-target-zlib))
6bd3dfaa 45981@endif target-zlib
e393202e 45982
a7254363
PB
45983
45984
d545f33b
PB
45985
45986
4fa63067
NN
45987.PHONY: check-target-zlib maybe-check-target-zlib
45988maybe-check-target-zlib:
6bd3dfaa
PB
45989@if target-zlib
45990maybe-check-target-zlib: check-target-zlib
16ae0395 45991
4fa63067 45992check-target-zlib:
0aed8855 45993 @: $(MAKE); $(unstage)
b40e3958
L
45994 @r=`${PWD_COMMAND}`; export r; \
45995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45996 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45997 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 45998 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 45999
6bd3dfaa 46000@endif target-zlib
930314a4 46001
4fa63067
NN
46002.PHONY: install-target-zlib maybe-install-target-zlib
46003maybe-install-target-zlib:
6bd3dfaa
PB
46004@if target-zlib
46005maybe-install-target-zlib: install-target-zlib
16ae0395 46006
4fa63067 46007install-target-zlib: installdirs
0aed8855 46008 @: $(MAKE); $(unstage)
b40e3958
L
46009 @r=`${PWD_COMMAND}`; export r; \
46010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46011 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46012 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 46013 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 46014
6bd3dfaa 46015@endif target-zlib
e393202e 46016
9b980aa1
RW
46017.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
46018maybe-install-strip-target-zlib:
46019@if target-zlib
46020maybe-install-strip-target-zlib: install-strip-target-zlib
46021
46022install-strip-target-zlib: installdirs
46023 @: $(MAKE); $(unstage)
46024 @r=`${PWD_COMMAND}`; export r; \
46025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46026 $(NORMAL_TARGET_EXPORTS) \
46027 (cd $(TARGET_SUBDIR)/zlib && \
46028 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46029
46030@endif target-zlib
46031
56a8fe78 46032# Other targets (info, dvi, pdf, etc.)
15723a45 46033
4fa63067
NN
46034.PHONY: maybe-info-target-zlib info-target-zlib
46035maybe-info-target-zlib:
6bd3dfaa
PB
46036@if target-zlib
46037maybe-info-target-zlib: info-target-zlib
15723a45 46038
4fa63067
NN
46039info-target-zlib: \
46040 configure-target-zlib
0aed8855 46041 @: $(MAKE); $(unstage)
22121df0 46042 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
46043 r=`${PWD_COMMAND}`; export r; \
46044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46045 $(NORMAL_TARGET_EXPORTS) \
22121df0 46046 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46047 for flag in $(EXTRA_TARGET_FLAGS); do \
46048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46049 done; \
46050 (cd $(TARGET_SUBDIR)/zlib && \
46051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46053 "RANLIB=$${RANLIB}" \
0c24b341 46054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46055 info) \
bba45b8b 46056 || exit 1
e393202e 46057
6bd3dfaa 46058@endif target-zlib
e393202e 46059
4fa63067
NN
46060.PHONY: maybe-dvi-target-zlib dvi-target-zlib
46061maybe-dvi-target-zlib:
6bd3dfaa
PB
46062@if target-zlib
46063maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 46064
4fa63067
NN
46065dvi-target-zlib: \
46066 configure-target-zlib
0aed8855 46067 @: $(MAKE); $(unstage)
22121df0 46068 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46069 r=`${PWD_COMMAND}`; export r; \
b40e3958 46070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46071 $(NORMAL_TARGET_EXPORTS) \
22121df0 46072 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46073 for flag in $(EXTRA_TARGET_FLAGS); do \
46074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46075 done; \
46076 (cd $(TARGET_SUBDIR)/zlib && \
46077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46079 "RANLIB=$${RANLIB}" \
0c24b341 46080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46081 dvi) \
4fa63067 46082 || exit 1
e393202e 46083
6bd3dfaa 46084@endif target-zlib
930314a4 46085
56a8fe78
DD
46086.PHONY: maybe-pdf-target-zlib pdf-target-zlib
46087maybe-pdf-target-zlib:
46088@if target-zlib
46089maybe-pdf-target-zlib: pdf-target-zlib
46090
46091pdf-target-zlib: \
46092 configure-target-zlib
46093 @: $(MAKE); $(unstage)
22121df0 46094 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
46095 r=`${PWD_COMMAND}`; export r; \
46096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46097 $(NORMAL_TARGET_EXPORTS) \
22121df0 46098 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
46099 for flag in $(EXTRA_TARGET_FLAGS); do \
46100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46101 done; \
46102 (cd $(TARGET_SUBDIR)/zlib && \
46103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46105 "RANLIB=$${RANLIB}" \
0c24b341 46106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46107 pdf) \
46108 || exit 1
46109
46110@endif target-zlib
46111
6d389afc
MS
46112.PHONY: maybe-html-target-zlib html-target-zlib
46113maybe-html-target-zlib:
46114@if target-zlib
46115maybe-html-target-zlib: html-target-zlib
46116
46117html-target-zlib: \
46118 configure-target-zlib
0aed8855 46119 @: $(MAKE); $(unstage)
22121df0 46120 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
46121 r=`${PWD_COMMAND}`; export r; \
46122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46123 $(NORMAL_TARGET_EXPORTS) \
22121df0 46124 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
46125 for flag in $(EXTRA_TARGET_FLAGS); do \
46126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46127 done; \
46128 (cd $(TARGET_SUBDIR)/zlib && \
46129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46131 "RANLIB=$${RANLIB}" \
0c24b341 46132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46133 html) \
46134 || exit 1
46135
46136@endif target-zlib
46137
4fa63067
NN
46138.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
46139maybe-TAGS-target-zlib:
6bd3dfaa
PB
46140@if target-zlib
46141maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 46142
4fa63067
NN
46143TAGS-target-zlib: \
46144 configure-target-zlib
0aed8855 46145 @: $(MAKE); $(unstage)
22121df0 46146 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46147 r=`${PWD_COMMAND}`; export r; \
b40e3958 46148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46149 $(NORMAL_TARGET_EXPORTS) \
22121df0 46150 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46151 for flag in $(EXTRA_TARGET_FLAGS); do \
46152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46153 done; \
46154 (cd $(TARGET_SUBDIR)/zlib && \
46155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46157 "RANLIB=$${RANLIB}" \
0c24b341 46158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46159 TAGS) \
4fa63067 46160 || exit 1
e393202e 46161
6bd3dfaa 46162@endif target-zlib
15723a45 46163
4fa63067
NN
46164.PHONY: maybe-install-info-target-zlib install-info-target-zlib
46165maybe-install-info-target-zlib:
6bd3dfaa
PB
46166@if target-zlib
46167maybe-install-info-target-zlib: install-info-target-zlib
15723a45 46168
4fa63067
NN
46169install-info-target-zlib: \
46170 configure-target-zlib \
46171 info-target-zlib
0aed8855 46172 @: $(MAKE); $(unstage)
22121df0 46173 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
46174 r=`${PWD_COMMAND}`; export r; \
46175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46176 $(NORMAL_TARGET_EXPORTS) \
22121df0 46177 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46178 for flag in $(EXTRA_TARGET_FLAGS); do \
46179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46180 done; \
46181 (cd $(TARGET_SUBDIR)/zlib && \
46182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46184 "RANLIB=$${RANLIB}" \
0c24b341 46185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46186 install-info) \
bba45b8b 46187 || exit 1
e393202e 46188
6bd3dfaa 46189@endif target-zlib
16ae0395 46190
a3ca38d2
DD
46191.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
46192maybe-install-pdf-target-zlib:
46193@if target-zlib
46194maybe-install-pdf-target-zlib: install-pdf-target-zlib
46195
46196install-pdf-target-zlib: \
46197 configure-target-zlib \
46198 pdf-target-zlib
46199 @: $(MAKE); $(unstage)
22121df0 46200 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
46201 r=`${PWD_COMMAND}`; export r; \
46202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46203 $(NORMAL_TARGET_EXPORTS) \
22121df0 46204 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
46205 for flag in $(EXTRA_TARGET_FLAGS); do \
46206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46207 done; \
46208 (cd $(TARGET_SUBDIR)/zlib && \
46209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46211 "RANLIB=$${RANLIB}" \
0c24b341 46212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46213 install-pdf) \
46214 || exit 1
46215
46216@endif target-zlib
46217
108a6f8e
CD
46218.PHONY: maybe-install-html-target-zlib install-html-target-zlib
46219maybe-install-html-target-zlib:
46220@if target-zlib
46221maybe-install-html-target-zlib: install-html-target-zlib
46222
46223install-html-target-zlib: \
46224 configure-target-zlib \
46225 html-target-zlib
46226 @: $(MAKE); $(unstage)
22121df0 46227 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
46228 r=`${PWD_COMMAND}`; export r; \
46229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46230 $(NORMAL_TARGET_EXPORTS) \
22121df0 46231 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
46232 for flag in $(EXTRA_TARGET_FLAGS); do \
46233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46234 done; \
46235 (cd $(TARGET_SUBDIR)/zlib && \
46236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46238 "RANLIB=$${RANLIB}" \
0c24b341 46239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46240 install-html) \
46241 || exit 1
46242
46243@endif target-zlib
46244
4fa63067
NN
46245.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
46246maybe-installcheck-target-zlib:
6bd3dfaa
PB
46247@if target-zlib
46248maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 46249
4fa63067
NN
46250installcheck-target-zlib: \
46251 configure-target-zlib
0aed8855 46252 @: $(MAKE); $(unstage)
22121df0 46253 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
46254 r=`${PWD_COMMAND}`; export r; \
46255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46256 $(NORMAL_TARGET_EXPORTS) \
22121df0 46257 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46258 for flag in $(EXTRA_TARGET_FLAGS); do \
46259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46260 done; \
46261 (cd $(TARGET_SUBDIR)/zlib && \
46262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46264 "RANLIB=$${RANLIB}" \
0c24b341 46265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46266 installcheck) \
4fa63067 46267 || exit 1
e393202e 46268
6bd3dfaa 46269@endif target-zlib
16ae0395 46270
4fa63067
NN
46271.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
46272maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
46273@if target-zlib
46274maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 46275
4fa63067 46276mostlyclean-target-zlib:
0aed8855 46277 @: $(MAKE); $(unstage)
22121df0 46278 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
46279 r=`${PWD_COMMAND}`; export r; \
46280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46281 $(NORMAL_TARGET_EXPORTS) \
22121df0 46282 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46283 for flag in $(EXTRA_TARGET_FLAGS); do \
46284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46285 done; \
46286 (cd $(TARGET_SUBDIR)/zlib && \
46287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46289 "RANLIB=$${RANLIB}" \
0c24b341 46290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46291 mostlyclean) \
4fa63067 46292 || exit 1
e393202e 46293
6bd3dfaa 46294@endif target-zlib
15723a45 46295
4fa63067
NN
46296.PHONY: maybe-clean-target-zlib clean-target-zlib
46297maybe-clean-target-zlib:
6bd3dfaa
PB
46298@if target-zlib
46299maybe-clean-target-zlib: clean-target-zlib
15723a45 46300
4fa63067 46301clean-target-zlib:
0aed8855 46302 @: $(MAKE); $(unstage)
22121df0 46303 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
46304 r=`${PWD_COMMAND}`; export r; \
46305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46306 $(NORMAL_TARGET_EXPORTS) \
22121df0 46307 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46308 for flag in $(EXTRA_TARGET_FLAGS); do \
46309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46310 done; \
46311 (cd $(TARGET_SUBDIR)/zlib && \
46312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46314 "RANLIB=$${RANLIB}" \
0c24b341 46315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46316 clean) \
bba45b8b 46317 || exit 1
e393202e 46318
6bd3dfaa 46319@endif target-zlib
e393202e 46320
4fa63067
NN
46321.PHONY: maybe-distclean-target-zlib distclean-target-zlib
46322maybe-distclean-target-zlib:
6bd3dfaa
PB
46323@if target-zlib
46324maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 46325
4fa63067 46326distclean-target-zlib:
0aed8855 46327 @: $(MAKE); $(unstage)
22121df0 46328 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46329 r=`${PWD_COMMAND}`; export r; \
b40e3958 46330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46331 $(NORMAL_TARGET_EXPORTS) \
22121df0 46332 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46333 for flag in $(EXTRA_TARGET_FLAGS); do \
46334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46335 done; \
46336 (cd $(TARGET_SUBDIR)/zlib && \
46337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46339 "RANLIB=$${RANLIB}" \
0c24b341 46340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46341 distclean) \
4fa63067 46342 || exit 1
e393202e 46343
6bd3dfaa 46344@endif target-zlib
e393202e 46345
4fa63067
NN
46346.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
46347maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
46348@if target-zlib
46349maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 46350
4fa63067 46351maintainer-clean-target-zlib:
0aed8855 46352 @: $(MAKE); $(unstage)
22121df0 46353 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46354 r=`${PWD_COMMAND}`; export r; \
b40e3958 46355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46356 $(NORMAL_TARGET_EXPORTS) \
22121df0 46357 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46358 for flag in $(EXTRA_TARGET_FLAGS); do \
46359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46360 done; \
46361 (cd $(TARGET_SUBDIR)/zlib && \
46362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46364 "RANLIB=$${RANLIB}" \
0c24b341 46365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46366 maintainer-clean) \
4fa63067 46367 || exit 1
e393202e 46368
6bd3dfaa 46369@endif target-zlib
930314a4 46370
4fa63067 46371
15723a45 46372
a7254363 46373
e90269c8 46374
a7254363
PB
46375.PHONY: configure-target-rda maybe-configure-target-rda
46376maybe-configure-target-rda:
4f0ef2d8
CD
46377@if gcc-bootstrap
46378configure-target-rda: stage_current
46379@endif gcc-bootstrap
a7254363
PB
46380@if target-rda
46381maybe-configure-target-rda: configure-target-rda
c52c6897 46382configure-target-rda:
0aed8855
PB
46383 @: $(MAKE); $(unstage)
46384 @r=`${PWD_COMMAND}`; export r; \
46385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46386 echo "Checking multilib configuration for rda..."; \
22121df0
L
46387 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
46388 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
46389 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
46390 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
46391 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
46392 else \
46393 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
46394 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
46395 fi; \
46396 else \
46397 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
46398 fi; \
46399 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 46400 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 46401 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
46402 echo Configuring in $(TARGET_SUBDIR)/rda; \
46403 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 46404 case $(srcdir) in \
b00612cc
PB
46405 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46406 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
46407 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 46408 esac; \
1b6c0831 46409 module_srcdir=rda; \
bba45b8b 46410 rm -f no-such-file || : ; \
1b6c0831
L
46411 CONFIG_SITE=no-such-file $(SHELL) \
46412 $$s/$$module_srcdir/configure \
46413 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46414 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46415 --target=${target_alias} \
bba45b8b 46416 || exit 1
6bd3dfaa 46417@endif target-rda
49b7683b 46418
a7254363
PB
46419
46420
d545f33b
PB
46421
46422
4fa63067
NN
46423.PHONY: all-target-rda maybe-all-target-rda
46424maybe-all-target-rda:
4f0ef2d8
CD
46425@if gcc-bootstrap
46426all-target-rda: stage_current
46427@endif gcc-bootstrap
6bd3dfaa 46428@if target-rda
72b2455a 46429TARGET-target-rda=all
6bd3dfaa 46430maybe-all-target-rda: all-target-rda
4fa63067 46431all-target-rda: configure-target-rda
0aed8855 46432 @: $(MAKE); $(unstage)
b40e3958
L
46433 @r=`${PWD_COMMAND}`; export r; \
46434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46435 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46436 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 46437 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46438 $(TARGET-target-rda))
6bd3dfaa 46439@endif target-rda
252b5132 46440
a7254363
PB
46441
46442
d545f33b
PB
46443
46444
4fa63067
NN
46445.PHONY: check-target-rda maybe-check-target-rda
46446maybe-check-target-rda:
6bd3dfaa
PB
46447@if target-rda
46448maybe-check-target-rda: check-target-rda
16ae0395 46449
4fa63067 46450check-target-rda:
0aed8855 46451 @: $(MAKE); $(unstage)
b40e3958
L
46452 @r=`${PWD_COMMAND}`; export r; \
46453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46454 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46455 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 46456 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 46457
6bd3dfaa 46458@endif target-rda
930314a4 46459
4fa63067
NN
46460.PHONY: install-target-rda maybe-install-target-rda
46461maybe-install-target-rda:
6bd3dfaa
PB
46462@if target-rda
46463maybe-install-target-rda: install-target-rda
16ae0395 46464
4fa63067 46465install-target-rda: installdirs
0aed8855 46466 @: $(MAKE); $(unstage)
b40e3958
L
46467 @r=`${PWD_COMMAND}`; export r; \
46468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46469 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46470 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 46471 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 46472
6bd3dfaa 46473@endif target-rda
e393202e 46474
9b980aa1
RW
46475.PHONY: install-strip-target-rda maybe-install-strip-target-rda
46476maybe-install-strip-target-rda:
46477@if target-rda
46478maybe-install-strip-target-rda: install-strip-target-rda
46479
46480install-strip-target-rda: installdirs
46481 @: $(MAKE); $(unstage)
46482 @r=`${PWD_COMMAND}`; export r; \
46483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46484 $(NORMAL_TARGET_EXPORTS) \
46485 (cd $(TARGET_SUBDIR)/rda && \
46486 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46487
46488@endif target-rda
46489
56a8fe78 46490# Other targets (info, dvi, pdf, etc.)
15723a45 46491
4fa63067
NN
46492.PHONY: maybe-info-target-rda info-target-rda
46493maybe-info-target-rda:
6bd3dfaa
PB
46494@if target-rda
46495maybe-info-target-rda: info-target-rda
15723a45 46496
4fa63067
NN
46497info-target-rda: \
46498 configure-target-rda
0aed8855 46499 @: $(MAKE); $(unstage)
22121df0 46500 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
46501 r=`${PWD_COMMAND}`; export r; \
46502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46503 $(NORMAL_TARGET_EXPORTS) \
22121df0 46504 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46505 for flag in $(EXTRA_TARGET_FLAGS); do \
46506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46507 done; \
46508 (cd $(TARGET_SUBDIR)/rda && \
46509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46511 "RANLIB=$${RANLIB}" \
0c24b341 46512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46513 info) \
bba45b8b 46514 || exit 1
252b5132 46515
6bd3dfaa 46516@endif target-rda
4fa63067
NN
46517
46518.PHONY: maybe-dvi-target-rda dvi-target-rda
46519maybe-dvi-target-rda:
6bd3dfaa
PB
46520@if target-rda
46521maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
46522
46523dvi-target-rda: \
46524 configure-target-rda
0aed8855 46525 @: $(MAKE); $(unstage)
22121df0 46526 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46527 r=`${PWD_COMMAND}`; export r; \
b40e3958 46528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46529 $(NORMAL_TARGET_EXPORTS) \
22121df0 46530 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46531 for flag in $(EXTRA_TARGET_FLAGS); do \
46532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46533 done; \
46534 (cd $(TARGET_SUBDIR)/rda && \
46535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46537 "RANLIB=$${RANLIB}" \
0c24b341 46538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46539 dvi) \
4fa63067 46540 || exit 1
252b5132 46541
6bd3dfaa 46542@endif target-rda
16ae0395 46543
56a8fe78
DD
46544.PHONY: maybe-pdf-target-rda pdf-target-rda
46545maybe-pdf-target-rda:
46546@if target-rda
46547maybe-pdf-target-rda: pdf-target-rda
46548
46549pdf-target-rda: \
46550 configure-target-rda
46551 @: $(MAKE); $(unstage)
22121df0 46552 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
46553 r=`${PWD_COMMAND}`; export r; \
46554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46555 $(NORMAL_TARGET_EXPORTS) \
22121df0 46556 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
46557 for flag in $(EXTRA_TARGET_FLAGS); do \
46558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46559 done; \
46560 (cd $(TARGET_SUBDIR)/rda && \
46561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46563 "RANLIB=$${RANLIB}" \
0c24b341 46564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46565 pdf) \
46566 || exit 1
46567
46568@endif target-rda
46569
6d389afc
MS
46570.PHONY: maybe-html-target-rda html-target-rda
46571maybe-html-target-rda:
46572@if target-rda
46573maybe-html-target-rda: html-target-rda
46574
46575html-target-rda: \
46576 configure-target-rda
0aed8855 46577 @: $(MAKE); $(unstage)
22121df0 46578 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
46579 r=`${PWD_COMMAND}`; export r; \
46580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46581 $(NORMAL_TARGET_EXPORTS) \
22121df0 46582 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
46583 for flag in $(EXTRA_TARGET_FLAGS); do \
46584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46585 done; \
46586 (cd $(TARGET_SUBDIR)/rda && \
46587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46589 "RANLIB=$${RANLIB}" \
0c24b341 46590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46591 html) \
46592 || exit 1
46593
46594@endif target-rda
46595
4fa63067
NN
46596.PHONY: maybe-TAGS-target-rda TAGS-target-rda
46597maybe-TAGS-target-rda:
6bd3dfaa
PB
46598@if target-rda
46599maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
46600
46601TAGS-target-rda: \
46602 configure-target-rda
0aed8855 46603 @: $(MAKE); $(unstage)
22121df0 46604 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46605 r=`${PWD_COMMAND}`; export r; \
b40e3958 46606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46607 $(NORMAL_TARGET_EXPORTS) \
22121df0 46608 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46609 for flag in $(EXTRA_TARGET_FLAGS); do \
46610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46611 done; \
46612 (cd $(TARGET_SUBDIR)/rda && \
46613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46615 "RANLIB=$${RANLIB}" \
0c24b341 46616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46617 TAGS) \
4fa63067 46618 || exit 1
e393202e 46619
6bd3dfaa 46620@endif target-rda
930314a4 46621
4fa63067
NN
46622.PHONY: maybe-install-info-target-rda install-info-target-rda
46623maybe-install-info-target-rda:
6bd3dfaa
PB
46624@if target-rda
46625maybe-install-info-target-rda: install-info-target-rda
16ae0395 46626
4fa63067
NN
46627install-info-target-rda: \
46628 configure-target-rda \
46629 info-target-rda
0aed8855 46630 @: $(MAKE); $(unstage)
22121df0 46631 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46632 r=`${PWD_COMMAND}`; export r; \
b40e3958 46633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46634 $(NORMAL_TARGET_EXPORTS) \
22121df0 46635 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46636 for flag in $(EXTRA_TARGET_FLAGS); do \
46637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46638 done; \
46639 (cd $(TARGET_SUBDIR)/rda && \
46640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46642 "RANLIB=$${RANLIB}" \
0c24b341 46643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46644 install-info) \
4fa63067 46645 || exit 1
252b5132 46646
6bd3dfaa 46647@endif target-rda
e393202e 46648
a3ca38d2
DD
46649.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
46650maybe-install-pdf-target-rda:
46651@if target-rda
46652maybe-install-pdf-target-rda: install-pdf-target-rda
46653
46654install-pdf-target-rda: \
46655 configure-target-rda \
46656 pdf-target-rda
46657 @: $(MAKE); $(unstage)
22121df0 46658 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
46659 r=`${PWD_COMMAND}`; export r; \
46660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46661 $(NORMAL_TARGET_EXPORTS) \
22121df0 46662 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
46663 for flag in $(EXTRA_TARGET_FLAGS); do \
46664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46665 done; \
46666 (cd $(TARGET_SUBDIR)/rda && \
46667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46669 "RANLIB=$${RANLIB}" \
0c24b341 46670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46671 install-pdf) \
46672 || exit 1
46673
46674@endif target-rda
46675
108a6f8e
CD
46676.PHONY: maybe-install-html-target-rda install-html-target-rda
46677maybe-install-html-target-rda:
46678@if target-rda
46679maybe-install-html-target-rda: install-html-target-rda
46680
46681install-html-target-rda: \
46682 configure-target-rda \
46683 html-target-rda
46684 @: $(MAKE); $(unstage)
22121df0 46685 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
46686 r=`${PWD_COMMAND}`; export r; \
46687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46688 $(NORMAL_TARGET_EXPORTS) \
22121df0 46689 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
46690 for flag in $(EXTRA_TARGET_FLAGS); do \
46691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46692 done; \
46693 (cd $(TARGET_SUBDIR)/rda && \
46694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46696 "RANLIB=$${RANLIB}" \
0c24b341 46697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46698 install-html) \
46699 || exit 1
46700
46701@endif target-rda
46702
4fa63067
NN
46703.PHONY: maybe-installcheck-target-rda installcheck-target-rda
46704maybe-installcheck-target-rda:
6bd3dfaa
PB
46705@if target-rda
46706maybe-installcheck-target-rda: installcheck-target-rda
15723a45 46707
4fa63067
NN
46708installcheck-target-rda: \
46709 configure-target-rda
0aed8855 46710 @: $(MAKE); $(unstage)
22121df0 46711 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
46712 r=`${PWD_COMMAND}`; export r; \
46713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46714 $(NORMAL_TARGET_EXPORTS) \
22121df0 46715 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46716 for flag in $(EXTRA_TARGET_FLAGS); do \
46717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46718 done; \
46719 (cd $(TARGET_SUBDIR)/rda && \
46720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46722 "RANLIB=$${RANLIB}" \
0c24b341 46723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46724 installcheck) \
4fa63067 46725 || exit 1
15723a45 46726
6bd3dfaa 46727@endif target-rda
4fa63067
NN
46728
46729.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
46730maybe-mostlyclean-target-rda:
6bd3dfaa
PB
46731@if target-rda
46732maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
46733
46734mostlyclean-target-rda:
0aed8855 46735 @: $(MAKE); $(unstage)
22121df0 46736 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
46737 r=`${PWD_COMMAND}`; export r; \
46738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46739 $(NORMAL_TARGET_EXPORTS) \
22121df0 46740 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46741 for flag in $(EXTRA_TARGET_FLAGS); do \
46742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46743 done; \
46744 (cd $(TARGET_SUBDIR)/rda && \
46745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46747 "RANLIB=$${RANLIB}" \
0c24b341 46748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46749 mostlyclean) \
bba45b8b 46750 || exit 1
252b5132 46751
6bd3dfaa 46752@endif target-rda
4fa63067
NN
46753
46754.PHONY: maybe-clean-target-rda clean-target-rda
46755maybe-clean-target-rda:
6bd3dfaa
PB
46756@if target-rda
46757maybe-clean-target-rda: clean-target-rda
4fa63067
NN
46758
46759clean-target-rda:
0aed8855 46760 @: $(MAKE); $(unstage)
22121df0 46761 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46762 r=`${PWD_COMMAND}`; export r; \
b40e3958 46763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46764 $(NORMAL_TARGET_EXPORTS) \
22121df0 46765 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46766 for flag in $(EXTRA_TARGET_FLAGS); do \
46767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46768 done; \
bba45b8b 46769 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46772 "RANLIB=$${RANLIB}" \
0c24b341 46773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46774 clean) \
4fa63067 46775 || exit 1
252b5132 46776
6bd3dfaa 46777@endif target-rda
16ae0395 46778
4fa63067
NN
46779.PHONY: maybe-distclean-target-rda distclean-target-rda
46780maybe-distclean-target-rda:
6bd3dfaa
PB
46781@if target-rda
46782maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
46783
46784distclean-target-rda:
0aed8855 46785 @: $(MAKE); $(unstage)
22121df0 46786 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46787 r=`${PWD_COMMAND}`; export r; \
b40e3958 46788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46789 $(NORMAL_TARGET_EXPORTS) \
22121df0 46790 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46791 for flag in $(EXTRA_TARGET_FLAGS); do \
46792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46793 done; \
bba45b8b 46794 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46797 "RANLIB=$${RANLIB}" \
0c24b341 46798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46799 distclean) \
4fa63067 46800 || exit 1
252b5132 46801
6bd3dfaa 46802@endif target-rda
930314a4 46803
4fa63067
NN
46804.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
46805maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
46806@if target-rda
46807maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 46808
4fa63067 46809maintainer-clean-target-rda:
0aed8855 46810 @: $(MAKE); $(unstage)
22121df0 46811 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46812 r=`${PWD_COMMAND}`; export r; \
b40e3958 46813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46814 $(NORMAL_TARGET_EXPORTS) \
22121df0 46815 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46816 for flag in $(EXTRA_TARGET_FLAGS); do \
46817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46818 done; \
bba45b8b 46819 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46822 "RANLIB=$${RANLIB}" \
0c24b341 46823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46824 maintainer-clean) \
4fa63067
NN
46825 || exit 1
46826
6bd3dfaa 46827@endif target-rda
252b5132 46828
e393202e 46829
a2592b1b 46830
a7254363
PB
46831
46832
46833.PHONY: configure-target-libada maybe-configure-target-libada
46834maybe-configure-target-libada:
4f0ef2d8
CD
46835@if gcc-bootstrap
46836configure-target-libada: stage_current
46837@endif gcc-bootstrap
a7254363
PB
46838@if target-libada
46839maybe-configure-target-libada: configure-target-libada
c52c6897 46840configure-target-libada:
0aed8855
PB
46841 @: $(MAKE); $(unstage)
46842 @r=`${PWD_COMMAND}`; export r; \
46843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46844 echo "Checking multilib configuration for libada..."; \
22121df0
L
46845 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
46846 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
46847 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
46848 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
46849 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
46850 else \
46851 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
46852 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
46853 fi; \
46854 else \
46855 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
46856 fi; \
46857 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 46858 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 46859 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
46860 echo Configuring in $(TARGET_SUBDIR)/libada; \
46861 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
46862 case $(srcdir) in \
b00612cc
PB
46863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46864 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
46865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 46866 esac; \
1b6c0831 46867 module_srcdir=libada; \
a2592b1b 46868 rm -f no-such-file || : ; \
1b6c0831
L
46869 CONFIG_SITE=no-such-file $(SHELL) \
46870 $$s/$$module_srcdir/configure \
46871 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46872 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46873 --target=${target_alias} \
a2592b1b 46874 || exit 1
6bd3dfaa 46875@endif target-libada
a2592b1b 46876
a7254363
PB
46877
46878
d545f33b
PB
46879
46880
4fa63067
NN
46881.PHONY: all-target-libada maybe-all-target-libada
46882maybe-all-target-libada:
4f0ef2d8
CD
46883@if gcc-bootstrap
46884all-target-libada: stage_current
46885@endif gcc-bootstrap
6bd3dfaa 46886@if target-libada
72b2455a 46887TARGET-target-libada=all
6bd3dfaa 46888maybe-all-target-libada: all-target-libada
4fa63067 46889all-target-libada: configure-target-libada
0aed8855 46890 @: $(MAKE); $(unstage)
4fa63067
NN
46891 @r=`${PWD_COMMAND}`; export r; \
46892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46893 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46894 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 46895 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46896 $(TARGET-target-libada))
6bd3dfaa 46897@endif target-libada
4fa63067 46898
a7254363
PB
46899
46900
d545f33b
PB
46901
46902
4fa63067
NN
46903.PHONY: check-target-libada maybe-check-target-libada
46904maybe-check-target-libada:
6bd3dfaa
PB
46905@if target-libada
46906maybe-check-target-libada: check-target-libada
4fa63067
NN
46907
46908check-target-libada:
0aed8855 46909 @: $(MAKE); $(unstage)
4fa63067
NN
46910 @r=`${PWD_COMMAND}`; export r; \
46911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46912 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46913 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 46914 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 46915
6bd3dfaa 46916@endif target-libada
4fa63067
NN
46917
46918.PHONY: install-target-libada maybe-install-target-libada
46919maybe-install-target-libada:
6bd3dfaa
PB
46920@if target-libada
46921maybe-install-target-libada: install-target-libada
4fa63067
NN
46922
46923install-target-libada: installdirs
0aed8855 46924 @: $(MAKE); $(unstage)
4fa63067
NN
46925 @r=`${PWD_COMMAND}`; export r; \
46926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46927 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46928 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 46929 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 46930
6bd3dfaa 46931@endif target-libada
4fa63067 46932
9b980aa1
RW
46933.PHONY: install-strip-target-libada maybe-install-strip-target-libada
46934maybe-install-strip-target-libada:
46935@if target-libada
46936maybe-install-strip-target-libada: install-strip-target-libada
46937
46938install-strip-target-libada: installdirs
46939 @: $(MAKE); $(unstage)
46940 @r=`${PWD_COMMAND}`; export r; \
46941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46942 $(NORMAL_TARGET_EXPORTS) \
46943 (cd $(TARGET_SUBDIR)/libada && \
46944 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46945
46946@endif target-libada
46947
56a8fe78 46948# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
46949
46950.PHONY: maybe-info-target-libada info-target-libada
46951maybe-info-target-libada:
6bd3dfaa
PB
46952@if target-libada
46953maybe-info-target-libada: info-target-libada
4fa63067
NN
46954
46955info-target-libada: \
46956 configure-target-libada
0aed8855 46957 @: $(MAKE); $(unstage)
22121df0 46958 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46959 r=`${PWD_COMMAND}`; export r; \
46960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46961 $(NORMAL_TARGET_EXPORTS) \
22121df0 46962 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46963 for flag in $(EXTRA_TARGET_FLAGS); do \
46964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46965 done; \
46966 (cd $(TARGET_SUBDIR)/libada && \
46967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46969 "RANLIB=$${RANLIB}" \
0c24b341 46970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46971 info) \
4fa63067
NN
46972 || exit 1
46973
6bd3dfaa 46974@endif target-libada
4fa63067
NN
46975
46976.PHONY: maybe-dvi-target-libada dvi-target-libada
46977maybe-dvi-target-libada:
6bd3dfaa
PB
46978@if target-libada
46979maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
46980
46981dvi-target-libada: \
46982 configure-target-libada
0aed8855 46983 @: $(MAKE); $(unstage)
22121df0 46984 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46985 r=`${PWD_COMMAND}`; export r; \
46986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46987 $(NORMAL_TARGET_EXPORTS) \
22121df0 46988 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46989 for flag in $(EXTRA_TARGET_FLAGS); do \
46990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46991 done; \
46992 (cd $(TARGET_SUBDIR)/libada && \
46993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46995 "RANLIB=$${RANLIB}" \
0c24b341 46996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46997 dvi) \
4fa63067
NN
46998 || exit 1
46999
6bd3dfaa 47000@endif target-libada
4fa63067 47001
56a8fe78
DD
47002.PHONY: maybe-pdf-target-libada pdf-target-libada
47003maybe-pdf-target-libada:
47004@if target-libada
47005maybe-pdf-target-libada: pdf-target-libada
47006
47007pdf-target-libada: \
47008 configure-target-libada
47009 @: $(MAKE); $(unstage)
22121df0 47010 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
47011 r=`${PWD_COMMAND}`; export r; \
47012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47013 $(NORMAL_TARGET_EXPORTS) \
22121df0 47014 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
47015 for flag in $(EXTRA_TARGET_FLAGS); do \
47016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47017 done; \
47018 (cd $(TARGET_SUBDIR)/libada && \
47019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47021 "RANLIB=$${RANLIB}" \
0c24b341 47022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
47023 pdf) \
47024 || exit 1
47025
47026@endif target-libada
47027
6d389afc
MS
47028.PHONY: maybe-html-target-libada html-target-libada
47029maybe-html-target-libada:
47030@if target-libada
47031maybe-html-target-libada: html-target-libada
47032
47033html-target-libada: \
47034 configure-target-libada
0aed8855 47035 @: $(MAKE); $(unstage)
22121df0 47036 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
47037 r=`${PWD_COMMAND}`; export r; \
47038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 47039 $(NORMAL_TARGET_EXPORTS) \
22121df0 47040 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
47041 for flag in $(EXTRA_TARGET_FLAGS); do \
47042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47043 done; \
47044 (cd $(TARGET_SUBDIR)/libada && \
47045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47047 "RANLIB=$${RANLIB}" \
0c24b341 47048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
47049 html) \
47050 || exit 1
47051
47052@endif target-libada
47053
4fa63067
NN
47054.PHONY: maybe-TAGS-target-libada TAGS-target-libada
47055maybe-TAGS-target-libada:
6bd3dfaa
PB
47056@if target-libada
47057maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
47058
47059TAGS-target-libada: \
47060 configure-target-libada
0aed8855 47061 @: $(MAKE); $(unstage)
22121df0 47062 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47063 r=`${PWD_COMMAND}`; export r; \
47064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47065 $(NORMAL_TARGET_EXPORTS) \
22121df0 47066 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47067 for flag in $(EXTRA_TARGET_FLAGS); do \
47068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47069 done; \
47070 (cd $(TARGET_SUBDIR)/libada && \
47071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47073 "RANLIB=$${RANLIB}" \
0c24b341 47074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47075 TAGS) \
4fa63067
NN
47076 || exit 1
47077
6bd3dfaa 47078@endif target-libada
4fa63067
NN
47079
47080.PHONY: maybe-install-info-target-libada install-info-target-libada
47081maybe-install-info-target-libada:
6bd3dfaa
PB
47082@if target-libada
47083maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
47084
47085install-info-target-libada: \
47086 configure-target-libada \
47087 info-target-libada
0aed8855 47088 @: $(MAKE); $(unstage)
22121df0 47089 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47090 r=`${PWD_COMMAND}`; export r; \
47091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47092 $(NORMAL_TARGET_EXPORTS) \
22121df0 47093 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47094 for flag in $(EXTRA_TARGET_FLAGS); do \
47095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47096 done; \
47097 (cd $(TARGET_SUBDIR)/libada && \
47098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47100 "RANLIB=$${RANLIB}" \
0c24b341 47101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47102 install-info) \
4fa63067
NN
47103 || exit 1
47104
6bd3dfaa 47105@endif target-libada
4fa63067 47106
a3ca38d2
DD
47107.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
47108maybe-install-pdf-target-libada:
47109@if target-libada
47110maybe-install-pdf-target-libada: install-pdf-target-libada
47111
47112install-pdf-target-libada: \
47113 configure-target-libada \
47114 pdf-target-libada
47115 @: $(MAKE); $(unstage)
22121df0 47116 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
47117 r=`${PWD_COMMAND}`; export r; \
47118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47119 $(NORMAL_TARGET_EXPORTS) \
22121df0 47120 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
47121 for flag in $(EXTRA_TARGET_FLAGS); do \
47122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47123 done; \
47124 (cd $(TARGET_SUBDIR)/libada && \
47125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47127 "RANLIB=$${RANLIB}" \
0c24b341 47128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
47129 install-pdf) \
47130 || exit 1
47131
47132@endif target-libada
47133
108a6f8e
CD
47134.PHONY: maybe-install-html-target-libada install-html-target-libada
47135maybe-install-html-target-libada:
47136@if target-libada
47137maybe-install-html-target-libada: install-html-target-libada
47138
47139install-html-target-libada: \
47140 configure-target-libada \
47141 html-target-libada
47142 @: $(MAKE); $(unstage)
22121df0 47143 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
47144 r=`${PWD_COMMAND}`; export r; \
47145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47146 $(NORMAL_TARGET_EXPORTS) \
22121df0 47147 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
47148 for flag in $(EXTRA_TARGET_FLAGS); do \
47149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47150 done; \
47151 (cd $(TARGET_SUBDIR)/libada && \
47152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47154 "RANLIB=$${RANLIB}" \
0c24b341 47155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
47156 install-html) \
47157 || exit 1
47158
47159@endif target-libada
47160
4fa63067
NN
47161.PHONY: maybe-installcheck-target-libada installcheck-target-libada
47162maybe-installcheck-target-libada:
6bd3dfaa
PB
47163@if target-libada
47164maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
47165
47166installcheck-target-libada: \
47167 configure-target-libada
0aed8855 47168 @: $(MAKE); $(unstage)
22121df0 47169 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47170 r=`${PWD_COMMAND}`; export r; \
47171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47172 $(NORMAL_TARGET_EXPORTS) \
22121df0 47173 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47174 for flag in $(EXTRA_TARGET_FLAGS); do \
47175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47176 done; \
47177 (cd $(TARGET_SUBDIR)/libada && \
47178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47180 "RANLIB=$${RANLIB}" \
0c24b341 47181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47182 installcheck) \
4fa63067
NN
47183 || exit 1
47184
6bd3dfaa 47185@endif target-libada
4fa63067
NN
47186
47187.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
47188maybe-mostlyclean-target-libada:
6bd3dfaa
PB
47189@if target-libada
47190maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
47191
47192mostlyclean-target-libada:
0aed8855 47193 @: $(MAKE); $(unstage)
22121df0 47194 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47195 r=`${PWD_COMMAND}`; export r; \
47196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47197 $(NORMAL_TARGET_EXPORTS) \
22121df0 47198 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47199 for flag in $(EXTRA_TARGET_FLAGS); do \
47200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47201 done; \
47202 (cd $(TARGET_SUBDIR)/libada && \
47203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47205 "RANLIB=$${RANLIB}" \
0c24b341 47206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47207 mostlyclean) \
4fa63067
NN
47208 || exit 1
47209
6bd3dfaa 47210@endif target-libada
4fa63067
NN
47211
47212.PHONY: maybe-clean-target-libada clean-target-libada
47213maybe-clean-target-libada:
6bd3dfaa
PB
47214@if target-libada
47215maybe-clean-target-libada: clean-target-libada
4fa63067
NN
47216
47217clean-target-libada:
0aed8855 47218 @: $(MAKE); $(unstage)
22121df0 47219 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47220 r=`${PWD_COMMAND}`; export r; \
47221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47222 $(NORMAL_TARGET_EXPORTS) \
22121df0 47223 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47224 for flag in $(EXTRA_TARGET_FLAGS); do \
47225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47226 done; \
47227 (cd $(TARGET_SUBDIR)/libada && \
47228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47230 "RANLIB=$${RANLIB}" \
0c24b341 47231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47232 clean) \
4fa63067
NN
47233 || exit 1
47234
6bd3dfaa 47235@endif target-libada
a2592b1b 47236
4fa63067
NN
47237.PHONY: maybe-distclean-target-libada distclean-target-libada
47238maybe-distclean-target-libada:
6bd3dfaa
PB
47239@if target-libada
47240maybe-distclean-target-libada: distclean-target-libada
a2592b1b 47241
4fa63067 47242distclean-target-libada:
0aed8855 47243 @: $(MAKE); $(unstage)
22121df0 47244 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 47245 r=`${PWD_COMMAND}`; export r; \
a2592b1b 47246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47247 $(NORMAL_TARGET_EXPORTS) \
22121df0 47248 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47249 for flag in $(EXTRA_TARGET_FLAGS); do \
47250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47251 done; \
a2592b1b 47252 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
47253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47255 "RANLIB=$${RANLIB}" \
0c24b341 47256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47257 distclean) \
4fa63067 47258 || exit 1
a2592b1b 47259
6bd3dfaa 47260@endif target-libada
a2592b1b 47261
4fa63067
NN
47262.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
47263maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
47264@if target-libada
47265maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 47266
4fa63067 47267maintainer-clean-target-libada:
0aed8855 47268 @: $(MAKE); $(unstage)
22121df0 47269 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 47270 r=`${PWD_COMMAND}`; export r; \
a2592b1b 47271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47272 $(NORMAL_TARGET_EXPORTS) \
22121df0 47273 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47274 for flag in $(EXTRA_TARGET_FLAGS); do \
47275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47276 done; \
a2592b1b 47277 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
47278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47280 "RANLIB=$${RANLIB}" \
0c24b341 47281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47282 maintainer-clean) \
4fa63067
NN
47283 || exit 1
47284
6bd3dfaa 47285@endif target-libada
a2592b1b
DD
47286
47287
e393202e 47288
b3ded179
PB
47289
47290
47291.PHONY: configure-target-libgomp maybe-configure-target-libgomp
47292maybe-configure-target-libgomp:
4f0ef2d8
CD
47293@if gcc-bootstrap
47294configure-target-libgomp: stage_current
47295@endif gcc-bootstrap
b3ded179
PB
47296@if target-libgomp
47297maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 47298configure-target-libgomp:
b3ded179
PB
47299 @r=`${PWD_COMMAND}`; export r; \
47300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47301 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
47302 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
47303 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
47304 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47305 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47306 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47307 else \
47308 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47309 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47310 fi; \
47311 else \
47312 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
47313 fi; \
47314 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 47315 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 47316 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
47317 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
47318 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
47319 case $(srcdir) in \
47320 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47321 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47322 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47323 esac; \
1b6c0831 47324 module_srcdir=libgomp; \
b3ded179 47325 rm -f no-such-file || : ; \
1b6c0831
L
47326 CONFIG_SITE=no-such-file $(SHELL) \
47327 $$s/$$module_srcdir/configure \
47328 --srcdir=$${topdir}/$$module_srcdir \
4b900473 47329 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47330 --target=${target_alias} \
b3ded179
PB
47331 || exit 1
47332@endif target-libgomp
47333
47334
47335
911e63d0
JR
47336.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
47337maybe-configure-stage1-target-libgomp:
47338@if target-libgomp-bootstrap
47339maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
47340configure-stage1-target-libgomp:
47341 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
47342 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47343 @r=`${PWD_COMMAND}`; export r; \
47344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47345 TFLAGS="$(STAGE1_TFLAGS)"; \
47346 echo "Checking multilib configuration for libgomp..."; \
22121df0 47347 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47348 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47349 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47350 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47351 else \
47352 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47353 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47354 fi; \
47355 else \
47356 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47357 fi; \
47358 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47359 $(NORMAL_TARGET_EXPORTS) \
47360 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47361 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47362 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47363 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
47364 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47365 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47366 case $(srcdir) in \
47367 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47368 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47369 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47370 esac; \
1b6c0831
L
47371 module_srcdir=libgomp; \
47372 $(SHELL) $$s/$$module_srcdir/configure \
47373 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47374 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
47375 --target=${target_alias} \
47376 \
911e63d0
JR
47377 $(STAGE1_CONFIGURE_FLAGS)
47378@endif target-libgomp-bootstrap
47379
47380.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
47381maybe-configure-stage2-target-libgomp:
47382@if target-libgomp-bootstrap
47383maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
47384configure-stage2-target-libgomp:
47385 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
47386 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47387 @r=`${PWD_COMMAND}`; export r; \
47388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47389 TFLAGS="$(STAGE2_TFLAGS)"; \
47390 echo "Checking multilib configuration for libgomp..."; \
22121df0 47391 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47392 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47393 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47394 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47395 else \
47396 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47397 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47398 fi; \
47399 else \
47400 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47401 fi; \
47402 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47403 $(NORMAL_TARGET_EXPORTS) \
47404 \
47405 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47406 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47407 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47408 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
47409 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47410 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47411 case $(srcdir) in \
47412 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47413 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47414 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47415 esac; \
1b6c0831
L
47416 module_srcdir=libgomp; \
47417 $(SHELL) $$s/$$module_srcdir/configure \
47418 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47419 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47420 --target=${target_alias} \
22121df0 47421 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47422 $(STAGE2_CONFIGURE_FLAGS)
47423@endif target-libgomp-bootstrap
47424
47425.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
47426maybe-configure-stage3-target-libgomp:
47427@if target-libgomp-bootstrap
47428maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
47429configure-stage3-target-libgomp:
47430 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
47431 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47432 @r=`${PWD_COMMAND}`; export r; \
47433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47434 TFLAGS="$(STAGE3_TFLAGS)"; \
47435 echo "Checking multilib configuration for libgomp..."; \
22121df0 47436 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47437 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47438 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47439 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47440 else \
47441 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47442 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47443 fi; \
47444 else \
47445 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47446 fi; \
47447 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47448 $(NORMAL_TARGET_EXPORTS) \
47449 \
47450 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47451 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47452 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47453 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
47454 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47455 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47456 case $(srcdir) in \
47457 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47458 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47459 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47460 esac; \
1b6c0831
L
47461 module_srcdir=libgomp; \
47462 $(SHELL) $$s/$$module_srcdir/configure \
47463 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47464 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47465 --target=${target_alias} \
22121df0 47466 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47467 $(STAGE3_CONFIGURE_FLAGS)
47468@endif target-libgomp-bootstrap
47469
47470.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
47471maybe-configure-stage4-target-libgomp:
47472@if target-libgomp-bootstrap
47473maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
47474configure-stage4-target-libgomp:
47475 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47476 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47477 @r=`${PWD_COMMAND}`; export r; \
47478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47479 TFLAGS="$(STAGE4_TFLAGS)"; \
47480 echo "Checking multilib configuration for libgomp..."; \
22121df0 47481 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47482 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47483 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47484 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47485 else \
47486 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47487 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47488 fi; \
47489 else \
47490 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47491 fi; \
47492 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47493 $(NORMAL_TARGET_EXPORTS) \
47494 \
47495 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47496 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47497 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47498 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
47499 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47500 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47501 case $(srcdir) in \
47502 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47503 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47504 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47505 esac; \
1b6c0831
L
47506 module_srcdir=libgomp; \
47507 $(SHELL) $$s/$$module_srcdir/configure \
47508 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47509 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47510 --target=${target_alias} \
22121df0 47511 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47512 $(STAGE4_CONFIGURE_FLAGS)
47513@endif target-libgomp-bootstrap
47514
47515.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
47516maybe-configure-stageprofile-target-libgomp:
47517@if target-libgomp-bootstrap
47518maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
47519configure-stageprofile-target-libgomp:
47520 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47521 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47522 @r=`${PWD_COMMAND}`; export r; \
47523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47524 TFLAGS="$(STAGEprofile_TFLAGS)"; \
47525 echo "Checking multilib configuration for libgomp..."; \
22121df0 47526 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47527 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47528 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47529 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47530 else \
47531 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47532 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47533 fi; \
47534 else \
47535 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47536 fi; \
47537 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47538 $(NORMAL_TARGET_EXPORTS) \
47539 \
47540 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47541 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47542 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47543 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
47544 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47545 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47546 case $(srcdir) in \
47547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47548 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47550 esac; \
1b6c0831
L
47551 module_srcdir=libgomp; \
47552 $(SHELL) $$s/$$module_srcdir/configure \
47553 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47554 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47555 --target=${target_alias} \
22121df0 47556 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47557 $(STAGEprofile_CONFIGURE_FLAGS)
47558@endif target-libgomp-bootstrap
47559
47560.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
47561maybe-configure-stagefeedback-target-libgomp:
47562@if target-libgomp-bootstrap
47563maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
47564configure-stagefeedback-target-libgomp:
47565 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47566 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47567 @r=`${PWD_COMMAND}`; export r; \
47568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47569 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
47570 echo "Checking multilib configuration for libgomp..."; \
22121df0 47571 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47572 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47573 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47574 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47575 else \
47576 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47577 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47578 fi; \
47579 else \
47580 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47581 fi; \
47582 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47583 $(NORMAL_TARGET_EXPORTS) \
47584 \
47585 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47586 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47587 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47588 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
47589 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47590 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47591 case $(srcdir) in \
47592 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47593 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47594 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47595 esac; \
1b6c0831
L
47596 module_srcdir=libgomp; \
47597 $(SHELL) $$s/$$module_srcdir/configure \
47598 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47599 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47600 --target=${target_alias} \
22121df0 47601 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47602 $(STAGEfeedback_CONFIGURE_FLAGS)
47603@endif target-libgomp-bootstrap
47604
47605
47606
b3ded179
PB
47607
47608
47609.PHONY: all-target-libgomp maybe-all-target-libgomp
47610maybe-all-target-libgomp:
4f0ef2d8
CD
47611@if gcc-bootstrap
47612all-target-libgomp: stage_current
47613@endif gcc-bootstrap
b3ded179
PB
47614@if target-libgomp
47615TARGET-target-libgomp=all
47616maybe-all-target-libgomp: all-target-libgomp
47617all-target-libgomp: configure-target-libgomp
b3ded179
PB
47618 @r=`${PWD_COMMAND}`; export r; \
47619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 47620 $(NORMAL_TARGET_EXPORTS) \
b3ded179 47621 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47622 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 47623 $(TARGET-target-libgomp))
b3ded179
PB
47624@endif target-libgomp
47625
47626
47627
911e63d0
JR
47628.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
47629.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
47630maybe-all-stage1-target-libgomp:
47631maybe-clean-stage1-target-libgomp:
47632@if target-libgomp-bootstrap
47633maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
47634all-stage1: all-stage1-target-libgomp
47635TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
47636all-stage1-target-libgomp: configure-stage1-target-libgomp
47637 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
47638 @r=`${PWD_COMMAND}`; export r; \
47639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47640 TFLAGS="$(STAGE1_TFLAGS)"; \
47641 $(NORMAL_TARGET_EXPORTS) \
47642 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47643 \
911e63d0
JR
47644 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47645 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47646 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47647 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47648 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47649 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47650 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
47651 $(EXTRA_TARGET_FLAGS) \
47652 \
05a13254 47653 TFLAGS="$(STAGE1_TFLAGS)" \
911e63d0
JR
47654 $(TARGET-stage1-target-libgomp)
47655
47656maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
47657clean-stage1: clean-stage1-target-libgomp
47658clean-stage1-target-libgomp:
47659 @if [ $(current_stage) = stage1 ]; then \
47660 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47661 else \
47662 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
47663 $(MAKE) stage1-start; \
47664 fi; \
47665 cd $(TARGET_SUBDIR)/libgomp && \
47666 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 47667 clean
911e63d0
JR
47668@endif target-libgomp-bootstrap
47669
47670
47671.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
47672.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
47673maybe-all-stage2-target-libgomp:
47674maybe-clean-stage2-target-libgomp:
47675@if target-libgomp-bootstrap
47676maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
47677all-stage2: all-stage2-target-libgomp
47678TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
47679all-stage2-target-libgomp: configure-stage2-target-libgomp
47680 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
47681 @r=`${PWD_COMMAND}`; export r; \
47682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47683 TFLAGS="$(STAGE2_TFLAGS)"; \
47684 $(NORMAL_TARGET_EXPORTS) \
47685 \
47686 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47687 \
911e63d0
JR
47688 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47689 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47690 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47691 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47692 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47693 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47694 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47695 $(EXTRA_TARGET_FLAGS) \
05a13254 47696 TFLAGS="$(STAGE2_TFLAGS)" \
911e63d0
JR
47697 $(TARGET-stage2-target-libgomp)
47698
47699maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
47700clean-stage2: clean-stage2-target-libgomp
47701clean-stage2-target-libgomp:
47702 @if [ $(current_stage) = stage2 ]; then \
47703 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47704 else \
47705 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
47706 $(MAKE) stage2-start; \
47707 fi; \
47708 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47709 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47710@endif target-libgomp-bootstrap
47711
47712
47713.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
47714.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
47715maybe-all-stage3-target-libgomp:
47716maybe-clean-stage3-target-libgomp:
47717@if target-libgomp-bootstrap
47718maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
47719all-stage3: all-stage3-target-libgomp
47720TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
47721all-stage3-target-libgomp: configure-stage3-target-libgomp
47722 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
47723 @r=`${PWD_COMMAND}`; export r; \
47724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47725 TFLAGS="$(STAGE3_TFLAGS)"; \
47726 $(NORMAL_TARGET_EXPORTS) \
47727 \
47728 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47729 \
911e63d0
JR
47730 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47731 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47732 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47733 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47734 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47735 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47736 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47737 $(EXTRA_TARGET_FLAGS) \
05a13254 47738 TFLAGS="$(STAGE3_TFLAGS)" \
911e63d0
JR
47739 $(TARGET-stage3-target-libgomp)
47740
47741maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
47742clean-stage3: clean-stage3-target-libgomp
47743clean-stage3-target-libgomp:
47744 @if [ $(current_stage) = stage3 ]; then \
47745 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47746 else \
47747 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
47748 $(MAKE) stage3-start; \
47749 fi; \
47750 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47751 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47752@endif target-libgomp-bootstrap
47753
47754
47755.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
47756.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
47757maybe-all-stage4-target-libgomp:
47758maybe-clean-stage4-target-libgomp:
47759@if target-libgomp-bootstrap
47760maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
47761all-stage4: all-stage4-target-libgomp
47762TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
47763all-stage4-target-libgomp: configure-stage4-target-libgomp
47764 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47765 @r=`${PWD_COMMAND}`; export r; \
47766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47767 TFLAGS="$(STAGE4_TFLAGS)"; \
47768 $(NORMAL_TARGET_EXPORTS) \
47769 \
47770 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47771 \
911e63d0
JR
47772 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47773 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47774 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47775 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47776 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47777 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47778 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47779 $(EXTRA_TARGET_FLAGS) \
05a13254 47780 TFLAGS="$(STAGE4_TFLAGS)" \
911e63d0
JR
47781 $(TARGET-stage4-target-libgomp)
47782
47783maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
47784clean-stage4: clean-stage4-target-libgomp
47785clean-stage4-target-libgomp:
47786 @if [ $(current_stage) = stage4 ]; then \
47787 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47788 else \
47789 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
47790 $(MAKE) stage4-start; \
47791 fi; \
47792 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47793 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47794@endif target-libgomp-bootstrap
47795
47796
47797.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
47798.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
47799maybe-all-stageprofile-target-libgomp:
47800maybe-clean-stageprofile-target-libgomp:
47801@if target-libgomp-bootstrap
47802maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
47803all-stageprofile: all-stageprofile-target-libgomp
47804TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
47805all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
47806 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47807 @r=`${PWD_COMMAND}`; export r; \
47808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47809 TFLAGS="$(STAGEprofile_TFLAGS)"; \
47810 $(NORMAL_TARGET_EXPORTS) \
47811 \
47812 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47813 \
911e63d0
JR
47814 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47815 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47816 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47817 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47818 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47819 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47820 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47821 $(EXTRA_TARGET_FLAGS) \
05a13254 47822 TFLAGS="$(STAGEprofile_TFLAGS)" \
911e63d0
JR
47823 $(TARGET-stageprofile-target-libgomp)
47824
47825maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
47826clean-stageprofile: clean-stageprofile-target-libgomp
47827clean-stageprofile-target-libgomp:
47828 @if [ $(current_stage) = stageprofile ]; then \
47829 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47830 else \
47831 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
47832 $(MAKE) stageprofile-start; \
47833 fi; \
47834 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47835 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47836@endif target-libgomp-bootstrap
47837
47838
47839.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
47840.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
47841maybe-all-stagefeedback-target-libgomp:
47842maybe-clean-stagefeedback-target-libgomp:
47843@if target-libgomp-bootstrap
47844maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
47845all-stagefeedback: all-stagefeedback-target-libgomp
47846TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
47847all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
47848 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47849 @r=`${PWD_COMMAND}`; export r; \
47850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47851 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
47852 $(NORMAL_TARGET_EXPORTS) \
47853 \
47854 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47855 \
911e63d0
JR
47856 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47857 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47858 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47859 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47860 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47861 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47862 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47863 $(EXTRA_TARGET_FLAGS) \
05a13254 47864 TFLAGS="$(STAGEfeedback_TFLAGS)" \
911e63d0
JR
47865 $(TARGET-stagefeedback-target-libgomp)
47866
47867maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
47868clean-stagefeedback: clean-stagefeedback-target-libgomp
47869clean-stagefeedback-target-libgomp:
47870 @if [ $(current_stage) = stagefeedback ]; then \
47871 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47872 else \
47873 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
47874 $(MAKE) stagefeedback-start; \
47875 fi; \
47876 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47877 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47878@endif target-libgomp-bootstrap
47879
47880
47881
47882
b3ded179
PB
47883
47884
47885.PHONY: check-target-libgomp maybe-check-target-libgomp
47886maybe-check-target-libgomp:
47887@if target-libgomp
47888maybe-check-target-libgomp: check-target-libgomp
47889
47890check-target-libgomp:
47891 @: $(MAKE); $(unstage)
47892 @r=`${PWD_COMMAND}`; export r; \
47893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47894 $(NORMAL_TARGET_EXPORTS) \
47895 (cd $(TARGET_SUBDIR)/libgomp && \
47896 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47897
47898@endif target-libgomp
47899
47900.PHONY: install-target-libgomp maybe-install-target-libgomp
47901maybe-install-target-libgomp:
47902@if target-libgomp
47903maybe-install-target-libgomp: install-target-libgomp
47904
47905install-target-libgomp: installdirs
47906 @: $(MAKE); $(unstage)
47907 @r=`${PWD_COMMAND}`; export r; \
47908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47909 $(NORMAL_TARGET_EXPORTS) \
47910 (cd $(TARGET_SUBDIR)/libgomp && \
47911 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47912
47913@endif target-libgomp
47914
9b980aa1
RW
47915.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
47916maybe-install-strip-target-libgomp:
47917@if target-libgomp
47918maybe-install-strip-target-libgomp: install-strip-target-libgomp
47919
47920install-strip-target-libgomp: installdirs
47921 @: $(MAKE); $(unstage)
47922 @r=`${PWD_COMMAND}`; export r; \
47923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47924 $(NORMAL_TARGET_EXPORTS) \
47925 (cd $(TARGET_SUBDIR)/libgomp && \
47926 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47927
47928@endif target-libgomp
47929
56a8fe78 47930# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
47931
47932.PHONY: maybe-info-target-libgomp info-target-libgomp
47933maybe-info-target-libgomp:
47934@if target-libgomp
47935maybe-info-target-libgomp: info-target-libgomp
47936
47937info-target-libgomp: \
47938 configure-target-libgomp
47939 @: $(MAKE); $(unstage)
22121df0 47940 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47941 r=`${PWD_COMMAND}`; export r; \
47942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47943 $(NORMAL_TARGET_EXPORTS) \
22121df0 47944 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47945 for flag in $(EXTRA_TARGET_FLAGS); do \
47946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47947 done; \
47948 (cd $(TARGET_SUBDIR)/libgomp && \
47949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47951 "RANLIB=$${RANLIB}" \
0c24b341 47952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47953 info) \
47954 || exit 1
47955
47956@endif target-libgomp
47957
47958.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
47959maybe-dvi-target-libgomp:
47960@if target-libgomp
47961maybe-dvi-target-libgomp: dvi-target-libgomp
47962
47963dvi-target-libgomp: \
47964 configure-target-libgomp
47965 @: $(MAKE); $(unstage)
22121df0 47966 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47967 r=`${PWD_COMMAND}`; export r; \
47968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47969 $(NORMAL_TARGET_EXPORTS) \
22121df0 47970 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47971 for flag in $(EXTRA_TARGET_FLAGS); do \
47972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47973 done; \
47974 (cd $(TARGET_SUBDIR)/libgomp && \
47975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47977 "RANLIB=$${RANLIB}" \
0c24b341 47978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47979 dvi) \
47980 || exit 1
47981
47982@endif target-libgomp
47983
56a8fe78
DD
47984.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
47985maybe-pdf-target-libgomp:
47986@if target-libgomp
47987maybe-pdf-target-libgomp: pdf-target-libgomp
47988
47989pdf-target-libgomp: \
47990 configure-target-libgomp
47991 @: $(MAKE); $(unstage)
22121df0 47992 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
47993 r=`${PWD_COMMAND}`; export r; \
47994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47995 $(NORMAL_TARGET_EXPORTS) \
22121df0 47996 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
47997 for flag in $(EXTRA_TARGET_FLAGS); do \
47998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47999 done; \
48000 (cd $(TARGET_SUBDIR)/libgomp && \
48001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48003 "RANLIB=$${RANLIB}" \
0c24b341 48004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
48005 pdf) \
48006 || exit 1
48007
48008@endif target-libgomp
48009
b3ded179
PB
48010.PHONY: maybe-html-target-libgomp html-target-libgomp
48011maybe-html-target-libgomp:
48012@if target-libgomp
48013maybe-html-target-libgomp: html-target-libgomp
48014
48015html-target-libgomp: \
48016 configure-target-libgomp
48017 @: $(MAKE); $(unstage)
22121df0 48018 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48019 r=`${PWD_COMMAND}`; export r; \
48020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48021 $(NORMAL_TARGET_EXPORTS) \
22121df0 48022 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48023 for flag in $(EXTRA_TARGET_FLAGS); do \
48024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48025 done; \
48026 (cd $(TARGET_SUBDIR)/libgomp && \
48027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48029 "RANLIB=$${RANLIB}" \
0c24b341 48030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48031 html) \
48032 || exit 1
48033
48034@endif target-libgomp
48035
48036.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
48037maybe-TAGS-target-libgomp:
48038@if target-libgomp
48039maybe-TAGS-target-libgomp: TAGS-target-libgomp
48040
48041TAGS-target-libgomp: \
48042 configure-target-libgomp
48043 @: $(MAKE); $(unstage)
22121df0 48044 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48045 r=`${PWD_COMMAND}`; export r; \
48046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48047 $(NORMAL_TARGET_EXPORTS) \
22121df0 48048 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48049 for flag in $(EXTRA_TARGET_FLAGS); do \
48050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48051 done; \
48052 (cd $(TARGET_SUBDIR)/libgomp && \
48053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48055 "RANLIB=$${RANLIB}" \
0c24b341 48056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48057 TAGS) \
48058 || exit 1
48059
48060@endif target-libgomp
48061
48062.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
48063maybe-install-info-target-libgomp:
48064@if target-libgomp
48065maybe-install-info-target-libgomp: install-info-target-libgomp
48066
48067install-info-target-libgomp: \
48068 configure-target-libgomp \
48069 info-target-libgomp
48070 @: $(MAKE); $(unstage)
22121df0 48071 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48072 r=`${PWD_COMMAND}`; export r; \
48073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48074 $(NORMAL_TARGET_EXPORTS) \
22121df0 48075 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48076 for flag in $(EXTRA_TARGET_FLAGS); do \
48077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48078 done; \
48079 (cd $(TARGET_SUBDIR)/libgomp && \
48080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48082 "RANLIB=$${RANLIB}" \
0c24b341 48083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48084 install-info) \
48085 || exit 1
48086
48087@endif target-libgomp
48088
a3ca38d2
DD
48089.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
48090maybe-install-pdf-target-libgomp:
48091@if target-libgomp
48092maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
48093
48094install-pdf-target-libgomp: \
48095 configure-target-libgomp \
48096 pdf-target-libgomp
48097 @: $(MAKE); $(unstage)
22121df0 48098 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
48099 r=`${PWD_COMMAND}`; export r; \
48100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48101 $(NORMAL_TARGET_EXPORTS) \
22121df0 48102 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
48103 for flag in $(EXTRA_TARGET_FLAGS); do \
48104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48105 done; \
48106 (cd $(TARGET_SUBDIR)/libgomp && \
48107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48109 "RANLIB=$${RANLIB}" \
0c24b341 48110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
48111 install-pdf) \
48112 || exit 1
48113
48114@endif target-libgomp
48115
108a6f8e
CD
48116.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
48117maybe-install-html-target-libgomp:
48118@if target-libgomp
48119maybe-install-html-target-libgomp: install-html-target-libgomp
48120
48121install-html-target-libgomp: \
48122 configure-target-libgomp \
48123 html-target-libgomp
48124 @: $(MAKE); $(unstage)
22121df0 48125 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
48126 r=`${PWD_COMMAND}`; export r; \
48127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48128 $(NORMAL_TARGET_EXPORTS) \
22121df0 48129 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
48130 for flag in $(EXTRA_TARGET_FLAGS); do \
48131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48132 done; \
48133 (cd $(TARGET_SUBDIR)/libgomp && \
48134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48136 "RANLIB=$${RANLIB}" \
0c24b341 48137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
48138 install-html) \
48139 || exit 1
48140
48141@endif target-libgomp
48142
b3ded179
PB
48143.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
48144maybe-installcheck-target-libgomp:
48145@if target-libgomp
48146maybe-installcheck-target-libgomp: installcheck-target-libgomp
48147
48148installcheck-target-libgomp: \
48149 configure-target-libgomp
48150 @: $(MAKE); $(unstage)
22121df0 48151 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48152 r=`${PWD_COMMAND}`; export r; \
48153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48154 $(NORMAL_TARGET_EXPORTS) \
22121df0 48155 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48156 for flag in $(EXTRA_TARGET_FLAGS); do \
48157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48158 done; \
48159 (cd $(TARGET_SUBDIR)/libgomp && \
48160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48162 "RANLIB=$${RANLIB}" \
0c24b341 48163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48164 installcheck) \
48165 || exit 1
48166
48167@endif target-libgomp
48168
48169.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
48170maybe-mostlyclean-target-libgomp:
48171@if target-libgomp
48172maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
48173
48174mostlyclean-target-libgomp:
48175 @: $(MAKE); $(unstage)
22121df0 48176 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48177 r=`${PWD_COMMAND}`; export r; \
48178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48179 $(NORMAL_TARGET_EXPORTS) \
22121df0 48180 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48181 for flag in $(EXTRA_TARGET_FLAGS); do \
48182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48183 done; \
48184 (cd $(TARGET_SUBDIR)/libgomp && \
48185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48187 "RANLIB=$${RANLIB}" \
0c24b341 48188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48189 mostlyclean) \
48190 || exit 1
48191
48192@endif target-libgomp
48193
48194.PHONY: maybe-clean-target-libgomp clean-target-libgomp
48195maybe-clean-target-libgomp:
48196@if target-libgomp
48197maybe-clean-target-libgomp: clean-target-libgomp
48198
48199clean-target-libgomp:
48200 @: $(MAKE); $(unstage)
22121df0 48201 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48202 r=`${PWD_COMMAND}`; export r; \
48203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48204 $(NORMAL_TARGET_EXPORTS) \
22121df0 48205 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48206 for flag in $(EXTRA_TARGET_FLAGS); do \
48207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48208 done; \
48209 (cd $(TARGET_SUBDIR)/libgomp && \
48210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48212 "RANLIB=$${RANLIB}" \
0c24b341 48213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48214 clean) \
48215 || exit 1
48216
48217@endif target-libgomp
48218
48219.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
48220maybe-distclean-target-libgomp:
48221@if target-libgomp
48222maybe-distclean-target-libgomp: distclean-target-libgomp
48223
48224distclean-target-libgomp:
48225 @: $(MAKE); $(unstage)
22121df0 48226 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48227 r=`${PWD_COMMAND}`; export r; \
48228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48229 $(NORMAL_TARGET_EXPORTS) \
22121df0 48230 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48231 for flag in $(EXTRA_TARGET_FLAGS); do \
48232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48233 done; \
48234 (cd $(TARGET_SUBDIR)/libgomp && \
48235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48237 "RANLIB=$${RANLIB}" \
0c24b341 48238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48239 distclean) \
48240 || exit 1
48241
48242@endif target-libgomp
48243
48244.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
48245maybe-maintainer-clean-target-libgomp:
48246@if target-libgomp
48247maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
48248
48249maintainer-clean-target-libgomp:
48250 @: $(MAKE); $(unstage)
22121df0 48251 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48252 r=`${PWD_COMMAND}`; export r; \
48253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48254 $(NORMAL_TARGET_EXPORTS) \
22121df0 48255 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48256 for flag in $(EXTRA_TARGET_FLAGS); do \
48257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48258 done; \
48259 (cd $(TARGET_SUBDIR)/libgomp && \
48260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48262 "RANLIB=$${RANLIB}" \
0c24b341 48263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48264 maintainer-clean) \
48265 || exit 1
48266
48267@endif target-libgomp
48268
48269
48270
7ec59b9e
L
48271
48272
48273.PHONY: configure-target-libitm maybe-configure-target-libitm
48274maybe-configure-target-libitm:
48275@if gcc-bootstrap
48276configure-target-libitm: stage_current
48277@endif gcc-bootstrap
48278@if target-libitm
48279maybe-configure-target-libitm: configure-target-libitm
48280configure-target-libitm:
48281 @: $(MAKE); $(unstage)
48282 @r=`${PWD_COMMAND}`; export r; \
48283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48284 echo "Checking multilib configuration for libitm..."; \
22121df0
L
48285 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
48286 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
48287 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
48288 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
48289 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
48290 else \
48291 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
48292 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
48293 fi; \
48294 else \
48295 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
48296 fi; \
48297 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 48298 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
48299 $(NORMAL_TARGET_EXPORTS) \
48300 echo Configuring in $(TARGET_SUBDIR)/libitm; \
48301 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
48302 case $(srcdir) in \
48303 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48304 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
48305 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
48306 esac; \
1b6c0831 48307 module_srcdir=libitm; \
7ec59b9e 48308 rm -f no-such-file || : ; \
1b6c0831
L
48309 CONFIG_SITE=no-such-file $(SHELL) \
48310 $$s/$$module_srcdir/configure \
48311 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 48312 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 48313 --target=${target_alias} \
7ec59b9e
L
48314 || exit 1
48315@endif target-libitm
48316
48317
48318
48319
48320
48321.PHONY: all-target-libitm maybe-all-target-libitm
48322maybe-all-target-libitm:
48323@if gcc-bootstrap
48324all-target-libitm: stage_current
48325@endif gcc-bootstrap
48326@if target-libitm
48327TARGET-target-libitm=all
48328maybe-all-target-libitm: all-target-libitm
48329all-target-libitm: configure-target-libitm
48330 @: $(MAKE); $(unstage)
48331 @r=`${PWD_COMMAND}`; export r; \
48332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48333 $(NORMAL_TARGET_EXPORTS) \
48334 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 48335 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
48336 $(TARGET-target-libitm))
48337@endif target-libitm
48338
48339
48340
48341
48342
48343.PHONY: check-target-libitm maybe-check-target-libitm
48344maybe-check-target-libitm:
48345@if target-libitm
48346maybe-check-target-libitm: check-target-libitm
48347
48348check-target-libitm:
48349 @: $(MAKE); $(unstage)
48350 @r=`${PWD_COMMAND}`; export r; \
48351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48352 $(NORMAL_TARGET_EXPORTS) \
48353 (cd $(TARGET_SUBDIR)/libitm && \
48354 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
48355
48356@endif target-libitm
48357
48358.PHONY: install-target-libitm maybe-install-target-libitm
48359maybe-install-target-libitm:
48360@if target-libitm
48361maybe-install-target-libitm: install-target-libitm
48362
48363install-target-libitm: installdirs
48364 @: $(MAKE); $(unstage)
48365 @r=`${PWD_COMMAND}`; export r; \
48366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48367 $(NORMAL_TARGET_EXPORTS) \
48368 (cd $(TARGET_SUBDIR)/libitm && \
48369 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
48370
48371@endif target-libitm
48372
48373.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
48374maybe-install-strip-target-libitm:
48375@if target-libitm
48376maybe-install-strip-target-libitm: install-strip-target-libitm
48377
48378install-strip-target-libitm: installdirs
48379 @: $(MAKE); $(unstage)
48380 @r=`${PWD_COMMAND}`; export r; \
48381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48382 $(NORMAL_TARGET_EXPORTS) \
48383 (cd $(TARGET_SUBDIR)/libitm && \
48384 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
48385
48386@endif target-libitm
48387
48388# Other targets (info, dvi, pdf, etc.)
48389
48390.PHONY: maybe-info-target-libitm info-target-libitm
48391maybe-info-target-libitm:
48392@if target-libitm
48393maybe-info-target-libitm: info-target-libitm
48394
48395info-target-libitm: \
48396 configure-target-libitm
48397 @: $(MAKE); $(unstage)
22121df0 48398 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48399 r=`${PWD_COMMAND}`; export r; \
48400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48401 $(NORMAL_TARGET_EXPORTS) \
22121df0 48402 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48403 for flag in $(EXTRA_TARGET_FLAGS); do \
48404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48405 done; \
48406 (cd $(TARGET_SUBDIR)/libitm && \
48407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48409 "RANLIB=$${RANLIB}" \
48410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48411 info) \
48412 || exit 1
48413
48414@endif target-libitm
48415
48416.PHONY: maybe-dvi-target-libitm dvi-target-libitm
48417maybe-dvi-target-libitm:
48418@if target-libitm
48419maybe-dvi-target-libitm: dvi-target-libitm
48420
48421dvi-target-libitm: \
48422 configure-target-libitm
48423 @: $(MAKE); $(unstage)
22121df0 48424 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48425 r=`${PWD_COMMAND}`; export r; \
48426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48427 $(NORMAL_TARGET_EXPORTS) \
22121df0 48428 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48429 for flag in $(EXTRA_TARGET_FLAGS); do \
48430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48431 done; \
48432 (cd $(TARGET_SUBDIR)/libitm && \
48433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48435 "RANLIB=$${RANLIB}" \
48436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48437 dvi) \
48438 || exit 1
48439
48440@endif target-libitm
48441
48442.PHONY: maybe-pdf-target-libitm pdf-target-libitm
48443maybe-pdf-target-libitm:
48444@if target-libitm
48445maybe-pdf-target-libitm: pdf-target-libitm
48446
48447pdf-target-libitm: \
48448 configure-target-libitm
48449 @: $(MAKE); $(unstage)
22121df0 48450 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48451 r=`${PWD_COMMAND}`; export r; \
48452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48453 $(NORMAL_TARGET_EXPORTS) \
22121df0 48454 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48455 for flag in $(EXTRA_TARGET_FLAGS); do \
48456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48457 done; \
48458 (cd $(TARGET_SUBDIR)/libitm && \
48459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48461 "RANLIB=$${RANLIB}" \
48462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48463 pdf) \
48464 || exit 1
48465
48466@endif target-libitm
48467
48468.PHONY: maybe-html-target-libitm html-target-libitm
48469maybe-html-target-libitm:
48470@if target-libitm
48471maybe-html-target-libitm: html-target-libitm
48472
48473html-target-libitm: \
48474 configure-target-libitm
48475 @: $(MAKE); $(unstage)
22121df0 48476 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48477 r=`${PWD_COMMAND}`; export r; \
48478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48479 $(NORMAL_TARGET_EXPORTS) \
22121df0 48480 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48481 for flag in $(EXTRA_TARGET_FLAGS); do \
48482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48483 done; \
48484 (cd $(TARGET_SUBDIR)/libitm && \
48485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48487 "RANLIB=$${RANLIB}" \
48488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48489 html) \
48490 || exit 1
48491
48492@endif target-libitm
48493
48494.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
48495maybe-TAGS-target-libitm:
48496@if target-libitm
48497maybe-TAGS-target-libitm: TAGS-target-libitm
48498
48499TAGS-target-libitm: \
48500 configure-target-libitm
48501 @: $(MAKE); $(unstage)
22121df0 48502 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48503 r=`${PWD_COMMAND}`; export r; \
48504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48505 $(NORMAL_TARGET_EXPORTS) \
22121df0 48506 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48507 for flag in $(EXTRA_TARGET_FLAGS); do \
48508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48509 done; \
48510 (cd $(TARGET_SUBDIR)/libitm && \
48511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48513 "RANLIB=$${RANLIB}" \
48514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48515 TAGS) \
48516 || exit 1
48517
48518@endif target-libitm
48519
48520.PHONY: maybe-install-info-target-libitm install-info-target-libitm
48521maybe-install-info-target-libitm:
48522@if target-libitm
48523maybe-install-info-target-libitm: install-info-target-libitm
48524
48525install-info-target-libitm: \
48526 configure-target-libitm \
48527 info-target-libitm
48528 @: $(MAKE); $(unstage)
22121df0 48529 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48530 r=`${PWD_COMMAND}`; export r; \
48531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48532 $(NORMAL_TARGET_EXPORTS) \
22121df0 48533 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48534 for flag in $(EXTRA_TARGET_FLAGS); do \
48535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48536 done; \
48537 (cd $(TARGET_SUBDIR)/libitm && \
48538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48540 "RANLIB=$${RANLIB}" \
48541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48542 install-info) \
48543 || exit 1
48544
48545@endif target-libitm
48546
48547.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
48548maybe-install-pdf-target-libitm:
48549@if target-libitm
48550maybe-install-pdf-target-libitm: install-pdf-target-libitm
48551
48552install-pdf-target-libitm: \
48553 configure-target-libitm \
48554 pdf-target-libitm
48555 @: $(MAKE); $(unstage)
22121df0 48556 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48557 r=`${PWD_COMMAND}`; export r; \
48558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48559 $(NORMAL_TARGET_EXPORTS) \
22121df0 48560 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48561 for flag in $(EXTRA_TARGET_FLAGS); do \
48562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48563 done; \
48564 (cd $(TARGET_SUBDIR)/libitm && \
48565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48567 "RANLIB=$${RANLIB}" \
48568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48569 install-pdf) \
48570 || exit 1
48571
48572@endif target-libitm
48573
48574.PHONY: maybe-install-html-target-libitm install-html-target-libitm
48575maybe-install-html-target-libitm:
48576@if target-libitm
48577maybe-install-html-target-libitm: install-html-target-libitm
48578
48579install-html-target-libitm: \
48580 configure-target-libitm \
48581 html-target-libitm
48582 @: $(MAKE); $(unstage)
22121df0 48583 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48584 r=`${PWD_COMMAND}`; export r; \
48585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48586 $(NORMAL_TARGET_EXPORTS) \
22121df0 48587 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48588 for flag in $(EXTRA_TARGET_FLAGS); do \
48589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48590 done; \
48591 (cd $(TARGET_SUBDIR)/libitm && \
48592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48594 "RANLIB=$${RANLIB}" \
48595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48596 install-html) \
48597 || exit 1
48598
48599@endif target-libitm
48600
48601.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
48602maybe-installcheck-target-libitm:
48603@if target-libitm
48604maybe-installcheck-target-libitm: installcheck-target-libitm
48605
48606installcheck-target-libitm: \
48607 configure-target-libitm
48608 @: $(MAKE); $(unstage)
22121df0 48609 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48610 r=`${PWD_COMMAND}`; export r; \
48611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48612 $(NORMAL_TARGET_EXPORTS) \
22121df0 48613 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48614 for flag in $(EXTRA_TARGET_FLAGS); do \
48615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48616 done; \
48617 (cd $(TARGET_SUBDIR)/libitm && \
48618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48620 "RANLIB=$${RANLIB}" \
48621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48622 installcheck) \
48623 || exit 1
48624
48625@endif target-libitm
48626
48627.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
48628maybe-mostlyclean-target-libitm:
48629@if target-libitm
48630maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
48631
48632mostlyclean-target-libitm:
48633 @: $(MAKE); $(unstage)
22121df0 48634 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48635 r=`${PWD_COMMAND}`; export r; \
48636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48637 $(NORMAL_TARGET_EXPORTS) \
22121df0 48638 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48639 for flag in $(EXTRA_TARGET_FLAGS); do \
48640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48641 done; \
48642 (cd $(TARGET_SUBDIR)/libitm && \
48643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48645 "RANLIB=$${RANLIB}" \
48646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48647 mostlyclean) \
48648 || exit 1
48649
48650@endif target-libitm
48651
48652.PHONY: maybe-clean-target-libitm clean-target-libitm
48653maybe-clean-target-libitm:
48654@if target-libitm
48655maybe-clean-target-libitm: clean-target-libitm
48656
48657clean-target-libitm:
48658 @: $(MAKE); $(unstage)
22121df0 48659 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48660 r=`${PWD_COMMAND}`; export r; \
48661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48662 $(NORMAL_TARGET_EXPORTS) \
22121df0 48663 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48664 for flag in $(EXTRA_TARGET_FLAGS); do \
48665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48666 done; \
48667 (cd $(TARGET_SUBDIR)/libitm && \
48668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48670 "RANLIB=$${RANLIB}" \
48671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48672 clean) \
48673 || exit 1
48674
48675@endif target-libitm
48676
48677.PHONY: maybe-distclean-target-libitm distclean-target-libitm
48678maybe-distclean-target-libitm:
48679@if target-libitm
48680maybe-distclean-target-libitm: distclean-target-libitm
48681
48682distclean-target-libitm:
48683 @: $(MAKE); $(unstage)
22121df0 48684 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48685 r=`${PWD_COMMAND}`; export r; \
48686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48687 $(NORMAL_TARGET_EXPORTS) \
22121df0 48688 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48689 for flag in $(EXTRA_TARGET_FLAGS); do \
48690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48691 done; \
48692 (cd $(TARGET_SUBDIR)/libitm && \
48693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48695 "RANLIB=$${RANLIB}" \
48696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48697 distclean) \
48698 || exit 1
48699
48700@endif target-libitm
48701
48702.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
48703maybe-maintainer-clean-target-libitm:
48704@if target-libitm
48705maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
48706
48707maintainer-clean-target-libitm:
48708 @: $(MAKE); $(unstage)
22121df0 48709 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48710 r=`${PWD_COMMAND}`; export r; \
48711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48712 $(NORMAL_TARGET_EXPORTS) \
22121df0 48713 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48714 for flag in $(EXTRA_TARGET_FLAGS); do \
48715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48716 done; \
48717 (cd $(TARGET_SUBDIR)/libitm && \
48718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48720 "RANLIB=$${RANLIB}" \
48721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48722 maintainer-clean) \
48723 || exit 1
48724
48725@endif target-libitm
48726
48727
48728
48729
48730
48731.PHONY: configure-target-libatomic maybe-configure-target-libatomic
48732maybe-configure-target-libatomic:
48733@if gcc-bootstrap
48734configure-target-libatomic: stage_current
48735@endif gcc-bootstrap
48736@if target-libatomic
48737maybe-configure-target-libatomic: configure-target-libatomic
48738configure-target-libatomic:
48739 @: $(MAKE); $(unstage)
48740 @r=`${PWD_COMMAND}`; export r; \
48741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48742 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
48743 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
48744 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
48745 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
48746 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
48747 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
48748 else \
48749 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
48750 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
48751 fi; \
48752 else \
48753 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
48754 fi; \
48755 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 48756 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
48757 $(NORMAL_TARGET_EXPORTS) \
48758 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
48759 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
48760 case $(srcdir) in \
48761 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48762 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
48763 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
48764 esac; \
1b6c0831 48765 module_srcdir=libatomic; \
7ec59b9e 48766 rm -f no-such-file || : ; \
1b6c0831
L
48767 CONFIG_SITE=no-such-file $(SHELL) \
48768 $$s/$$module_srcdir/configure \
48769 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 48770 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 48771 --target=${target_alias} \
7ec59b9e
L
48772 || exit 1
48773@endif target-libatomic
48774
48775
48776
48777
48778
48779.PHONY: all-target-libatomic maybe-all-target-libatomic
48780maybe-all-target-libatomic:
48781@if gcc-bootstrap
48782all-target-libatomic: stage_current
48783@endif gcc-bootstrap
48784@if target-libatomic
48785TARGET-target-libatomic=all
48786maybe-all-target-libatomic: all-target-libatomic
48787all-target-libatomic: configure-target-libatomic
48788 @: $(MAKE); $(unstage)
48789 @r=`${PWD_COMMAND}`; export r; \
48790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48791 $(NORMAL_TARGET_EXPORTS) \
48792 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 48793 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
48794 $(TARGET-target-libatomic))
48795@endif target-libatomic
48796
48797
48798
48799
48800
48801.PHONY: check-target-libatomic maybe-check-target-libatomic
48802maybe-check-target-libatomic:
48803@if target-libatomic
48804maybe-check-target-libatomic: check-target-libatomic
48805
48806check-target-libatomic:
48807 @: $(MAKE); $(unstage)
48808 @r=`${PWD_COMMAND}`; export r; \
48809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48810 $(NORMAL_TARGET_EXPORTS) \
48811 (cd $(TARGET_SUBDIR)/libatomic && \
48812 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
48813
48814@endif target-libatomic
48815
48816.PHONY: install-target-libatomic maybe-install-target-libatomic
48817maybe-install-target-libatomic:
48818@if target-libatomic
48819maybe-install-target-libatomic: install-target-libatomic
48820
48821install-target-libatomic: installdirs
48822 @: $(MAKE); $(unstage)
48823 @r=`${PWD_COMMAND}`; export r; \
48824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48825 $(NORMAL_TARGET_EXPORTS) \
48826 (cd $(TARGET_SUBDIR)/libatomic && \
48827 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
48828
48829@endif target-libatomic
48830
48831.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
48832maybe-install-strip-target-libatomic:
48833@if target-libatomic
48834maybe-install-strip-target-libatomic: install-strip-target-libatomic
48835
48836install-strip-target-libatomic: installdirs
48837 @: $(MAKE); $(unstage)
48838 @r=`${PWD_COMMAND}`; export r; \
48839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48840 $(NORMAL_TARGET_EXPORTS) \
48841 (cd $(TARGET_SUBDIR)/libatomic && \
48842 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
48843
48844@endif target-libatomic
48845
48846# Other targets (info, dvi, pdf, etc.)
48847
48848.PHONY: maybe-info-target-libatomic info-target-libatomic
48849maybe-info-target-libatomic:
48850@if target-libatomic
48851maybe-info-target-libatomic: info-target-libatomic
48852
48853info-target-libatomic: \
48854 configure-target-libatomic
48855 @: $(MAKE); $(unstage)
22121df0 48856 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48857 r=`${PWD_COMMAND}`; export r; \
48858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48859 $(NORMAL_TARGET_EXPORTS) \
22121df0 48860 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48861 for flag in $(EXTRA_TARGET_FLAGS); do \
48862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48863 done; \
48864 (cd $(TARGET_SUBDIR)/libatomic && \
48865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48867 "RANLIB=$${RANLIB}" \
48868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48869 info) \
48870 || exit 1
48871
48872@endif target-libatomic
48873
48874.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
48875maybe-dvi-target-libatomic:
48876@if target-libatomic
48877maybe-dvi-target-libatomic: dvi-target-libatomic
48878
48879dvi-target-libatomic: \
48880 configure-target-libatomic
48881 @: $(MAKE); $(unstage)
22121df0 48882 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48883 r=`${PWD_COMMAND}`; export r; \
48884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48885 $(NORMAL_TARGET_EXPORTS) \
22121df0 48886 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48887 for flag in $(EXTRA_TARGET_FLAGS); do \
48888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48889 done; \
48890 (cd $(TARGET_SUBDIR)/libatomic && \
48891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48893 "RANLIB=$${RANLIB}" \
48894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48895 dvi) \
48896 || exit 1
48897
48898@endif target-libatomic
48899
48900.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
48901maybe-pdf-target-libatomic:
48902@if target-libatomic
48903maybe-pdf-target-libatomic: pdf-target-libatomic
48904
48905pdf-target-libatomic: \
48906 configure-target-libatomic
48907 @: $(MAKE); $(unstage)
22121df0 48908 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48909 r=`${PWD_COMMAND}`; export r; \
48910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48911 $(NORMAL_TARGET_EXPORTS) \
22121df0 48912 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48913 for flag in $(EXTRA_TARGET_FLAGS); do \
48914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48915 done; \
48916 (cd $(TARGET_SUBDIR)/libatomic && \
48917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48919 "RANLIB=$${RANLIB}" \
48920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48921 pdf) \
48922 || exit 1
48923
48924@endif target-libatomic
48925
48926.PHONY: maybe-html-target-libatomic html-target-libatomic
48927maybe-html-target-libatomic:
48928@if target-libatomic
48929maybe-html-target-libatomic: html-target-libatomic
48930
48931html-target-libatomic: \
48932 configure-target-libatomic
48933 @: $(MAKE); $(unstage)
22121df0 48934 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48935 r=`${PWD_COMMAND}`; export r; \
48936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48937 $(NORMAL_TARGET_EXPORTS) \
22121df0 48938 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48939 for flag in $(EXTRA_TARGET_FLAGS); do \
48940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48941 done; \
48942 (cd $(TARGET_SUBDIR)/libatomic && \
48943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48945 "RANLIB=$${RANLIB}" \
48946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48947 html) \
48948 || exit 1
48949
48950@endif target-libatomic
48951
48952.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
48953maybe-TAGS-target-libatomic:
48954@if target-libatomic
48955maybe-TAGS-target-libatomic: TAGS-target-libatomic
48956
48957TAGS-target-libatomic: \
48958 configure-target-libatomic
48959 @: $(MAKE); $(unstage)
22121df0 48960 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48961 r=`${PWD_COMMAND}`; export r; \
48962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48963 $(NORMAL_TARGET_EXPORTS) \
22121df0 48964 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48965 for flag in $(EXTRA_TARGET_FLAGS); do \
48966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48967 done; \
48968 (cd $(TARGET_SUBDIR)/libatomic && \
48969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48971 "RANLIB=$${RANLIB}" \
48972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48973 TAGS) \
48974 || exit 1
48975
48976@endif target-libatomic
48977
48978.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
48979maybe-install-info-target-libatomic:
48980@if target-libatomic
48981maybe-install-info-target-libatomic: install-info-target-libatomic
48982
48983install-info-target-libatomic: \
48984 configure-target-libatomic \
48985 info-target-libatomic
48986 @: $(MAKE); $(unstage)
22121df0 48987 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48988 r=`${PWD_COMMAND}`; export r; \
48989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48990 $(NORMAL_TARGET_EXPORTS) \
22121df0 48991 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48992 for flag in $(EXTRA_TARGET_FLAGS); do \
48993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48994 done; \
48995 (cd $(TARGET_SUBDIR)/libatomic && \
48996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48998 "RANLIB=$${RANLIB}" \
48999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49000 install-info) \
49001 || exit 1
49002
49003@endif target-libatomic
49004
49005.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
49006maybe-install-pdf-target-libatomic:
49007@if target-libatomic
49008maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
49009
49010install-pdf-target-libatomic: \
49011 configure-target-libatomic \
49012 pdf-target-libatomic
49013 @: $(MAKE); $(unstage)
22121df0 49014 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49015 r=`${PWD_COMMAND}`; export r; \
49016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49017 $(NORMAL_TARGET_EXPORTS) \
22121df0 49018 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49019 for flag in $(EXTRA_TARGET_FLAGS); do \
49020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49021 done; \
49022 (cd $(TARGET_SUBDIR)/libatomic && \
49023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49025 "RANLIB=$${RANLIB}" \
49026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49027 install-pdf) \
49028 || exit 1
49029
49030@endif target-libatomic
49031
49032.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
49033maybe-install-html-target-libatomic:
49034@if target-libatomic
49035maybe-install-html-target-libatomic: install-html-target-libatomic
49036
49037install-html-target-libatomic: \
49038 configure-target-libatomic \
49039 html-target-libatomic
49040 @: $(MAKE); $(unstage)
22121df0 49041 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49042 r=`${PWD_COMMAND}`; export r; \
49043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49044 $(NORMAL_TARGET_EXPORTS) \
22121df0 49045 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49046 for flag in $(EXTRA_TARGET_FLAGS); do \
49047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49048 done; \
49049 (cd $(TARGET_SUBDIR)/libatomic && \
49050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49052 "RANLIB=$${RANLIB}" \
49053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49054 install-html) \
49055 || exit 1
49056
49057@endif target-libatomic
49058
49059.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
49060maybe-installcheck-target-libatomic:
49061@if target-libatomic
49062maybe-installcheck-target-libatomic: installcheck-target-libatomic
49063
49064installcheck-target-libatomic: \
49065 configure-target-libatomic
49066 @: $(MAKE); $(unstage)
22121df0 49067 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49068 r=`${PWD_COMMAND}`; export r; \
49069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49070 $(NORMAL_TARGET_EXPORTS) \
22121df0 49071 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49072 for flag in $(EXTRA_TARGET_FLAGS); do \
49073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49074 done; \
49075 (cd $(TARGET_SUBDIR)/libatomic && \
49076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49078 "RANLIB=$${RANLIB}" \
49079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49080 installcheck) \
49081 || exit 1
49082
49083@endif target-libatomic
49084
49085.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
49086maybe-mostlyclean-target-libatomic:
49087@if target-libatomic
49088maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
49089
49090mostlyclean-target-libatomic:
49091 @: $(MAKE); $(unstage)
22121df0 49092 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49093 r=`${PWD_COMMAND}`; export r; \
49094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49095 $(NORMAL_TARGET_EXPORTS) \
22121df0 49096 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49097 for flag in $(EXTRA_TARGET_FLAGS); do \
49098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49099 done; \
49100 (cd $(TARGET_SUBDIR)/libatomic && \
49101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49103 "RANLIB=$${RANLIB}" \
49104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49105 mostlyclean) \
49106 || exit 1
49107
49108@endif target-libatomic
49109
49110.PHONY: maybe-clean-target-libatomic clean-target-libatomic
49111maybe-clean-target-libatomic:
49112@if target-libatomic
49113maybe-clean-target-libatomic: clean-target-libatomic
49114
49115clean-target-libatomic:
49116 @: $(MAKE); $(unstage)
22121df0 49117 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49118 r=`${PWD_COMMAND}`; export r; \
49119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49120 $(NORMAL_TARGET_EXPORTS) \
22121df0 49121 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49122 for flag in $(EXTRA_TARGET_FLAGS); do \
49123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49124 done; \
49125 (cd $(TARGET_SUBDIR)/libatomic && \
49126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49128 "RANLIB=$${RANLIB}" \
49129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49130 clean) \
49131 || exit 1
49132
49133@endif target-libatomic
49134
49135.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
49136maybe-distclean-target-libatomic:
49137@if target-libatomic
49138maybe-distclean-target-libatomic: distclean-target-libatomic
49139
49140distclean-target-libatomic:
49141 @: $(MAKE); $(unstage)
22121df0 49142 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49143 r=`${PWD_COMMAND}`; export r; \
49144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49145 $(NORMAL_TARGET_EXPORTS) \
22121df0 49146 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49147 for flag in $(EXTRA_TARGET_FLAGS); do \
49148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49149 done; \
49150 (cd $(TARGET_SUBDIR)/libatomic && \
49151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49153 "RANLIB=$${RANLIB}" \
49154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49155 distclean) \
49156 || exit 1
49157
49158@endif target-libatomic
49159
49160.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
49161maybe-maintainer-clean-target-libatomic:
49162@if target-libatomic
49163maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
49164
49165maintainer-clean-target-libatomic:
49166 @: $(MAKE); $(unstage)
22121df0 49167 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49168 r=`${PWD_COMMAND}`; export r; \
49169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49170 $(NORMAL_TARGET_EXPORTS) \
22121df0 49171 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49172 for flag in $(EXTRA_TARGET_FLAGS); do \
49173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49174 done; \
49175 (cd $(TARGET_SUBDIR)/libatomic && \
49176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49178 "RANLIB=$${RANLIB}" \
49179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49180 maintainer-clean) \
49181 || exit 1
49182
49183@endif target-libatomic
49184
49185
49186
7ec59b9e
L
49187@if target-libgomp
49188.PHONY: check-target-libgomp-c++
49189check-target-libgomp-c++:
49190 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
49191
e0541124
EB
49192.PHONY: check-target-libgomp-fortran
49193check-target-libgomp-fortran:
49194 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
49195
7ec59b9e
L
49196@endif target-libgomp
49197
49198@if target-libitm
49199.PHONY: check-target-libitm-c++
49200check-target-libitm-c++:
49201 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
49202
49203@endif target-libitm
49204
15723a45
NN
49205# ----------
49206# GCC module
49207# ----------
49208
319cab08 49209@if gcc-no-bootstrap
252b5132 49210.PHONY: cross
72b2455a 49211cross: all-build all-gas all-ld
b40e3958
L
49212 @r=`${PWD_COMMAND}`; export r; \
49213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 49214 $(HOST_EXPORTS) \
252b5132 49215 echo "Building the C and C++ compiler"; \
5cec67bf 49216 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 49217 @r=`${PWD_COMMAND}`; export r; \
22121df0 49218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 49219 echo "Building runtime libraries"; \
656fdd47 49220 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 49221@endif gcc-no-bootstrap
252b5132 49222
6bd3dfaa 49223@if gcc
c50523ce
L
49224
49225.PHONY: check-gcc-c check-c
49226check-gcc-c:
49227 r=`${PWD_COMMAND}`; export r; \
49228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49229 $(HOST_EXPORTS) \
49230 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
49231check-c: check-gcc-c
49232
49233.PHONY: check-gcc-c++ check-c++
7d695d07 49234check-gcc-c++:
c50523ce
L
49235 r=`${PWD_COMMAND}`; export r; \
49236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49237 $(HOST_EXPORTS) \
7ec59b9e 49238 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 49239check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
49240
49241.PHONY: check-gcc-fortran check-fortran
49242check-gcc-fortran:
49243 r=`${PWD_COMMAND}`; export r; \
49244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49245 $(HOST_EXPORTS) \
49246 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e0541124 49247check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran
c50523ce 49248
c50523ce
L
49249.PHONY: check-gcc-ada check-ada
49250check-gcc-ada:
49251 r=`${PWD_COMMAND}`; export r; \
49252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49253 $(HOST_EXPORTS) \
49254 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
49255check-ada: check-gcc-ada check-target-libada
49256
49257.PHONY: check-gcc-objc check-objc
49258check-gcc-objc:
49259 r=`${PWD_COMMAND}`; export r; \
49260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49261 $(HOST_EXPORTS) \
49262 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
49263check-objc: check-gcc-objc check-target-libobjc
49264
49265.PHONY: check-gcc-obj-c++ check-obj-c++
49266check-gcc-obj-c++:
49267 r=`${PWD_COMMAND}`; export r; \
49268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49269 $(HOST_EXPORTS) \
49270 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
49271check-obj-c++: check-gcc-obj-c++
7d695d07 49272
e552509b
ILT
49273.PHONY: check-gcc-go check-go
49274check-gcc-go:
49275 r=`${PWD_COMMAND}`; export r; \
49276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49277 $(HOST_EXPORTS) \
49278 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
e3f56a99 49279check-go: check-gcc-go check-target-libgo
e552509b 49280
252b5132 49281
7ec59b9e
L
49282# The gcc part of install-no-fixedincludes, which relies on an intimate
49283# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
49284.PHONY: gcc-install-no-fixedincludes
49285gcc-install-no-fixedincludes:
15723a45 49286 @if [ -f ./gcc/Makefile ]; then \
b40e3958 49287 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 49288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 49289 $(HOST_EXPORTS) \
7ec59b9e
L
49290 (cd ./gcc \
49291 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 49292 else true; fi
6bd3dfaa 49293@endif gcc
4fa63067 49294
b813574b
PB
49295# ---------------------
49296# GCC bootstrap support
49297# ---------------------
4fa63067 49298
b813574b
PB
49299# We track the current stage (the one in 'gcc') in the stage_current file.
49300# stage_last instead tracks the stage that was built last. These targets
49301# are dummy when toplevel bootstrap is not active.
4fa63067 49302
f70224b5 49303# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
49304# there, so $(unstage) should be run at various points. To avoid excessive
49305# recursive invocations of make, we "inline" them using a variable. These
49306# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
49307# to avoid warnings from the GNU Make job server.
f70224b5
PB
49308
49309unstage = :
49310stage = :
c52c6897 49311current_stage = ""
f70224b5 49312
b813574b 49313@if gcc-bootstrap
9daf3993 49314unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 49315stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 49316current_stage = "`cat stage_current 2> /dev/null`"
b813574b 49317@endif gcc-bootstrap
4fa63067 49318
f70224b5
PB
49319.PHONY: unstage stage
49320unstage:
0aed8855 49321 @: $(MAKE); $(unstage)
b813574b 49322stage:
0aed8855 49323 @: $(MAKE); $(stage)
1d39f329 49324
80911fe1
PB
49325# Disable commands for lean bootstrap.
49326LEAN = false
49327
dfdffa2c
PB
49328# We name the build directories for the various stages "stage1-gcc",
49329# "stage2-gcc","stage3-gcc", etc.
49330
49331# Since the 'compare' process will fail (on debugging information) if any
49332# directory names are different, we need to link the gcc directory for
0aed8855 49333# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
49334# the build directories constant as well. For the latter, we use naked names
49335# like 'gcc', because the scripts in that directory assume it. We use
49336# mv on platforms where symlinks to directories do not work or are not
49337# reliable.
49338
1d39f329
NN
49339# 'touch' doesn't work right on some platforms.
49340STAMP = echo timestamp >
49341
dfdffa2c
PB
49342# We only want to compare .o files, so set this!
49343objext = .o
49344
dfdffa2c 49345
319cab08 49346.PHONY: stage1-start stage1-end
dfdffa2c 49347
656fdd47 49348stage1-start::
0aed8855 49349 @: $(MAKE); $(stage); \
22121df0 49350 echo stage1 > stage_current; \
b00612cc 49351 echo stage1 > stage_last; \
0aed8855 49352 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49353@if bfd
b00612cc
PB
49354 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
49355 mkdir stage1-bfd; \
22121df0 49356 mv stage1-bfd bfd
72b2455a
PB
49357@endif bfd
49358@if opcodes
b00612cc
PB
49359 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
49360 mkdir stage1-opcodes; \
22121df0 49361 mv stage1-opcodes opcodes
72b2455a
PB
49362@endif opcodes
49363@if binutils
b00612cc
PB
49364 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
49365 mkdir stage1-binutils; \
22121df0 49366 mv stage1-binutils binutils
72b2455a 49367@endif binutils
201f096f 49368@if fixincludes
49369 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
49370 mkdir stage1-fixincludes; \
22121df0 49371 mv stage1-fixincludes fixincludes
201f096f 49372@endif fixincludes
72b2455a 49373@if gas
b00612cc
PB
49374 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
49375 mkdir stage1-gas; \
22121df0 49376 mv stage1-gas gas
72b2455a
PB
49377@endif gas
49378@if gcc
b00612cc
PB
49379 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
49380 mkdir stage1-gcc; \
22121df0 49381 mv stage1-gcc gcc
72b2455a 49382@endif gcc
4b900473
PB
49383@if gmp
49384 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
49385 mkdir stage1-gmp; \
22121df0 49386 mv stage1-gmp gmp
4b900473
PB
49387@endif gmp
49388@if mpfr
49389 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
49390 mkdir stage1-mpfr; \
22121df0 49391 mv stage1-mpfr mpfr
4b900473 49392@endif mpfr
e8a5fa9c
RW
49393@if mpc
49394 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
49395 mkdir stage1-mpc; \
22121df0 49396 mv stage1-mpc mpc
e8a5fa9c 49397@endif mpc
7ec59b9e
L
49398@if isl
49399 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
49400 mkdir stage1-isl; \
22121df0 49401 mv stage1-isl isl
7ec59b9e 49402@endif isl
1f53ca9a
AO
49403@if libelf
49404 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
49405 mkdir stage1-libelf; \
22121df0 49406 mv stage1-libelf libelf
1f53ca9a 49407@endif libelf
93f9b408
ILT
49408@if gold
49409 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
49410 mkdir stage1-gold; \
22121df0 49411 mv stage1-gold gold
93f9b408 49412@endif gold
72b2455a 49413@if intl
b00612cc
PB
49414 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
49415 mkdir stage1-intl; \
22121df0 49416 mv stage1-intl intl
72b2455a
PB
49417@endif intl
49418@if ld
b00612cc
PB
49419 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
49420 mkdir stage1-ld; \
22121df0 49421 mv stage1-ld ld
72b2455a 49422@endif ld
2bf680c4
ILT
49423@if libbacktrace
49424 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
49425 mkdir stage1-libbacktrace; \
22121df0 49426 mv stage1-libbacktrace libbacktrace
2bf680c4 49427@endif libbacktrace
72b2455a 49428@if libcpp
b00612cc
PB
49429 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
49430 mkdir stage1-libcpp; \
22121df0 49431 mv stage1-libcpp libcpp
72b2455a 49432@endif libcpp
be01d343
PB
49433@if libdecnumber
49434 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
49435 mkdir stage1-libdecnumber; \
22121df0 49436 mv stage1-libdecnumber libdecnumber
be01d343 49437@endif libdecnumber
72b2455a 49438@if libiberty
b00612cc
PB
49439 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
49440 mkdir stage1-libiberty; \
22121df0 49441 mv stage1-libiberty libiberty
72b2455a 49442@endif libiberty
1b6c0831
L
49443@if libiberty-linker-plugin
49444 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
49445 mkdir stage1-libiberty-linker-plugin; \
22121df0 49446 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 49447@endif libiberty-linker-plugin
016a3251
DD
49448@if libiconv
49449 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
49450 mkdir stage1-libiconv; \
49451 mv stage1-libiconv libiconv
49452@endif libiconv
72b2455a 49453@if zlib
b00612cc
PB
49454 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
49455 mkdir stage1-zlib; \
22121df0 49456 mv stage1-zlib zlib
72b2455a 49457@endif zlib
700d40ca
ILT
49458@if lto-plugin
49459 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
49460 mkdir stage1-lto-plugin; \
22121df0 49461 mv stage1-lto-plugin lto-plugin
700d40ca 49462@endif lto-plugin
0e65dfba
NA
49463@if libctf
49464 @cd $(HOST_SUBDIR); [ -d stage1-libctf ] || \
49465 mkdir stage1-libctf; \
49466 mv stage1-libctf libctf
49467@endif libctf
0aed8855
PB
49468 @[ -d stage1-$(TARGET_SUBDIR) ] || \
49469 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 49470 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 49471
80911fe1 49472stage1-end::
72b2455a 49473@if bfd
22121df0
L
49474 @if test -d $(HOST_SUBDIR)/bfd; then \
49475 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 49476 fi
72b2455a
PB
49477@endif bfd
49478@if opcodes
22121df0
L
49479 @if test -d $(HOST_SUBDIR)/opcodes; then \
49480 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 49481 fi
72b2455a
PB
49482@endif opcodes
49483@if binutils
22121df0
L
49484 @if test -d $(HOST_SUBDIR)/binutils; then \
49485 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 49486 fi
72b2455a 49487@endif binutils
201f096f 49488@if fixincludes
22121df0
L
49489 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49490 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 49491 fi
49492@endif fixincludes
72b2455a 49493@if gas
22121df0
L
49494 @if test -d $(HOST_SUBDIR)/gas; then \
49495 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 49496 fi
72b2455a
PB
49497@endif gas
49498@if gcc
22121df0
L
49499 @if test -d $(HOST_SUBDIR)/gcc; then \
49500 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 49501 fi
72b2455a 49502@endif gcc
4b900473 49503@if gmp
22121df0
L
49504 @if test -d $(HOST_SUBDIR)/gmp; then \
49505 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
49506 fi
49507@endif gmp
49508@if mpfr
22121df0
L
49509 @if test -d $(HOST_SUBDIR)/mpfr; then \
49510 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
49511 fi
49512@endif mpfr
e8a5fa9c 49513@if mpc
22121df0
L
49514 @if test -d $(HOST_SUBDIR)/mpc; then \
49515 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
49516 fi
49517@endif mpc
7ec59b9e 49518@if isl
22121df0
L
49519 @if test -d $(HOST_SUBDIR)/isl; then \
49520 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 49521 fi
7ec59b9e 49522@endif isl
1f53ca9a 49523@if libelf
22121df0
L
49524 @if test -d $(HOST_SUBDIR)/libelf; then \
49525 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
49526 fi
49527@endif libelf
93f9b408 49528@if gold
22121df0
L
49529 @if test -d $(HOST_SUBDIR)/gold; then \
49530 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
49531 fi
49532@endif gold
72b2455a 49533@if intl
22121df0
L
49534 @if test -d $(HOST_SUBDIR)/intl; then \
49535 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 49536 fi
72b2455a
PB
49537@endif intl
49538@if ld
22121df0
L
49539 @if test -d $(HOST_SUBDIR)/ld; then \
49540 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 49541 fi
72b2455a 49542@endif ld
2bf680c4 49543@if libbacktrace
22121df0
L
49544 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49545 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
49546 fi
49547@endif libbacktrace
72b2455a 49548@if libcpp
22121df0
L
49549 @if test -d $(HOST_SUBDIR)/libcpp; then \
49550 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 49551 fi
72b2455a 49552@endif libcpp
be01d343 49553@if libdecnumber
22121df0
L
49554 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49555 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 49556 fi
be01d343 49557@endif libdecnumber
72b2455a 49558@if libiberty
22121df0
L
49559 @if test -d $(HOST_SUBDIR)/libiberty; then \
49560 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 49561 fi
72b2455a 49562@endif libiberty
1b6c0831 49563@if libiberty-linker-plugin
22121df0
L
49564 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49565 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
49566 fi
49567@endif libiberty-linker-plugin
016a3251
DD
49568@if libiconv
49569 @if test -d $(HOST_SUBDIR)/libiconv; then \
49570 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
49571 fi
49572@endif libiconv
72b2455a 49573@if zlib
22121df0
L
49574 @if test -d $(HOST_SUBDIR)/zlib; then \
49575 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 49576 fi
72b2455a 49577@endif zlib
700d40ca 49578@if lto-plugin
22121df0
L
49579 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49580 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
49581 fi
49582@endif lto-plugin
0e65dfba
NA
49583@if libctf
49584 @if test -d $(HOST_SUBDIR)/libctf; then \
49585 cd $(HOST_SUBDIR); mv libctf stage1-libctf; \
49586 fi
49587@endif libctf
22121df0
L
49588 @if test -d $(TARGET_SUBDIR); then \
49589 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 49590 fi
80911fe1 49591 rm -f stage_current
dfdffa2c 49592
973601e1 49593# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 49594# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49595# reconfigured either.
319cab08 49596.PHONY: stage1-bubble
656fdd47 49597stage1-bubble::
e360f423
PB
49598 @r=`${PWD_COMMAND}`; export r; \
49599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49600 if test -f stage1-lean ; then \
49601 echo Skipping rebuild of stage1; \
9cb3fa6f 49602 else \
f70224b5
PB
49603 $(MAKE) stage1-start; \
49604 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 49605 fi
72b2455a 49606
0df3d27f 49607.PHONY: all-stage1 clean-stage1
0df3d27f 49608do-clean: clean-stage1
0df3d27f 49609
72b2455a
PB
49610# FIXME: Will not need to be conditional when toplevel bootstrap is the
49611# only possibility, but now it conflicts with no-bootstrap rules
49612@if gcc-bootstrap
49613
49614
49615
49616
0df3d27f 49617# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49618
0df3d27f 49619.PHONY: distclean-stage1
72b2455a 49620distclean-stage1::
0aed8855 49621 @: $(MAKE); $(stage)
e00a73e3 49622 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 49623 rm -rf stage1-*
72b2455a
PB
49624
49625
49626@endif gcc-bootstrap
49627
49628
49629.PHONY: stage2-start stage2-end
49630
49631stage2-start::
0aed8855 49632 @: $(MAKE); $(stage); \
22121df0 49633 echo stage2 > stage_current; \
b00612cc 49634 echo stage2 > stage_last; \
0aed8855 49635 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49636@if bfd
b00612cc
PB
49637 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
49638 mkdir stage2-bfd; \
22121df0 49639 mv stage2-bfd bfd; \
80911fe1 49640 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49641@endif bfd
49642@if opcodes
b00612cc
PB
49643 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
49644 mkdir stage2-opcodes; \
22121df0 49645 mv stage2-opcodes opcodes; \
80911fe1 49646 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49647@endif opcodes
49648@if binutils
b00612cc
PB
49649 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
49650 mkdir stage2-binutils; \
22121df0 49651 mv stage2-binutils binutils; \
80911fe1 49652 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49653@endif binutils
201f096f 49654@if fixincludes
49655 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
49656 mkdir stage2-fixincludes; \
22121df0 49657 mv stage2-fixincludes fixincludes; \
201f096f 49658 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49659@endif fixincludes
72b2455a 49660@if gas
b00612cc
PB
49661 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
49662 mkdir stage2-gas; \
22121df0 49663 mv stage2-gas gas; \
80911fe1 49664 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49665@endif gas
49666@if gcc
b00612cc
PB
49667 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
49668 mkdir stage2-gcc; \
22121df0 49669 mv stage2-gcc gcc; \
80911fe1 49670 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49671@endif gcc
4b900473
PB
49672@if gmp
49673 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
49674 mkdir stage2-gmp; \
22121df0 49675 mv stage2-gmp gmp; \
4b900473
PB
49676 mv stage1-gmp prev-gmp || test -f stage1-lean
49677@endif gmp
49678@if mpfr
49679 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
49680 mkdir stage2-mpfr; \
22121df0 49681 mv stage2-mpfr mpfr; \
4b900473
PB
49682 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49683@endif mpfr
e8a5fa9c
RW
49684@if mpc
49685 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
49686 mkdir stage2-mpc; \
22121df0 49687 mv stage2-mpc mpc; \
e8a5fa9c
RW
49688 mv stage1-mpc prev-mpc || test -f stage1-lean
49689@endif mpc
7ec59b9e
L
49690@if isl
49691 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
49692 mkdir stage2-isl; \
22121df0 49693 mv stage2-isl isl; \
7ec59b9e
L
49694 mv stage1-isl prev-isl || test -f stage1-lean
49695@endif isl
1f53ca9a
AO
49696@if libelf
49697 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
49698 mkdir stage2-libelf; \
22121df0 49699 mv stage2-libelf libelf; \
1f53ca9a
AO
49700 mv stage1-libelf prev-libelf || test -f stage1-lean
49701@endif libelf
93f9b408
ILT
49702@if gold
49703 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
49704 mkdir stage2-gold; \
22121df0 49705 mv stage2-gold gold; \
93f9b408
ILT
49706 mv stage1-gold prev-gold || test -f stage1-lean
49707@endif gold
72b2455a 49708@if intl
b00612cc
PB
49709 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
49710 mkdir stage2-intl; \
22121df0 49711 mv stage2-intl intl; \
80911fe1 49712 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49713@endif intl
49714@if ld
b00612cc
PB
49715 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
49716 mkdir stage2-ld; \
22121df0 49717 mv stage2-ld ld; \
80911fe1 49718 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49719@endif ld
2bf680c4
ILT
49720@if libbacktrace
49721 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
49722 mkdir stage2-libbacktrace; \
22121df0 49723 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
49724 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49725@endif libbacktrace
72b2455a 49726@if libcpp
b00612cc
PB
49727 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
49728 mkdir stage2-libcpp; \
22121df0 49729 mv stage2-libcpp libcpp; \
80911fe1 49730 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49731@endif libcpp
be01d343
PB
49732@if libdecnumber
49733 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
49734 mkdir stage2-libdecnumber; \
22121df0 49735 mv stage2-libdecnumber libdecnumber; \
80911fe1 49736 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49737@endif libdecnumber
72b2455a 49738@if libiberty
b00612cc
PB
49739 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
49740 mkdir stage2-libiberty; \
22121df0 49741 mv stage2-libiberty libiberty; \
80911fe1 49742 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49743@endif libiberty
1b6c0831
L
49744@if libiberty-linker-plugin
49745 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
49746 mkdir stage2-libiberty-linker-plugin; \
22121df0 49747 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49748 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49749@endif libiberty-linker-plugin
016a3251
DD
49750@if libiconv
49751 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
49752 mkdir stage2-libiconv; \
49753 mv stage2-libiconv libiconv; \
49754 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49755@endif libiconv
72b2455a 49756@if zlib
b00612cc
PB
49757 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
49758 mkdir stage2-zlib; \
22121df0 49759 mv stage2-zlib zlib; \
80911fe1 49760 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 49761@endif zlib
700d40ca
ILT
49762@if lto-plugin
49763 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
49764 mkdir stage2-lto-plugin; \
22121df0 49765 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
49766 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49767@endif lto-plugin
0e65dfba
NA
49768@if libctf
49769 @cd $(HOST_SUBDIR); [ -d stage2-libctf ] || \
49770 mkdir stage2-libctf; \
49771 mv stage2-libctf libctf; \
49772 mv stage1-libctf prev-libctf || test -f stage1-lean
49773@endif libctf
0aed8855
PB
49774 @[ -d stage2-$(TARGET_SUBDIR) ] || \
49775 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 49776 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49777 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 49778
80911fe1 49779stage2-end::
72b2455a 49780@if bfd
22121df0
L
49781 @if test -d $(HOST_SUBDIR)/bfd; then \
49782 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
49783 mv prev-bfd stage1-bfd; : ; \
0aed8855 49784 fi
72b2455a
PB
49785@endif bfd
49786@if opcodes
22121df0
L
49787 @if test -d $(HOST_SUBDIR)/opcodes; then \
49788 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
49789 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 49790 fi
72b2455a
PB
49791@endif opcodes
49792@if binutils
22121df0
L
49793 @if test -d $(HOST_SUBDIR)/binutils; then \
49794 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
49795 mv prev-binutils stage1-binutils; : ; \
0aed8855 49796 fi
72b2455a 49797@endif binutils
201f096f 49798@if fixincludes
22121df0
L
49799 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49800 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
49801 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 49802 fi
49803@endif fixincludes
72b2455a 49804@if gas
22121df0
L
49805 @if test -d $(HOST_SUBDIR)/gas; then \
49806 cd $(HOST_SUBDIR); mv gas stage2-gas; \
49807 mv prev-gas stage1-gas; : ; \
0aed8855 49808 fi
72b2455a
PB
49809@endif gas
49810@if gcc
22121df0
L
49811 @if test -d $(HOST_SUBDIR)/gcc; then \
49812 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
49813 mv prev-gcc stage1-gcc; : ; \
0aed8855 49814 fi
72b2455a 49815@endif gcc
4b900473 49816@if gmp
22121df0
L
49817 @if test -d $(HOST_SUBDIR)/gmp; then \
49818 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
49819 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
49820 fi
49821@endif gmp
49822@if mpfr
22121df0
L
49823 @if test -d $(HOST_SUBDIR)/mpfr; then \
49824 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
49825 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
49826 fi
49827@endif mpfr
e8a5fa9c 49828@if mpc
22121df0
L
49829 @if test -d $(HOST_SUBDIR)/mpc; then \
49830 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
49831 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
49832 fi
49833@endif mpc
7ec59b9e 49834@if isl
22121df0
L
49835 @if test -d $(HOST_SUBDIR)/isl; then \
49836 cd $(HOST_SUBDIR); mv isl stage2-isl; \
49837 mv prev-isl stage1-isl; : ; \
e28c595f 49838 fi
7ec59b9e 49839@endif isl
1f53ca9a 49840@if libelf
22121df0
L
49841 @if test -d $(HOST_SUBDIR)/libelf; then \
49842 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
49843 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
49844 fi
49845@endif libelf
93f9b408 49846@if gold
22121df0
L
49847 @if test -d $(HOST_SUBDIR)/gold; then \
49848 cd $(HOST_SUBDIR); mv gold stage2-gold; \
49849 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
49850 fi
49851@endif gold
72b2455a 49852@if intl
22121df0
L
49853 @if test -d $(HOST_SUBDIR)/intl; then \
49854 cd $(HOST_SUBDIR); mv intl stage2-intl; \
49855 mv prev-intl stage1-intl; : ; \
0aed8855 49856 fi
72b2455a
PB
49857@endif intl
49858@if ld
22121df0
L
49859 @if test -d $(HOST_SUBDIR)/ld; then \
49860 cd $(HOST_SUBDIR); mv ld stage2-ld; \
49861 mv prev-ld stage1-ld; : ; \
0aed8855 49862 fi
72b2455a 49863@endif ld
2bf680c4 49864@if libbacktrace
22121df0
L
49865 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49866 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
49867 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
49868 fi
49869@endif libbacktrace
72b2455a 49870@if libcpp
22121df0
L
49871 @if test -d $(HOST_SUBDIR)/libcpp; then \
49872 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
49873 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 49874 fi
72b2455a 49875@endif libcpp
be01d343 49876@if libdecnumber
22121df0
L
49877 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49878 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
49879 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 49880 fi
be01d343 49881@endif libdecnumber
72b2455a 49882@if libiberty
22121df0
L
49883 @if test -d $(HOST_SUBDIR)/libiberty; then \
49884 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
49885 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 49886 fi
72b2455a 49887@endif libiberty
1b6c0831 49888@if libiberty-linker-plugin
22121df0
L
49889 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49890 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
49891 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
49892 fi
49893@endif libiberty-linker-plugin
016a3251
DD
49894@if libiconv
49895 @if test -d $(HOST_SUBDIR)/libiconv; then \
49896 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
49897 mv prev-libiconv stage1-libiconv; : ; \
49898 fi
49899@endif libiconv
72b2455a 49900@if zlib
22121df0
L
49901 @if test -d $(HOST_SUBDIR)/zlib; then \
49902 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
49903 mv prev-zlib stage1-zlib; : ; \
0aed8855 49904 fi
72b2455a 49905@endif zlib
700d40ca 49906@if lto-plugin
22121df0
L
49907 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49908 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
49909 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
49910 fi
49911@endif lto-plugin
0e65dfba
NA
49912@if libctf
49913 @if test -d $(HOST_SUBDIR)/libctf; then \
49914 cd $(HOST_SUBDIR); mv libctf stage2-libctf; \
49915 mv prev-libctf stage1-libctf; : ; \
49916 fi
49917@endif libctf
22121df0
L
49918 @if test -d $(TARGET_SUBDIR); then \
49919 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
49920 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 49921 fi
80911fe1 49922 rm -f stage_current
72b2455a 49923
973601e1 49924# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 49925# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49926# reconfigured either.
72b2455a
PB
49927.PHONY: stage2-bubble
49928stage2-bubble:: stage1-bubble
e360f423
PB
49929 @r=`${PWD_COMMAND}`; export r; \
49930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49931 if test -f stage2-lean || test -f stage1-lean ; then \
49932 echo Skipping rebuild of stage2; \
9cb3fa6f 49933 else \
f70224b5
PB
49934 $(MAKE) stage2-start; \
49935 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 49936 fi
72b2455a 49937
0df3d27f 49938.PHONY: all-stage2 clean-stage2
0df3d27f 49939do-clean: clean-stage2
0df3d27f 49940
72b2455a
PB
49941# FIXME: Will not need to be conditional when toplevel bootstrap is the
49942# only possibility, but now it conflicts with no-bootstrap rules
49943@if gcc-bootstrap
49944
49945
49946
80911fe1 49947.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
49948bootstrap2:
49949 echo stage2 > stage_final
49950 @r=`${PWD_COMMAND}`; export r; \
49951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49952 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 49953 @: $(MAKE); $(unstage)
be01d343
PB
49954 @r=`${PWD_COMMAND}`; export r; \
49955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49956 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 49957 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 49958
80911fe1
PB
49959bootstrap2-lean:
49960 echo stage2 > stage_final
49961 @r=`${PWD_COMMAND}`; export r; \
49962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49963 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
49964 @: $(MAKE); $(unstage)
49965 @r=`${PWD_COMMAND}`; export r; \
49966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49967 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
49968 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49969
72b2455a 49970
0df3d27f 49971# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49972distclean-stage1:: distclean-stage2
0df3d27f 49973.PHONY: distclean-stage2
72b2455a 49974distclean-stage2::
0aed8855 49975 @: $(MAKE); $(stage)
e00a73e3 49976 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 49977 rm -rf stage2-*
72b2455a
PB
49978
49979
49980@endif gcc-bootstrap
49981
49982
49983.PHONY: stage3-start stage3-end
49984
49985stage3-start::
0aed8855 49986 @: $(MAKE); $(stage); \
22121df0 49987 echo stage3 > stage_current; \
b00612cc 49988 echo stage3 > stage_last; \
0aed8855 49989 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49990@if bfd
b00612cc
PB
49991 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
49992 mkdir stage3-bfd; \
22121df0 49993 mv stage3-bfd bfd; \
80911fe1 49994 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
49995@endif bfd
49996@if opcodes
b00612cc
PB
49997 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
49998 mkdir stage3-opcodes; \
22121df0 49999 mv stage3-opcodes opcodes; \
80911fe1 50000 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
50001@endif opcodes
50002@if binutils
b00612cc
PB
50003 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
50004 mkdir stage3-binutils; \
22121df0 50005 mv stage3-binutils binutils; \
80911fe1 50006 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 50007@endif binutils
201f096f 50008@if fixincludes
50009 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
50010 mkdir stage3-fixincludes; \
22121df0 50011 mv stage3-fixincludes fixincludes; \
201f096f 50012 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
50013@endif fixincludes
72b2455a 50014@if gas
b00612cc
PB
50015 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
50016 mkdir stage3-gas; \
22121df0 50017 mv stage3-gas gas; \
80911fe1 50018 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
50019@endif gas
50020@if gcc
b00612cc
PB
50021 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
50022 mkdir stage3-gcc; \
22121df0 50023 mv stage3-gcc gcc; \
80911fe1 50024 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 50025@endif gcc
4b900473
PB
50026@if gmp
50027 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
50028 mkdir stage3-gmp; \
22121df0 50029 mv stage3-gmp gmp; \
4b900473
PB
50030 mv stage2-gmp prev-gmp || test -f stage2-lean
50031@endif gmp
50032@if mpfr
50033 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
50034 mkdir stage3-mpfr; \
22121df0 50035 mv stage3-mpfr mpfr; \
4b900473
PB
50036 mv stage2-mpfr prev-mpfr || test -f stage2-lean
50037@endif mpfr
e8a5fa9c
RW
50038@if mpc
50039 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
50040 mkdir stage3-mpc; \
22121df0 50041 mv stage3-mpc mpc; \
e8a5fa9c
RW
50042 mv stage2-mpc prev-mpc || test -f stage2-lean
50043@endif mpc
7ec59b9e
L
50044@if isl
50045 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
50046 mkdir stage3-isl; \
22121df0 50047 mv stage3-isl isl; \
7ec59b9e
L
50048 mv stage2-isl prev-isl || test -f stage2-lean
50049@endif isl
1f53ca9a
AO
50050@if libelf
50051 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
50052 mkdir stage3-libelf; \
22121df0 50053 mv stage3-libelf libelf; \
1f53ca9a
AO
50054 mv stage2-libelf prev-libelf || test -f stage2-lean
50055@endif libelf
93f9b408
ILT
50056@if gold
50057 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
50058 mkdir stage3-gold; \
22121df0 50059 mv stage3-gold gold; \
93f9b408
ILT
50060 mv stage2-gold prev-gold || test -f stage2-lean
50061@endif gold
72b2455a 50062@if intl
b00612cc
PB
50063 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
50064 mkdir stage3-intl; \
22121df0 50065 mv stage3-intl intl; \
80911fe1 50066 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
50067@endif intl
50068@if ld
b00612cc
PB
50069 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
50070 mkdir stage3-ld; \
22121df0 50071 mv stage3-ld ld; \
80911fe1 50072 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 50073@endif ld
2bf680c4
ILT
50074@if libbacktrace
50075 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
50076 mkdir stage3-libbacktrace; \
22121df0 50077 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
50078 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
50079@endif libbacktrace
72b2455a 50080@if libcpp
b00612cc
PB
50081 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
50082 mkdir stage3-libcpp; \
22121df0 50083 mv stage3-libcpp libcpp; \
80911fe1 50084 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 50085@endif libcpp
be01d343
PB
50086@if libdecnumber
50087 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
50088 mkdir stage3-libdecnumber; \
22121df0 50089 mv stage3-libdecnumber libdecnumber; \
80911fe1 50090 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 50091@endif libdecnumber
72b2455a 50092@if libiberty
b00612cc
PB
50093 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
50094 mkdir stage3-libiberty; \
22121df0 50095 mv stage3-libiberty libiberty; \
80911fe1 50096 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 50097@endif libiberty
1b6c0831
L
50098@if libiberty-linker-plugin
50099 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
50100 mkdir stage3-libiberty-linker-plugin; \
22121df0 50101 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50102 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
50103@endif libiberty-linker-plugin
016a3251
DD
50104@if libiconv
50105 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
50106 mkdir stage3-libiconv; \
50107 mv stage3-libiconv libiconv; \
50108 mv stage2-libiconv prev-libiconv || test -f stage2-lean
50109@endif libiconv
72b2455a 50110@if zlib
b00612cc
PB
50111 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
50112 mkdir stage3-zlib; \
22121df0 50113 mv stage3-zlib zlib; \
80911fe1 50114 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 50115@endif zlib
700d40ca
ILT
50116@if lto-plugin
50117 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
50118 mkdir stage3-lto-plugin; \
22121df0 50119 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
50120 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
50121@endif lto-plugin
0e65dfba
NA
50122@if libctf
50123 @cd $(HOST_SUBDIR); [ -d stage3-libctf ] || \
50124 mkdir stage3-libctf; \
50125 mv stage3-libctf libctf; \
50126 mv stage2-libctf prev-libctf || test -f stage2-lean
50127@endif libctf
0aed8855
PB
50128 @[ -d stage3-$(TARGET_SUBDIR) ] || \
50129 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 50130 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50131 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 50132
80911fe1 50133stage3-end::
72b2455a 50134@if bfd
22121df0
L
50135 @if test -d $(HOST_SUBDIR)/bfd; then \
50136 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
50137 mv prev-bfd stage2-bfd; : ; \
0aed8855 50138 fi
72b2455a
PB
50139@endif bfd
50140@if opcodes
22121df0
L
50141 @if test -d $(HOST_SUBDIR)/opcodes; then \
50142 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
50143 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 50144 fi
72b2455a
PB
50145@endif opcodes
50146@if binutils
22121df0
L
50147 @if test -d $(HOST_SUBDIR)/binutils; then \
50148 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
50149 mv prev-binutils stage2-binutils; : ; \
0aed8855 50150 fi
72b2455a 50151@endif binutils
201f096f 50152@if fixincludes
22121df0
L
50153 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50154 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
50155 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 50156 fi
50157@endif fixincludes
72b2455a 50158@if gas
22121df0
L
50159 @if test -d $(HOST_SUBDIR)/gas; then \
50160 cd $(HOST_SUBDIR); mv gas stage3-gas; \
50161 mv prev-gas stage2-gas; : ; \
0aed8855 50162 fi
72b2455a
PB
50163@endif gas
50164@if gcc
22121df0
L
50165 @if test -d $(HOST_SUBDIR)/gcc; then \
50166 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
50167 mv prev-gcc stage2-gcc; : ; \
0aed8855 50168 fi
72b2455a 50169@endif gcc
4b900473 50170@if gmp
22121df0
L
50171 @if test -d $(HOST_SUBDIR)/gmp; then \
50172 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
50173 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
50174 fi
50175@endif gmp
50176@if mpfr
22121df0
L
50177 @if test -d $(HOST_SUBDIR)/mpfr; then \
50178 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
50179 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
50180 fi
50181@endif mpfr
e8a5fa9c 50182@if mpc
22121df0
L
50183 @if test -d $(HOST_SUBDIR)/mpc; then \
50184 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
50185 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
50186 fi
50187@endif mpc
7ec59b9e 50188@if isl
22121df0
L
50189 @if test -d $(HOST_SUBDIR)/isl; then \
50190 cd $(HOST_SUBDIR); mv isl stage3-isl; \
50191 mv prev-isl stage2-isl; : ; \
e28c595f 50192 fi
7ec59b9e 50193@endif isl
1f53ca9a 50194@if libelf
22121df0
L
50195 @if test -d $(HOST_SUBDIR)/libelf; then \
50196 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
50197 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
50198 fi
50199@endif libelf
93f9b408 50200@if gold
22121df0
L
50201 @if test -d $(HOST_SUBDIR)/gold; then \
50202 cd $(HOST_SUBDIR); mv gold stage3-gold; \
50203 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
50204 fi
50205@endif gold
72b2455a 50206@if intl
22121df0
L
50207 @if test -d $(HOST_SUBDIR)/intl; then \
50208 cd $(HOST_SUBDIR); mv intl stage3-intl; \
50209 mv prev-intl stage2-intl; : ; \
0aed8855 50210 fi
72b2455a
PB
50211@endif intl
50212@if ld
22121df0
L
50213 @if test -d $(HOST_SUBDIR)/ld; then \
50214 cd $(HOST_SUBDIR); mv ld stage3-ld; \
50215 mv prev-ld stage2-ld; : ; \
0aed8855 50216 fi
72b2455a 50217@endif ld
2bf680c4 50218@if libbacktrace
22121df0
L
50219 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50220 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
50221 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
50222 fi
50223@endif libbacktrace
72b2455a 50224@if libcpp
22121df0
L
50225 @if test -d $(HOST_SUBDIR)/libcpp; then \
50226 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
50227 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 50228 fi
72b2455a 50229@endif libcpp
be01d343 50230@if libdecnumber
22121df0
L
50231 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50232 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
50233 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 50234 fi
be01d343 50235@endif libdecnumber
72b2455a 50236@if libiberty
22121df0
L
50237 @if test -d $(HOST_SUBDIR)/libiberty; then \
50238 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
50239 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 50240 fi
72b2455a 50241@endif libiberty
1b6c0831 50242@if libiberty-linker-plugin
22121df0
L
50243 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50244 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
50245 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
50246 fi
50247@endif libiberty-linker-plugin
016a3251
DD
50248@if libiconv
50249 @if test -d $(HOST_SUBDIR)/libiconv; then \
50250 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
50251 mv prev-libiconv stage2-libiconv; : ; \
50252 fi
50253@endif libiconv
72b2455a 50254@if zlib
22121df0
L
50255 @if test -d $(HOST_SUBDIR)/zlib; then \
50256 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
50257 mv prev-zlib stage2-zlib; : ; \
0aed8855 50258 fi
72b2455a 50259@endif zlib
700d40ca 50260@if lto-plugin
22121df0
L
50261 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50262 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
50263 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
50264 fi
50265@endif lto-plugin
0e65dfba
NA
50266@if libctf
50267 @if test -d $(HOST_SUBDIR)/libctf; then \
50268 cd $(HOST_SUBDIR); mv libctf stage3-libctf; \
50269 mv prev-libctf stage2-libctf; : ; \
50270 fi
50271@endif libctf
22121df0
L
50272 @if test -d $(TARGET_SUBDIR); then \
50273 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
50274 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 50275 fi
80911fe1 50276 rm -f stage_current
72b2455a 50277
973601e1 50278# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 50279# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50280# reconfigured either.
72b2455a
PB
50281.PHONY: stage3-bubble
50282stage3-bubble:: stage2-bubble
e360f423
PB
50283 @r=`${PWD_COMMAND}`; export r; \
50284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50285 if test -f stage3-lean || test -f stage2-lean ; then \
50286 echo Skipping rebuild of stage3; \
9cb3fa6f 50287 else \
f70224b5 50288 $(MAKE) stage3-start; \
80911fe1 50289 if $(LEAN); then \
22121df0
L
50290 rm -rf stage1-*; \
50291 $(STAMP) stage1-lean; \
80911fe1 50292 fi; \
f70224b5 50293 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 50294 fi
f6d183c0 50295 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 50296
0df3d27f 50297.PHONY: all-stage3 clean-stage3
0df3d27f 50298do-clean: clean-stage3
0df3d27f 50299
d545f33b
PB
50300# FIXME: Will not need to be conditional when toplevel bootstrap is the
50301# only possibility, but now it conflicts with no-bootstrap rules
50302@if gcc-bootstrap
72b2455a 50303
d545f33b 50304compare:
e360f423
PB
50305 @r=`${PWD_COMMAND}`; export r; \
50306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50307 if test -f stage2-lean; then \
22121df0
L
50308 echo Cannot compare object files as stage 2 was deleted.; \
50309 exit 0; \
d545f33b 50310 fi; \
0aed8855 50311 : $(MAKE); $(stage); \
22121df0
L
50312 rm -f .bad_compare; \
50313 echo Comparing stages 2 and 3; \
fda13ee8
AO
50314 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
50315 files=`find stage3-* -name "*$(objext)" -print | \
22121df0 50316 sed -n s,^stage$$sed-,,p`; \
e3f56a99 50317 for file in $${files}; do \
fda13ee8
AO
50318 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
50319 if test ! -f $$f1; then continue; fi; \
8520c408 50320 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
50321 if test $$? -eq 1; then \
50322 case $$file in \
e8a5fa9c 50323 @compare_exclusions@) \
f70224b5
PB
50324 echo warning: $$file differs ;; \
50325 *) \
50326 echo $$file differs >> .bad_compare ;; \
22121df0
L
50327 esac; \
50328 fi; \
50329 done; \
d545f33b
PB
50330 if [ -f .bad_compare ]; then \
50331 echo "Bootstrap comparison failure!"; \
50332 cat .bad_compare; \
50333 exit 1; \
50334 else \
c52c6897 50335 echo Comparison successful.; \
22121df0 50336 fi; \
d545f33b 50337 $(STAMP) compare
80911fe1
PB
50338 if $(LEAN); then \
50339 rm -rf stage2-*; \
50340 $(STAMP) stage2-lean; \
50341 fi
9cb3fa6f 50342
72b2455a 50343
72b2455a 50344
80911fe1 50345.PHONY: bootstrap bootstrap-lean
be01d343
PB
50346bootstrap:
50347 echo stage3 > stage_final
50348 @r=`${PWD_COMMAND}`; export r; \
50349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50350 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 50351 @: $(MAKE); $(unstage)
be01d343
PB
50352 @r=`${PWD_COMMAND}`; export r; \
50353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50354 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 50355 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 50356
80911fe1
PB
50357bootstrap-lean:
50358 echo stage3 > stage_final
50359 @r=`${PWD_COMMAND}`; export r; \
50360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50361 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
50362 @: $(MAKE); $(unstage)
50363 @r=`${PWD_COMMAND}`; export r; \
50364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50365 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
50366 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50367
72b2455a 50368
d545f33b
PB
50369# Rules to wipe a stage and all the following ones, also used for cleanstrap
50370distclean-stage2:: distclean-stage3
50371.PHONY: distclean-stage3
50372distclean-stage3::
0aed8855 50373 @: $(MAKE); $(stage)
e00a73e3 50374 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 50375 rm -rf stage3-* compare
0df3d27f 50376
9cb3fa6f 50377
d545f33b 50378.PHONY: cleanstrap
e00a73e3
PB
50379cleanstrap: do-distclean local-clean
50380 echo stage3 > stage_final
50381 @r=`${PWD_COMMAND}`; export r; \
50382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50383 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
50384 @: $(MAKE); $(unstage)
50385 @r=`${PWD_COMMAND}`; export r; \
50386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50387 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
50388 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50389
50390@endif gcc-bootstrap
50391
50392
72b2455a
PB
50393.PHONY: stage4-start stage4-end
50394
50395stage4-start::
0aed8855 50396 @: $(MAKE); $(stage); \
22121df0 50397 echo stage4 > stage_current; \
b00612cc 50398 echo stage4 > stage_last; \
0aed8855 50399 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50400@if bfd
b00612cc
PB
50401 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
50402 mkdir stage4-bfd; \
22121df0 50403 mv stage4-bfd bfd; \
80911fe1 50404 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
50405@endif bfd
50406@if opcodes
b00612cc
PB
50407 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
50408 mkdir stage4-opcodes; \
22121df0 50409 mv stage4-opcodes opcodes; \
80911fe1 50410 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
50411@endif opcodes
50412@if binutils
b00612cc
PB
50413 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
50414 mkdir stage4-binutils; \
22121df0 50415 mv stage4-binutils binutils; \
80911fe1 50416 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 50417@endif binutils
201f096f 50418@if fixincludes
50419 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
50420 mkdir stage4-fixincludes; \
22121df0 50421 mv stage4-fixincludes fixincludes; \
201f096f 50422 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
50423@endif fixincludes
72b2455a 50424@if gas
b00612cc
PB
50425 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
50426 mkdir stage4-gas; \
22121df0 50427 mv stage4-gas gas; \
80911fe1 50428 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
50429@endif gas
50430@if gcc
b00612cc
PB
50431 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
50432 mkdir stage4-gcc; \
22121df0 50433 mv stage4-gcc gcc; \
80911fe1 50434 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 50435@endif gcc
4b900473
PB
50436@if gmp
50437 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
50438 mkdir stage4-gmp; \
22121df0 50439 mv stage4-gmp gmp; \
4b900473
PB
50440 mv stage3-gmp prev-gmp || test -f stage3-lean
50441@endif gmp
50442@if mpfr
50443 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
50444 mkdir stage4-mpfr; \
22121df0 50445 mv stage4-mpfr mpfr; \
4b900473
PB
50446 mv stage3-mpfr prev-mpfr || test -f stage3-lean
50447@endif mpfr
e8a5fa9c
RW
50448@if mpc
50449 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
50450 mkdir stage4-mpc; \
22121df0 50451 mv stage4-mpc mpc; \
e8a5fa9c
RW
50452 mv stage3-mpc prev-mpc || test -f stage3-lean
50453@endif mpc
7ec59b9e
L
50454@if isl
50455 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
50456 mkdir stage4-isl; \
22121df0 50457 mv stage4-isl isl; \
7ec59b9e
L
50458 mv stage3-isl prev-isl || test -f stage3-lean
50459@endif isl
1f53ca9a
AO
50460@if libelf
50461 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
50462 mkdir stage4-libelf; \
22121df0 50463 mv stage4-libelf libelf; \
1f53ca9a
AO
50464 mv stage3-libelf prev-libelf || test -f stage3-lean
50465@endif libelf
93f9b408
ILT
50466@if gold
50467 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
50468 mkdir stage4-gold; \
22121df0 50469 mv stage4-gold gold; \
93f9b408
ILT
50470 mv stage3-gold prev-gold || test -f stage3-lean
50471@endif gold
72b2455a 50472@if intl
b00612cc
PB
50473 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
50474 mkdir stage4-intl; \
22121df0 50475 mv stage4-intl intl; \
80911fe1 50476 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
50477@endif intl
50478@if ld
b00612cc
PB
50479 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
50480 mkdir stage4-ld; \
22121df0 50481 mv stage4-ld ld; \
80911fe1 50482 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 50483@endif ld
2bf680c4
ILT
50484@if libbacktrace
50485 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
50486 mkdir stage4-libbacktrace; \
22121df0 50487 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
50488 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
50489@endif libbacktrace
72b2455a 50490@if libcpp
b00612cc
PB
50491 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
50492 mkdir stage4-libcpp; \
22121df0 50493 mv stage4-libcpp libcpp; \
80911fe1 50494 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 50495@endif libcpp
be01d343
PB
50496@if libdecnumber
50497 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
50498 mkdir stage4-libdecnumber; \
22121df0 50499 mv stage4-libdecnumber libdecnumber; \
80911fe1 50500 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 50501@endif libdecnumber
72b2455a 50502@if libiberty
b00612cc
PB
50503 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
50504 mkdir stage4-libiberty; \
22121df0 50505 mv stage4-libiberty libiberty; \
80911fe1 50506 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 50507@endif libiberty
1b6c0831
L
50508@if libiberty-linker-plugin
50509 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
50510 mkdir stage4-libiberty-linker-plugin; \
22121df0 50511 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50512 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
50513@endif libiberty-linker-plugin
016a3251
DD
50514@if libiconv
50515 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
50516 mkdir stage4-libiconv; \
50517 mv stage4-libiconv libiconv; \
50518 mv stage3-libiconv prev-libiconv || test -f stage3-lean
50519@endif libiconv
72b2455a 50520@if zlib
b00612cc
PB
50521 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
50522 mkdir stage4-zlib; \
22121df0 50523 mv stage4-zlib zlib; \
80911fe1 50524 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 50525@endif zlib
700d40ca
ILT
50526@if lto-plugin
50527 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
50528 mkdir stage4-lto-plugin; \
22121df0 50529 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
50530 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
50531@endif lto-plugin
0e65dfba
NA
50532@if libctf
50533 @cd $(HOST_SUBDIR); [ -d stage4-libctf ] || \
50534 mkdir stage4-libctf; \
50535 mv stage4-libctf libctf; \
50536 mv stage3-libctf prev-libctf || test -f stage3-lean
50537@endif libctf
0aed8855
PB
50538 @[ -d stage4-$(TARGET_SUBDIR) ] || \
50539 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 50540 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50541 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 50542
80911fe1 50543stage4-end::
72b2455a 50544@if bfd
22121df0
L
50545 @if test -d $(HOST_SUBDIR)/bfd; then \
50546 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
50547 mv prev-bfd stage3-bfd; : ; \
0aed8855 50548 fi
72b2455a
PB
50549@endif bfd
50550@if opcodes
22121df0
L
50551 @if test -d $(HOST_SUBDIR)/opcodes; then \
50552 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
50553 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 50554 fi
72b2455a
PB
50555@endif opcodes
50556@if binutils
22121df0
L
50557 @if test -d $(HOST_SUBDIR)/binutils; then \
50558 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
50559 mv prev-binutils stage3-binutils; : ; \
0aed8855 50560 fi
72b2455a 50561@endif binutils
201f096f 50562@if fixincludes
22121df0
L
50563 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50564 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
50565 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 50566 fi
50567@endif fixincludes
72b2455a 50568@if gas
22121df0
L
50569 @if test -d $(HOST_SUBDIR)/gas; then \
50570 cd $(HOST_SUBDIR); mv gas stage4-gas; \
50571 mv prev-gas stage3-gas; : ; \
0aed8855 50572 fi
72b2455a
PB
50573@endif gas
50574@if gcc
22121df0
L
50575 @if test -d $(HOST_SUBDIR)/gcc; then \
50576 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
50577 mv prev-gcc stage3-gcc; : ; \
0aed8855 50578 fi
72b2455a 50579@endif gcc
4b900473 50580@if gmp
22121df0
L
50581 @if test -d $(HOST_SUBDIR)/gmp; then \
50582 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
50583 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
50584 fi
50585@endif gmp
50586@if mpfr
22121df0
L
50587 @if test -d $(HOST_SUBDIR)/mpfr; then \
50588 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
50589 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
50590 fi
50591@endif mpfr
e8a5fa9c 50592@if mpc
22121df0
L
50593 @if test -d $(HOST_SUBDIR)/mpc; then \
50594 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
50595 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
50596 fi
50597@endif mpc
7ec59b9e 50598@if isl
22121df0
L
50599 @if test -d $(HOST_SUBDIR)/isl; then \
50600 cd $(HOST_SUBDIR); mv isl stage4-isl; \
50601 mv prev-isl stage3-isl; : ; \
e28c595f 50602 fi
7ec59b9e 50603@endif isl
1f53ca9a 50604@if libelf
22121df0
L
50605 @if test -d $(HOST_SUBDIR)/libelf; then \
50606 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
50607 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
50608 fi
50609@endif libelf
93f9b408 50610@if gold
22121df0
L
50611 @if test -d $(HOST_SUBDIR)/gold; then \
50612 cd $(HOST_SUBDIR); mv gold stage4-gold; \
50613 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
50614 fi
50615@endif gold
72b2455a 50616@if intl
22121df0
L
50617 @if test -d $(HOST_SUBDIR)/intl; then \
50618 cd $(HOST_SUBDIR); mv intl stage4-intl; \
50619 mv prev-intl stage3-intl; : ; \
0aed8855 50620 fi
72b2455a
PB
50621@endif intl
50622@if ld
22121df0
L
50623 @if test -d $(HOST_SUBDIR)/ld; then \
50624 cd $(HOST_SUBDIR); mv ld stage4-ld; \
50625 mv prev-ld stage3-ld; : ; \
0aed8855 50626 fi
72b2455a 50627@endif ld
2bf680c4 50628@if libbacktrace
22121df0
L
50629 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50630 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
50631 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
50632 fi
50633@endif libbacktrace
72b2455a 50634@if libcpp
22121df0
L
50635 @if test -d $(HOST_SUBDIR)/libcpp; then \
50636 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
50637 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 50638 fi
72b2455a 50639@endif libcpp
be01d343 50640@if libdecnumber
22121df0
L
50641 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50642 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
50643 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 50644 fi
be01d343 50645@endif libdecnumber
72b2455a 50646@if libiberty
22121df0
L
50647 @if test -d $(HOST_SUBDIR)/libiberty; then \
50648 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
50649 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 50650 fi
72b2455a 50651@endif libiberty
1b6c0831 50652@if libiberty-linker-plugin
22121df0
L
50653 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50654 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
50655 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
50656 fi
50657@endif libiberty-linker-plugin
016a3251
DD
50658@if libiconv
50659 @if test -d $(HOST_SUBDIR)/libiconv; then \
50660 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
50661 mv prev-libiconv stage3-libiconv; : ; \
50662 fi
50663@endif libiconv
72b2455a 50664@if zlib
22121df0
L
50665 @if test -d $(HOST_SUBDIR)/zlib; then \
50666 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
50667 mv prev-zlib stage3-zlib; : ; \
0aed8855 50668 fi
72b2455a 50669@endif zlib
700d40ca 50670@if lto-plugin
22121df0
L
50671 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50672 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
50673 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
50674 fi
50675@endif lto-plugin
0e65dfba
NA
50676@if libctf
50677 @if test -d $(HOST_SUBDIR)/libctf; then \
50678 cd $(HOST_SUBDIR); mv libctf stage4-libctf; \
50679 mv prev-libctf stage3-libctf; : ; \
50680 fi
50681@endif libctf
22121df0
L
50682 @if test -d $(TARGET_SUBDIR); then \
50683 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
50684 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 50685 fi
80911fe1 50686 rm -f stage_current
72b2455a 50687
973601e1 50688# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 50689# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50690# reconfigured either.
72b2455a
PB
50691.PHONY: stage4-bubble
50692stage4-bubble:: stage3-bubble
e360f423
PB
50693 @r=`${PWD_COMMAND}`; export r; \
50694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50695 if test -f stage4-lean || test -f stage3-lean ; then \
50696 echo Skipping rebuild of stage4; \
9cb3fa6f 50697 else \
f70224b5 50698 $(MAKE) stage4-start; \
80911fe1 50699 if $(LEAN); then \
22121df0
L
50700 rm -rf stage2-*; \
50701 $(STAMP) stage2-lean; \
80911fe1 50702 fi; \
f70224b5 50703 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 50704 fi
f6d183c0 50705 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 50706
0df3d27f 50707.PHONY: all-stage4 clean-stage4
0df3d27f 50708do-clean: clean-stage4
0df3d27f 50709
d545f33b
PB
50710# FIXME: Will not need to be conditional when toplevel bootstrap is the
50711# only possibility, but now it conflicts with no-bootstrap rules
50712@if gcc-bootstrap
72b2455a 50713
d545f33b 50714compare3:
e360f423
PB
50715 @r=`${PWD_COMMAND}`; export r; \
50716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50717 if test -f stage3-lean; then \
22121df0
L
50718 echo Cannot compare object files as stage 3 was deleted.; \
50719 exit 0; \
d545f33b 50720 fi; \
0aed8855 50721 : $(MAKE); $(stage); \
22121df0
L
50722 rm -f .bad_compare; \
50723 echo Comparing stages 3 and 4; \
fda13ee8
AO
50724 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
50725 files=`find stage4-* -name "*$(objext)" -print | \
22121df0 50726 sed -n s,^stage$$sed-,,p`; \
e3f56a99 50727 for file in $${files}; do \
fda13ee8
AO
50728 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
50729 if test ! -f $$f1; then continue; fi; \
8520c408 50730 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
50731 if test $$? -eq 1; then \
50732 case $$file in \
e8a5fa9c 50733 @compare_exclusions@) \
f70224b5
PB
50734 echo warning: $$file differs ;; \
50735 *) \
50736 echo $$file differs >> .bad_compare ;; \
22121df0
L
50737 esac; \
50738 fi; \
50739 done; \
d545f33b
PB
50740 if [ -f .bad_compare ]; then \
50741 echo "Bootstrap comparison failure!"; \
50742 cat .bad_compare; \
50743 exit 1; \
50744 else \
c52c6897 50745 echo Comparison successful.; \
22121df0 50746 fi; \
d545f33b 50747 $(STAMP) compare3
80911fe1
PB
50748 if $(LEAN); then \
50749 rm -rf stage3-*; \
50750 $(STAMP) stage3-lean; \
50751 fi
9cb3fa6f 50752
72b2455a 50753
72b2455a 50754
80911fe1 50755.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
50756bootstrap4:
50757 echo stage4 > stage_final
50758 @r=`${PWD_COMMAND}`; export r; \
50759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50760 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 50761 @: $(MAKE); $(unstage)
be01d343
PB
50762 @r=`${PWD_COMMAND}`; export r; \
50763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50764 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 50765 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 50766
80911fe1
PB
50767bootstrap4-lean:
50768 echo stage4 > stage_final
50769 @r=`${PWD_COMMAND}`; export r; \
50770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50771 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
50772 @: $(MAKE); $(unstage)
50773 @r=`${PWD_COMMAND}`; export r; \
50774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50775 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
50776 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50777
72b2455a 50778
d545f33b
PB
50779# Rules to wipe a stage and all the following ones, also used for cleanstrap
50780distclean-stage3:: distclean-stage4
50781.PHONY: distclean-stage4
50782distclean-stage4::
0aed8855 50783 @: $(MAKE); $(stage)
e00a73e3 50784 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 50785 rm -rf stage4-* compare3
0df3d27f 50786
9cb3fa6f 50787
d545f33b 50788@endif gcc-bootstrap
72b2455a
PB
50789
50790
50791.PHONY: stageprofile-start stageprofile-end
50792
50793stageprofile-start::
0aed8855 50794 @: $(MAKE); $(stage); \
22121df0 50795 echo stageprofile > stage_current; \
b00612cc 50796 echo stageprofile > stage_last; \
0aed8855 50797 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50798@if bfd
b00612cc
PB
50799 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
50800 mkdir stageprofile-bfd; \
22121df0 50801 mv stageprofile-bfd bfd; \
80911fe1 50802 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
50803@endif bfd
50804@if opcodes
b00612cc
PB
50805 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
50806 mkdir stageprofile-opcodes; \
22121df0 50807 mv stageprofile-opcodes opcodes; \
80911fe1 50808 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
50809@endif opcodes
50810@if binutils
b00612cc
PB
50811 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
50812 mkdir stageprofile-binutils; \
22121df0 50813 mv stageprofile-binutils binutils; \
80911fe1 50814 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 50815@endif binutils
201f096f 50816@if fixincludes
50817 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
50818 mkdir stageprofile-fixincludes; \
22121df0 50819 mv stageprofile-fixincludes fixincludes; \
201f096f 50820 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
50821@endif fixincludes
72b2455a 50822@if gas
b00612cc
PB
50823 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
50824 mkdir stageprofile-gas; \
22121df0 50825 mv stageprofile-gas gas; \
80911fe1 50826 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
50827@endif gas
50828@if gcc
b00612cc
PB
50829 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
50830 mkdir stageprofile-gcc; \
22121df0 50831 mv stageprofile-gcc gcc; \
80911fe1 50832 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 50833@endif gcc
4b900473
PB
50834@if gmp
50835 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
50836 mkdir stageprofile-gmp; \
22121df0 50837 mv stageprofile-gmp gmp; \
4b900473
PB
50838 mv stage1-gmp prev-gmp || test -f stage1-lean
50839@endif gmp
50840@if mpfr
50841 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
50842 mkdir stageprofile-mpfr; \
22121df0 50843 mv stageprofile-mpfr mpfr; \
4b900473
PB
50844 mv stage1-mpfr prev-mpfr || test -f stage1-lean
50845@endif mpfr
e8a5fa9c
RW
50846@if mpc
50847 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
50848 mkdir stageprofile-mpc; \
22121df0 50849 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
50850 mv stage1-mpc prev-mpc || test -f stage1-lean
50851@endif mpc
7ec59b9e
L
50852@if isl
50853 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
50854 mkdir stageprofile-isl; \
22121df0 50855 mv stageprofile-isl isl; \
7ec59b9e
L
50856 mv stage1-isl prev-isl || test -f stage1-lean
50857@endif isl
1f53ca9a
AO
50858@if libelf
50859 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
50860 mkdir stageprofile-libelf; \
22121df0 50861 mv stageprofile-libelf libelf; \
1f53ca9a
AO
50862 mv stage1-libelf prev-libelf || test -f stage1-lean
50863@endif libelf
93f9b408
ILT
50864@if gold
50865 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
50866 mkdir stageprofile-gold; \
22121df0 50867 mv stageprofile-gold gold; \
93f9b408
ILT
50868 mv stage1-gold prev-gold || test -f stage1-lean
50869@endif gold
72b2455a 50870@if intl
b00612cc
PB
50871 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
50872 mkdir stageprofile-intl; \
22121df0 50873 mv stageprofile-intl intl; \
80911fe1 50874 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
50875@endif intl
50876@if ld
b00612cc
PB
50877 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
50878 mkdir stageprofile-ld; \
22121df0 50879 mv stageprofile-ld ld; \
80911fe1 50880 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 50881@endif ld
2bf680c4
ILT
50882@if libbacktrace
50883 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
50884 mkdir stageprofile-libbacktrace; \
22121df0 50885 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
50886 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
50887@endif libbacktrace
72b2455a 50888@if libcpp
b00612cc
PB
50889 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
50890 mkdir stageprofile-libcpp; \
22121df0 50891 mv stageprofile-libcpp libcpp; \
80911fe1 50892 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 50893@endif libcpp
be01d343
PB
50894@if libdecnumber
50895 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
50896 mkdir stageprofile-libdecnumber; \
22121df0 50897 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 50898 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 50899@endif libdecnumber
72b2455a 50900@if libiberty
b00612cc
PB
50901 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
50902 mkdir stageprofile-libiberty; \
22121df0 50903 mv stageprofile-libiberty libiberty; \
80911fe1 50904 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 50905@endif libiberty
1b6c0831
L
50906@if libiberty-linker-plugin
50907 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
50908 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 50909 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50910 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
50911@endif libiberty-linker-plugin
016a3251
DD
50912@if libiconv
50913 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
50914 mkdir stageprofile-libiconv; \
50915 mv stageprofile-libiconv libiconv; \
50916 mv stage1-libiconv prev-libiconv || test -f stage1-lean
50917@endif libiconv
72b2455a 50918@if zlib
d545f33b
PB
50919 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
50920 mkdir stageprofile-zlib; \
22121df0 50921 mv stageprofile-zlib zlib; \
80911fe1 50922 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 50923@endif zlib
700d40ca
ILT
50924@if lto-plugin
50925 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
50926 mkdir stageprofile-lto-plugin; \
22121df0 50927 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
50928 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
50929@endif lto-plugin
0e65dfba
NA
50930@if libctf
50931 @cd $(HOST_SUBDIR); [ -d stageprofile-libctf ] || \
50932 mkdir stageprofile-libctf; \
50933 mv stageprofile-libctf libctf; \
50934 mv stage1-libctf prev-libctf || test -f stage1-lean
50935@endif libctf
0aed8855
PB
50936 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
50937 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 50938 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50939 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 50940
80911fe1 50941stageprofile-end::
d545f33b 50942@if bfd
22121df0
L
50943 @if test -d $(HOST_SUBDIR)/bfd; then \
50944 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
50945 mv prev-bfd stage1-bfd; : ; \
0aed8855 50946 fi
d545f33b
PB
50947@endif bfd
50948@if opcodes
22121df0
L
50949 @if test -d $(HOST_SUBDIR)/opcodes; then \
50950 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
50951 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 50952 fi
d545f33b
PB
50953@endif opcodes
50954@if binutils
22121df0
L
50955 @if test -d $(HOST_SUBDIR)/binutils; then \
50956 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
50957 mv prev-binutils stage1-binutils; : ; \
0aed8855 50958 fi
d545f33b 50959@endif binutils
201f096f 50960@if fixincludes
22121df0
L
50961 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50962 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
50963 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 50964 fi
50965@endif fixincludes
d545f33b 50966@if gas
22121df0
L
50967 @if test -d $(HOST_SUBDIR)/gas; then \
50968 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
50969 mv prev-gas stage1-gas; : ; \
0aed8855 50970 fi
d545f33b
PB
50971@endif gas
50972@if gcc
22121df0
L
50973 @if test -d $(HOST_SUBDIR)/gcc; then \
50974 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
50975 mv prev-gcc stage1-gcc; : ; \
0aed8855 50976 fi
d545f33b 50977@endif gcc
4b900473 50978@if gmp
22121df0
L
50979 @if test -d $(HOST_SUBDIR)/gmp; then \
50980 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
50981 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
50982 fi
50983@endif gmp
50984@if mpfr
22121df0
L
50985 @if test -d $(HOST_SUBDIR)/mpfr; then \
50986 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
50987 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
50988 fi
50989@endif mpfr
e8a5fa9c 50990@if mpc
22121df0
L
50991 @if test -d $(HOST_SUBDIR)/mpc; then \
50992 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
50993 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
50994 fi
50995@endif mpc
7ec59b9e 50996@if isl
22121df0
L
50997 @if test -d $(HOST_SUBDIR)/isl; then \
50998 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
50999 mv prev-isl stage1-isl; : ; \
e28c595f 51000 fi
7ec59b9e 51001@endif isl
1f53ca9a 51002@if libelf
22121df0
L
51003 @if test -d $(HOST_SUBDIR)/libelf; then \
51004 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
51005 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
51006 fi
51007@endif libelf
93f9b408 51008@if gold
22121df0
L
51009 @if test -d $(HOST_SUBDIR)/gold; then \
51010 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
51011 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
51012 fi
51013@endif gold
d545f33b 51014@if intl
22121df0
L
51015 @if test -d $(HOST_SUBDIR)/intl; then \
51016 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
51017 mv prev-intl stage1-intl; : ; \
0aed8855 51018 fi
d545f33b
PB
51019@endif intl
51020@if ld
22121df0
L
51021 @if test -d $(HOST_SUBDIR)/ld; then \
51022 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
51023 mv prev-ld stage1-ld; : ; \
0aed8855 51024 fi
d545f33b 51025@endif ld
2bf680c4 51026@if libbacktrace
22121df0
L
51027 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
51028 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
51029 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
51030 fi
51031@endif libbacktrace
d545f33b 51032@if libcpp
22121df0
L
51033 @if test -d $(HOST_SUBDIR)/libcpp; then \
51034 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
51035 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 51036 fi
d545f33b 51037@endif libcpp
be01d343 51038@if libdecnumber
22121df0
L
51039 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
51040 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
51041 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 51042 fi
be01d343 51043@endif libdecnumber
d545f33b 51044@if libiberty
22121df0
L
51045 @if test -d $(HOST_SUBDIR)/libiberty; then \
51046 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
51047 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 51048 fi
d545f33b 51049@endif libiberty
1b6c0831 51050@if libiberty-linker-plugin
22121df0
L
51051 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
51052 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
51053 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
51054 fi
51055@endif libiberty-linker-plugin
016a3251
DD
51056@if libiconv
51057 @if test -d $(HOST_SUBDIR)/libiconv; then \
51058 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
51059 mv prev-libiconv stage1-libiconv; : ; \
51060 fi
51061@endif libiconv
d545f33b 51062@if zlib
22121df0
L
51063 @if test -d $(HOST_SUBDIR)/zlib; then \
51064 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
51065 mv prev-zlib stage1-zlib; : ; \
0aed8855 51066 fi
d545f33b 51067@endif zlib
700d40ca 51068@if lto-plugin
22121df0
L
51069 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
51070 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
51071 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
51072 fi
51073@endif lto-plugin
0e65dfba
NA
51074@if libctf
51075 @if test -d $(HOST_SUBDIR)/libctf; then \
51076 cd $(HOST_SUBDIR); mv libctf stageprofile-libctf; \
51077 mv prev-libctf stage1-libctf; : ; \
51078 fi
51079@endif libctf
22121df0
L
51080 @if test -d $(TARGET_SUBDIR); then \
51081 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
51082 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 51083 fi
80911fe1 51084 rm -f stage_current
72b2455a 51085
973601e1 51086# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 51087# remade, but not reconfigured. The next stage (if any) will not be
675492f0 51088# reconfigured either.
d545f33b
PB
51089.PHONY: stageprofile-bubble
51090stageprofile-bubble:: stage1-bubble
e360f423
PB
51091 @r=`${PWD_COMMAND}`; export r; \
51092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
51093 if test -f stageprofile-lean || test -f stage1-lean ; then \
51094 echo Skipping rebuild of stageprofile; \
d545f33b 51095 else \
f70224b5
PB
51096 $(MAKE) stageprofile-start; \
51097 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 51098 fi
72b2455a 51099
d545f33b
PB
51100.PHONY: all-stageprofile clean-stageprofile
51101do-clean: clean-stageprofile
0df3d27f 51102
72b2455a
PB
51103# FIXME: Will not need to be conditional when toplevel bootstrap is the
51104# only possibility, but now it conflicts with no-bootstrap rules
51105@if gcc-bootstrap
51106
51107
51108
51109
0df3d27f 51110# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 51111distclean-stage1:: distclean-stageprofile
0df3d27f 51112.PHONY: distclean-stageprofile
72b2455a 51113distclean-stageprofile::
0aed8855 51114 @: $(MAKE); $(stage)
e00a73e3 51115 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 51116 rm -rf stageprofile-*
dfdffa2c
PB
51117
51118
72b2455a 51119@endif gcc-bootstrap
dfdffa2c
PB
51120
51121
72b2455a 51122.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 51123
72b2455a 51124stagefeedback-start::
0aed8855 51125 @: $(MAKE); $(stage); \
22121df0 51126 echo stagefeedback > stage_current; \
b00612cc 51127 echo stagefeedback > stage_last; \
0aed8855 51128 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 51129@if bfd
b00612cc
PB
51130 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
51131 mkdir stagefeedback-bfd; \
22121df0 51132 mv stagefeedback-bfd bfd; \
e3f56a99 51133 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
51134@endif bfd
51135@if opcodes
b00612cc
PB
51136 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
51137 mkdir stagefeedback-opcodes; \
22121df0 51138 mv stagefeedback-opcodes opcodes; \
e3f56a99 51139 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
51140@endif opcodes
51141@if binutils
b00612cc
PB
51142 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
51143 mkdir stagefeedback-binutils; \
22121df0 51144 mv stagefeedback-binutils binutils; \
e3f56a99 51145 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 51146@endif binutils
201f096f 51147@if fixincludes
51148 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
51149 mkdir stagefeedback-fixincludes; \
22121df0 51150 mv stagefeedback-fixincludes fixincludes; \
e3f56a99 51151 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
201f096f 51152@endif fixincludes
72b2455a 51153@if gas
b00612cc
PB
51154 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
51155 mkdir stagefeedback-gas; \
22121df0 51156 mv stagefeedback-gas gas; \
e3f56a99 51157 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
51158@endif gas
51159@if gcc
b00612cc
PB
51160 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
51161 mkdir stagefeedback-gcc; \
22121df0 51162 mv stagefeedback-gcc gcc; \
e3f56a99 51163 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 51164@endif gcc
4b900473
PB
51165@if gmp
51166 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
51167 mkdir stagefeedback-gmp; \
22121df0 51168 mv stagefeedback-gmp gmp; \
e3f56a99 51169 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
4b900473
PB
51170@endif gmp
51171@if mpfr
51172 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
51173 mkdir stagefeedback-mpfr; \
22121df0 51174 mv stagefeedback-mpfr mpfr; \
e3f56a99 51175 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
4b900473 51176@endif mpfr
e8a5fa9c
RW
51177@if mpc
51178 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
51179 mkdir stagefeedback-mpc; \
22121df0 51180 mv stagefeedback-mpc mpc; \
e3f56a99 51181 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
e8a5fa9c 51182@endif mpc
7ec59b9e
L
51183@if isl
51184 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
51185 mkdir stagefeedback-isl; \
22121df0 51186 mv stagefeedback-isl isl; \
e3f56a99 51187 mv stageprofile-isl prev-isl || test -f stageprofile-lean
7ec59b9e 51188@endif isl
1f53ca9a
AO
51189@if libelf
51190 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
51191 mkdir stagefeedback-libelf; \
22121df0 51192 mv stagefeedback-libelf libelf; \
e3f56a99 51193 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
1f53ca9a 51194@endif libelf
93f9b408
ILT
51195@if gold
51196 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
51197 mkdir stagefeedback-gold; \
22121df0 51198 mv stagefeedback-gold gold; \
e3f56a99 51199 mv stageprofile-gold prev-gold || test -f stageprofile-lean
93f9b408 51200@endif gold
72b2455a 51201@if intl
b00612cc
PB
51202 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
51203 mkdir stagefeedback-intl; \
22121df0 51204 mv stagefeedback-intl intl; \
e3f56a99 51205 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
51206@endif intl
51207@if ld
b00612cc
PB
51208 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
51209 mkdir stagefeedback-ld; \
22121df0 51210 mv stagefeedback-ld ld; \
e3f56a99 51211 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 51212@endif ld
2bf680c4
ILT
51213@if libbacktrace
51214 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
51215 mkdir stagefeedback-libbacktrace; \
22121df0 51216 mv stagefeedback-libbacktrace libbacktrace; \
e3f56a99 51217 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
2bf680c4 51218@endif libbacktrace
72b2455a 51219@if libcpp
b00612cc
PB
51220 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
51221 mkdir stagefeedback-libcpp; \
22121df0 51222 mv stagefeedback-libcpp libcpp; \
e3f56a99 51223 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 51224@endif libcpp
be01d343
PB
51225@if libdecnumber
51226 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
51227 mkdir stagefeedback-libdecnumber; \
22121df0 51228 mv stagefeedback-libdecnumber libdecnumber; \
e3f56a99 51229 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 51230@endif libdecnumber
72b2455a 51231@if libiberty
b00612cc
PB
51232 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
51233 mkdir stagefeedback-libiberty; \
22121df0 51234 mv stagefeedback-libiberty libiberty; \
e3f56a99 51235 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 51236@endif libiberty
1b6c0831
L
51237@if libiberty-linker-plugin
51238 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
51239 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 51240 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
e3f56a99 51241 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
1b6c0831 51242@endif libiberty-linker-plugin
016a3251
DD
51243@if libiconv
51244 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
51245 mkdir stagefeedback-libiconv; \
51246 mv stagefeedback-libiconv libiconv; \
e3f56a99 51247 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
016a3251 51248@endif libiconv
72b2455a 51249@if zlib
b00612cc
PB
51250 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
51251 mkdir stagefeedback-zlib; \
22121df0 51252 mv stagefeedback-zlib zlib; \
e3f56a99 51253 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 51254@endif zlib
700d40ca
ILT
51255@if lto-plugin
51256 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
51257 mkdir stagefeedback-lto-plugin; \
22121df0 51258 mv stagefeedback-lto-plugin lto-plugin; \
e3f56a99 51259 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
700d40ca 51260@endif lto-plugin
0e65dfba
NA
51261@if libctf
51262 @cd $(HOST_SUBDIR); [ -d stagefeedback-libctf ] || \
51263 mkdir stagefeedback-libctf; \
51264 mv stagefeedback-libctf libctf; \
e3f56a99 51265 mv stageprofile-libctf prev-libctf || test -f stageprofile-lean
0e65dfba 51266@endif libctf
0aed8855
PB
51267 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
51268 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 51269 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
e3f56a99 51270 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 51271
80911fe1 51272stagefeedback-end::
72b2455a 51273@if bfd
22121df0
L
51274 @if test -d $(HOST_SUBDIR)/bfd; then \
51275 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
e3f56a99 51276 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 51277 fi
72b2455a
PB
51278@endif bfd
51279@if opcodes
22121df0
L
51280 @if test -d $(HOST_SUBDIR)/opcodes; then \
51281 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
e3f56a99 51282 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 51283 fi
72b2455a
PB
51284@endif opcodes
51285@if binutils
22121df0
L
51286 @if test -d $(HOST_SUBDIR)/binutils; then \
51287 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
e3f56a99 51288 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 51289 fi
72b2455a 51290@endif binutils
201f096f 51291@if fixincludes
22121df0
L
51292 @if test -d $(HOST_SUBDIR)/fixincludes; then \
51293 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
e3f56a99 51294 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 51295 fi
51296@endif fixincludes
72b2455a 51297@if gas
22121df0
L
51298 @if test -d $(HOST_SUBDIR)/gas; then \
51299 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
e3f56a99 51300 mv prev-gas stageprofile-gas; : ; \
0aed8855 51301 fi
72b2455a
PB
51302@endif gas
51303@if gcc
22121df0
L
51304 @if test -d $(HOST_SUBDIR)/gcc; then \
51305 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
e3f56a99 51306 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 51307 fi
72b2455a 51308@endif gcc
4b900473 51309@if gmp
22121df0
L
51310 @if test -d $(HOST_SUBDIR)/gmp; then \
51311 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
e3f56a99 51312 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
51313 fi
51314@endif gmp
51315@if mpfr
22121df0
L
51316 @if test -d $(HOST_SUBDIR)/mpfr; then \
51317 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
e3f56a99 51318 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
51319 fi
51320@endif mpfr
e8a5fa9c 51321@if mpc
22121df0
L
51322 @if test -d $(HOST_SUBDIR)/mpc; then \
51323 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
e3f56a99 51324 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
51325 fi
51326@endif mpc
7ec59b9e 51327@if isl
22121df0
L
51328 @if test -d $(HOST_SUBDIR)/isl; then \
51329 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
e3f56a99 51330 mv prev-isl stageprofile-isl; : ; \
e28c595f 51331 fi
7ec59b9e 51332@endif isl
1f53ca9a 51333@if libelf
22121df0
L
51334 @if test -d $(HOST_SUBDIR)/libelf; then \
51335 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
e3f56a99 51336 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
51337 fi
51338@endif libelf
93f9b408 51339@if gold
22121df0
L
51340 @if test -d $(HOST_SUBDIR)/gold; then \
51341 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
e3f56a99 51342 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
51343 fi
51344@endif gold
72b2455a 51345@if intl
22121df0
L
51346 @if test -d $(HOST_SUBDIR)/intl; then \
51347 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
e3f56a99 51348 mv prev-intl stageprofile-intl; : ; \
0aed8855 51349 fi
72b2455a
PB
51350@endif intl
51351@if ld
22121df0
L
51352 @if test -d $(HOST_SUBDIR)/ld; then \
51353 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
e3f56a99 51354 mv prev-ld stageprofile-ld; : ; \
0aed8855 51355 fi
72b2455a 51356@endif ld
2bf680c4 51357@if libbacktrace
22121df0
L
51358 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
51359 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
e3f56a99 51360 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
51361 fi
51362@endif libbacktrace
72b2455a 51363@if libcpp
22121df0
L
51364 @if test -d $(HOST_SUBDIR)/libcpp; then \
51365 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
e3f56a99 51366 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 51367 fi
72b2455a 51368@endif libcpp
be01d343 51369@if libdecnumber
22121df0
L
51370 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
51371 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
e3f56a99 51372 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 51373 fi
be01d343 51374@endif libdecnumber
72b2455a 51375@if libiberty
22121df0
L
51376 @if test -d $(HOST_SUBDIR)/libiberty; then \
51377 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
e3f56a99 51378 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 51379 fi
72b2455a 51380@endif libiberty
1b6c0831 51381@if libiberty-linker-plugin
22121df0
L
51382 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
51383 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
e3f56a99 51384 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
51385 fi
51386@endif libiberty-linker-plugin
016a3251
DD
51387@if libiconv
51388 @if test -d $(HOST_SUBDIR)/libiconv; then \
51389 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
e3f56a99 51390 mv prev-libiconv stageprofile-libiconv; : ; \
016a3251
DD
51391 fi
51392@endif libiconv
72b2455a 51393@if zlib
22121df0
L
51394 @if test -d $(HOST_SUBDIR)/zlib; then \
51395 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
e3f56a99 51396 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 51397 fi
72b2455a 51398@endif zlib
700d40ca 51399@if lto-plugin
22121df0
L
51400 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
51401 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
e3f56a99 51402 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
51403 fi
51404@endif lto-plugin
0e65dfba
NA
51405@if libctf
51406 @if test -d $(HOST_SUBDIR)/libctf; then \
51407 cd $(HOST_SUBDIR); mv libctf stagefeedback-libctf; \
e3f56a99 51408 mv prev-libctf stageprofile-libctf; : ; \
0e65dfba
NA
51409 fi
51410@endif libctf
22121df0
L
51411 @if test -d $(TARGET_SUBDIR); then \
51412 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
e3f56a99 51413 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 51414 fi
80911fe1 51415 rm -f stage_current
dfdffa2c 51416
973601e1 51417# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 51418# remade, but not reconfigured. The next stage (if any) will not be
675492f0 51419# reconfigured either.
72b2455a 51420.PHONY: stagefeedback-bubble
e3f56a99 51421stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
51422 @r=`${PWD_COMMAND}`; export r; \
51423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e3f56a99 51424 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
22121df0 51425 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 51426 else \
f70224b5
PB
51427 $(MAKE) stagefeedback-start; \
51428 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 51429 fi
72b2455a 51430
0df3d27f 51431.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 51432do-clean: clean-stagefeedback
0df3d27f 51433
72b2455a
PB
51434# FIXME: Will not need to be conditional when toplevel bootstrap is the
51435# only possibility, but now it conflicts with no-bootstrap rules
51436@if gcc-bootstrap
656fdd47
PB
51437
51438
51439
80911fe1 51440.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
51441profiledbootstrap:
51442 echo stagefeedback > stage_final
51443 @r=`${PWD_COMMAND}`; export r; \
51444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51445 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 51446 @: $(MAKE); $(unstage)
be01d343
PB
51447 @r=`${PWD_COMMAND}`; export r; \
51448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 51449 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 51450 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 51451
80911fe1
PB
51452profiledbootstrap-lean:
51453 echo stagefeedback > stage_final
51454 @r=`${PWD_COMMAND}`; export r; \
51455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51456 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
51457 @: $(MAKE); $(unstage)
51458 @r=`${PWD_COMMAND}`; export r; \
51459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 51460 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
51461 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
51462
656fdd47 51463
0df3d27f 51464# Rules to wipe a stage and all the following ones, also used for cleanstrap
e3f56a99 51465distclean-stageprofile:: distclean-stagefeedback
0df3d27f 51466.PHONY: distclean-stagefeedback
656fdd47 51467distclean-stagefeedback::
0aed8855 51468 @: $(MAKE); $(stage)
e00a73e3 51469 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 51470 rm -rf stagefeedback-*
656fdd47
PB
51471
51472
72b2455a 51473@endif gcc-bootstrap
656fdd47
PB
51474
51475
51476
7d329e61
PB
51477stageprofile-end::
51478 $(MAKE) distclean-stagefeedback
656fdd47 51479
7d329e61 51480stagefeedback-start::
656fdd47
PB
51481 @r=`${PWD_COMMAND}`; export r; \
51482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 51483 for i in prev-*; do \
22121df0 51484 j=`echo $$i | sed s/^prev-//`; \
7d329e61 51485 cd $$r/$$i && \
22121df0
L
51486 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
51487 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 51488 done
b8908782 51489
0df3d27f 51490@if gcc-bootstrap
0df3d27f 51491do-distclean: distclean-stage1
c52c6897
PB
51492
51493# Provide a GCC build when we're building target libraries. This does
51494# not work as a dependency, just as the minimum necessary to avoid errors.
51495stage_last:
314b2e66
AS
51496 @r=`${PWD_COMMAND}`; export r; \
51497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 51498 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 51499
4f0ef2d8
CD
51500# Same as unstage, but not phony and defaulting to stage1-start. We place
51501# it in the dependency so that for example `make -j3 all-gcc' works.
51502stage_current:
51503 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
51504
c52c6897 51505.PHONY: restrap
266df637 51506restrap::
c52c6897 51507 @: $(MAKE); $(stage)
e3f56a99 51508 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 51509restrap:: all
c380fdd8 51510@endif gcc-bootstrap
c52c6897 51511
ae831be5
NN
51512# --------------------------------------
51513# Dependencies between different modules
51514# --------------------------------------
252b5132 51515
9e6ce191 51516# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 51517@if gcc-bootstrap
e8a5fa9c
RW
51518configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
51519configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
51520configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
51521configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
51522configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
51523configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
51524configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
51525configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
51526configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
51527configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
51528configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
51529configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
51530configure-stage1-target-libmpx: maybe-all-stage1-gcc
51531configure-stage2-target-libmpx: maybe-all-stage2-gcc
51532configure-stage3-target-libmpx: maybe-all-stage3-gcc
51533configure-stage4-target-libmpx: maybe-all-stage4-gcc
51534configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
51535configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
51536configure-stage1-target-libvtv: maybe-all-stage1-gcc
51537configure-stage2-target-libvtv: maybe-all-stage2-gcc
51538configure-stage3-target-libvtv: maybe-all-stage3-gcc
51539configure-stage4-target-libvtv: maybe-all-stage4-gcc
51540configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
51541configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
e3f56a99 51542configure-target-libcilkrts: stage_last
1b6c0831 51543configure-target-liboffloadmic: stage_last
c52c6897 51544configure-target-libssp: stage_last
c52c6897 51545configure-target-newlib: stage_last
6aa8ef82
DJ
51546configure-stage1-target-libgcc: maybe-all-stage1-gcc
51547configure-stage2-target-libgcc: maybe-all-stage2-gcc
51548configure-stage3-target-libgcc: maybe-all-stage3-gcc
51549configure-stage4-target-libgcc: maybe-all-stage4-gcc
51550configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
51551configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 51552configure-target-libbacktrace: stage_last
e552509b 51553configure-target-libquadmath: stage_last
c52c6897
PB
51554configure-target-libgfortran: stage_last
51555configure-target-libobjc: stage_last
e552509b 51556configure-target-libgo: stage_last
c52c6897
PB
51557configure-target-libtermcap: stage_last
51558configure-target-winsup: stage_last
51559configure-target-libgloss: stage_last
c52c6897 51560configure-target-libffi: stage_last
c52c6897 51561configure-target-zlib: stage_last
c52c6897
PB
51562configure-target-rda: stage_last
51563configure-target-libada: stage_last
911e63d0
JR
51564configure-stage1-target-libgomp: maybe-all-stage1-gcc
51565configure-stage2-target-libgomp: maybe-all-stage2-gcc
51566configure-stage3-target-libgomp: maybe-all-stage3-gcc
51567configure-stage4-target-libgomp: maybe-all-stage4-gcc
51568configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
51569configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
51570configure-target-libitm: stage_last
51571configure-target-libatomic: stage_last
c52c6897 51572@endif gcc-bootstrap
9e6ce191 51573
c52c6897 51574@if gcc-no-bootstrap
9e6ce191 51575configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 51576configure-target-libsanitizer: maybe-all-gcc
1b6c0831 51577configure-target-libmpx: maybe-all-gcc
95e43135 51578configure-target-libvtv: maybe-all-gcc
e3f56a99 51579configure-target-libcilkrts: maybe-all-gcc
1b6c0831 51580configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 51581configure-target-libssp: maybe-all-gcc
9e6ce191 51582configure-target-newlib: maybe-all-gcc
6aa8ef82 51583configure-target-libgcc: maybe-all-gcc
2bf680c4 51584configure-target-libbacktrace: maybe-all-gcc
e552509b 51585configure-target-libquadmath: maybe-all-gcc
9e6ce191 51586configure-target-libgfortran: maybe-all-gcc
9e6ce191 51587configure-target-libobjc: maybe-all-gcc
e552509b 51588configure-target-libgo: maybe-all-gcc
9e6ce191 51589configure-target-libtermcap: maybe-all-gcc
9e6ce191 51590configure-target-winsup: maybe-all-gcc
9e6ce191 51591configure-target-libgloss: maybe-all-gcc
9e6ce191 51592configure-target-libffi: maybe-all-gcc
9e6ce191 51593configure-target-zlib: maybe-all-gcc
9e6ce191 51594configure-target-rda: maybe-all-gcc
9e6ce191 51595configure-target-libada: maybe-all-gcc
b3ded179 51596configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
51597configure-target-libitm: maybe-all-gcc
51598configure-target-libatomic: maybe-all-gcc
c52c6897 51599@endif gcc-no-bootstrap
b3ded179 51600
9e6ce191 51601
ae831be5
NN
51602# There are two types of dependencies here: 'hard' dependencies, where one
51603# module simply won't build without the other; and 'soft' dependencies, where
51604# if the depended-on module is missing, the depending module will do without
51605# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 51606# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
51607# it's safer to use a soft dependency.
51608
9e6ce191
PB
51609
51610
51611
51612
c60fe18b 51613
9e6ce191
PB
51614# With all the machinery above in place, it is pretty easy to generate
51615# dependencies. Host dependencies are a bit more complex because we have
51616# to check for bootstrap/prebootstrap dependencies. To resolve
51617# prebootstrap dependencies, prebootstrap modules are gathered in
51618# a hash table.
6a9cf61e
PB
51619all-build-bison: maybe-all-build-texinfo
51620all-build-flex: maybe-all-build-texinfo
9e6ce191 51621all-build-flex: maybe-all-build-bison
9e6ce191 51622all-build-flex: maybe-all-build-m4
6a9cf61e 51623all-build-libiberty: maybe-all-build-texinfo
9e6ce191 51624all-build-m4: maybe-all-build-texinfo
ee025550 51625all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 51626all-build-libcpp: maybe-all-build-libiberty
9e6ce191 51627configure-gcc: maybe-configure-intl
9e6ce191
PB
51628configure-stage1-gcc: maybe-configure-stage1-intl
51629configure-stage2-gcc: maybe-configure-stage2-intl
51630configure-stage3-gcc: maybe-configure-stage3-intl
51631configure-stage4-gcc: maybe-configure-stage4-intl
51632configure-stageprofile-gcc: maybe-configure-stageprofile-intl
51633configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8 51634configure-gcc: maybe-all-gmp
861ea9c8
L
51635configure-stage1-gcc: maybe-all-stage1-gmp
51636configure-stage2-gcc: maybe-all-stage2-gmp
51637configure-stage3-gcc: maybe-all-stage3-gmp
51638configure-stage4-gcc: maybe-all-stage4-gmp
51639configure-stageprofile-gcc: maybe-all-stageprofile-gmp
51640configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831 51641configure-gcc: maybe-all-mpfr
1b6c0831
L
51642configure-stage1-gcc: maybe-all-stage1-mpfr
51643configure-stage2-gcc: maybe-all-stage2-mpfr
51644configure-stage3-gcc: maybe-all-stage3-mpfr
51645configure-stage4-gcc: maybe-all-stage4-mpfr
51646configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
51647configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
51648configure-gcc: maybe-all-mpc
1b6c0831
L
51649configure-stage1-gcc: maybe-all-stage1-mpc
51650configure-stage2-gcc: maybe-all-stage2-mpc
51651configure-stage3-gcc: maybe-all-stage3-mpc
51652configure-stage4-gcc: maybe-all-stage4-mpc
51653configure-stageprofile-gcc: maybe-all-stageprofile-mpc
51654configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
51655configure-gcc: maybe-all-isl
1b6c0831
L
51656configure-stage1-gcc: maybe-all-stage1-isl
51657configure-stage2-gcc: maybe-all-stage2-isl
51658configure-stage3-gcc: maybe-all-stage3-isl
51659configure-stage4-gcc: maybe-all-stage4-isl
51660configure-stageprofile-gcc: maybe-all-stageprofile-isl
51661configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a 51662configure-gcc: maybe-all-lto-plugin
8d8eef9a
RW
51663configure-stage1-gcc: maybe-all-stage1-lto-plugin
51664configure-stage2-gcc: maybe-all-stage2-lto-plugin
51665configure-stage3-gcc: maybe-all-stage3-lto-plugin
51666configure-stage4-gcc: maybe-all-stage4-lto-plugin
51667configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
51668configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b 51669configure-gcc: maybe-all-binutils
c60fe18b
PB
51670configure-stage1-gcc: maybe-all-stage1-binutils
51671configure-stage2-gcc: maybe-all-stage2-binutils
51672configure-stage3-gcc: maybe-all-stage3-binutils
51673configure-stage4-gcc: maybe-all-stage4-binutils
51674configure-stageprofile-gcc: maybe-all-stageprofile-binutils
51675configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
51676configure-gcc: maybe-all-gas
c60fe18b
PB
51677configure-stage1-gcc: maybe-all-stage1-gas
51678configure-stage2-gcc: maybe-all-stage2-gas
51679configure-stage3-gcc: maybe-all-stage3-gas
51680configure-stage4-gcc: maybe-all-stage4-gas
51681configure-stageprofile-gcc: maybe-all-stageprofile-gas
51682configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
51683configure-gcc: maybe-all-ld
c60fe18b
PB
51684configure-stage1-gcc: maybe-all-stage1-ld
51685configure-stage2-gcc: maybe-all-stage2-ld
51686configure-stage3-gcc: maybe-all-stage3-ld
51687configure-stage4-gcc: maybe-all-stage4-ld
51688configure-stageprofile-gcc: maybe-all-stageprofile-ld
51689configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408 51690configure-gcc: maybe-all-gold
93f9b408
ILT
51691configure-stage1-gcc: maybe-all-stage1-gold
51692configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 51693configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
51694configure-stage4-gcc: maybe-all-stage4-gold
51695configure-stageprofile-gcc: maybe-all-stageprofile-gold
51696configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480 51697configure-gcc: maybe-all-libelf
7530c480
AO
51698configure-stage1-gcc: maybe-all-stage1-libelf
51699configure-stage2-gcc: maybe-all-stage2-libelf
51700configure-stage3-gcc: maybe-all-stage3-libelf
51701configure-stage4-gcc: maybe-all-stage4-libelf
51702configure-stageprofile-gcc: maybe-all-stageprofile-libelf
51703configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251 51704configure-gcc: maybe-all-libiconv
016a3251
DD
51705configure-stage1-gcc: maybe-all-stage1-libiconv
51706configure-stage2-gcc: maybe-all-stage2-libiconv
51707configure-stage3-gcc: maybe-all-stage3-libiconv
51708configure-stage4-gcc: maybe-all-stage4-libiconv
51709configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
51710configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191 51711all-gcc: all-libiberty
9e6ce191
PB
51712all-stage1-gcc: all-stage1-libiberty
51713all-stage2-gcc: all-stage2-libiberty
51714all-stage3-gcc: all-stage3-libiberty
51715all-stage4-gcc: all-stage4-libiberty
51716all-stageprofile-gcc: all-stageprofile-libiberty
51717all-stagefeedback-gcc: all-stagefeedback-libiberty
51718all-gcc: maybe-all-intl
9e6ce191
PB
51719all-stage1-gcc: maybe-all-stage1-intl
51720all-stage2-gcc: maybe-all-stage2-intl
51721all-stage3-gcc: maybe-all-stage3-intl
51722all-stage4-gcc: maybe-all-stage4-intl
51723all-stageprofile-gcc: maybe-all-stageprofile-intl
51724all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473 51725all-gcc: maybe-all-mpfr
4b900473
PB
51726all-stage1-gcc: maybe-all-stage1-mpfr
51727all-stage2-gcc: maybe-all-stage2-mpfr
51728all-stage3-gcc: maybe-all-stage3-mpfr
51729all-stage4-gcc: maybe-all-stage4-mpfr
51730all-stageprofile-gcc: maybe-all-stageprofile-mpfr
51731all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c 51732all-gcc: maybe-all-mpc
e8a5fa9c
RW
51733all-stage1-gcc: maybe-all-stage1-mpc
51734all-stage2-gcc: maybe-all-stage2-mpc
51735all-stage3-gcc: maybe-all-stage3-mpc
51736all-stage4-gcc: maybe-all-stage4-mpc
51737all-stageprofile-gcc: maybe-all-stageprofile-mpc
51738all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831 51739all-gcc: maybe-all-isl
1b6c0831
L
51740all-stage1-gcc: maybe-all-stage1-isl
51741all-stage2-gcc: maybe-all-stage2-isl
51742all-stage3-gcc: maybe-all-stage3-isl
51743all-stage4-gcc: maybe-all-stage4-isl
51744all-stageprofile-gcc: maybe-all-stageprofile-isl
51745all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a 51746all-gcc: maybe-all-build-texinfo
72b2455a
PB
51747all-stage1-gcc: maybe-all-build-texinfo
51748all-stage2-gcc: maybe-all-build-texinfo
51749all-stage3-gcc: maybe-all-build-texinfo
51750all-stage4-gcc: maybe-all-build-texinfo
51751all-stageprofile-gcc: maybe-all-build-texinfo
51752all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a 51753all-gcc: maybe-all-build-bison
72b2455a
PB
51754all-stage1-gcc: maybe-all-build-bison
51755all-stage2-gcc: maybe-all-build-bison
51756all-stage3-gcc: maybe-all-build-bison
51757all-stage4-gcc: maybe-all-build-bison
51758all-stageprofile-gcc: maybe-all-build-bison
51759all-stagefeedback-gcc: maybe-all-build-bison
72b2455a 51760all-gcc: maybe-all-build-flex
72b2455a
PB
51761all-stage1-gcc: maybe-all-build-flex
51762all-stage2-gcc: maybe-all-build-flex
51763all-stage3-gcc: maybe-all-build-flex
51764all-stage4-gcc: maybe-all-build-flex
51765all-stageprofile-gcc: maybe-all-build-flex
51766all-stagefeedback-gcc: maybe-all-build-flex
ee025550 51767all-gcc: maybe-all-build-libiberty
ee025550
PB
51768all-stage1-gcc: maybe-all-build-libiberty
51769all-stage2-gcc: maybe-all-build-libiberty
51770all-stage3-gcc: maybe-all-build-libiberty
51771all-stage4-gcc: maybe-all-build-libiberty
51772all-stageprofile-gcc: maybe-all-build-libiberty
51773all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550 51774all-gcc: maybe-all-build-fixincludes
ee025550
PB
51775all-stage1-gcc: maybe-all-build-fixincludes
51776all-stage2-gcc: maybe-all-build-fixincludes
51777all-stage3-gcc: maybe-all-build-fixincludes
51778all-stage4-gcc: maybe-all-build-fixincludes
51779all-stageprofile-gcc: maybe-all-build-fixincludes
51780all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831 51781all-gcc: maybe-all-build-libcpp
1b6c0831
L
51782all-stage1-gcc: maybe-all-build-libcpp
51783all-stage2-gcc: maybe-all-build-libcpp
51784all-stage3-gcc: maybe-all-build-libcpp
51785all-stage4-gcc: maybe-all-build-libcpp
51786all-stageprofile-gcc: maybe-all-build-libcpp
51787all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191 51788all-gcc: maybe-all-zlib
9e6ce191
PB
51789all-stage1-gcc: maybe-all-stage1-zlib
51790all-stage2-gcc: maybe-all-stage2-zlib
51791all-stage3-gcc: maybe-all-stage3-zlib
51792all-stage4-gcc: maybe-all-stage4-zlib
51793all-stageprofile-gcc: maybe-all-stageprofile-zlib
51794all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b 51795all-gcc: all-libbacktrace
8e71395b
L
51796all-stage1-gcc: all-stage1-libbacktrace
51797all-stage2-gcc: all-stage2-libbacktrace
51798all-stage3-gcc: all-stage3-libbacktrace
51799all-stage4-gcc: all-stage4-libbacktrace
51800all-stageprofile-gcc: all-stageprofile-libbacktrace
51801all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191 51802all-gcc: all-libcpp
9e6ce191
PB
51803all-stage1-gcc: all-stage1-libcpp
51804all-stage2-gcc: all-stage2-libcpp
51805all-stage3-gcc: all-stage3-libcpp
51806all-stage4-gcc: all-stage4-libcpp
51807all-stageprofile-gcc: all-stageprofile-libcpp
51808all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343 51809all-gcc: all-libdecnumber
be01d343
PB
51810all-stage1-gcc: all-stage1-libdecnumber
51811all-stage2-gcc: all-stage2-libdecnumber
51812all-stage3-gcc: all-stage3-libdecnumber
51813all-stage4-gcc: all-stage4-libdecnumber
51814all-stageprofile-gcc: all-stageprofile-libdecnumber
51815all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c 51816all-gcc: maybe-all-libiberty
d3ed111c
GK
51817all-stage1-gcc: maybe-all-stage1-libiberty
51818all-stage2-gcc: maybe-all-stage2-libiberty
51819all-stage3-gcc: maybe-all-stage3-libiberty
51820all-stage4-gcc: maybe-all-stage4-libiberty
51821all-stageprofile-gcc: maybe-all-stageprofile-libiberty
51822all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
51823all-gcc: maybe-all-fixincludes
201f096f 51824all-stage1-gcc: maybe-all-stage1-fixincludes
51825all-stage2-gcc: maybe-all-stage2-fixincludes
51826all-stage3-gcc: maybe-all-stage3-fixincludes
51827all-stage4-gcc: maybe-all-stage4-fixincludes
51828all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
51829all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a 51830all-gcc: maybe-all-lto-plugin
8d8eef9a
RW
51831all-stage1-gcc: maybe-all-stage1-lto-plugin
51832all-stage2-gcc: maybe-all-stage2-lto-plugin
51833all-stage3-gcc: maybe-all-stage3-lto-plugin
51834all-stage4-gcc: maybe-all-stage4-lto-plugin
51835all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
51836all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251 51837all-gcc: maybe-all-libiconv
016a3251
DD
51838all-stage1-gcc: maybe-all-stage1-libiconv
51839all-stage2-gcc: maybe-all-stage2-libiconv
51840all-stage3-gcc: maybe-all-stage3-libiconv
51841all-stage4-gcc: maybe-all-stage4-libiconv
51842all-stageprofile-gcc: maybe-all-stageprofile-libiconv
51843all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d 51844info-gcc: maybe-all-build-libiberty
57eefe4d
RW
51845info-stage1-gcc: maybe-all-build-libiberty
51846info-stage2-gcc: maybe-all-build-libiberty
51847info-stage3-gcc: maybe-all-build-libiberty
51848info-stage4-gcc: maybe-all-build-libiberty
51849info-stageprofile-gcc: maybe-all-build-libiberty
51850info-stagefeedback-gcc: maybe-all-build-libiberty
51851dvi-gcc: maybe-all-build-libiberty
57eefe4d
RW
51852dvi-stage1-gcc: maybe-all-build-libiberty
51853dvi-stage2-gcc: maybe-all-build-libiberty
51854dvi-stage3-gcc: maybe-all-build-libiberty
51855dvi-stage4-gcc: maybe-all-build-libiberty
51856dvi-stageprofile-gcc: maybe-all-build-libiberty
51857dvi-stagefeedback-gcc: maybe-all-build-libiberty
51858pdf-gcc: maybe-all-build-libiberty
57eefe4d
RW
51859pdf-stage1-gcc: maybe-all-build-libiberty
51860pdf-stage2-gcc: maybe-all-build-libiberty
51861pdf-stage3-gcc: maybe-all-build-libiberty
51862pdf-stage4-gcc: maybe-all-build-libiberty
51863pdf-stageprofile-gcc: maybe-all-build-libiberty
51864pdf-stagefeedback-gcc: maybe-all-build-libiberty
51865html-gcc: maybe-all-build-libiberty
57eefe4d
RW
51866html-stage1-gcc: maybe-all-build-libiberty
51867html-stage2-gcc: maybe-all-build-libiberty
51868html-stage3-gcc: maybe-all-build-libiberty
51869html-stage4-gcc: maybe-all-build-libiberty
51870html-stageprofile-gcc: maybe-all-build-libiberty
51871html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 51872install-gcc: maybe-install-fixincludes
8d8eef9a 51873install-gcc: maybe-install-lto-plugin
9b980aa1 51874install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 51875install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191 51876configure-libcpp: configure-libiberty
9e6ce191
PB
51877configure-stage1-libcpp: configure-stage1-libiberty
51878configure-stage2-libcpp: configure-stage2-libiberty
51879configure-stage3-libcpp: configure-stage3-libiberty
51880configure-stage4-libcpp: configure-stage4-libiberty
51881configure-stageprofile-libcpp: configure-stageprofile-libiberty
51882configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
51883configure-libcpp: maybe-configure-intl
9e6ce191
PB
51884configure-stage1-libcpp: maybe-configure-stage1-intl
51885configure-stage2-libcpp: maybe-configure-stage2-intl
51886configure-stage3-libcpp: maybe-configure-stage3-intl
51887configure-stage4-libcpp: maybe-configure-stage4-intl
51888configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
51889configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251 51890configure-libcpp: maybe-all-libiconv
016a3251
DD
51891configure-stage1-libcpp: maybe-all-stage1-libiconv
51892configure-stage2-libcpp: maybe-all-stage2-libiconv
51893configure-stage3-libcpp: maybe-all-stage3-libiconv
51894configure-stage4-libcpp: maybe-all-stage4-libiconv
51895configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
51896configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191 51897all-libcpp: all-libiberty
9e6ce191
PB
51898all-stage1-libcpp: all-stage1-libiberty
51899all-stage2-libcpp: all-stage2-libiberty
51900all-stage3-libcpp: all-stage3-libiberty
51901all-stage4-libcpp: all-stage4-libiberty
51902all-stageprofile-libcpp: all-stageprofile-libiberty
51903all-stagefeedback-libcpp: all-stagefeedback-libiberty
51904all-libcpp: maybe-all-intl
9e6ce191
PB
51905all-stage1-libcpp: maybe-all-stage1-intl
51906all-stage2-libcpp: maybe-all-stage2-intl
51907all-stage3-libcpp: maybe-all-stage3-intl
51908all-stage4-libcpp: maybe-all-stage4-intl
51909all-stageprofile-libcpp: maybe-all-stageprofile-intl
51910all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251 51911all-libcpp: maybe-all-libiconv
016a3251
DD
51912all-stage1-libcpp: maybe-all-stage1-libiconv
51913all-stage2-libcpp: maybe-all-stage2-libiconv
51914all-stage3-libcpp: maybe-all-stage3-libiconv
51915all-stage4-libcpp: maybe-all-stage4-libiconv
51916all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
51917all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 51918all-fixincludes: maybe-all-libiberty
201f096f 51919all-stage1-fixincludes: maybe-all-stage1-libiberty
51920all-stage2-fixincludes: maybe-all-stage2-libiberty
51921all-stage3-fixincludes: maybe-all-stage3-libiberty
51922all-stage4-fixincludes: maybe-all-stage4-libiberty
51923all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
51924all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 51925all-gnattools: maybe-all-target-libada
8d8eef9a 51926all-lto-plugin: maybe-all-libiberty
8d8eef9a
RW
51927all-stage1-lto-plugin: maybe-all-stage1-libiberty
51928all-stage2-lto-plugin: maybe-all-stage2-libiberty
51929all-stage3-lto-plugin: maybe-all-stage3-libiberty
51930all-stage4-lto-plugin: maybe-all-stage4-libiberty
51931all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
51932all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831 51933all-lto-plugin: maybe-all-libiberty-linker-plugin
1b6c0831
L
51934all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
51935all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
51936all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
51937all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
51938all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
51939all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
1b6c0831 51940all-gotools: maybe-all-target-libgo
016a3251 51941configure-intl: maybe-all-libiconv
016a3251
DD
51942configure-stage1-intl: maybe-all-stage1-libiconv
51943configure-stage2-intl: maybe-all-stage2-libiconv
51944configure-stage3-intl: maybe-all-stage3-libiconv
51945configure-stage4-intl: maybe-all-stage4-libiconv
51946configure-stageprofile-intl: maybe-all-stageprofile-libiconv
51947configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473 51948configure-mpfr: maybe-all-gmp
4b900473
PB
51949configure-stage1-mpfr: maybe-all-stage1-gmp
51950configure-stage2-mpfr: maybe-all-stage2-gmp
51951configure-stage3-mpfr: maybe-all-stage3-gmp
51952configure-stage4-mpfr: maybe-all-stage4-gmp
51953configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
51954configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c 51955configure-mpc: maybe-all-mpfr
e8a5fa9c
RW
51956configure-stage1-mpc: maybe-all-stage1-mpfr
51957configure-stage2-mpc: maybe-all-stage2-mpfr
51958configure-stage3-mpc: maybe-all-stage3-mpfr
51959configure-stage4-mpc: maybe-all-stage4-mpfr
51960configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
51961configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e 51962configure-isl: maybe-all-gmp
7ec59b9e
L
51963configure-stage1-isl: maybe-all-stage1-gmp
51964configure-stage2-isl: maybe-all-stage2-gmp
51965configure-stage3-isl: maybe-all-stage3-gmp
51966configure-stage4-isl: maybe-all-stage4-gmp
51967configure-stageprofile-isl: maybe-all-stageprofile-gmp
51968configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251 51969all-intl: maybe-all-libiconv
016a3251
DD
51970all-stage1-intl: maybe-all-stage1-libiconv
51971all-stage2-intl: maybe-all-stage2-libiconv
51972all-stage3-intl: maybe-all-stage3-libiconv
51973all-stage4-intl: maybe-all-stage4-libiconv
51974all-stageprofile-intl: maybe-all-stageprofile-libiconv
51975all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
9e6ce191 51976configure-gdb: maybe-configure-sim
73cc7272 51977configure-gdb: maybe-all-gnulib
01027315 51978configure-gdb: maybe-all-gdbsupport
73cc7272 51979all-gdb: maybe-all-gnulib
01027315 51980all-gdb: maybe-all-gdbsupport
9e6ce191 51981all-gdb: maybe-all-readline
72b2455a 51982all-gdb: maybe-all-build-bison
9e6ce191 51983all-gdb: maybe-all-sim
dbbe5f95 51984all-gdb: maybe-all-libtermcap
1a627e7e 51985configure-gdbserver: maybe-all-gnulib
4635ff97 51986all-gdbserver: maybe-all-gdbsupport
1a627e7e 51987all-gdbserver: maybe-all-gnulib
9e6ce191
PB
51988configure-libgui: maybe-configure-tcl
51989configure-libgui: maybe-configure-tk
51990all-libgui: maybe-all-tcl
51991all-libgui: maybe-all-tk
51992all-libgui: maybe-all-itcl
01027315
TT
51993configure-gdbsupport: maybe-configure-gnulib
51994all-gdbsupport: maybe-all-gnulib
b4a77b47 51995configure-bfd: configure-libiberty
9e6ce191
PB
51996configure-stage1-bfd: configure-stage1-libiberty
51997configure-stage2-bfd: configure-stage2-libiberty
51998configure-stage3-bfd: configure-stage3-libiberty
51999configure-stage4-bfd: configure-stage4-libiberty
52000configure-stageprofile-bfd: configure-stageprofile-libiberty
52001configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23 52002configure-bfd: maybe-configure-intl
20e95c23
DJ
52003configure-stage1-bfd: maybe-configure-stage1-intl
52004configure-stage2-bfd: maybe-configure-stage2-intl
52005configure-stage3-bfd: maybe-configure-stage3-intl
52006configure-stage4-bfd: maybe-configure-stage4-intl
52007configure-stageprofile-bfd: maybe-configure-stageprofile-intl
52008configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191 52009all-bfd: maybe-all-libiberty
9e6ce191
PB
52010all-stage1-bfd: maybe-all-stage1-libiberty
52011all-stage2-bfd: maybe-all-stage2-libiberty
52012all-stage3-bfd: maybe-all-stage3-libiberty
52013all-stage4-bfd: maybe-all-stage4-libiberty
52014all-stageprofile-bfd: maybe-all-stageprofile-libiberty
52015all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
52016all-bfd: maybe-all-intl
9e6ce191
PB
52017all-stage1-bfd: maybe-all-stage1-intl
52018all-stage2-bfd: maybe-all-stage2-intl
52019all-stage3-bfd: maybe-all-stage3-intl
52020all-stage4-bfd: maybe-all-stage4-intl
52021all-stageprofile-bfd: maybe-all-stageprofile-intl
52022all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea 52023all-bfd: maybe-all-zlib
d2d67aea
L
52024all-stage1-bfd: maybe-all-stage1-zlib
52025all-stage2-bfd: maybe-all-stage2-zlib
52026all-stage3-bfd: maybe-all-stage3-zlib
52027all-stage4-bfd: maybe-all-stage4-zlib
52028all-stageprofile-bfd: maybe-all-stageprofile-zlib
52029all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67 52030configure-opcodes: configure-libiberty
66775d67
AM
52031configure-stage1-opcodes: configure-stage1-libiberty
52032configure-stage2-opcodes: configure-stage2-libiberty
66775d67 52033configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
52034configure-stage4-opcodes: configure-stage4-libiberty
52035configure-stageprofile-opcodes: configure-stageprofile-libiberty
52036configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
52037all-opcodes: maybe-all-libiberty
66775d67
AM
52038all-stage1-opcodes: maybe-all-stage1-libiberty
52039all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 52040all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
52041all-stage4-opcodes: maybe-all-stage4-libiberty
52042all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
52043all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23 52044configure-binutils: maybe-configure-intl
20e95c23
DJ
52045configure-stage1-binutils: maybe-configure-stage1-intl
52046configure-stage2-binutils: maybe-configure-stage2-intl
52047configure-stage3-binutils: maybe-configure-stage3-intl
52048configure-stage4-binutils: maybe-configure-stage4-intl
52049configure-stageprofile-binutils: maybe-configure-stageprofile-intl
52050configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191 52051all-binutils: maybe-all-libiberty
9e6ce191
PB
52052all-stage1-binutils: maybe-all-stage1-libiberty
52053all-stage2-binutils: maybe-all-stage2-libiberty
52054all-stage3-binutils: maybe-all-stage3-libiberty
52055all-stage4-binutils: maybe-all-stage4-libiberty
52056all-stageprofile-binutils: maybe-all-stageprofile-libiberty
52057all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
52058all-binutils: maybe-all-opcodes
9e6ce191
PB
52059all-stage1-binutils: maybe-all-stage1-opcodes
52060all-stage2-binutils: maybe-all-stage2-opcodes
52061all-stage3-binutils: maybe-all-stage3-opcodes
52062all-stage4-binutils: maybe-all-stage4-opcodes
52063all-stageprofile-binutils: maybe-all-stageprofile-opcodes
52064all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
52065all-binutils: maybe-all-bfd
9e6ce191
PB
52066all-stage1-binutils: maybe-all-stage1-bfd
52067all-stage2-binutils: maybe-all-stage2-bfd
52068all-stage3-binutils: maybe-all-stage3-bfd
52069all-stage4-binutils: maybe-all-stage4-bfd
52070all-stageprofile-binutils: maybe-all-stageprofile-bfd
52071all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a 52072all-binutils: maybe-all-build-flex
72b2455a
PB
52073all-stage1-binutils: maybe-all-build-flex
52074all-stage2-binutils: maybe-all-build-flex
52075all-stage3-binutils: maybe-all-build-flex
52076all-stage4-binutils: maybe-all-build-flex
52077all-stageprofile-binutils: maybe-all-build-flex
52078all-stagefeedback-binutils: maybe-all-build-flex
72b2455a 52079all-binutils: maybe-all-build-bison
72b2455a
PB
52080all-stage1-binutils: maybe-all-build-bison
52081all-stage2-binutils: maybe-all-build-bison
52082all-stage3-binutils: maybe-all-build-bison
52083all-stage4-binutils: maybe-all-build-bison
52084all-stageprofile-binutils: maybe-all-build-bison
52085all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191 52086all-binutils: maybe-all-intl
9e6ce191
PB
52087all-stage1-binutils: maybe-all-stage1-intl
52088all-stage2-binutils: maybe-all-stage2-intl
52089all-stage3-binutils: maybe-all-stage3-intl
52090all-stage4-binutils: maybe-all-stage4-intl
52091all-stageprofile-binutils: maybe-all-stageprofile-intl
52092all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685 52093all-binutils: maybe-all-gas
0140d685
L
52094all-stage1-binutils: maybe-all-stage1-gas
52095all-stage2-binutils: maybe-all-stage2-gas
52096all-stage3-binutils: maybe-all-stage3-gas
52097all-stage4-binutils: maybe-all-stage4-gas
52098all-stageprofile-binutils: maybe-all-stageprofile-gas
52099all-stagefeedback-binutils: maybe-all-stagefeedback-gas
0e65dfba
NA
52100all-binutils: maybe-all-libctf
52101all-stage1-binutils: maybe-all-stage1-libctf
52102all-stage2-binutils: maybe-all-stage2-libctf
52103all-stage3-binutils: maybe-all-stage3-libctf
52104all-stage4-binutils: maybe-all-stage4-libctf
52105all-stageprofile-binutils: maybe-all-stageprofile-libctf
52106all-stagefeedback-binutils: maybe-all-stagefeedback-libctf
1ff6de03
NA
52107all-ld: maybe-all-libctf
52108all-stage1-ld: maybe-all-stage1-libctf
52109all-stage2-ld: maybe-all-stage2-libctf
52110all-stage3-ld: maybe-all-stage3-libctf
52111all-stage4-ld: maybe-all-stage4-libctf
52112all-stageprofile-ld: maybe-all-stageprofile-libctf
52113all-stagefeedback-ld: maybe-all-stagefeedback-libctf
ae831be5 52114install-binutils: maybe-install-opcodes
9b980aa1 52115install-strip-binutils: maybe-install-strip-opcodes
cf662e21 52116install-opcodes: maybe-install-bfd
9b980aa1 52117install-strip-opcodes: maybe-install-strip-bfd
20e95c23 52118configure-gas: maybe-configure-intl
20e95c23
DJ
52119configure-stage1-gas: maybe-configure-stage1-intl
52120configure-stage2-gas: maybe-configure-stage2-intl
52121configure-stage3-gas: maybe-configure-stage3-intl
52122configure-stage4-gas: maybe-configure-stage4-intl
52123configure-stageprofile-gas: maybe-configure-stageprofile-intl
52124configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191 52125all-gas: maybe-all-libiberty
9e6ce191
PB
52126all-stage1-gas: maybe-all-stage1-libiberty
52127all-stage2-gas: maybe-all-stage2-libiberty
52128all-stage3-gas: maybe-all-stage3-libiberty
52129all-stage4-gas: maybe-all-stage4-libiberty
52130all-stageprofile-gas: maybe-all-stageprofile-libiberty
52131all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
52132all-gas: maybe-all-opcodes
9e6ce191
PB
52133all-stage1-gas: maybe-all-stage1-opcodes
52134all-stage2-gas: maybe-all-stage2-opcodes
52135all-stage3-gas: maybe-all-stage3-opcodes
52136all-stage4-gas: maybe-all-stage4-opcodes
52137all-stageprofile-gas: maybe-all-stageprofile-opcodes
52138all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
52139all-gas: maybe-all-bfd
9e6ce191
PB
52140all-stage1-gas: maybe-all-stage1-bfd
52141all-stage2-gas: maybe-all-stage2-bfd
52142all-stage3-gas: maybe-all-stage3-bfd
52143all-stage4-gas: maybe-all-stage4-bfd
52144all-stageprofile-gas: maybe-all-stageprofile-bfd
52145all-stagefeedback-gas: maybe-all-stagefeedback-bfd
52146all-gas: maybe-all-intl
9e6ce191
PB
52147all-stage1-gas: maybe-all-stage1-intl
52148all-stage2-gas: maybe-all-stage2-intl
52149all-stage3-gas: maybe-all-stage3-intl
52150all-stage4-gas: maybe-all-stage4-intl
52151all-stageprofile-gas: maybe-all-stageprofile-intl
52152all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 52153configure-ld: maybe-configure-intl
20e95c23
DJ
52154configure-stage1-ld: maybe-configure-stage1-intl
52155configure-stage2-ld: maybe-configure-stage2-intl
52156configure-stage3-ld: maybe-configure-stage3-intl
52157configure-stage4-ld: maybe-configure-stage4-intl
52158configure-stageprofile-ld: maybe-configure-stageprofile-intl
52159configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191 52160all-ld: maybe-all-libiberty
9e6ce191
PB
52161all-stage1-ld: maybe-all-stage1-libiberty
52162all-stage2-ld: maybe-all-stage2-libiberty
52163all-stage3-ld: maybe-all-stage3-libiberty
52164all-stage4-ld: maybe-all-stage4-libiberty
52165all-stageprofile-ld: maybe-all-stageprofile-libiberty
52166all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
52167all-ld: maybe-all-bfd
9e6ce191
PB
52168all-stage1-ld: maybe-all-stage1-bfd
52169all-stage2-ld: maybe-all-stage2-bfd
52170all-stage3-ld: maybe-all-stage3-bfd
52171all-stage4-ld: maybe-all-stage4-bfd
52172all-stageprofile-ld: maybe-all-stageprofile-bfd
52173all-stagefeedback-ld: maybe-all-stagefeedback-bfd
52174all-ld: maybe-all-opcodes
9e6ce191
PB
52175all-stage1-ld: maybe-all-stage1-opcodes
52176all-stage2-ld: maybe-all-stage2-opcodes
52177all-stage3-ld: maybe-all-stage3-opcodes
52178all-stage4-ld: maybe-all-stage4-opcodes
52179all-stageprofile-ld: maybe-all-stageprofile-opcodes
52180all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a 52181all-ld: maybe-all-build-bison
72b2455a
PB
52182all-stage1-ld: maybe-all-build-bison
52183all-stage2-ld: maybe-all-build-bison
52184all-stage3-ld: maybe-all-build-bison
52185all-stage4-ld: maybe-all-build-bison
52186all-stageprofile-ld: maybe-all-build-bison
52187all-stagefeedback-ld: maybe-all-build-bison
72b2455a 52188all-ld: maybe-all-build-flex
72b2455a
PB
52189all-stage1-ld: maybe-all-build-flex
52190all-stage2-ld: maybe-all-build-flex
52191all-stage3-ld: maybe-all-build-flex
52192all-stage4-ld: maybe-all-build-flex
52193all-stageprofile-ld: maybe-all-build-flex
52194all-stagefeedback-ld: maybe-all-build-flex
9e6ce191 52195all-ld: maybe-all-intl
9e6ce191
PB
52196all-stage1-ld: maybe-all-stage1-intl
52197all-stage2-ld: maybe-all-stage2-intl
52198all-stage3-ld: maybe-all-stage3-intl
52199all-stage4-ld: maybe-all-stage4-intl
52200all-stageprofile-ld: maybe-all-stageprofile-intl
52201all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685 52202all-ld: maybe-all-gas
0140d685
L
52203all-stage1-ld: maybe-all-stage1-gas
52204all-stage2-ld: maybe-all-stage2-gas
52205all-stage3-ld: maybe-all-stage3-gas
52206all-stage4-ld: maybe-all-stage4-gas
52207all-stageprofile-ld: maybe-all-stageprofile-gas
52208all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403 52209all-ld: maybe-all-binutils
a6305403
YS
52210all-stage1-ld: maybe-all-stage1-binutils
52211all-stage2-ld: maybe-all-stage2-binutils
52212all-stage3-ld: maybe-all-stage3-binutils
52213all-stage4-ld: maybe-all-stage4-binutils
52214all-stageprofile-ld: maybe-all-stageprofile-binutils
52215all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 52216install-ld: maybe-install-gold
9b980aa1 52217install-strip-ld: maybe-install-strip-gold
93f9b408 52218configure-gold: maybe-configure-intl
93f9b408
ILT
52219configure-stage1-gold: maybe-configure-stage1-intl
52220configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 52221configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
52222configure-stage4-gold: maybe-configure-stage4-intl
52223configure-stageprofile-gold: maybe-configure-stageprofile-intl
52224configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
52225all-gold: maybe-all-libiberty
93f9b408
ILT
52226all-stage1-gold: maybe-all-stage1-libiberty
52227all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 52228all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
52229all-stage4-gold: maybe-all-stage4-libiberty
52230all-stageprofile-gold: maybe-all-stageprofile-libiberty
52231all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
52232all-gold: maybe-all-intl
93f9b408
ILT
52233all-stage1-gold: maybe-all-stage1-intl
52234all-stage2-gold: maybe-all-stage2-intl
93f9b408 52235all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
52236all-stage4-gold: maybe-all-stage4-intl
52237all-stageprofile-gold: maybe-all-stageprofile-intl
52238all-stagefeedback-gold: maybe-all-stagefeedback-intl
52239all-gold: maybe-all-bfd
93f9b408
ILT
52240all-stage1-gold: maybe-all-stage1-bfd
52241all-stage2-gold: maybe-all-stage2-bfd
93f9b408 52242all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
52243all-stage4-gold: maybe-all-stage4-bfd
52244all-stageprofile-gold: maybe-all-stageprofile-bfd
52245all-stagefeedback-gold: maybe-all-stagefeedback-bfd
52246all-gold: maybe-all-build-bison
93f9b408
ILT
52247all-stage1-gold: maybe-all-build-bison
52248all-stage2-gold: maybe-all-build-bison
93f9b408 52249all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
52250all-stage4-gold: maybe-all-build-bison
52251all-stageprofile-gold: maybe-all-build-bison
52252all-stagefeedback-gold: maybe-all-build-bison
0140d685 52253all-gold: maybe-all-gas
0140d685
L
52254all-stage1-gold: maybe-all-stage1-gas
52255all-stage2-gold: maybe-all-stage2-gas
52256all-stage3-gold: maybe-all-stage3-gas
52257all-stage4-gold: maybe-all-stage4-gas
52258all-stageprofile-gold: maybe-all-stageprofile-gas
52259all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97 52260check-gold: maybe-all-binutils
e5164e97
ILT
52261check-stage1-gold: maybe-all-stage1-binutils
52262check-stage2-gold: maybe-all-stage2-binutils
e5164e97 52263check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
52264check-stage4-gold: maybe-all-stage4-binutils
52265check-stageprofile-gold: maybe-all-stageprofile-binutils
52266check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca 52267check-gold: maybe-all-gas
700d40ca
ILT
52268check-stage1-gold: maybe-all-stage1-gas
52269check-stage2-gold: maybe-all-stage2-gas
52270check-stage3-gold: maybe-all-stage3-gas
52271check-stage4-gold: maybe-all-stage4-gas
52272check-stageprofile-gold: maybe-all-stageprofile-gas
52273check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee 52274configure-opcodes: maybe-configure-intl
7206a0ee
JJ
52275configure-stage1-opcodes: maybe-configure-stage1-intl
52276configure-stage2-opcodes: maybe-configure-stage2-intl
52277configure-stage3-opcodes: maybe-configure-stage3-intl
52278configure-stage4-opcodes: maybe-configure-stage4-intl
52279configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
52280configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191 52281all-opcodes: maybe-all-bfd
9e6ce191
PB
52282all-stage1-opcodes: maybe-all-stage1-bfd
52283all-stage2-opcodes: maybe-all-stage2-bfd
52284all-stage3-opcodes: maybe-all-stage3-bfd
52285all-stage4-opcodes: maybe-all-stage4-bfd
52286all-stageprofile-opcodes: maybe-all-stageprofile-bfd
52287all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
52288all-opcodes: maybe-all-libiberty
9e6ce191
PB
52289all-stage1-opcodes: maybe-all-stage1-libiberty
52290all-stage2-opcodes: maybe-all-stage2-libiberty
52291all-stage3-opcodes: maybe-all-stage3-libiberty
52292all-stage4-opcodes: maybe-all-stage4-libiberty
52293all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
52294all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee 52295all-opcodes: maybe-all-intl
7206a0ee
JJ
52296all-stage1-opcodes: maybe-all-stage1-intl
52297all-stage2-opcodes: maybe-all-stage2-intl
52298all-stage3-opcodes: maybe-all-stage3-intl
52299all-stage4-opcodes: maybe-all-stage4-intl
52300all-stageprofile-opcodes: maybe-all-stageprofile-intl
52301all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
52302all-dejagnu: maybe-all-tcl
52303all-dejagnu: maybe-all-expect
52304all-dejagnu: maybe-all-tk
52305configure-expect: maybe-configure-tcl
52306configure-expect: maybe-configure-tk
52307all-expect: maybe-all-tcl
52308all-expect: maybe-all-tk
52309configure-itcl: maybe-configure-tcl
52310configure-itcl: maybe-configure-tk
52311all-itcl: maybe-all-tcl
52312all-itcl: maybe-all-tk
ae831be5 52313install-itcl: maybe-install-tcl
9b980aa1 52314install-strip-itcl: maybe-install-strip-tcl
b4a77b47 52315configure-tk: maybe-configure-tcl
ae831be5 52316all-tk: maybe-all-tcl
9e6ce191
PB
52317all-sid: maybe-all-tcl
52318all-sid: maybe-all-tk
52319install-sid: maybe-install-tcl
9b980aa1 52320install-strip-sid: maybe-install-strip-tcl
9e6ce191 52321install-sid: maybe-install-tk
9b980aa1 52322install-strip-sid: maybe-install-strip-tk
9e6ce191
PB
52323all-sim: maybe-all-readline
52324all-sim: maybe-configure-gdb
72b2455a 52325all-fastjar: maybe-all-build-texinfo
0e65dfba
NA
52326all-libctf: all-libiberty
52327all-stage1-libctf: all-stage1-libiberty
52328all-stage2-libctf: all-stage2-libiberty
52329all-stage3-libctf: all-stage3-libiberty
52330all-stage4-libctf: all-stage4-libiberty
52331all-stageprofile-libctf: all-stageprofile-libiberty
52332all-stagefeedback-libctf: all-stagefeedback-libiberty
52333all-libctf: maybe-all-bfd
52334all-stage1-libctf: maybe-all-stage1-bfd
52335all-stage2-libctf: maybe-all-stage2-bfd
52336all-stage3-libctf: maybe-all-stage3-bfd
52337all-stage4-libctf: maybe-all-stage4-bfd
52338all-stageprofile-libctf: maybe-all-stageprofile-bfd
52339all-stagefeedback-libctf: maybe-all-stagefeedback-bfd
52340all-libctf: maybe-all-zlib
52341all-stage1-libctf: maybe-all-stage1-zlib
52342all-stage2-libctf: maybe-all-stage2-zlib
52343all-stage3-libctf: maybe-all-stage3-zlib
52344all-stage4-libctf: maybe-all-stage4-zlib
52345all-stageprofile-libctf: maybe-all-stageprofile-zlib
52346all-stagefeedback-libctf: maybe-all-stagefeedback-zlib
9698cf9b
NA
52347configure-libctf: maybe-all-bfd
52348configure-stage1-libctf: maybe-all-stage1-bfd
52349configure-stage2-libctf: maybe-all-stage2-bfd
52350configure-stage3-libctf: maybe-all-stage3-bfd
52351configure-stage4-libctf: maybe-all-stage4-bfd
52352configure-stageprofile-libctf: maybe-all-stageprofile-bfd
52353configure-stagefeedback-libctf: maybe-all-stagefeedback-bfd
52354configure-libctf: maybe-all-intl
52355configure-stage1-libctf: maybe-all-stage1-intl
52356configure-stage2-libctf: maybe-all-stage2-intl
52357configure-stage3-libctf: maybe-all-stage3-intl
52358configure-stage4-libctf: maybe-all-stage4-intl
52359configure-stageprofile-libctf: maybe-all-stageprofile-intl
52360configure-stagefeedback-libctf: maybe-all-stagefeedback-intl
52361configure-libctf: maybe-all-zlib
52362configure-stage1-libctf: maybe-all-stage1-zlib
52363configure-stage2-libctf: maybe-all-stage2-zlib
52364configure-stage3-libctf: maybe-all-stage3-zlib
52365configure-stage4-libctf: maybe-all-stage4-zlib
52366configure-stageprofile-libctf: maybe-all-stageprofile-zlib
52367configure-stagefeedback-libctf: maybe-all-stagefeedback-zlib
52368configure-libctf: maybe-all-libiconv
52369configure-stage1-libctf: maybe-all-stage1-libiconv
52370configure-stage2-libctf: maybe-all-stage2-libiconv
52371configure-stage3-libctf: maybe-all-stage3-libiconv
52372configure-stage4-libctf: maybe-all-stage4-libiconv
52373configure-stageprofile-libctf: maybe-all-stageprofile-libiconv
52374configure-stagefeedback-libctf: maybe-all-stagefeedback-libiconv
c59e30ed
NA
52375check-libctf: maybe-all-ld
52376check-stage1-libctf: maybe-all-stage1-ld
52377check-stage2-libctf: maybe-all-stage2-ld
52378check-stage3-libctf: maybe-all-stage3-ld
52379check-stage4-libctf: maybe-all-stage4-ld
52380check-stageprofile-libctf: maybe-all-stageprofile-ld
52381check-stagefeedback-libctf: maybe-all-stagefeedback-ld
ba4d88ad
AB
52382distclean-gnulib: maybe-distclean-gdb
52383distclean-gnulib: maybe-distclean-gdbserver
72b2455a 52384all-bison: maybe-all-build-texinfo
72b2455a 52385all-flex: maybe-all-build-bison
9e6ce191 52386all-flex: maybe-all-m4
72b2455a 52387all-flex: maybe-all-build-texinfo
72b2455a 52388all-m4: maybe-all-build-texinfo
b4a77b47 52389configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 52390all-target-fastjar: maybe-all-target-zlib
e552509b 52391configure-target-libgo: maybe-configure-target-libffi
8e71395b 52392all-target-libgo: maybe-all-target-libbacktrace
e552509b 52393all-target-libgo: maybe-all-target-libffi
9417cd2f 52394all-target-libgo: maybe-all-target-libatomic
cff87f51 52395configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
52396configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
52397configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
52398configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
52399configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
52400configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
52401configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
5286fdef 52402configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
52403configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
52404configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
52405configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
52406configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
52407configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
52408configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135 52409configure-target-libvtv: maybe-all-target-libstdc++-v3
95e43135
JBG
52410configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
52411configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
52412configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
52413configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
52414configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
52415configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0 52416all-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
52417all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
52418all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
52419all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
52420all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
52421all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
52422all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
9417cd2f
JBG
52423install-target-libgo: maybe-install-target-libatomic
52424install-target-libgfortran: maybe-install-target-libquadmath
52425install-target-libgfortran: maybe-install-target-libgcc
3dae1673 52426install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 52427install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
52428install-target-libvtv: maybe-install-target-libstdc++-v3
52429install-target-libvtv: maybe-install-target-libgcc
e3f56a99
NC
52430install-target-libcilkrts: maybe-install-target-libstdc++-v3
52431install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
52432install-target-liboffloadmic: maybe-install-target-libstdc++-v3
52433install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
52434install-target-libitm: maybe-install-target-libgcc
52435install-target-libobjc: maybe-install-target-libgcc
52436install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 52437all-target-libgloss: maybe-all-target-newlib
9e6ce191 52438all-target-winsup: maybe-all-target-libtermcap
e552509b 52439configure-target-libgfortran: maybe-all-target-libquadmath
68996839 52440configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
52441
52442
4119873a
AO
52443@if gcc-bootstrap
52444configure-gnattools: stage_last
52445configure-libcc1: stage_last
52446configure-utils: stage_last
52447configure-gdb: stage_last
1a627e7e 52448configure-gdbserver: stage_last
01027315 52449configure-gdbsupport: stage_last
4119873a
AO
52450configure-gprof: stage_last
52451configure-sid: stage_last
52452configure-sim: stage_last
52453configure-fastjar: stage_last
52454configure-bison: stage_last
52455configure-flex: stage_last
52456configure-m4: stage_last
52457@endif gcc-bootstrap
52458
52459@unless gcc-bootstrap
52460all-gnattools: maybe-all-target-libstdc++-v3
52461configure-libcc1: maybe-configure-gcc
52462all-libcc1: maybe-all-gcc
52463all-utils: maybe-all-libiberty
52464configure-gdb: maybe-all-intl
52465configure-gdb: maybe-all-bfd
52466configure-gdb: maybe-all-libiconv
52467all-gdb: maybe-all-libiberty
52468all-gdb: maybe-all-libiconv
52469all-gdb: maybe-all-opcodes
52470all-gdb: maybe-all-libdecnumber
30d1f018 52471all-gdb: maybe-all-libctf
1a627e7e 52472all-gdbserver: maybe-all-libiberty
9a665d62 52473configure-gdbsupport: maybe-configure-intl
9a665d62 52474all-gdbsupport: maybe-all-intl
4119873a
AO
52475configure-gprof: maybe-configure-intl
52476all-gprof: maybe-all-libiberty
52477all-gprof: maybe-all-bfd
52478all-gprof: maybe-all-opcodes
52479all-gprof: maybe-all-intl
52480all-gprof: maybe-all-gas
52481all-sid: maybe-all-libiberty
52482all-sid: maybe-all-bfd
52483all-sid: maybe-all-opcodes
52484configure-sim: maybe-configure-intl
52485all-sim: maybe-all-intl
52486all-sim: maybe-all-libiberty
52487all-sim: maybe-all-bfd
52488all-sim: maybe-all-opcodes
52489all-fastjar: maybe-all-zlib
52490all-fastjar: maybe-all-libiberty
52491all-bison: maybe-all-intl
52492all-flex: maybe-all-intl
52493all-m4: maybe-all-intl
52494configure-target-libgo: maybe-all-target-libstdc++-v3
52495configure-target-liboffloadmic: maybe-configure-target-libgomp
52496all-target-liboffloadmic: maybe-all-target-libgomp
52497configure-target-newlib: maybe-all-binutils
52498configure-target-newlib: maybe-all-ld
52499@endunless gcc-bootstrap
52500
6aa8ef82
DJ
52501# Dependencies for target modules on other target modules are
52502# described by lang_env_dependencies; the defaults apply to anything
52503# not mentioned there.
52504
52505
52506@if gcc-bootstrap
e8a5fa9c
RW
52507configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
52508configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
52509configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
52510configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
52511configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
52512configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
52513configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
52514configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
52515configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
52516configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
52517configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
52518configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
52519configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
52520configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
52521configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
52522configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
52523configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
52524configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
52525configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
52526configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
52527configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
52528configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
52529configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
52530configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
52531configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
52532configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
52533configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
52534configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
52535configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
52536configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
52537@endif gcc-bootstrap
52538
52539@if gcc-no-bootstrap
52540configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 52541configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 52542configure-target-libmpx: maybe-all-target-libgcc
95e43135 52543configure-target-libvtv: maybe-all-target-libgcc
e3f56a99 52544configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 52545configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 52546configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 52547configure-target-newlib: maybe-all-target-libgcc
2bf680c4 52548configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 52549configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
52550configure-target-libgfortran: maybe-all-target-libgcc
52551configure-target-libobjc: maybe-all-target-libgcc
e552509b 52552configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
52553configure-target-libtermcap: maybe-all-target-libgcc
52554configure-target-winsup: maybe-all-target-libgcc
52555configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82 52556configure-target-libffi: maybe-all-target-libgcc
6aa8ef82 52557configure-target-zlib: maybe-all-target-libgcc
6aa8ef82
DJ
52558configure-target-rda: maybe-all-target-libgcc
52559configure-target-libada: maybe-all-target-libgcc
52560configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
52561configure-target-libitm: maybe-all-target-libgcc
52562configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
52563@endif gcc-no-bootstrap
52564
52565
52566configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
52567
5286fdef
L
52568configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
52569
1b6c0831
L
52570configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
52571
95e43135
JBG
52572configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
52573
e3f56a99
NC
52574configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
52575configure-target-libcilkrts: maybe-all-target-libstdc++-v3
52576
1b6c0831
L
52577configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
52578configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
52579
6aa8ef82
DJ
52580configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
52581
52582
52583
2bf680c4
ILT
52584configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
52585
e552509b
ILT
52586configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
52587
6aa8ef82
DJ
52588configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
52589
52590configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
52591
e552509b
ILT
52592configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
52593
6aa8ef82
DJ
52594configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
52595
52596configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
52597
52598
6aa8ef82 52599configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 52600configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82 52601
6aa8ef82
DJ
52602configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
52603
6aa8ef82
DJ
52604configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
52605
52606configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
52607
52608configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
52609
7ec59b9e
L
52610configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
52611configure-target-libitm: maybe-all-target-libstdc++-v3
52612
52613configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
52614
6aa8ef82 52615
907be67c 52616CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 52617GDB_TK = @GDB_TK@
907be67c
DJ
52618INSTALL_GDB_TK = @INSTALL_GDB_TK@
52619configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 52620all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 52621install-gdb: $(INSTALL_GDB_TK)
907a7241 52622
a2cc058a
NN
52623# Serialization dependencies. Host configures don't work well in parallel to
52624# each other, due to contention over config.cache. Target configures and
52625# build configures are similar.
52626@serialization_dependencies@
52627
15723a45
NN
52628# --------------------------------
52629# Regenerating top level configury
52630# --------------------------------
252b5132 52631
14a2a2f1 52632# Rebuilding Makefile.in, using autogen.
43be203f 52633AUTOGEN = autogen
6b784d9f 52634$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 52635 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 52636
a0da8069 52637# Rebuilding Makefile.
43be203f
AO
52638Makefile: $(srcdir)/Makefile.in config.status
52639 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
52640
479759c8 52641config.status: configure
10ecffb9 52642 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 52643
a0da8069 52644# Rebuilding configure.
43be203f 52645AUTOCONF = autoconf
da888c87 52646$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
0597bdc4
AM
52647 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
52648 $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
52649 $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
52650 $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
43be203f 52651 cd $(srcdir) && $(AUTOCONF)
252b5132 52652
3728fade
NN
52653# ------------------------------
52654# Special directives to GNU Make
52655# ------------------------------
52656
3728fade
NN
52657# Don't pass command-line variables to submakes.
52658.NOEXPORT:
52659MAKEOVERRIDES=
52660
252b5132 52661# end of Makefile.in
This page took 5.806074 seconds and 4 git commands to generate.