gdb: defer commit resume until all available events are consumed
[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:
34764
34765@endif libctf
34766
34767.PHONY: install-libctf maybe-install-libctf
34768maybe-install-libctf:
34769@if libctf
34770maybe-install-libctf: install-libctf
34771
87279e3c
NA
34772install-libctf: installdirs
34773 @: $(MAKE); $(unstage)
34774 @r=`${PWD_COMMAND}`; export r; \
34775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34776 $(HOST_EXPORTS) \
34777 (cd $(HOST_SUBDIR)/libctf && \
34778 $(MAKE) $(FLAGS_TO_PASS) install)
0e65dfba
NA
34779
34780@endif libctf
34781
34782.PHONY: install-strip-libctf maybe-install-strip-libctf
34783maybe-install-strip-libctf:
34784@if libctf
34785maybe-install-strip-libctf: install-strip-libctf
34786
87279e3c
NA
34787install-strip-libctf: installdirs
34788 @: $(MAKE); $(unstage)
34789 @r=`${PWD_COMMAND}`; export r; \
34790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34791 $(HOST_EXPORTS) \
34792 (cd $(HOST_SUBDIR)/libctf && \
34793 $(MAKE) $(FLAGS_TO_PASS) install-strip)
0e65dfba
NA
34794
34795@endif libctf
34796
34797# Other targets (info, dvi, pdf, etc.)
34798
34799.PHONY: maybe-info-libctf info-libctf
34800maybe-info-libctf:
34801@if libctf
34802maybe-info-libctf: info-libctf
34803
34804info-libctf: \
34805 configure-libctf
34806 @[ -f ./libctf/Makefile ] || exit 0; \
34807 r=`${PWD_COMMAND}`; export r; \
34808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34809 $(HOST_EXPORTS) \
34810 for flag in $(EXTRA_HOST_FLAGS) ; do \
34811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34812 done; \
34813 echo "Doing info in libctf"; \
34814 (cd $(HOST_SUBDIR)/libctf && \
34815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34817 "RANLIB=$${RANLIB}" \
34818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34819 info) \
34820 || exit 1
34821
34822@endif libctf
34823
34824.PHONY: maybe-dvi-libctf dvi-libctf
34825maybe-dvi-libctf:
34826@if libctf
34827maybe-dvi-libctf: dvi-libctf
34828
34829dvi-libctf: \
34830 configure-libctf
34831 @[ -f ./libctf/Makefile ] || exit 0; \
34832 r=`${PWD_COMMAND}`; export r; \
34833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34834 $(HOST_EXPORTS) \
34835 for flag in $(EXTRA_HOST_FLAGS) ; do \
34836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34837 done; \
34838 echo "Doing dvi in libctf"; \
34839 (cd $(HOST_SUBDIR)/libctf && \
34840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34842 "RANLIB=$${RANLIB}" \
34843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34844 dvi) \
34845 || exit 1
34846
34847@endif libctf
34848
34849.PHONY: maybe-pdf-libctf pdf-libctf
34850maybe-pdf-libctf:
34851@if libctf
34852maybe-pdf-libctf: pdf-libctf
34853
34854pdf-libctf: \
34855 configure-libctf
34856 @[ -f ./libctf/Makefile ] || exit 0; \
34857 r=`${PWD_COMMAND}`; export r; \
34858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34859 $(HOST_EXPORTS) \
34860 for flag in $(EXTRA_HOST_FLAGS) ; do \
34861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34862 done; \
34863 echo "Doing pdf in libctf"; \
34864 (cd $(HOST_SUBDIR)/libctf && \
34865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34867 "RANLIB=$${RANLIB}" \
34868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34869 pdf) \
34870 || exit 1
34871
34872@endif libctf
34873
34874.PHONY: maybe-html-libctf html-libctf
34875maybe-html-libctf:
34876@if libctf
34877maybe-html-libctf: html-libctf
34878
34879html-libctf: \
34880 configure-libctf
34881 @[ -f ./libctf/Makefile ] || exit 0; \
34882 r=`${PWD_COMMAND}`; export r; \
34883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34884 $(HOST_EXPORTS) \
34885 for flag in $(EXTRA_HOST_FLAGS) ; do \
34886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34887 done; \
34888 echo "Doing html in libctf"; \
34889 (cd $(HOST_SUBDIR)/libctf && \
34890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34892 "RANLIB=$${RANLIB}" \
34893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34894 html) \
34895 || exit 1
34896
34897@endif libctf
34898
34899.PHONY: maybe-TAGS-libctf TAGS-libctf
34900maybe-TAGS-libctf:
34901@if libctf
34902maybe-TAGS-libctf: TAGS-libctf
34903
34904TAGS-libctf: \
34905 configure-libctf
34906 @[ -f ./libctf/Makefile ] || exit 0; \
34907 r=`${PWD_COMMAND}`; export r; \
34908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34909 $(HOST_EXPORTS) \
34910 for flag in $(EXTRA_HOST_FLAGS) ; do \
34911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34912 done; \
34913 echo "Doing TAGS in libctf"; \
34914 (cd $(HOST_SUBDIR)/libctf && \
34915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34917 "RANLIB=$${RANLIB}" \
34918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34919 TAGS) \
34920 || exit 1
34921
34922@endif libctf
34923
34924.PHONY: maybe-install-info-libctf install-info-libctf
34925maybe-install-info-libctf:
34926@if libctf
34927maybe-install-info-libctf: install-info-libctf
34928
34929install-info-libctf: \
34930 configure-libctf \
34931 info-libctf
34932 @[ -f ./libctf/Makefile ] || exit 0; \
34933 r=`${PWD_COMMAND}`; export r; \
34934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34935 $(HOST_EXPORTS) \
34936 for flag in $(EXTRA_HOST_FLAGS) ; do \
34937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34938 done; \
34939 echo "Doing install-info in libctf"; \
34940 (cd $(HOST_SUBDIR)/libctf && \
34941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34943 "RANLIB=$${RANLIB}" \
34944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34945 install-info) \
34946 || exit 1
34947
34948@endif libctf
34949
34950.PHONY: maybe-install-pdf-libctf install-pdf-libctf
34951maybe-install-pdf-libctf:
34952@if libctf
34953maybe-install-pdf-libctf: install-pdf-libctf
34954
34955install-pdf-libctf: \
34956 configure-libctf \
34957 pdf-libctf
34958 @[ -f ./libctf/Makefile ] || exit 0; \
34959 r=`${PWD_COMMAND}`; export r; \
34960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34961 $(HOST_EXPORTS) \
34962 for flag in $(EXTRA_HOST_FLAGS) ; do \
34963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34964 done; \
34965 echo "Doing install-pdf in libctf"; \
34966 (cd $(HOST_SUBDIR)/libctf && \
34967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34969 "RANLIB=$${RANLIB}" \
34970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34971 install-pdf) \
34972 || exit 1
34973
34974@endif libctf
34975
34976.PHONY: maybe-install-html-libctf install-html-libctf
34977maybe-install-html-libctf:
34978@if libctf
34979maybe-install-html-libctf: install-html-libctf
34980
34981install-html-libctf: \
34982 configure-libctf \
34983 html-libctf
34984 @[ -f ./libctf/Makefile ] || exit 0; \
34985 r=`${PWD_COMMAND}`; export r; \
34986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34987 $(HOST_EXPORTS) \
34988 for flag in $(EXTRA_HOST_FLAGS) ; do \
34989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34990 done; \
34991 echo "Doing install-html in libctf"; \
34992 (cd $(HOST_SUBDIR)/libctf && \
34993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34995 "RANLIB=$${RANLIB}" \
34996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34997 install-html) \
34998 || exit 1
34999
35000@endif libctf
35001
35002.PHONY: maybe-installcheck-libctf installcheck-libctf
35003maybe-installcheck-libctf:
35004@if libctf
35005maybe-installcheck-libctf: installcheck-libctf
35006
35007installcheck-libctf: \
35008 configure-libctf
35009 @[ -f ./libctf/Makefile ] || exit 0; \
35010 r=`${PWD_COMMAND}`; export r; \
35011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35012 $(HOST_EXPORTS) \
35013 for flag in $(EXTRA_HOST_FLAGS) ; do \
35014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35015 done; \
35016 echo "Doing installcheck in libctf"; \
35017 (cd $(HOST_SUBDIR)/libctf && \
35018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35020 "RANLIB=$${RANLIB}" \
35021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35022 installcheck) \
35023 || exit 1
35024
35025@endif libctf
35026
35027.PHONY: maybe-mostlyclean-libctf mostlyclean-libctf
35028maybe-mostlyclean-libctf:
35029@if libctf
35030maybe-mostlyclean-libctf: mostlyclean-libctf
35031
35032mostlyclean-libctf:
35033 @[ -f ./libctf/Makefile ] || exit 0; \
35034 r=`${PWD_COMMAND}`; export r; \
35035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35036 $(HOST_EXPORTS) \
35037 for flag in $(EXTRA_HOST_FLAGS) ; do \
35038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35039 done; \
35040 echo "Doing mostlyclean in libctf"; \
35041 (cd $(HOST_SUBDIR)/libctf && \
35042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35044 "RANLIB=$${RANLIB}" \
35045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35046 mostlyclean) \
35047 || exit 1
35048
35049@endif libctf
35050
35051.PHONY: maybe-clean-libctf clean-libctf
35052maybe-clean-libctf:
35053@if libctf
35054maybe-clean-libctf: clean-libctf
35055
35056clean-libctf:
35057 @[ -f ./libctf/Makefile ] || exit 0; \
35058 r=`${PWD_COMMAND}`; export r; \
35059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35060 $(HOST_EXPORTS) \
35061 for flag in $(EXTRA_HOST_FLAGS) ; do \
35062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35063 done; \
35064 echo "Doing clean in libctf"; \
35065 (cd $(HOST_SUBDIR)/libctf && \
35066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35068 "RANLIB=$${RANLIB}" \
35069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35070 clean) \
35071 || exit 1
35072
35073@endif libctf
35074
35075.PHONY: maybe-distclean-libctf distclean-libctf
35076maybe-distclean-libctf:
35077@if libctf
35078maybe-distclean-libctf: distclean-libctf
35079
35080distclean-libctf:
35081 @[ -f ./libctf/Makefile ] || exit 0; \
35082 r=`${PWD_COMMAND}`; export r; \
35083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35084 $(HOST_EXPORTS) \
35085 for flag in $(EXTRA_HOST_FLAGS) ; do \
35086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35087 done; \
35088 echo "Doing distclean in libctf"; \
35089 (cd $(HOST_SUBDIR)/libctf && \
35090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35092 "RANLIB=$${RANLIB}" \
35093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35094 distclean) \
35095 || exit 1
35096
35097@endif libctf
35098
35099.PHONY: maybe-maintainer-clean-libctf maintainer-clean-libctf
35100maybe-maintainer-clean-libctf:
35101@if libctf
35102maybe-maintainer-clean-libctf: maintainer-clean-libctf
35103
35104maintainer-clean-libctf:
35105 @[ -f ./libctf/Makefile ] || exit 0; \
35106 r=`${PWD_COMMAND}`; export r; \
35107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35108 $(HOST_EXPORTS) \
35109 for flag in $(EXTRA_HOST_FLAGS) ; do \
35110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35111 done; \
35112 echo "Doing maintainer-clean in libctf"; \
35113 (cd $(HOST_SUBDIR)/libctf && \
35114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35116 "RANLIB=$${RANLIB}" \
35117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35118 maintainer-clean) \
35119 || exit 1
35120
35121@endif libctf
35122
35123
35124
1b6c0831
L
35125# ---------------------------------------
35126# Modules which run on the target machine
35127# ---------------------------------------
35128
35129
35130
35131
35132.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
35133maybe-configure-target-libstdc++-v3:
35134@if gcc-bootstrap
35135configure-target-libstdc++-v3: stage_current
35136@endif gcc-bootstrap
35137@if target-libstdc++-v3
35138maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
35139configure-target-libstdc++-v3:
35140 @r=`${PWD_COMMAND}`; export r; \
35141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35142 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
35143 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
35144 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35145 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35146 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35147 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35148 else \
35149 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35150 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35151 fi; \
35152 else \
35153 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35154 fi; \
35155 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 35156 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35157 $(RAW_CXX_TARGET_EXPORTS) \
35158 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
35159 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
35160 case $(srcdir) in \
35161 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35162 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35163 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35164 esac; \
35165 module_srcdir=libstdc++-v3; \
35166 rm -f no-such-file || : ; \
35167 CONFIG_SITE=no-such-file $(SHELL) \
35168 $$s/$$module_srcdir/configure \
35169 --srcdir=$${topdir}/$$module_srcdir \
35170 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35171 --target=${target_alias} \
35172 || exit 1
35173@endif target-libstdc++-v3
35174
35175
35176
35177.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
35178maybe-configure-stage1-target-libstdc++-v3:
35179@if target-libstdc++-v3-bootstrap
35180maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
35181configure-stage1-target-libstdc++-v3:
35182 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35183 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35184 @r=`${PWD_COMMAND}`; export r; \
35185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35186 TFLAGS="$(STAGE1_TFLAGS)"; \
35187 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35188 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35189 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35190 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35191 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35192 else \
35193 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35194 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35195 fi; \
35196 else \
35197 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35198 fi; \
35199 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35200 $(RAW_CXX_TARGET_EXPORTS) \
35201 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35202 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35203 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35204 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
35205 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35206 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35207 case $(srcdir) in \
35208 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35209 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35210 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35211 esac; \
35212 module_srcdir=libstdc++-v3; \
35213 $(SHELL) $$s/$$module_srcdir/configure \
35214 --srcdir=$${topdir}/$$module_srcdir \
35215 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35216 --target=${target_alias} \
35217 \
35218 $(STAGE1_CONFIGURE_FLAGS)
35219@endif target-libstdc++-v3-bootstrap
35220
35221.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
35222maybe-configure-stage2-target-libstdc++-v3:
35223@if target-libstdc++-v3-bootstrap
35224maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
35225configure-stage2-target-libstdc++-v3:
35226 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35227 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35228 @r=`${PWD_COMMAND}`; export r; \
35229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35230 TFLAGS="$(STAGE2_TFLAGS)"; \
35231 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35232 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35233 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35234 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35235 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35236 else \
35237 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35238 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35239 fi; \
35240 else \
35241 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35242 fi; \
35243 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35244 $(RAW_CXX_TARGET_EXPORTS) \
35245 \
35246 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35247 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35248 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35249 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
35250 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35251 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35252 case $(srcdir) in \
35253 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35254 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35255 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35256 esac; \
35257 module_srcdir=libstdc++-v3; \
35258 $(SHELL) $$s/$$module_srcdir/configure \
35259 --srcdir=$${topdir}/$$module_srcdir \
35260 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35261 --target=${target_alias} \
22121df0 35262 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35263 $(STAGE2_CONFIGURE_FLAGS)
35264@endif target-libstdc++-v3-bootstrap
35265
35266.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
35267maybe-configure-stage3-target-libstdc++-v3:
35268@if target-libstdc++-v3-bootstrap
35269maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
35270configure-stage3-target-libstdc++-v3:
35271 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35272 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35273 @r=`${PWD_COMMAND}`; export r; \
35274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35275 TFLAGS="$(STAGE3_TFLAGS)"; \
35276 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35277 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35278 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35279 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35280 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35281 else \
35282 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35283 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35284 fi; \
35285 else \
35286 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35287 fi; \
35288 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35289 $(RAW_CXX_TARGET_EXPORTS) \
35290 \
35291 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35292 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35293 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35294 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
35295 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35296 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35297 case $(srcdir) in \
35298 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35299 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35300 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35301 esac; \
35302 module_srcdir=libstdc++-v3; \
35303 $(SHELL) $$s/$$module_srcdir/configure \
35304 --srcdir=$${topdir}/$$module_srcdir \
35305 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35306 --target=${target_alias} \
22121df0 35307 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35308 $(STAGE3_CONFIGURE_FLAGS)
35309@endif target-libstdc++-v3-bootstrap
35310
35311.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
35312maybe-configure-stage4-target-libstdc++-v3:
35313@if target-libstdc++-v3-bootstrap
35314maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
35315configure-stage4-target-libstdc++-v3:
35316 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35317 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35318 @r=`${PWD_COMMAND}`; export r; \
35319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35320 TFLAGS="$(STAGE4_TFLAGS)"; \
35321 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35322 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35323 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35324 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35325 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35326 else \
35327 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35328 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35329 fi; \
35330 else \
35331 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35332 fi; \
35333 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35334 $(RAW_CXX_TARGET_EXPORTS) \
35335 \
35336 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35337 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35338 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35339 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
35340 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35341 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35342 case $(srcdir) in \
35343 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35344 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35345 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35346 esac; \
35347 module_srcdir=libstdc++-v3; \
35348 $(SHELL) $$s/$$module_srcdir/configure \
35349 --srcdir=$${topdir}/$$module_srcdir \
35350 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35351 --target=${target_alias} \
22121df0 35352 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35353 $(STAGE4_CONFIGURE_FLAGS)
35354@endif target-libstdc++-v3-bootstrap
35355
35356.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
35357maybe-configure-stageprofile-target-libstdc++-v3:
35358@if target-libstdc++-v3-bootstrap
35359maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
35360configure-stageprofile-target-libstdc++-v3:
35361 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35362 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35363 @r=`${PWD_COMMAND}`; export r; \
35364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35365 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35366 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35367 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35368 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35369 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35370 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35371 else \
35372 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35373 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35374 fi; \
35375 else \
35376 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35377 fi; \
35378 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35379 $(RAW_CXX_TARGET_EXPORTS) \
35380 \
35381 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35382 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35383 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35384 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
35385 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35386 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35387 case $(srcdir) in \
35388 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35389 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35390 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35391 esac; \
35392 module_srcdir=libstdc++-v3; \
35393 $(SHELL) $$s/$$module_srcdir/configure \
35394 --srcdir=$${topdir}/$$module_srcdir \
35395 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35396 --target=${target_alias} \
22121df0 35397 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35398 $(STAGEprofile_CONFIGURE_FLAGS)
35399@endif target-libstdc++-v3-bootstrap
35400
35401.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
35402maybe-configure-stagefeedback-target-libstdc++-v3:
35403@if target-libstdc++-v3-bootstrap
35404maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
35405configure-stagefeedback-target-libstdc++-v3:
35406 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35407 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35408 @r=`${PWD_COMMAND}`; export r; \
35409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35410 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35411 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35412 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35413 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35414 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35415 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35416 else \
35417 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35418 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35419 fi; \
35420 else \
35421 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35422 fi; \
35423 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35424 $(RAW_CXX_TARGET_EXPORTS) \
35425 \
35426 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35427 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35428 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35429 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
35430 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35431 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35432 case $(srcdir) in \
35433 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35434 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35435 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35436 esac; \
35437 module_srcdir=libstdc++-v3; \
35438 $(SHELL) $$s/$$module_srcdir/configure \
35439 --srcdir=$${topdir}/$$module_srcdir \
35440 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35441 --target=${target_alias} \
22121df0 35442 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35443 $(STAGEfeedback_CONFIGURE_FLAGS)
35444@endif target-libstdc++-v3-bootstrap
35445
35446
35447
35448
35449
35450.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
35451maybe-all-target-libstdc++-v3:
35452@if gcc-bootstrap
35453all-target-libstdc++-v3: stage_current
35454@endif gcc-bootstrap
35455@if target-libstdc++-v3
35456TARGET-target-libstdc++-v3=all
35457maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
35458all-target-libstdc++-v3: configure-target-libstdc++-v3
35459 @r=`${PWD_COMMAND}`; export r; \
35460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35461 $(RAW_CXX_TARGET_EXPORTS) \
35462 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35463 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35464 $(TARGET-target-libstdc++-v3))
35465@endif target-libstdc++-v3
35466
35467
35468
35469.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
35470.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
35471maybe-all-stage1-target-libstdc++-v3:
35472maybe-clean-stage1-target-libstdc++-v3:
35473@if target-libstdc++-v3-bootstrap
35474maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
35475all-stage1: all-stage1-target-libstdc++-v3
35476TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35477all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
35478 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35479 @r=`${PWD_COMMAND}`; export r; \
35480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35481 TFLAGS="$(STAGE1_TFLAGS)"; \
35482 $(RAW_CXX_TARGET_EXPORTS) \
35483 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35484 \
1b6c0831
L
35485 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35486 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35487 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35488 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35489 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35490 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35491 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35492 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35493 \
05a13254 35494 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
35495 $(TARGET-stage1-target-libstdc++-v3)
35496
35497maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
35498clean-stage1: clean-stage1-target-libstdc++-v3
35499clean-stage1-target-libstdc++-v3:
35500 @if [ $(current_stage) = stage1 ]; then \
35501 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35502 else \
35503 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
35504 $(MAKE) stage1-start; \
35505 fi; \
35506 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35507 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35508 clean
35509@endif target-libstdc++-v3-bootstrap
35510
35511
35512.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
35513.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
35514maybe-all-stage2-target-libstdc++-v3:
35515maybe-clean-stage2-target-libstdc++-v3:
35516@if target-libstdc++-v3-bootstrap
35517maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
35518all-stage2: all-stage2-target-libstdc++-v3
35519TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35520all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
35521 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35522 @r=`${PWD_COMMAND}`; export r; \
35523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35524 TFLAGS="$(STAGE2_TFLAGS)"; \
35525 $(RAW_CXX_TARGET_EXPORTS) \
35526 \
35527 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35528 \
1b6c0831
L
35529 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35530 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35531 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35532 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35533 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35534 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35535 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35536 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35537 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
35538 $(TARGET-stage2-target-libstdc++-v3)
35539
35540maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
35541clean-stage2: clean-stage2-target-libstdc++-v3
35542clean-stage2-target-libstdc++-v3:
35543 @if [ $(current_stage) = stage2 ]; then \
35544 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35545 else \
35546 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
35547 $(MAKE) stage2-start; \
35548 fi; \
35549 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35550 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35551@endif target-libstdc++-v3-bootstrap
35552
35553
35554.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
35555.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
35556maybe-all-stage3-target-libstdc++-v3:
35557maybe-clean-stage3-target-libstdc++-v3:
35558@if target-libstdc++-v3-bootstrap
35559maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
35560all-stage3: all-stage3-target-libstdc++-v3
35561TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35562all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
35563 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35564 @r=`${PWD_COMMAND}`; export r; \
35565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35566 TFLAGS="$(STAGE3_TFLAGS)"; \
35567 $(RAW_CXX_TARGET_EXPORTS) \
35568 \
35569 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35570 \
1b6c0831
L
35571 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35572 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35573 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35574 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35575 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35576 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35577 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35578 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35579 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
35580 $(TARGET-stage3-target-libstdc++-v3)
35581
35582maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
35583clean-stage3: clean-stage3-target-libstdc++-v3
35584clean-stage3-target-libstdc++-v3:
35585 @if [ $(current_stage) = stage3 ]; then \
35586 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35587 else \
35588 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
35589 $(MAKE) stage3-start; \
35590 fi; \
35591 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35592 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35593@endif target-libstdc++-v3-bootstrap
35594
35595
35596.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
35597.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
35598maybe-all-stage4-target-libstdc++-v3:
35599maybe-clean-stage4-target-libstdc++-v3:
35600@if target-libstdc++-v3-bootstrap
35601maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
35602all-stage4: all-stage4-target-libstdc++-v3
35603TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35604all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
35605 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35606 @r=`${PWD_COMMAND}`; export r; \
35607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35608 TFLAGS="$(STAGE4_TFLAGS)"; \
35609 $(RAW_CXX_TARGET_EXPORTS) \
35610 \
35611 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35612 \
1b6c0831
L
35613 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35614 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35615 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35616 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35617 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35618 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35619 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35620 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35621 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
35622 $(TARGET-stage4-target-libstdc++-v3)
35623
35624maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
35625clean-stage4: clean-stage4-target-libstdc++-v3
35626clean-stage4-target-libstdc++-v3:
35627 @if [ $(current_stage) = stage4 ]; then \
35628 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35629 else \
35630 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
35631 $(MAKE) stage4-start; \
35632 fi; \
35633 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35634 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35635@endif target-libstdc++-v3-bootstrap
35636
35637
35638.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
35639.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
35640maybe-all-stageprofile-target-libstdc++-v3:
35641maybe-clean-stageprofile-target-libstdc++-v3:
35642@if target-libstdc++-v3-bootstrap
35643maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
35644all-stageprofile: all-stageprofile-target-libstdc++-v3
35645TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35646all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
35647 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35648 @r=`${PWD_COMMAND}`; export r; \
35649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35650 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35651 $(RAW_CXX_TARGET_EXPORTS) \
35652 \
35653 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35654 \
1b6c0831
L
35655 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35656 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35657 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35658 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35659 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35660 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35661 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35662 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35663 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
35664 $(TARGET-stageprofile-target-libstdc++-v3)
35665
35666maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
35667clean-stageprofile: clean-stageprofile-target-libstdc++-v3
35668clean-stageprofile-target-libstdc++-v3:
35669 @if [ $(current_stage) = stageprofile ]; then \
35670 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35671 else \
35672 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
35673 $(MAKE) stageprofile-start; \
35674 fi; \
35675 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35676 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35677@endif target-libstdc++-v3-bootstrap
35678
35679
35680.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
35681.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
35682maybe-all-stagefeedback-target-libstdc++-v3:
35683maybe-clean-stagefeedback-target-libstdc++-v3:
35684@if target-libstdc++-v3-bootstrap
35685maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
35686all-stagefeedback: all-stagefeedback-target-libstdc++-v3
35687TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35688all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
35689 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35690 @r=`${PWD_COMMAND}`; export r; \
35691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35692 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35693 $(RAW_CXX_TARGET_EXPORTS) \
35694 \
35695 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35696 \
1b6c0831
L
35697 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35698 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35699 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35700 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35701 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35702 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35703 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35704 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35705 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
35706 $(TARGET-stagefeedback-target-libstdc++-v3)
35707
35708maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
35709clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
35710clean-stagefeedback-target-libstdc++-v3:
35711 @if [ $(current_stage) = stagefeedback ]; then \
35712 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35713 else \
35714 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
35715 $(MAKE) stagefeedback-start; \
35716 fi; \
35717 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35718 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35719@endif target-libstdc++-v3-bootstrap
35720
35721
35722
35723
35724
35725
35726.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
35727maybe-check-target-libstdc++-v3:
35728@if target-libstdc++-v3
35729maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
35730
35731check-target-libstdc++-v3:
35732 @: $(MAKE); $(unstage)
35733 @r=`${PWD_COMMAND}`; export r; \
35734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35735 $(RAW_CXX_TARGET_EXPORTS) \
35736 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35737 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
35738
35739@endif target-libstdc++-v3
35740
35741.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
35742maybe-install-target-libstdc++-v3:
35743@if target-libstdc++-v3
35744maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
35745
35746install-target-libstdc++-v3: installdirs
35747 @: $(MAKE); $(unstage)
35748 @r=`${PWD_COMMAND}`; export r; \
35749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35750 $(RAW_CXX_TARGET_EXPORTS) \
35751 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35752 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35753
35754@endif target-libstdc++-v3
35755
35756.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
35757maybe-install-strip-target-libstdc++-v3:
35758@if target-libstdc++-v3
35759maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
35760
35761install-strip-target-libstdc++-v3: installdirs
35762 @: $(MAKE); $(unstage)
35763 @r=`${PWD_COMMAND}`; export r; \
35764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35765 $(RAW_CXX_TARGET_EXPORTS) \
35766 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35767 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35768
35769@endif target-libstdc++-v3
35770
35771# Other targets (info, dvi, pdf, etc.)
35772
35773.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
35774maybe-info-target-libstdc++-v3:
35775@if target-libstdc++-v3
35776maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
35777
35778info-target-libstdc++-v3: \
35779 configure-target-libstdc++-v3
35780 @: $(MAKE); $(unstage)
22121df0 35781 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35782 r=`${PWD_COMMAND}`; export r; \
35783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35784 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35785 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35786 for flag in $(EXTRA_TARGET_FLAGS); do \
35787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35788 done; \
35789 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35792 "RANLIB=$${RANLIB}" \
35793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35794 info) \
35795 || exit 1
35796
35797@endif target-libstdc++-v3
35798
35799.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
35800maybe-dvi-target-libstdc++-v3:
35801@if target-libstdc++-v3
35802maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
35803
35804dvi-target-libstdc++-v3: \
35805 configure-target-libstdc++-v3
35806 @: $(MAKE); $(unstage)
22121df0 35807 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35808 r=`${PWD_COMMAND}`; export r; \
35809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35810 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35811 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35812 for flag in $(EXTRA_TARGET_FLAGS); do \
35813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35814 done; \
35815 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35818 "RANLIB=$${RANLIB}" \
35819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35820 dvi) \
35821 || exit 1
35822
35823@endif target-libstdc++-v3
35824
35825.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
35826maybe-pdf-target-libstdc++-v3:
35827@if target-libstdc++-v3
35828maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
35829
35830pdf-target-libstdc++-v3: \
35831 configure-target-libstdc++-v3
35832 @: $(MAKE); $(unstage)
22121df0 35833 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35834 r=`${PWD_COMMAND}`; export r; \
35835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35836 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35837 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35838 for flag in $(EXTRA_TARGET_FLAGS); do \
35839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35840 done; \
35841 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35844 "RANLIB=$${RANLIB}" \
35845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35846 pdf) \
35847 || exit 1
35848
35849@endif target-libstdc++-v3
35850
35851.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
35852maybe-html-target-libstdc++-v3:
35853@if target-libstdc++-v3
35854maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
35855
35856html-target-libstdc++-v3: \
35857 configure-target-libstdc++-v3
35858 @: $(MAKE); $(unstage)
22121df0 35859 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35860 r=`${PWD_COMMAND}`; export r; \
35861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35862 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35863 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35864 for flag in $(EXTRA_TARGET_FLAGS); do \
35865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35866 done; \
35867 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35870 "RANLIB=$${RANLIB}" \
35871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35872 html) \
35873 || exit 1
35874
35875@endif target-libstdc++-v3
35876
35877.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
35878maybe-TAGS-target-libstdc++-v3:
35879@if target-libstdc++-v3
35880maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
35881
35882TAGS-target-libstdc++-v3: \
35883 configure-target-libstdc++-v3
35884 @: $(MAKE); $(unstage)
22121df0 35885 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35886 r=`${PWD_COMMAND}`; export r; \
35887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35888 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35889 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35890 for flag in $(EXTRA_TARGET_FLAGS); do \
35891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35892 done; \
35893 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35896 "RANLIB=$${RANLIB}" \
35897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35898 TAGS) \
35899 || exit 1
35900
35901@endif target-libstdc++-v3
35902
35903.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
35904maybe-install-info-target-libstdc++-v3:
35905@if target-libstdc++-v3
35906maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
35907
35908install-info-target-libstdc++-v3: \
35909 configure-target-libstdc++-v3 \
35910 info-target-libstdc++-v3
35911 @: $(MAKE); $(unstage)
22121df0 35912 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35913 r=`${PWD_COMMAND}`; export r; \
35914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35915 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35916 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35917 for flag in $(EXTRA_TARGET_FLAGS); do \
35918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35919 done; \
35920 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35923 "RANLIB=$${RANLIB}" \
35924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35925 install-info) \
35926 || exit 1
35927
35928@endif target-libstdc++-v3
35929
35930.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
35931maybe-install-pdf-target-libstdc++-v3:
35932@if target-libstdc++-v3
35933maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
35934
35935install-pdf-target-libstdc++-v3: \
35936 configure-target-libstdc++-v3 \
35937 pdf-target-libstdc++-v3
35938 @: $(MAKE); $(unstage)
22121df0 35939 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35940 r=`${PWD_COMMAND}`; export r; \
35941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35942 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35943 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35944 for flag in $(EXTRA_TARGET_FLAGS); do \
35945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35946 done; \
35947 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35950 "RANLIB=$${RANLIB}" \
35951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35952 install-pdf) \
35953 || exit 1
35954
35955@endif target-libstdc++-v3
35956
35957.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
35958maybe-install-html-target-libstdc++-v3:
35959@if target-libstdc++-v3
35960maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
35961
35962install-html-target-libstdc++-v3: \
35963 configure-target-libstdc++-v3 \
35964 html-target-libstdc++-v3
35965 @: $(MAKE); $(unstage)
22121df0 35966 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35967 r=`${PWD_COMMAND}`; export r; \
35968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35969 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35970 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35971 for flag in $(EXTRA_TARGET_FLAGS); do \
35972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35973 done; \
35974 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35977 "RANLIB=$${RANLIB}" \
35978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35979 install-html) \
35980 || exit 1
35981
35982@endif target-libstdc++-v3
35983
35984.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
35985maybe-installcheck-target-libstdc++-v3:
35986@if target-libstdc++-v3
35987maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
35988
35989installcheck-target-libstdc++-v3: \
35990 configure-target-libstdc++-v3
35991 @: $(MAKE); $(unstage)
22121df0 35992 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35993 r=`${PWD_COMMAND}`; export r; \
35994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35995 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35996 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35997 for flag in $(EXTRA_TARGET_FLAGS); do \
35998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35999 done; \
36000 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36003 "RANLIB=$${RANLIB}" \
36004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36005 installcheck) \
36006 || exit 1
36007
36008@endif target-libstdc++-v3
36009
36010.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
36011maybe-mostlyclean-target-libstdc++-v3:
36012@if target-libstdc++-v3
36013maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
36014
36015mostlyclean-target-libstdc++-v3:
36016 @: $(MAKE); $(unstage)
22121df0 36017 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36018 r=`${PWD_COMMAND}`; export r; \
36019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36020 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36021 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36022 for flag in $(EXTRA_TARGET_FLAGS); do \
36023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36024 done; \
36025 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36028 "RANLIB=$${RANLIB}" \
36029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36030 mostlyclean) \
36031 || exit 1
36032
36033@endif target-libstdc++-v3
36034
36035.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
36036maybe-clean-target-libstdc++-v3:
36037@if target-libstdc++-v3
36038maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
36039
36040clean-target-libstdc++-v3:
36041 @: $(MAKE); $(unstage)
22121df0 36042 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36043 r=`${PWD_COMMAND}`; export r; \
36044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36045 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36046 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36047 for flag in $(EXTRA_TARGET_FLAGS); do \
36048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36049 done; \
36050 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36053 "RANLIB=$${RANLIB}" \
36054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36055 clean) \
36056 || exit 1
36057
36058@endif target-libstdc++-v3
36059
36060.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
36061maybe-distclean-target-libstdc++-v3:
36062@if target-libstdc++-v3
36063maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
36064
36065distclean-target-libstdc++-v3:
36066 @: $(MAKE); $(unstage)
22121df0 36067 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36068 r=`${PWD_COMMAND}`; export r; \
36069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36070 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36071 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36072 for flag in $(EXTRA_TARGET_FLAGS); do \
36073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36074 done; \
36075 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36078 "RANLIB=$${RANLIB}" \
36079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36080 distclean) \
36081 || exit 1
36082
36083@endif target-libstdc++-v3
36084
36085.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
36086maybe-maintainer-clean-target-libstdc++-v3:
36087@if target-libstdc++-v3
36088maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
36089
36090maintainer-clean-target-libstdc++-v3:
36091 @: $(MAKE); $(unstage)
22121df0 36092 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36093 r=`${PWD_COMMAND}`; export r; \
36094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36095 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36096 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36097 for flag in $(EXTRA_TARGET_FLAGS); do \
36098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36099 done; \
36100 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36103 "RANLIB=$${RANLIB}" \
36104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36105 maintainer-clean) \
36106 || exit 1
36107
36108@endif target-libstdc++-v3
36109
36110
36111
36112
36113
36114.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
36115maybe-configure-target-libsanitizer:
36116@if gcc-bootstrap
36117configure-target-libsanitizer: stage_current
36118@endif gcc-bootstrap
36119@if target-libsanitizer
36120maybe-configure-target-libsanitizer: configure-target-libsanitizer
36121configure-target-libsanitizer:
36122 @r=`${PWD_COMMAND}`; export r; \
36123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36124 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
36125 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
36126 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36127 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36128 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36129 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36130 else \
36131 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36132 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36133 fi; \
36134 else \
36135 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36136 fi; \
36137 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 36138 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36139 $(RAW_CXX_TARGET_EXPORTS) \
36140 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
36141 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
36142 case $(srcdir) in \
36143 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36144 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36145 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36146 esac; \
36147 module_srcdir=libsanitizer; \
36148 rm -f no-such-file || : ; \
36149 CONFIG_SITE=no-such-file $(SHELL) \
36150 $$s/$$module_srcdir/configure \
36151 --srcdir=$${topdir}/$$module_srcdir \
36152 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36153 --target=${target_alias} \
36154 || exit 1
36155@endif target-libsanitizer
36156
36157
36158
36159.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
36160maybe-configure-stage1-target-libsanitizer:
36161@if target-libsanitizer-bootstrap
36162maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
36163configure-stage1-target-libsanitizer:
36164 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36165 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36166 @r=`${PWD_COMMAND}`; export r; \
36167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36168 TFLAGS="$(STAGE1_TFLAGS)"; \
36169 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36170 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36171 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36172 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36173 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36174 else \
36175 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36176 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36177 fi; \
36178 else \
36179 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36180 fi; \
36181 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36182 $(RAW_CXX_TARGET_EXPORTS) \
36183 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36184 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36185 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36186 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
36187 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36188 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36189 case $(srcdir) in \
36190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36191 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36193 esac; \
36194 module_srcdir=libsanitizer; \
36195 $(SHELL) $$s/$$module_srcdir/configure \
36196 --srcdir=$${topdir}/$$module_srcdir \
36197 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36198 --target=${target_alias} \
36199 \
36200 $(STAGE1_CONFIGURE_FLAGS)
36201@endif target-libsanitizer-bootstrap
36202
36203.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
36204maybe-configure-stage2-target-libsanitizer:
36205@if target-libsanitizer-bootstrap
36206maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
36207configure-stage2-target-libsanitizer:
36208 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36209 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36210 @r=`${PWD_COMMAND}`; export r; \
36211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36212 TFLAGS="$(STAGE2_TFLAGS)"; \
36213 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36214 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36215 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36216 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36217 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36218 else \
36219 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36220 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36221 fi; \
36222 else \
36223 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36224 fi; \
36225 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36226 $(RAW_CXX_TARGET_EXPORTS) \
36227 \
36228 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36229 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36230 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36231 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
36232 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36233 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36234 case $(srcdir) in \
36235 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36236 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36237 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36238 esac; \
36239 module_srcdir=libsanitizer; \
36240 $(SHELL) $$s/$$module_srcdir/configure \
36241 --srcdir=$${topdir}/$$module_srcdir \
36242 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36243 --target=${target_alias} \
22121df0 36244 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36245 $(STAGE2_CONFIGURE_FLAGS)
36246@endif target-libsanitizer-bootstrap
36247
36248.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
36249maybe-configure-stage3-target-libsanitizer:
36250@if target-libsanitizer-bootstrap
36251maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
36252configure-stage3-target-libsanitizer:
36253 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36254 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36255 @r=`${PWD_COMMAND}`; export r; \
36256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36257 TFLAGS="$(STAGE3_TFLAGS)"; \
36258 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36259 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36260 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36261 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36262 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36263 else \
36264 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36265 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36266 fi; \
36267 else \
36268 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36269 fi; \
36270 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36271 $(RAW_CXX_TARGET_EXPORTS) \
36272 \
36273 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36274 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36275 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36276 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
36277 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36278 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36279 case $(srcdir) in \
36280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36281 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36283 esac; \
36284 module_srcdir=libsanitizer; \
36285 $(SHELL) $$s/$$module_srcdir/configure \
36286 --srcdir=$${topdir}/$$module_srcdir \
36287 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36288 --target=${target_alias} \
22121df0 36289 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36290 $(STAGE3_CONFIGURE_FLAGS)
36291@endif target-libsanitizer-bootstrap
36292
36293.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
36294maybe-configure-stage4-target-libsanitizer:
36295@if target-libsanitizer-bootstrap
36296maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
36297configure-stage4-target-libsanitizer:
36298 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36299 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36300 @r=`${PWD_COMMAND}`; export r; \
36301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36302 TFLAGS="$(STAGE4_TFLAGS)"; \
36303 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36304 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36305 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36306 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36307 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36308 else \
36309 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36310 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36311 fi; \
36312 else \
36313 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36314 fi; \
36315 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36316 $(RAW_CXX_TARGET_EXPORTS) \
36317 \
36318 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36319 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36320 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36321 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
36322 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36323 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36324 case $(srcdir) in \
36325 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36326 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36327 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36328 esac; \
36329 module_srcdir=libsanitizer; \
36330 $(SHELL) $$s/$$module_srcdir/configure \
36331 --srcdir=$${topdir}/$$module_srcdir \
36332 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36333 --target=${target_alias} \
22121df0 36334 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36335 $(STAGE4_CONFIGURE_FLAGS)
36336@endif target-libsanitizer-bootstrap
36337
36338.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
36339maybe-configure-stageprofile-target-libsanitizer:
36340@if target-libsanitizer-bootstrap
36341maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
36342configure-stageprofile-target-libsanitizer:
36343 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36344 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36345 @r=`${PWD_COMMAND}`; export r; \
36346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36347 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36348 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36349 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36350 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36351 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36352 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36353 else \
36354 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36355 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36356 fi; \
36357 else \
36358 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36359 fi; \
36360 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36361 $(RAW_CXX_TARGET_EXPORTS) \
36362 \
36363 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36364 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36365 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36366 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
36367 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36368 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36369 case $(srcdir) in \
36370 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36371 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36372 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36373 esac; \
36374 module_srcdir=libsanitizer; \
36375 $(SHELL) $$s/$$module_srcdir/configure \
36376 --srcdir=$${topdir}/$$module_srcdir \
36377 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36378 --target=${target_alias} \
22121df0 36379 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36380 $(STAGEprofile_CONFIGURE_FLAGS)
36381@endif target-libsanitizer-bootstrap
36382
36383.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
36384maybe-configure-stagefeedback-target-libsanitizer:
36385@if target-libsanitizer-bootstrap
36386maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
36387configure-stagefeedback-target-libsanitizer:
36388 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36389 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36390 @r=`${PWD_COMMAND}`; export r; \
36391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36392 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36393 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36394 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36395 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36396 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36397 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36398 else \
36399 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36400 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36401 fi; \
36402 else \
36403 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36404 fi; \
36405 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36406 $(RAW_CXX_TARGET_EXPORTS) \
36407 \
36408 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36409 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36410 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36411 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
36412 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36413 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36414 case $(srcdir) in \
36415 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36416 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36417 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36418 esac; \
36419 module_srcdir=libsanitizer; \
36420 $(SHELL) $$s/$$module_srcdir/configure \
36421 --srcdir=$${topdir}/$$module_srcdir \
36422 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36423 --target=${target_alias} \
22121df0 36424 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36425 $(STAGEfeedback_CONFIGURE_FLAGS)
36426@endif target-libsanitizer-bootstrap
36427
36428
36429
36430
36431
36432.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
36433maybe-all-target-libsanitizer:
36434@if gcc-bootstrap
36435all-target-libsanitizer: stage_current
36436@endif gcc-bootstrap
36437@if target-libsanitizer
36438TARGET-target-libsanitizer=all
36439maybe-all-target-libsanitizer: all-target-libsanitizer
36440all-target-libsanitizer: configure-target-libsanitizer
36441 @r=`${PWD_COMMAND}`; export r; \
36442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36443 $(RAW_CXX_TARGET_EXPORTS) \
36444 (cd $(TARGET_SUBDIR)/libsanitizer && \
36445 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36446 $(TARGET-target-libsanitizer))
36447@endif target-libsanitizer
36448
36449
36450
36451.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
36452.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
36453maybe-all-stage1-target-libsanitizer:
36454maybe-clean-stage1-target-libsanitizer:
36455@if target-libsanitizer-bootstrap
36456maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
36457all-stage1: all-stage1-target-libsanitizer
36458TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
36459all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
36460 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36461 @r=`${PWD_COMMAND}`; export r; \
36462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36463 TFLAGS="$(STAGE1_TFLAGS)"; \
36464 $(RAW_CXX_TARGET_EXPORTS) \
36465 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36466 \
1b6c0831
L
36467 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36468 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36469 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36470 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36471 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36472 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36473 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36474 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36475 \
05a13254 36476 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
36477 $(TARGET-stage1-target-libsanitizer)
36478
36479maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
36480clean-stage1: clean-stage1-target-libsanitizer
36481clean-stage1-target-libsanitizer:
36482 @if [ $(current_stage) = stage1 ]; then \
36483 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36484 else \
36485 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
36486 $(MAKE) stage1-start; \
36487 fi; \
36488 cd $(TARGET_SUBDIR)/libsanitizer && \
36489 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36490 clean
36491@endif target-libsanitizer-bootstrap
36492
36493
36494.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
36495.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
36496maybe-all-stage2-target-libsanitizer:
36497maybe-clean-stage2-target-libsanitizer:
36498@if target-libsanitizer-bootstrap
36499maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
36500all-stage2: all-stage2-target-libsanitizer
36501TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
36502all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
36503 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36504 @r=`${PWD_COMMAND}`; export r; \
36505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36506 TFLAGS="$(STAGE2_TFLAGS)"; \
36507 $(RAW_CXX_TARGET_EXPORTS) \
36508 \
36509 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36510 \
1b6c0831
L
36511 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36512 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36513 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36514 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36515 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36516 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36517 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36518 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36519 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
36520 $(TARGET-stage2-target-libsanitizer)
36521
36522maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
36523clean-stage2: clean-stage2-target-libsanitizer
36524clean-stage2-target-libsanitizer:
36525 @if [ $(current_stage) = stage2 ]; then \
36526 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36527 else \
36528 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
36529 $(MAKE) stage2-start; \
36530 fi; \
36531 cd $(TARGET_SUBDIR)/libsanitizer && \
36532 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36533@endif target-libsanitizer-bootstrap
36534
36535
36536.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
36537.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
36538maybe-all-stage3-target-libsanitizer:
36539maybe-clean-stage3-target-libsanitizer:
36540@if target-libsanitizer-bootstrap
36541maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
36542all-stage3: all-stage3-target-libsanitizer
36543TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
36544all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
36545 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36546 @r=`${PWD_COMMAND}`; export r; \
36547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36548 TFLAGS="$(STAGE3_TFLAGS)"; \
36549 $(RAW_CXX_TARGET_EXPORTS) \
36550 \
36551 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36552 \
1b6c0831
L
36553 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36554 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36555 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36556 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36557 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36558 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36559 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36560 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36561 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
36562 $(TARGET-stage3-target-libsanitizer)
36563
36564maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
36565clean-stage3: clean-stage3-target-libsanitizer
36566clean-stage3-target-libsanitizer:
36567 @if [ $(current_stage) = stage3 ]; then \
36568 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36569 else \
36570 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
36571 $(MAKE) stage3-start; \
36572 fi; \
36573 cd $(TARGET_SUBDIR)/libsanitizer && \
36574 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36575@endif target-libsanitizer-bootstrap
36576
36577
36578.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
36579.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
36580maybe-all-stage4-target-libsanitizer:
36581maybe-clean-stage4-target-libsanitizer:
36582@if target-libsanitizer-bootstrap
36583maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
36584all-stage4: all-stage4-target-libsanitizer
36585TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
36586all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
36587 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36588 @r=`${PWD_COMMAND}`; export r; \
36589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36590 TFLAGS="$(STAGE4_TFLAGS)"; \
36591 $(RAW_CXX_TARGET_EXPORTS) \
36592 \
36593 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36594 \
1b6c0831
L
36595 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36596 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36597 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36598 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
36599 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36600 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36601 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36602 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36603 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 36604 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 36605
1b6c0831
L
36606maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
36607clean-stage4: clean-stage4-target-libsanitizer
36608clean-stage4-target-libsanitizer:
e8a5fa9c 36609 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 36610 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36611 else \
1b6c0831 36612 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36613 $(MAKE) stage4-start; \
36614 fi; \
1b6c0831 36615 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36616 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36617@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36618
36619
1b6c0831
L
36620.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
36621.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
36622maybe-all-stageprofile-target-libsanitizer:
36623maybe-clean-stageprofile-target-libsanitizer:
36624@if target-libsanitizer-bootstrap
36625maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
36626all-stageprofile: all-stageprofile-target-libsanitizer
36627TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
36628all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
36629 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36630 @r=`${PWD_COMMAND}`; export r; \
36631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36632 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36633 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 36634 \
1b6c0831 36635 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36636 \
e8a5fa9c
RW
36637 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36638 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36639 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36640 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36641 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36642 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36643 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36644 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36645 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 36646 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 36647
1b6c0831
L
36648maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
36649clean-stageprofile: clean-stageprofile-target-libsanitizer
36650clean-stageprofile-target-libsanitizer:
e8a5fa9c 36651 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 36652 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36653 else \
1b6c0831 36654 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36655 $(MAKE) stageprofile-start; \
36656 fi; \
1b6c0831 36657 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36658 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36659@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36660
36661
1b6c0831
L
36662.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
36663.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
36664maybe-all-stagefeedback-target-libsanitizer:
36665maybe-clean-stagefeedback-target-libsanitizer:
36666@if target-libsanitizer-bootstrap
36667maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
36668all-stagefeedback: all-stagefeedback-target-libsanitizer
36669TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
36670all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
36671 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36672 @r=`${PWD_COMMAND}`; export r; \
36673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36674 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36675 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 36676 \
1b6c0831 36677 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36678 \
e8a5fa9c
RW
36679 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36680 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36681 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36682 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36683 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36684 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36685 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36686 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36687 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 36688 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 36689
1b6c0831
L
36690maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
36691clean-stagefeedback: clean-stagefeedback-target-libsanitizer
36692clean-stagefeedback-target-libsanitizer:
e8a5fa9c 36693 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 36694 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36695 else \
1b6c0831 36696 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36697 $(MAKE) stagefeedback-start; \
36698 fi; \
1b6c0831 36699 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36700 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36701@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36702
36703
36704
36705
d545f33b
PB
36706
36707
1b6c0831
L
36708.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
36709maybe-check-target-libsanitizer:
36710@if target-libsanitizer
36711maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 36712
1b6c0831 36713check-target-libsanitizer:
0aed8855 36714 @: $(MAKE); $(unstage)
b40e3958
L
36715 @r=`${PWD_COMMAND}`; export r; \
36716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36717 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36718 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 36719 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 36720
1b6c0831 36721@endif target-libsanitizer
3866be5d 36722
1b6c0831
L
36723.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
36724maybe-install-target-libsanitizer:
36725@if target-libsanitizer
36726maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 36727
1b6c0831 36728install-target-libsanitizer: installdirs
0aed8855 36729 @: $(MAKE); $(unstage)
b40e3958
L
36730 @r=`${PWD_COMMAND}`; export r; \
36731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36732 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36733 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 36734 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 36735
1b6c0831 36736@endif target-libsanitizer
e2b9e2dc 36737
1b6c0831
L
36738.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
36739maybe-install-strip-target-libsanitizer:
36740@if target-libsanitizer
36741maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 36742
1b6c0831 36743install-strip-target-libsanitizer: installdirs
9b980aa1
RW
36744 @: $(MAKE); $(unstage)
36745 @r=`${PWD_COMMAND}`; export r; \
36746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36747 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36748 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
36749 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36750
1b6c0831 36751@endif target-libsanitizer
9b980aa1 36752
56a8fe78 36753# Other targets (info, dvi, pdf, etc.)
3866be5d 36754
1b6c0831
L
36755.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
36756maybe-info-target-libsanitizer:
36757@if target-libsanitizer
36758maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 36759
1b6c0831
L
36760info-target-libsanitizer: \
36761 configure-target-libsanitizer
0aed8855 36762 @: $(MAKE); $(unstage)
22121df0 36763 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36764 r=`${PWD_COMMAND}`; export r; \
b40e3958 36765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36766 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36767 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36768 for flag in $(EXTRA_TARGET_FLAGS); do \
36769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36770 done; \
1b6c0831 36771 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36774 "RANLIB=$${RANLIB}" \
0c24b341 36775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36776 info) \
4fa63067 36777 || exit 1
3866be5d 36778
1b6c0831 36779@endif target-libsanitizer
3866be5d 36780
1b6c0831
L
36781.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
36782maybe-dvi-target-libsanitizer:
36783@if target-libsanitizer
36784maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 36785
1b6c0831
L
36786dvi-target-libsanitizer: \
36787 configure-target-libsanitizer
0aed8855 36788 @: $(MAKE); $(unstage)
22121df0 36789 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36790 r=`${PWD_COMMAND}`; export r; \
b40e3958 36791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36792 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36793 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36794 for flag in $(EXTRA_TARGET_FLAGS); do \
36795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36796 done; \
1b6c0831 36797 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36800 "RANLIB=$${RANLIB}" \
0c24b341 36801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36802 dvi) \
4fa63067 36803 || exit 1
3866be5d 36804
1b6c0831 36805@endif target-libsanitizer
3866be5d 36806
1b6c0831
L
36807.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
36808maybe-pdf-target-libsanitizer:
36809@if target-libsanitizer
36810maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 36811
1b6c0831
L
36812pdf-target-libsanitizer: \
36813 configure-target-libsanitizer
56a8fe78 36814 @: $(MAKE); $(unstage)
22121df0 36815 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
36816 r=`${PWD_COMMAND}`; export r; \
36817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36818 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36819 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
36820 for flag in $(EXTRA_TARGET_FLAGS); do \
36821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36822 done; \
1b6c0831 36823 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
36824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36826 "RANLIB=$${RANLIB}" \
0c24b341 36827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
36828 pdf) \
36829 || exit 1
36830
1b6c0831 36831@endif target-libsanitizer
56a8fe78 36832
1b6c0831
L
36833.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
36834maybe-html-target-libsanitizer:
36835@if target-libsanitizer
36836maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 36837
1b6c0831
L
36838html-target-libsanitizer: \
36839 configure-target-libsanitizer
0aed8855 36840 @: $(MAKE); $(unstage)
22121df0 36841 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
36842 r=`${PWD_COMMAND}`; export r; \
36843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 36844 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36845 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
36846 for flag in $(EXTRA_TARGET_FLAGS); do \
36847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36848 done; \
1b6c0831 36849 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
36850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36852 "RANLIB=$${RANLIB}" \
0c24b341 36853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
36854 html) \
36855 || exit 1
36856
1b6c0831 36857@endif target-libsanitizer
6d389afc 36858
1b6c0831
L
36859.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
36860maybe-TAGS-target-libsanitizer:
36861@if target-libsanitizer
36862maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 36863
1b6c0831
L
36864TAGS-target-libsanitizer: \
36865 configure-target-libsanitizer
0aed8855 36866 @: $(MAKE); $(unstage)
22121df0 36867 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
36868 r=`${PWD_COMMAND}`; export r; \
36869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36870 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36871 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36872 for flag in $(EXTRA_TARGET_FLAGS); do \
36873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36874 done; \
1b6c0831 36875 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36878 "RANLIB=$${RANLIB}" \
0c24b341 36879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36880 TAGS) \
e2b9e2dc
NN
36881 || exit 1
36882
1b6c0831 36883@endif target-libsanitizer
3866be5d 36884
1b6c0831
L
36885.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
36886maybe-install-info-target-libsanitizer:
36887@if target-libsanitizer
36888maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 36889
1b6c0831
L
36890install-info-target-libsanitizer: \
36891 configure-target-libsanitizer \
36892 info-target-libsanitizer
0aed8855 36893 @: $(MAKE); $(unstage)
22121df0 36894 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36895 r=`${PWD_COMMAND}`; export r; \
b40e3958 36896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36897 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36898 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36899 for flag in $(EXTRA_TARGET_FLAGS); do \
36900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36901 done; \
1b6c0831 36902 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36905 "RANLIB=$${RANLIB}" \
0c24b341 36906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36907 install-info) \
4fa63067 36908 || exit 1
3866be5d 36909
1b6c0831 36910@endif target-libsanitizer
3866be5d 36911
1b6c0831
L
36912.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
36913maybe-install-pdf-target-libsanitizer:
36914@if target-libsanitizer
36915maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 36916
1b6c0831
L
36917install-pdf-target-libsanitizer: \
36918 configure-target-libsanitizer \
36919 pdf-target-libsanitizer
a3ca38d2 36920 @: $(MAKE); $(unstage)
22121df0 36921 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
36922 r=`${PWD_COMMAND}`; export r; \
36923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36924 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36925 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
36926 for flag in $(EXTRA_TARGET_FLAGS); do \
36927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36928 done; \
1b6c0831 36929 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
36930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36932 "RANLIB=$${RANLIB}" \
0c24b341 36933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
36934 install-pdf) \
36935 || exit 1
36936
1b6c0831 36937@endif target-libsanitizer
a3ca38d2 36938
1b6c0831
L
36939.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
36940maybe-install-html-target-libsanitizer:
36941@if target-libsanitizer
36942maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 36943
1b6c0831
L
36944install-html-target-libsanitizer: \
36945 configure-target-libsanitizer \
36946 html-target-libsanitizer
108a6f8e 36947 @: $(MAKE); $(unstage)
22121df0 36948 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
36949 r=`${PWD_COMMAND}`; export r; \
36950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36951 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36952 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
36953 for flag in $(EXTRA_TARGET_FLAGS); do \
36954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36955 done; \
1b6c0831 36956 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
36957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36959 "RANLIB=$${RANLIB}" \
0c24b341 36960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
36961 install-html) \
36962 || exit 1
36963
1b6c0831 36964@endif target-libsanitizer
108a6f8e 36965
1b6c0831
L
36966.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
36967maybe-installcheck-target-libsanitizer:
36968@if target-libsanitizer
36969maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 36970
1b6c0831
L
36971installcheck-target-libsanitizer: \
36972 configure-target-libsanitizer
0aed8855 36973 @: $(MAKE); $(unstage)
22121df0 36974 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36975 r=`${PWD_COMMAND}`; export r; \
b40e3958 36976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36977 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36978 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36979 for flag in $(EXTRA_TARGET_FLAGS); do \
36980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36981 done; \
1b6c0831 36982 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36985 "RANLIB=$${RANLIB}" \
0c24b341 36986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36987 installcheck) \
4fa63067 36988 || exit 1
3866be5d 36989
1b6c0831 36990@endif target-libsanitizer
3866be5d 36991
1b6c0831
L
36992.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
36993maybe-mostlyclean-target-libsanitizer:
36994@if target-libsanitizer
36995maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 36996
1b6c0831 36997mostlyclean-target-libsanitizer:
0aed8855 36998 @: $(MAKE); $(unstage)
22121df0 36999 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
37000 r=`${PWD_COMMAND}`; export r; \
37001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37002 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37003 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37004 for flag in $(EXTRA_TARGET_FLAGS); do \
37005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37006 done; \
1b6c0831 37007 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37010 "RANLIB=$${RANLIB}" \
0c24b341 37011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37012 mostlyclean) \
e2b9e2dc
NN
37013 || exit 1
37014
1b6c0831 37015@endif target-libsanitizer
4fa63067 37016
1b6c0831
L
37017.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
37018maybe-clean-target-libsanitizer:
37019@if target-libsanitizer
37020maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 37021
1b6c0831 37022clean-target-libsanitizer:
0aed8855 37023 @: $(MAKE); $(unstage)
22121df0 37024 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37025 r=`${PWD_COMMAND}`; export r; \
b40e3958 37026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37027 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37028 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37029 for flag in $(EXTRA_TARGET_FLAGS); do \
37030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37031 done; \
1b6c0831 37032 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37035 "RANLIB=$${RANLIB}" \
0c24b341 37036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37037 clean) \
4fa63067 37038 || exit 1
3866be5d 37039
1b6c0831 37040@endif target-libsanitizer
3866be5d 37041
1b6c0831
L
37042.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
37043maybe-distclean-target-libsanitizer:
37044@if target-libsanitizer
37045maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 37046
1b6c0831 37047distclean-target-libsanitizer:
0aed8855 37048 @: $(MAKE); $(unstage)
22121df0 37049 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37050 r=`${PWD_COMMAND}`; export r; \
b40e3958 37051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37052 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37053 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37054 for flag in $(EXTRA_TARGET_FLAGS); do \
37055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37056 done; \
1b6c0831 37057 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37060 "RANLIB=$${RANLIB}" \
0c24b341 37061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37062 distclean) \
4fa63067 37063 || exit 1
3866be5d 37064
1b6c0831 37065@endif target-libsanitizer
3866be5d 37066
1b6c0831
L
37067.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
37068maybe-maintainer-clean-target-libsanitizer:
37069@if target-libsanitizer
37070maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 37071
1b6c0831 37072maintainer-clean-target-libsanitizer:
0aed8855 37073 @: $(MAKE); $(unstage)
22121df0 37074 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37075 r=`${PWD_COMMAND}`; export r; \
b40e3958 37076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37077 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37078 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37079 for flag in $(EXTRA_TARGET_FLAGS); do \
37080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37081 done; \
1b6c0831 37082 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37085 "RANLIB=$${RANLIB}" \
0c24b341 37086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37087 maintainer-clean) \
4fa63067 37088 || exit 1
3866be5d 37089
1b6c0831 37090@endif target-libsanitizer
3866be5d 37091
4fa63067 37092
4fa63067 37093
a7254363
PB
37094
37095
1b6c0831
L
37096.PHONY: configure-target-libmpx maybe-configure-target-libmpx
37097maybe-configure-target-libmpx:
5286fdef 37098@if gcc-bootstrap
1b6c0831 37099configure-target-libmpx: stage_current
5286fdef 37100@endif gcc-bootstrap
1b6c0831
L
37101@if target-libmpx
37102maybe-configure-target-libmpx: configure-target-libmpx
37103configure-target-libmpx:
5286fdef
L
37104 @r=`${PWD_COMMAND}`; export r; \
37105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37106 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
37107 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
37108 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37109 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37110 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37111 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 37112 else \
1b6c0831
L
37113 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37114 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
37115 fi; \
37116 else \
1b6c0831 37117 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 37118 fi; \
1b6c0831 37119 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 37120 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
37121 $(NORMAL_TARGET_EXPORTS) \
37122 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
37123 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
37124 case $(srcdir) in \
37125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37126 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
37127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37128 esac; \
1b6c0831 37129 module_srcdir=libmpx; \
5286fdef 37130 rm -f no-such-file || : ; \
1b6c0831
L
37131 CONFIG_SITE=no-such-file $(SHELL) \
37132 $$s/$$module_srcdir/configure \
37133 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 37134 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37135 --target=${target_alias} \
5286fdef 37136 || exit 1
1b6c0831 37137@endif target-libmpx
5286fdef
L
37138
37139
37140
1b6c0831
L
37141.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
37142maybe-configure-stage1-target-libmpx:
37143@if target-libmpx-bootstrap
37144maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
37145configure-stage1-target-libmpx:
5eb08693 37146 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 37147 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37148 @r=`${PWD_COMMAND}`; export r; \
37149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37150 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 37151 echo "Checking multilib configuration for libmpx..."; \
22121df0 37152 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37153 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37154 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37155 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37156 else \
1b6c0831
L
37157 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37158 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37159 fi; \
37160 else \
1b6c0831 37161 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37162 fi; \
1b6c0831
L
37163 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37164 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37165 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37166 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37167 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37168 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
37169 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37170 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37171 case $(srcdir) in \
37172 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37173 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37174 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37175 esac; \
1b6c0831
L
37176 module_srcdir=libmpx; \
37177 $(SHELL) $$s/$$module_srcdir/configure \
37178 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37179 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
37180 --target=${target_alias} \
37181 \
5eb08693 37182 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 37183@endif target-libmpx-bootstrap
5eb08693 37184
1b6c0831
L
37185.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
37186maybe-configure-stage2-target-libmpx:
37187@if target-libmpx-bootstrap
37188maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
37189configure-stage2-target-libmpx:
5eb08693 37190 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 37191 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37192 @r=`${PWD_COMMAND}`; export r; \
37193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37194 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 37195 echo "Checking multilib configuration for libmpx..."; \
22121df0 37196 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37197 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37198 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37199 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37200 else \
1b6c0831
L
37201 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37202 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37203 fi; \
37204 else \
1b6c0831 37205 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37206 fi; \
1b6c0831
L
37207 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37208 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37209 \
37210 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37211 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37212 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37213 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
37214 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37215 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37216 case $(srcdir) in \
37217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37218 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37220 esac; \
1b6c0831
L
37221 module_srcdir=libmpx; \
37222 $(SHELL) $$s/$$module_srcdir/configure \
37223 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37224 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37225 --target=${target_alias} \
22121df0 37226 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37227 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 37228@endif target-libmpx-bootstrap
5eb08693 37229
1b6c0831
L
37230.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
37231maybe-configure-stage3-target-libmpx:
37232@if target-libmpx-bootstrap
37233maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
37234configure-stage3-target-libmpx:
5eb08693 37235 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 37236 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37237 @r=`${PWD_COMMAND}`; export r; \
37238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37239 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 37240 echo "Checking multilib configuration for libmpx..."; \
22121df0 37241 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37242 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37243 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37244 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37245 else \
1b6c0831
L
37246 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37247 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37248 fi; \
37249 else \
1b6c0831 37250 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37251 fi; \
1b6c0831
L
37252 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37253 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37254 \
37255 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37256 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37257 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37258 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
37259 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37260 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37261 case $(srcdir) in \
37262 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37263 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37264 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37265 esac; \
1b6c0831
L
37266 module_srcdir=libmpx; \
37267 $(SHELL) $$s/$$module_srcdir/configure \
37268 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37269 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37270 --target=${target_alias} \
22121df0 37271 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37272 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 37273@endif target-libmpx-bootstrap
5eb08693 37274
1b6c0831
L
37275.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
37276maybe-configure-stage4-target-libmpx:
37277@if target-libmpx-bootstrap
37278maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
37279configure-stage4-target-libmpx:
5eb08693 37280 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 37281 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37282 @r=`${PWD_COMMAND}`; export r; \
37283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37284 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 37285 echo "Checking multilib configuration for libmpx..."; \
22121df0 37286 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37287 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37288 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37289 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37290 else \
1b6c0831
L
37291 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37292 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37293 fi; \
37294 else \
1b6c0831 37295 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37296 fi; \
1b6c0831
L
37297 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37298 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37299 \
37300 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37301 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37302 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37303 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
37304 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37305 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37306 case $(srcdir) in \
37307 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37308 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37309 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37310 esac; \
1b6c0831
L
37311 module_srcdir=libmpx; \
37312 $(SHELL) $$s/$$module_srcdir/configure \
37313 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37314 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37315 --target=${target_alias} \
22121df0 37316 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37317 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 37318@endif target-libmpx-bootstrap
5eb08693 37319
1b6c0831
L
37320.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
37321maybe-configure-stageprofile-target-libmpx:
37322@if target-libmpx-bootstrap
37323maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
37324configure-stageprofile-target-libmpx:
5eb08693 37325 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 37326 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37327 @r=`${PWD_COMMAND}`; export r; \
37328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37329 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 37330 echo "Checking multilib configuration for libmpx..."; \
22121df0 37331 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37332 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37333 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37334 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37335 else \
1b6c0831
L
37336 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37337 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37338 fi; \
37339 else \
1b6c0831 37340 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37341 fi; \
1b6c0831
L
37342 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37343 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37344 \
37345 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37346 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37347 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37348 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
37349 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37350 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37351 case $(srcdir) in \
37352 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37353 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37354 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37355 esac; \
1b6c0831
L
37356 module_srcdir=libmpx; \
37357 $(SHELL) $$s/$$module_srcdir/configure \
37358 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37359 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37360 --target=${target_alias} \
22121df0 37361 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37362 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 37363@endif target-libmpx-bootstrap
5eb08693 37364
1b6c0831
L
37365.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
37366maybe-configure-stagefeedback-target-libmpx:
37367@if target-libmpx-bootstrap
37368maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
37369configure-stagefeedback-target-libmpx:
5eb08693 37370 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 37371 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37372 @r=`${PWD_COMMAND}`; export r; \
37373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37374 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 37375 echo "Checking multilib configuration for libmpx..."; \
22121df0 37376 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37377 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37378 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37379 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37380 else \
1b6c0831
L
37381 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37382 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37383 fi; \
37384 else \
1b6c0831 37385 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37386 fi; \
1b6c0831
L
37387 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37388 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37389 \
37390 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37391 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37392 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37393 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
37394 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37395 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37396 case $(srcdir) in \
37397 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37398 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37399 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37400 esac; \
1b6c0831
L
37401 module_srcdir=libmpx; \
37402 $(SHELL) $$s/$$module_srcdir/configure \
37403 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37404 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37405 --target=${target_alias} \
22121df0 37406 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37407 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 37408@endif target-libmpx-bootstrap
5eb08693
L
37409
37410
37411
5286fdef
L
37412
37413
1b6c0831
L
37414.PHONY: all-target-libmpx maybe-all-target-libmpx
37415maybe-all-target-libmpx:
5286fdef 37416@if gcc-bootstrap
1b6c0831 37417all-target-libmpx: stage_current
5286fdef 37418@endif gcc-bootstrap
1b6c0831
L
37419@if target-libmpx
37420TARGET-target-libmpx=all
37421maybe-all-target-libmpx: all-target-libmpx
37422all-target-libmpx: configure-target-libmpx
5286fdef
L
37423 @r=`${PWD_COMMAND}`; export r; \
37424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37425 $(NORMAL_TARGET_EXPORTS) \
37426 (cd $(TARGET_SUBDIR)/libmpx && \
37427 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37428 $(TARGET-target-libmpx))
37429@endif target-libmpx
5286fdef
L
37430
37431
37432
1b6c0831
L
37433.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
37434.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
37435maybe-all-stage1-target-libmpx:
37436maybe-clean-stage1-target-libmpx:
37437@if target-libmpx-bootstrap
37438maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
37439all-stage1: all-stage1-target-libmpx
37440TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
37441all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
37442 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37443 @r=`${PWD_COMMAND}`; export r; \
37444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37445 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
37446 $(NORMAL_TARGET_EXPORTS) \
37447 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37448 \
5eb08693
L
37449 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37450 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37451 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37452 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37453 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37454 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37455 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37456 $(EXTRA_TARGET_FLAGS) \
5eb08693 37457 \
05a13254 37458 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 37459 $(TARGET-stage1-target-libmpx)
5eb08693 37460
1b6c0831
L
37461maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
37462clean-stage1: clean-stage1-target-libmpx
37463clean-stage1-target-libmpx:
5eb08693 37464 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 37465 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37466 else \
1b6c0831 37467 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
37468 $(MAKE) stage1-start; \
37469 fi; \
1b6c0831
L
37470 cd $(TARGET_SUBDIR)/libmpx && \
37471 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 37472 clean
1b6c0831
L
37473@endif target-libmpx-bootstrap
37474
37475
37476.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
37477.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
37478maybe-all-stage2-target-libmpx:
37479maybe-clean-stage2-target-libmpx:
37480@if target-libmpx-bootstrap
37481maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
37482all-stage2: all-stage2-target-libmpx
37483TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
37484all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
37485 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37486 @r=`${PWD_COMMAND}`; export r; \
37487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37488 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 37489 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37490 \
1b6c0831 37491 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37492 \
5eb08693
L
37493 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37494 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37495 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37496 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37497 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37498 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37499 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37500 $(EXTRA_TARGET_FLAGS) \
05a13254 37501 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 37502 $(TARGET-stage2-target-libmpx)
5eb08693 37503
1b6c0831
L
37504maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
37505clean-stage2: clean-stage2-target-libmpx
37506clean-stage2-target-libmpx:
5eb08693 37507 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 37508 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37509 else \
1b6c0831 37510 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
37511 $(MAKE) stage2-start; \
37512 fi; \
1b6c0831
L
37513 cd $(TARGET_SUBDIR)/libmpx && \
37514 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37515@endif target-libmpx-bootstrap
37516
37517
37518.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
37519.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
37520maybe-all-stage3-target-libmpx:
37521maybe-clean-stage3-target-libmpx:
37522@if target-libmpx-bootstrap
37523maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
37524all-stage3: all-stage3-target-libmpx
37525TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
37526all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
37527 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37528 @r=`${PWD_COMMAND}`; export r; \
37529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37530 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 37531 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37532 \
1b6c0831 37533 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37534 \
5eb08693
L
37535 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37536 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37537 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37538 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37539 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37540 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37541 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37542 $(EXTRA_TARGET_FLAGS) \
05a13254 37543 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 37544 $(TARGET-stage3-target-libmpx)
5eb08693 37545
1b6c0831
L
37546maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
37547clean-stage3: clean-stage3-target-libmpx
37548clean-stage3-target-libmpx:
5eb08693 37549 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 37550 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37551 else \
1b6c0831 37552 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
37553 $(MAKE) stage3-start; \
37554 fi; \
1b6c0831
L
37555 cd $(TARGET_SUBDIR)/libmpx && \
37556 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37557@endif target-libmpx-bootstrap
37558
37559
37560.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
37561.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
37562maybe-all-stage4-target-libmpx:
37563maybe-clean-stage4-target-libmpx:
37564@if target-libmpx-bootstrap
37565maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
37566all-stage4: all-stage4-target-libmpx
37567TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
37568all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
37569 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37570 @r=`${PWD_COMMAND}`; export r; \
37571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37572 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 37573 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37574 \
1b6c0831 37575 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37576 \
5eb08693
L
37577 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37578 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37579 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37580 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37581 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37582 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37583 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37584 $(EXTRA_TARGET_FLAGS) \
05a13254 37585 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 37586 $(TARGET-stage4-target-libmpx)
5eb08693 37587
1b6c0831
L
37588maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
37589clean-stage4: clean-stage4-target-libmpx
37590clean-stage4-target-libmpx:
5eb08693 37591 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 37592 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37593 else \
1b6c0831 37594 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
37595 $(MAKE) stage4-start; \
37596 fi; \
1b6c0831
L
37597 cd $(TARGET_SUBDIR)/libmpx && \
37598 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37599@endif target-libmpx-bootstrap
37600
37601
37602.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
37603.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
37604maybe-all-stageprofile-target-libmpx:
37605maybe-clean-stageprofile-target-libmpx:
37606@if target-libmpx-bootstrap
37607maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
37608all-stageprofile: all-stageprofile-target-libmpx
37609TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
37610all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
37611 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37612 @r=`${PWD_COMMAND}`; export r; \
37613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37614 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 37615 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37616 \
1b6c0831 37617 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37618 \
5eb08693
L
37619 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37620 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37621 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37622 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37623 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37624 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37625 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37626 $(EXTRA_TARGET_FLAGS) \
05a13254 37627 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 37628 $(TARGET-stageprofile-target-libmpx)
5eb08693 37629
1b6c0831
L
37630maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
37631clean-stageprofile: clean-stageprofile-target-libmpx
37632clean-stageprofile-target-libmpx:
5eb08693 37633 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 37634 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37635 else \
1b6c0831 37636 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
37637 $(MAKE) stageprofile-start; \
37638 fi; \
1b6c0831
L
37639 cd $(TARGET_SUBDIR)/libmpx && \
37640 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37641@endif target-libmpx-bootstrap
37642
37643
37644.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
37645.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
37646maybe-all-stagefeedback-target-libmpx:
37647maybe-clean-stagefeedback-target-libmpx:
37648@if target-libmpx-bootstrap
37649maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
37650all-stagefeedback: all-stagefeedback-target-libmpx
37651TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
37652all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
37653 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37654 @r=`${PWD_COMMAND}`; export r; \
37655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37656 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 37657 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37658 \
1b6c0831 37659 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37660 \
5eb08693
L
37661 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37662 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37663 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37664 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37665 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37666 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37667 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37668 $(EXTRA_TARGET_FLAGS) \
05a13254 37669 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 37670 $(TARGET-stagefeedback-target-libmpx)
5eb08693 37671
1b6c0831
L
37672maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
37673clean-stagefeedback: clean-stagefeedback-target-libmpx
37674clean-stagefeedback-target-libmpx:
5eb08693 37675 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 37676 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37677 else \
1b6c0831 37678 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
37679 $(MAKE) stagefeedback-start; \
37680 fi; \
1b6c0831
L
37681 cd $(TARGET_SUBDIR)/libmpx && \
37682 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37683@endif target-libmpx-bootstrap
5eb08693
L
37684
37685
37686
37687
5286fdef
L
37688
37689
1b6c0831
L
37690.PHONY: check-target-libmpx maybe-check-target-libmpx
37691maybe-check-target-libmpx:
37692@if target-libmpx
37693maybe-check-target-libmpx: check-target-libmpx
5286fdef 37694
1b6c0831 37695check-target-libmpx:
5286fdef
L
37696 @: $(MAKE); $(unstage)
37697 @r=`${PWD_COMMAND}`; export r; \
37698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37699 $(NORMAL_TARGET_EXPORTS) \
37700 (cd $(TARGET_SUBDIR)/libmpx && \
37701 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 37702
1b6c0831 37703@endif target-libmpx
5286fdef 37704
1b6c0831
L
37705.PHONY: install-target-libmpx maybe-install-target-libmpx
37706maybe-install-target-libmpx:
37707@if target-libmpx
37708maybe-install-target-libmpx: install-target-libmpx
5286fdef 37709
1b6c0831 37710install-target-libmpx: installdirs
5286fdef
L
37711 @: $(MAKE); $(unstage)
37712 @r=`${PWD_COMMAND}`; export r; \
37713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37714 $(NORMAL_TARGET_EXPORTS) \
37715 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37716 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37717
1b6c0831 37718@endif target-libmpx
5286fdef 37719
1b6c0831
L
37720.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
37721maybe-install-strip-target-libmpx:
37722@if target-libmpx
37723maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 37724
1b6c0831 37725install-strip-target-libmpx: installdirs
5286fdef
L
37726 @: $(MAKE); $(unstage)
37727 @r=`${PWD_COMMAND}`; export r; \
37728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37729 $(NORMAL_TARGET_EXPORTS) \
37730 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37731 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37732
1b6c0831 37733@endif target-libmpx
5286fdef
L
37734
37735# Other targets (info, dvi, pdf, etc.)
37736
1b6c0831
L
37737.PHONY: maybe-info-target-libmpx info-target-libmpx
37738maybe-info-target-libmpx:
37739@if target-libmpx
37740maybe-info-target-libmpx: info-target-libmpx
5286fdef 37741
1b6c0831
L
37742info-target-libmpx: \
37743 configure-target-libmpx
5286fdef 37744 @: $(MAKE); $(unstage)
22121df0 37745 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37746 r=`${PWD_COMMAND}`; export r; \
37747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37748 $(NORMAL_TARGET_EXPORTS) \
22121df0 37749 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37750 for flag in $(EXTRA_TARGET_FLAGS); do \
37751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37752 done; \
1b6c0831 37753 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37756 "RANLIB=$${RANLIB}" \
37757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37758 info) \
37759 || exit 1
37760
1b6c0831 37761@endif target-libmpx
5286fdef 37762
1b6c0831
L
37763.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
37764maybe-dvi-target-libmpx:
37765@if target-libmpx
37766maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 37767
1b6c0831
L
37768dvi-target-libmpx: \
37769 configure-target-libmpx
5286fdef 37770 @: $(MAKE); $(unstage)
22121df0 37771 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37772 r=`${PWD_COMMAND}`; export r; \
37773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37774 $(NORMAL_TARGET_EXPORTS) \
22121df0 37775 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37776 for flag in $(EXTRA_TARGET_FLAGS); do \
37777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37778 done; \
1b6c0831 37779 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37782 "RANLIB=$${RANLIB}" \
37783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37784 dvi) \
37785 || exit 1
37786
1b6c0831 37787@endif target-libmpx
5286fdef 37788
1b6c0831
L
37789.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
37790maybe-pdf-target-libmpx:
37791@if target-libmpx
37792maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 37793
1b6c0831
L
37794pdf-target-libmpx: \
37795 configure-target-libmpx
5286fdef 37796 @: $(MAKE); $(unstage)
22121df0 37797 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37798 r=`${PWD_COMMAND}`; export r; \
37799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37800 $(NORMAL_TARGET_EXPORTS) \
22121df0 37801 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37802 for flag in $(EXTRA_TARGET_FLAGS); do \
37803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37804 done; \
1b6c0831 37805 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37808 "RANLIB=$${RANLIB}" \
37809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37810 pdf) \
37811 || exit 1
37812
1b6c0831 37813@endif target-libmpx
5286fdef 37814
1b6c0831
L
37815.PHONY: maybe-html-target-libmpx html-target-libmpx
37816maybe-html-target-libmpx:
37817@if target-libmpx
37818maybe-html-target-libmpx: html-target-libmpx
5286fdef 37819
1b6c0831
L
37820html-target-libmpx: \
37821 configure-target-libmpx
5286fdef 37822 @: $(MAKE); $(unstage)
22121df0 37823 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37824 r=`${PWD_COMMAND}`; export r; \
37825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37826 $(NORMAL_TARGET_EXPORTS) \
22121df0 37827 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37828 for flag in $(EXTRA_TARGET_FLAGS); do \
37829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37830 done; \
1b6c0831 37831 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37834 "RANLIB=$${RANLIB}" \
37835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37836 html) \
37837 || exit 1
37838
1b6c0831 37839@endif target-libmpx
5286fdef 37840
1b6c0831
L
37841.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
37842maybe-TAGS-target-libmpx:
37843@if target-libmpx
37844maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 37845
1b6c0831
L
37846TAGS-target-libmpx: \
37847 configure-target-libmpx
5286fdef 37848 @: $(MAKE); $(unstage)
22121df0 37849 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37850 r=`${PWD_COMMAND}`; export r; \
37851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37852 $(NORMAL_TARGET_EXPORTS) \
22121df0 37853 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37854 for flag in $(EXTRA_TARGET_FLAGS); do \
37855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37856 done; \
1b6c0831 37857 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37860 "RANLIB=$${RANLIB}" \
37861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37862 TAGS) \
37863 || exit 1
37864
1b6c0831 37865@endif target-libmpx
5286fdef 37866
1b6c0831
L
37867.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
37868maybe-install-info-target-libmpx:
37869@if target-libmpx
37870maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 37871
1b6c0831
L
37872install-info-target-libmpx: \
37873 configure-target-libmpx \
37874 info-target-libmpx
5286fdef 37875 @: $(MAKE); $(unstage)
22121df0 37876 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37877 r=`${PWD_COMMAND}`; export r; \
37878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37879 $(NORMAL_TARGET_EXPORTS) \
22121df0 37880 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37881 for flag in $(EXTRA_TARGET_FLAGS); do \
37882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37883 done; \
1b6c0831 37884 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37887 "RANLIB=$${RANLIB}" \
37888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37889 install-info) \
37890 || exit 1
37891
1b6c0831 37892@endif target-libmpx
5286fdef 37893
1b6c0831
L
37894.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
37895maybe-install-pdf-target-libmpx:
37896@if target-libmpx
37897maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 37898
1b6c0831
L
37899install-pdf-target-libmpx: \
37900 configure-target-libmpx \
37901 pdf-target-libmpx
5286fdef 37902 @: $(MAKE); $(unstage)
22121df0 37903 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37904 r=`${PWD_COMMAND}`; export r; \
37905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37906 $(NORMAL_TARGET_EXPORTS) \
22121df0 37907 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37908 for flag in $(EXTRA_TARGET_FLAGS); do \
37909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37910 done; \
1b6c0831 37911 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37914 "RANLIB=$${RANLIB}" \
37915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37916 install-pdf) \
37917 || exit 1
37918
1b6c0831 37919@endif target-libmpx
5286fdef 37920
1b6c0831
L
37921.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
37922maybe-install-html-target-libmpx:
37923@if target-libmpx
37924maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 37925
1b6c0831
L
37926install-html-target-libmpx: \
37927 configure-target-libmpx \
37928 html-target-libmpx
5286fdef 37929 @: $(MAKE); $(unstage)
22121df0 37930 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37931 r=`${PWD_COMMAND}`; export r; \
37932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37933 $(NORMAL_TARGET_EXPORTS) \
22121df0 37934 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37935 for flag in $(EXTRA_TARGET_FLAGS); do \
37936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37937 done; \
1b6c0831 37938 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37941 "RANLIB=$${RANLIB}" \
37942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37943 install-html) \
37944 || exit 1
37945
1b6c0831 37946@endif target-libmpx
5286fdef 37947
1b6c0831
L
37948.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
37949maybe-installcheck-target-libmpx:
37950@if target-libmpx
37951maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 37952
1b6c0831
L
37953installcheck-target-libmpx: \
37954 configure-target-libmpx
5286fdef 37955 @: $(MAKE); $(unstage)
22121df0 37956 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37957 r=`${PWD_COMMAND}`; export r; \
37958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37959 $(NORMAL_TARGET_EXPORTS) \
22121df0 37960 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37961 for flag in $(EXTRA_TARGET_FLAGS); do \
37962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37963 done; \
1b6c0831 37964 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37967 "RANLIB=$${RANLIB}" \
37968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37969 installcheck) \
37970 || exit 1
37971
1b6c0831 37972@endif target-libmpx
5286fdef 37973
1b6c0831
L
37974.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
37975maybe-mostlyclean-target-libmpx:
37976@if target-libmpx
37977maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 37978
1b6c0831 37979mostlyclean-target-libmpx:
5286fdef 37980 @: $(MAKE); $(unstage)
22121df0 37981 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37982 r=`${PWD_COMMAND}`; export r; \
37983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37984 $(NORMAL_TARGET_EXPORTS) \
22121df0 37985 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37986 for flag in $(EXTRA_TARGET_FLAGS); do \
37987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37988 done; \
1b6c0831 37989 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37992 "RANLIB=$${RANLIB}" \
37993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37994 mostlyclean) \
37995 || exit 1
37996
1b6c0831 37997@endif target-libmpx
5286fdef 37998
1b6c0831
L
37999.PHONY: maybe-clean-target-libmpx clean-target-libmpx
38000maybe-clean-target-libmpx:
38001@if target-libmpx
38002maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 38003
1b6c0831 38004clean-target-libmpx:
5286fdef 38005 @: $(MAKE); $(unstage)
22121df0 38006 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38007 r=`${PWD_COMMAND}`; export r; \
38008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38009 $(NORMAL_TARGET_EXPORTS) \
22121df0 38010 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38011 for flag in $(EXTRA_TARGET_FLAGS); do \
38012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38013 done; \
1b6c0831 38014 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38017 "RANLIB=$${RANLIB}" \
38018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38019 clean) \
38020 || exit 1
38021
1b6c0831 38022@endif target-libmpx
5286fdef 38023
1b6c0831
L
38024.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
38025maybe-distclean-target-libmpx:
38026@if target-libmpx
38027maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 38028
1b6c0831 38029distclean-target-libmpx:
5286fdef 38030 @: $(MAKE); $(unstage)
22121df0 38031 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38032 r=`${PWD_COMMAND}`; export r; \
38033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38034 $(NORMAL_TARGET_EXPORTS) \
22121df0 38035 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38036 for flag in $(EXTRA_TARGET_FLAGS); do \
38037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38038 done; \
1b6c0831 38039 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38042 "RANLIB=$${RANLIB}" \
38043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38044 distclean) \
38045 || exit 1
38046
1b6c0831 38047@endif target-libmpx
5286fdef 38048
1b6c0831
L
38049.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
38050maybe-maintainer-clean-target-libmpx:
38051@if target-libmpx
38052maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 38053
1b6c0831 38054maintainer-clean-target-libmpx:
5286fdef 38055 @: $(MAKE); $(unstage)
22121df0 38056 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38057 r=`${PWD_COMMAND}`; export r; \
38058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38059 $(NORMAL_TARGET_EXPORTS) \
22121df0 38060 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38061 for flag in $(EXTRA_TARGET_FLAGS); do \
38062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38063 done; \
1b6c0831 38064 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38067 "RANLIB=$${RANLIB}" \
38068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38069 maintainer-clean) \
38070 || exit 1
38071
1b6c0831 38072@endif target-libmpx
5286fdef
L
38073
38074
38075
38076
38077
95e43135
JBG
38078.PHONY: configure-target-libvtv maybe-configure-target-libvtv
38079maybe-configure-target-libvtv:
38080@if gcc-bootstrap
38081configure-target-libvtv: stage_current
38082@endif gcc-bootstrap
38083@if target-libvtv
38084maybe-configure-target-libvtv: configure-target-libvtv
38085configure-target-libvtv:
38086 @r=`${PWD_COMMAND}`; export r; \
38087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38088 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
38089 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
38090 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38091 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38092 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38093 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38094 else \
38095 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38096 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38097 fi; \
38098 else \
38099 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38100 fi; \
38101 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 38102 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38103 $(RAW_CXX_TARGET_EXPORTS) \
38104 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
38105 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
38106 case $(srcdir) in \
38107 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38108 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38109 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38110 esac; \
1b6c0831 38111 module_srcdir=libvtv; \
95e43135 38112 rm -f no-such-file || : ; \
1b6c0831
L
38113 CONFIG_SITE=no-such-file $(SHELL) \
38114 $$s/$$module_srcdir/configure \
38115 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38116 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38117 --target=${target_alias} \
95e43135
JBG
38118 || exit 1
38119@endif target-libvtv
38120
38121
38122
38123.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
38124maybe-configure-stage1-target-libvtv:
38125@if target-libvtv-bootstrap
38126maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
38127configure-stage1-target-libvtv:
38128 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38129 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38130 @r=`${PWD_COMMAND}`; export r; \
38131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38132 TFLAGS="$(STAGE1_TFLAGS)"; \
38133 echo "Checking multilib configuration for libvtv..."; \
22121df0 38134 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38135 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38136 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38137 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38138 else \
38139 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38140 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38141 fi; \
38142 else \
38143 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38144 fi; \
38145 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38146 $(RAW_CXX_TARGET_EXPORTS) \
38147 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38148 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38149 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38150 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
38151 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38152 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38153 case $(srcdir) in \
38154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38155 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38157 esac; \
1b6c0831
L
38158 module_srcdir=libvtv; \
38159 $(SHELL) $$s/$$module_srcdir/configure \
38160 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38161 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38162 --target=${target_alias} \
38163 \
95e43135
JBG
38164 $(STAGE1_CONFIGURE_FLAGS)
38165@endif target-libvtv-bootstrap
38166
38167.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
38168maybe-configure-stage2-target-libvtv:
38169@if target-libvtv-bootstrap
38170maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
38171configure-stage2-target-libvtv:
38172 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38173 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38174 @r=`${PWD_COMMAND}`; export r; \
38175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38176 TFLAGS="$(STAGE2_TFLAGS)"; \
38177 echo "Checking multilib configuration for libvtv..."; \
22121df0 38178 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38179 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38180 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38181 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38182 else \
38183 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38184 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38185 fi; \
38186 else \
38187 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38188 fi; \
38189 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38190 $(RAW_CXX_TARGET_EXPORTS) \
38191 \
38192 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38193 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38194 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38195 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
38196 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38197 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38198 case $(srcdir) in \
38199 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38200 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38201 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38202 esac; \
1b6c0831
L
38203 module_srcdir=libvtv; \
38204 $(SHELL) $$s/$$module_srcdir/configure \
38205 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38206 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38207 --target=${target_alias} \
22121df0 38208 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38209 $(STAGE2_CONFIGURE_FLAGS)
38210@endif target-libvtv-bootstrap
38211
38212.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
38213maybe-configure-stage3-target-libvtv:
38214@if target-libvtv-bootstrap
38215maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
38216configure-stage3-target-libvtv:
38217 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38218 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38219 @r=`${PWD_COMMAND}`; export r; \
38220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38221 TFLAGS="$(STAGE3_TFLAGS)"; \
38222 echo "Checking multilib configuration for libvtv..."; \
22121df0 38223 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38224 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38225 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38226 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38227 else \
38228 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38229 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38230 fi; \
38231 else \
38232 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38233 fi; \
38234 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38235 $(RAW_CXX_TARGET_EXPORTS) \
38236 \
38237 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38238 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38239 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38240 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
38241 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38242 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38243 case $(srcdir) in \
38244 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38245 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38246 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38247 esac; \
1b6c0831
L
38248 module_srcdir=libvtv; \
38249 $(SHELL) $$s/$$module_srcdir/configure \
38250 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38251 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38252 --target=${target_alias} \
22121df0 38253 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38254 $(STAGE3_CONFIGURE_FLAGS)
38255@endif target-libvtv-bootstrap
38256
38257.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
38258maybe-configure-stage4-target-libvtv:
38259@if target-libvtv-bootstrap
38260maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
38261configure-stage4-target-libvtv:
38262 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38263 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38264 @r=`${PWD_COMMAND}`; export r; \
38265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38266 TFLAGS="$(STAGE4_TFLAGS)"; \
38267 echo "Checking multilib configuration for libvtv..."; \
22121df0 38268 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38269 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38270 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38271 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38272 else \
38273 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38274 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38275 fi; \
38276 else \
38277 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38278 fi; \
38279 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38280 $(RAW_CXX_TARGET_EXPORTS) \
38281 \
38282 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38283 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38284 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38285 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
38286 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38287 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38288 case $(srcdir) in \
38289 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38290 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38291 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38292 esac; \
1b6c0831
L
38293 module_srcdir=libvtv; \
38294 $(SHELL) $$s/$$module_srcdir/configure \
38295 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38296 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38297 --target=${target_alias} \
22121df0 38298 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38299 $(STAGE4_CONFIGURE_FLAGS)
38300@endif target-libvtv-bootstrap
38301
38302.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
38303maybe-configure-stageprofile-target-libvtv:
38304@if target-libvtv-bootstrap
38305maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
38306configure-stageprofile-target-libvtv:
38307 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38308 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38309 @r=`${PWD_COMMAND}`; export r; \
38310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38311 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38312 echo "Checking multilib configuration for libvtv..."; \
22121df0 38313 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38314 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38315 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38316 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38317 else \
38318 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38319 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38320 fi; \
38321 else \
38322 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38323 fi; \
38324 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38325 $(RAW_CXX_TARGET_EXPORTS) \
38326 \
38327 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38328 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38329 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38330 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
38331 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38332 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38333 case $(srcdir) in \
38334 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38335 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38336 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38337 esac; \
1b6c0831
L
38338 module_srcdir=libvtv; \
38339 $(SHELL) $$s/$$module_srcdir/configure \
38340 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38341 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38342 --target=${target_alias} \
22121df0 38343 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38344 $(STAGEprofile_CONFIGURE_FLAGS)
38345@endif target-libvtv-bootstrap
38346
38347.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
38348maybe-configure-stagefeedback-target-libvtv:
38349@if target-libvtv-bootstrap
38350maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
38351configure-stagefeedback-target-libvtv:
38352 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38353 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38354 @r=`${PWD_COMMAND}`; export r; \
38355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38356 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38357 echo "Checking multilib configuration for libvtv..."; \
22121df0 38358 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38359 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38360 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38361 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38362 else \
38363 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38364 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38365 fi; \
38366 else \
38367 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38368 fi; \
38369 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38370 $(RAW_CXX_TARGET_EXPORTS) \
38371 \
38372 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38373 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38374 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38375 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
38376 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38377 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38378 case $(srcdir) in \
38379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38380 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38382 esac; \
1b6c0831
L
38383 module_srcdir=libvtv; \
38384 $(SHELL) $$s/$$module_srcdir/configure \
38385 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38386 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38387 --target=${target_alias} \
22121df0 38388 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38389 $(STAGEfeedback_CONFIGURE_FLAGS)
38390@endif target-libvtv-bootstrap
38391
38392
38393
38394
38395
38396.PHONY: all-target-libvtv maybe-all-target-libvtv
38397maybe-all-target-libvtv:
38398@if gcc-bootstrap
38399all-target-libvtv: stage_current
38400@endif gcc-bootstrap
38401@if target-libvtv
38402TARGET-target-libvtv=all
38403maybe-all-target-libvtv: all-target-libvtv
38404all-target-libvtv: configure-target-libvtv
38405 @r=`${PWD_COMMAND}`; export r; \
38406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38407 $(RAW_CXX_TARGET_EXPORTS) \
38408 (cd $(TARGET_SUBDIR)/libvtv && \
38409 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
38410 $(TARGET-target-libvtv))
38411@endif target-libvtv
38412
38413
38414
38415.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
38416.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
38417maybe-all-stage1-target-libvtv:
38418maybe-clean-stage1-target-libvtv:
38419@if target-libvtv-bootstrap
38420maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
38421all-stage1: all-stage1-target-libvtv
38422TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
38423all-stage1-target-libvtv: configure-stage1-target-libvtv
38424 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38425 @r=`${PWD_COMMAND}`; export r; \
38426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38427 TFLAGS="$(STAGE1_TFLAGS)"; \
38428 $(RAW_CXX_TARGET_EXPORTS) \
38429 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38430 \
95e43135
JBG
38431 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38432 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38433 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38434 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38435 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38436 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38437 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38438 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
38439 \
05a13254 38440 TFLAGS="$(STAGE1_TFLAGS)" \
95e43135
JBG
38441 $(TARGET-stage1-target-libvtv)
38442
38443maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
38444clean-stage1: clean-stage1-target-libvtv
38445clean-stage1-target-libvtv:
38446 @if [ $(current_stage) = stage1 ]; then \
38447 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38448 else \
38449 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
38450 $(MAKE) stage1-start; \
38451 fi; \
38452 cd $(TARGET_SUBDIR)/libvtv && \
38453 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
38454 clean
38455@endif target-libvtv-bootstrap
38456
38457
38458.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
38459.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
38460maybe-all-stage2-target-libvtv:
38461maybe-clean-stage2-target-libvtv:
38462@if target-libvtv-bootstrap
38463maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
38464all-stage2: all-stage2-target-libvtv
38465TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
38466all-stage2-target-libvtv: configure-stage2-target-libvtv
38467 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38468 @r=`${PWD_COMMAND}`; export r; \
38469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38470 TFLAGS="$(STAGE2_TFLAGS)"; \
38471 $(RAW_CXX_TARGET_EXPORTS) \
38472 \
38473 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38474 \
95e43135
JBG
38475 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38476 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38477 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38478 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38479 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38480 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38481 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38482 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38483 TFLAGS="$(STAGE2_TFLAGS)" \
95e43135
JBG
38484 $(TARGET-stage2-target-libvtv)
38485
38486maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
38487clean-stage2: clean-stage2-target-libvtv
38488clean-stage2-target-libvtv:
38489 @if [ $(current_stage) = stage2 ]; then \
38490 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38491 else \
38492 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
38493 $(MAKE) stage2-start; \
38494 fi; \
38495 cd $(TARGET_SUBDIR)/libvtv && \
38496 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38497@endif target-libvtv-bootstrap
38498
38499
38500.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
38501.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
38502maybe-all-stage3-target-libvtv:
38503maybe-clean-stage3-target-libvtv:
38504@if target-libvtv-bootstrap
38505maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
38506all-stage3: all-stage3-target-libvtv
38507TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
38508all-stage3-target-libvtv: configure-stage3-target-libvtv
38509 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38510 @r=`${PWD_COMMAND}`; export r; \
38511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38512 TFLAGS="$(STAGE3_TFLAGS)"; \
38513 $(RAW_CXX_TARGET_EXPORTS) \
38514 \
38515 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38516 \
95e43135
JBG
38517 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38518 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38519 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38520 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38521 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38522 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38523 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38524 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38525 TFLAGS="$(STAGE3_TFLAGS)" \
95e43135
JBG
38526 $(TARGET-stage3-target-libvtv)
38527
38528maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
38529clean-stage3: clean-stage3-target-libvtv
38530clean-stage3-target-libvtv:
38531 @if [ $(current_stage) = stage3 ]; then \
38532 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38533 else \
38534 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
38535 $(MAKE) stage3-start; \
38536 fi; \
38537 cd $(TARGET_SUBDIR)/libvtv && \
38538 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38539@endif target-libvtv-bootstrap
38540
38541
38542.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
38543.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
38544maybe-all-stage4-target-libvtv:
38545maybe-clean-stage4-target-libvtv:
38546@if target-libvtv-bootstrap
38547maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
38548all-stage4: all-stage4-target-libvtv
38549TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
38550all-stage4-target-libvtv: configure-stage4-target-libvtv
38551 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38552 @r=`${PWD_COMMAND}`; export r; \
38553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38554 TFLAGS="$(STAGE4_TFLAGS)"; \
38555 $(RAW_CXX_TARGET_EXPORTS) \
38556 \
38557 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38558 \
95e43135
JBG
38559 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38560 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38561 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38562 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38563 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38564 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38565 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38566 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38567 TFLAGS="$(STAGE4_TFLAGS)" \
95e43135
JBG
38568 $(TARGET-stage4-target-libvtv)
38569
38570maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
38571clean-stage4: clean-stage4-target-libvtv
38572clean-stage4-target-libvtv:
38573 @if [ $(current_stage) = stage4 ]; then \
38574 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38575 else \
38576 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
38577 $(MAKE) stage4-start; \
38578 fi; \
38579 cd $(TARGET_SUBDIR)/libvtv && \
38580 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38581@endif target-libvtv-bootstrap
38582
38583
38584.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
38585.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
38586maybe-all-stageprofile-target-libvtv:
38587maybe-clean-stageprofile-target-libvtv:
38588@if target-libvtv-bootstrap
38589maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
38590all-stageprofile: all-stageprofile-target-libvtv
38591TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
38592all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
38593 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38594 @r=`${PWD_COMMAND}`; export r; \
38595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38596 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38597 $(RAW_CXX_TARGET_EXPORTS) \
38598 \
38599 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38600 \
95e43135
JBG
38601 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38602 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38603 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38604 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38605 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38606 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38607 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38608 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38609 TFLAGS="$(STAGEprofile_TFLAGS)" \
95e43135
JBG
38610 $(TARGET-stageprofile-target-libvtv)
38611
38612maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
38613clean-stageprofile: clean-stageprofile-target-libvtv
38614clean-stageprofile-target-libvtv:
38615 @if [ $(current_stage) = stageprofile ]; then \
38616 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38617 else \
38618 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
38619 $(MAKE) stageprofile-start; \
38620 fi; \
38621 cd $(TARGET_SUBDIR)/libvtv && \
38622 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38623@endif target-libvtv-bootstrap
38624
38625
38626.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
38627.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
38628maybe-all-stagefeedback-target-libvtv:
38629maybe-clean-stagefeedback-target-libvtv:
38630@if target-libvtv-bootstrap
38631maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
38632all-stagefeedback: all-stagefeedback-target-libvtv
38633TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
38634all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
38635 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38636 @r=`${PWD_COMMAND}`; export r; \
38637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38638 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38639 $(RAW_CXX_TARGET_EXPORTS) \
38640 \
38641 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38642 \
95e43135
JBG
38643 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38644 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38645 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38646 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38647 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38648 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38649 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38650 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38651 TFLAGS="$(STAGEfeedback_TFLAGS)" \
95e43135
JBG
38652 $(TARGET-stagefeedback-target-libvtv)
38653
38654maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
38655clean-stagefeedback: clean-stagefeedback-target-libvtv
38656clean-stagefeedback-target-libvtv:
38657 @if [ $(current_stage) = stagefeedback ]; then \
38658 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38659 else \
38660 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
38661 $(MAKE) stagefeedback-start; \
38662 fi; \
38663 cd $(TARGET_SUBDIR)/libvtv && \
38664 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38665@endif target-libvtv-bootstrap
38666
38667
38668
38669
38670
38671
38672.PHONY: check-target-libvtv maybe-check-target-libvtv
38673maybe-check-target-libvtv:
38674@if target-libvtv
38675maybe-check-target-libvtv: check-target-libvtv
38676
38677check-target-libvtv:
38678 @: $(MAKE); $(unstage)
38679 @r=`${PWD_COMMAND}`; export r; \
38680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38681 $(RAW_CXX_TARGET_EXPORTS) \
38682 (cd $(TARGET_SUBDIR)/libvtv && \
38683 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
38684
38685@endif target-libvtv
38686
38687.PHONY: install-target-libvtv maybe-install-target-libvtv
38688maybe-install-target-libvtv:
38689@if target-libvtv
38690maybe-install-target-libvtv: install-target-libvtv
38691
38692install-target-libvtv: installdirs
38693 @: $(MAKE); $(unstage)
38694 @r=`${PWD_COMMAND}`; export r; \
38695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38696 $(RAW_CXX_TARGET_EXPORTS) \
38697 (cd $(TARGET_SUBDIR)/libvtv && \
38698 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38699
38700@endif target-libvtv
38701
38702.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
38703maybe-install-strip-target-libvtv:
38704@if target-libvtv
38705maybe-install-strip-target-libvtv: install-strip-target-libvtv
38706
38707install-strip-target-libvtv: installdirs
38708 @: $(MAKE); $(unstage)
38709 @r=`${PWD_COMMAND}`; export r; \
38710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38711 $(RAW_CXX_TARGET_EXPORTS) \
38712 (cd $(TARGET_SUBDIR)/libvtv && \
38713 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38714
38715@endif target-libvtv
38716
38717# Other targets (info, dvi, pdf, etc.)
38718
38719.PHONY: maybe-info-target-libvtv info-target-libvtv
38720maybe-info-target-libvtv:
38721@if target-libvtv
38722maybe-info-target-libvtv: info-target-libvtv
38723
38724info-target-libvtv: \
38725 configure-target-libvtv
38726 @: $(MAKE); $(unstage)
22121df0 38727 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38728 r=`${PWD_COMMAND}`; export r; \
38729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38730 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38731 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38732 for flag in $(EXTRA_TARGET_FLAGS); do \
38733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38734 done; \
38735 (cd $(TARGET_SUBDIR)/libvtv && \
38736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38738 "RANLIB=$${RANLIB}" \
38739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38740 info) \
38741 || exit 1
38742
38743@endif target-libvtv
38744
38745.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
38746maybe-dvi-target-libvtv:
38747@if target-libvtv
38748maybe-dvi-target-libvtv: dvi-target-libvtv
38749
38750dvi-target-libvtv: \
38751 configure-target-libvtv
38752 @: $(MAKE); $(unstage)
22121df0 38753 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38754 r=`${PWD_COMMAND}`; export r; \
38755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38756 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38757 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38758 for flag in $(EXTRA_TARGET_FLAGS); do \
38759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38760 done; \
38761 (cd $(TARGET_SUBDIR)/libvtv && \
38762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38764 "RANLIB=$${RANLIB}" \
38765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38766 dvi) \
38767 || exit 1
38768
38769@endif target-libvtv
38770
38771.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
38772maybe-pdf-target-libvtv:
38773@if target-libvtv
38774maybe-pdf-target-libvtv: pdf-target-libvtv
38775
38776pdf-target-libvtv: \
38777 configure-target-libvtv
38778 @: $(MAKE); $(unstage)
22121df0 38779 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38780 r=`${PWD_COMMAND}`; export r; \
38781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38782 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38783 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38784 for flag in $(EXTRA_TARGET_FLAGS); do \
38785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38786 done; \
38787 (cd $(TARGET_SUBDIR)/libvtv && \
38788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38790 "RANLIB=$${RANLIB}" \
38791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38792 pdf) \
38793 || exit 1
38794
38795@endif target-libvtv
38796
38797.PHONY: maybe-html-target-libvtv html-target-libvtv
38798maybe-html-target-libvtv:
38799@if target-libvtv
38800maybe-html-target-libvtv: html-target-libvtv
38801
38802html-target-libvtv: \
38803 configure-target-libvtv
38804 @: $(MAKE); $(unstage)
22121df0 38805 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38806 r=`${PWD_COMMAND}`; export r; \
38807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38808 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38809 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38810 for flag in $(EXTRA_TARGET_FLAGS); do \
38811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38812 done; \
38813 (cd $(TARGET_SUBDIR)/libvtv && \
38814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38816 "RANLIB=$${RANLIB}" \
38817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38818 html) \
38819 || exit 1
38820
38821@endif target-libvtv
38822
38823.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
38824maybe-TAGS-target-libvtv:
38825@if target-libvtv
38826maybe-TAGS-target-libvtv: TAGS-target-libvtv
38827
38828TAGS-target-libvtv: \
38829 configure-target-libvtv
38830 @: $(MAKE); $(unstage)
22121df0 38831 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38832 r=`${PWD_COMMAND}`; export r; \
38833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38834 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38835 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38836 for flag in $(EXTRA_TARGET_FLAGS); do \
38837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38838 done; \
38839 (cd $(TARGET_SUBDIR)/libvtv && \
38840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38842 "RANLIB=$${RANLIB}" \
38843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38844 TAGS) \
38845 || exit 1
38846
38847@endif target-libvtv
38848
38849.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
38850maybe-install-info-target-libvtv:
38851@if target-libvtv
38852maybe-install-info-target-libvtv: install-info-target-libvtv
38853
38854install-info-target-libvtv: \
38855 configure-target-libvtv \
38856 info-target-libvtv
38857 @: $(MAKE); $(unstage)
22121df0 38858 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38859 r=`${PWD_COMMAND}`; export r; \
38860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38861 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38862 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38863 for flag in $(EXTRA_TARGET_FLAGS); do \
38864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38865 done; \
38866 (cd $(TARGET_SUBDIR)/libvtv && \
38867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38869 "RANLIB=$${RANLIB}" \
38870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38871 install-info) \
38872 || exit 1
38873
38874@endif target-libvtv
38875
38876.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
38877maybe-install-pdf-target-libvtv:
38878@if target-libvtv
38879maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
38880
38881install-pdf-target-libvtv: \
38882 configure-target-libvtv \
38883 pdf-target-libvtv
38884 @: $(MAKE); $(unstage)
22121df0 38885 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38886 r=`${PWD_COMMAND}`; export r; \
38887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38888 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38889 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38890 for flag in $(EXTRA_TARGET_FLAGS); do \
38891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38892 done; \
38893 (cd $(TARGET_SUBDIR)/libvtv && \
38894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38896 "RANLIB=$${RANLIB}" \
38897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38898 install-pdf) \
38899 || exit 1
38900
38901@endif target-libvtv
38902
38903.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
38904maybe-install-html-target-libvtv:
38905@if target-libvtv
38906maybe-install-html-target-libvtv: install-html-target-libvtv
38907
38908install-html-target-libvtv: \
38909 configure-target-libvtv \
38910 html-target-libvtv
38911 @: $(MAKE); $(unstage)
22121df0 38912 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38913 r=`${PWD_COMMAND}`; export r; \
38914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38915 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38916 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38917 for flag in $(EXTRA_TARGET_FLAGS); do \
38918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38919 done; \
38920 (cd $(TARGET_SUBDIR)/libvtv && \
38921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38923 "RANLIB=$${RANLIB}" \
38924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38925 install-html) \
38926 || exit 1
38927
38928@endif target-libvtv
38929
38930.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
38931maybe-installcheck-target-libvtv:
38932@if target-libvtv
38933maybe-installcheck-target-libvtv: installcheck-target-libvtv
38934
38935installcheck-target-libvtv: \
38936 configure-target-libvtv
38937 @: $(MAKE); $(unstage)
22121df0 38938 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38939 r=`${PWD_COMMAND}`; export r; \
38940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38941 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38942 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38943 for flag in $(EXTRA_TARGET_FLAGS); do \
38944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38945 done; \
38946 (cd $(TARGET_SUBDIR)/libvtv && \
38947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38949 "RANLIB=$${RANLIB}" \
38950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38951 installcheck) \
38952 || exit 1
38953
38954@endif target-libvtv
38955
38956.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
38957maybe-mostlyclean-target-libvtv:
38958@if target-libvtv
38959maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
38960
38961mostlyclean-target-libvtv:
38962 @: $(MAKE); $(unstage)
22121df0 38963 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38964 r=`${PWD_COMMAND}`; export r; \
38965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38966 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38967 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38968 for flag in $(EXTRA_TARGET_FLAGS); do \
38969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38970 done; \
38971 (cd $(TARGET_SUBDIR)/libvtv && \
38972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38974 "RANLIB=$${RANLIB}" \
38975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38976 mostlyclean) \
38977 || exit 1
38978
38979@endif target-libvtv
38980
38981.PHONY: maybe-clean-target-libvtv clean-target-libvtv
38982maybe-clean-target-libvtv:
38983@if target-libvtv
38984maybe-clean-target-libvtv: clean-target-libvtv
38985
38986clean-target-libvtv:
38987 @: $(MAKE); $(unstage)
22121df0 38988 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38989 r=`${PWD_COMMAND}`; export r; \
38990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38991 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38992 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38993 for flag in $(EXTRA_TARGET_FLAGS); do \
38994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38995 done; \
38996 (cd $(TARGET_SUBDIR)/libvtv && \
38997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38999 "RANLIB=$${RANLIB}" \
39000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39001 clean) \
39002 || exit 1
39003
39004@endif target-libvtv
39005
39006.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
39007maybe-distclean-target-libvtv:
39008@if target-libvtv
39009maybe-distclean-target-libvtv: distclean-target-libvtv
39010
39011distclean-target-libvtv:
39012 @: $(MAKE); $(unstage)
22121df0 39013 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
39014 r=`${PWD_COMMAND}`; export r; \
39015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39016 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 39017 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
39018 for flag in $(EXTRA_TARGET_FLAGS); do \
39019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39020 done; \
39021 (cd $(TARGET_SUBDIR)/libvtv && \
39022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39024 "RANLIB=$${RANLIB}" \
39025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39026 distclean) \
39027 || exit 1
39028
39029@endif target-libvtv
39030
39031.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
39032maybe-maintainer-clean-target-libvtv:
39033@if target-libvtv
39034maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
39035
39036maintainer-clean-target-libvtv:
39037 @: $(MAKE); $(unstage)
22121df0 39038 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
39039 r=`${PWD_COMMAND}`; export r; \
39040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39041 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 39042 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
39043 for flag in $(EXTRA_TARGET_FLAGS); do \
39044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39045 done; \
39046 (cd $(TARGET_SUBDIR)/libvtv && \
39047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39049 "RANLIB=$${RANLIB}" \
39050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39051 maintainer-clean) \
39052 || exit 1
39053
39054@endif target-libvtv
39055
39056
39057
39058
39059
e3f56a99
NC
39060.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
39061maybe-configure-target-libcilkrts:
39062@if gcc-bootstrap
39063configure-target-libcilkrts: stage_current
39064@endif gcc-bootstrap
39065@if target-libcilkrts
39066maybe-configure-target-libcilkrts: configure-target-libcilkrts
39067configure-target-libcilkrts:
39068 @: $(MAKE); $(unstage)
39069 @r=`${PWD_COMMAND}`; export r; \
39070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39071 echo "Checking multilib configuration for libcilkrts..."; \
39072 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
39073 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
39074 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
39075 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
39076 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
39077 else \
39078 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
39079 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
39080 fi; \
39081 else \
39082 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
39083 fi; \
39084 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
39085 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
39086 $(NORMAL_TARGET_EXPORTS) \
39087 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
39088 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
39089 case $(srcdir) in \
39090 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39091 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
39092 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39093 esac; \
39094 module_srcdir=libcilkrts; \
39095 rm -f no-such-file || : ; \
39096 CONFIG_SITE=no-such-file $(SHELL) \
39097 $$s/$$module_srcdir/configure \
39098 --srcdir=$${topdir}/$$module_srcdir \
39099 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39100 --target=${target_alias} \
39101 || exit 1
39102@endif target-libcilkrts
39103
39104
39105
39106
39107
39108.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
39109maybe-all-target-libcilkrts:
39110@if gcc-bootstrap
39111all-target-libcilkrts: stage_current
39112@endif gcc-bootstrap
39113@if target-libcilkrts
39114TARGET-target-libcilkrts=all
39115maybe-all-target-libcilkrts: all-target-libcilkrts
39116all-target-libcilkrts: configure-target-libcilkrts
39117 @: $(MAKE); $(unstage)
39118 @r=`${PWD_COMMAND}`; export r; \
39119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39120 $(NORMAL_TARGET_EXPORTS) \
39121 (cd $(TARGET_SUBDIR)/libcilkrts && \
39122 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
39123 $(TARGET-target-libcilkrts))
39124@endif target-libcilkrts
39125
39126
39127
39128
39129
39130.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
39131maybe-check-target-libcilkrts:
39132@if target-libcilkrts
39133maybe-check-target-libcilkrts: check-target-libcilkrts
39134
39135check-target-libcilkrts:
39136 @: $(MAKE); $(unstage)
39137 @r=`${PWD_COMMAND}`; export r; \
39138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39139 $(NORMAL_TARGET_EXPORTS) \
39140 (cd $(TARGET_SUBDIR)/libcilkrts && \
39141 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39142
39143@endif target-libcilkrts
39144
39145.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
39146maybe-install-target-libcilkrts:
39147@if target-libcilkrts
39148maybe-install-target-libcilkrts: install-target-libcilkrts
39149
39150install-target-libcilkrts: installdirs
39151 @: $(MAKE); $(unstage)
39152 @r=`${PWD_COMMAND}`; export r; \
39153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39154 $(NORMAL_TARGET_EXPORTS) \
39155 (cd $(TARGET_SUBDIR)/libcilkrts && \
39156 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39157
39158@endif target-libcilkrts
39159
39160.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
39161maybe-install-strip-target-libcilkrts:
39162@if target-libcilkrts
39163maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
39164
39165install-strip-target-libcilkrts: installdirs
39166 @: $(MAKE); $(unstage)
39167 @r=`${PWD_COMMAND}`; export r; \
39168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39169 $(NORMAL_TARGET_EXPORTS) \
39170 (cd $(TARGET_SUBDIR)/libcilkrts && \
39171 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39172
39173@endif target-libcilkrts
39174
39175# Other targets (info, dvi, pdf, etc.)
39176
39177.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
39178maybe-info-target-libcilkrts:
39179@if target-libcilkrts
39180maybe-info-target-libcilkrts: info-target-libcilkrts
39181
39182info-target-libcilkrts: \
39183 configure-target-libcilkrts
39184 @: $(MAKE); $(unstage)
39185 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39186 r=`${PWD_COMMAND}`; export r; \
39187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39188 $(NORMAL_TARGET_EXPORTS) \
39189 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
39190 for flag in $(EXTRA_TARGET_FLAGS); do \
39191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39192 done; \
39193 (cd $(TARGET_SUBDIR)/libcilkrts && \
39194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39196 "RANLIB=$${RANLIB}" \
39197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39198 info) \
39199 || exit 1
39200
39201@endif target-libcilkrts
39202
39203.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
39204maybe-dvi-target-libcilkrts:
39205@if target-libcilkrts
39206maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
39207
39208dvi-target-libcilkrts: \
39209 configure-target-libcilkrts
39210 @: $(MAKE); $(unstage)
39211 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39212 r=`${PWD_COMMAND}`; export r; \
39213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39214 $(NORMAL_TARGET_EXPORTS) \
39215 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
39216 for flag in $(EXTRA_TARGET_FLAGS); do \
39217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39218 done; \
39219 (cd $(TARGET_SUBDIR)/libcilkrts && \
39220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39222 "RANLIB=$${RANLIB}" \
39223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39224 dvi) \
39225 || exit 1
39226
39227@endif target-libcilkrts
39228
39229.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
39230maybe-pdf-target-libcilkrts:
39231@if target-libcilkrts
39232maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
39233
39234pdf-target-libcilkrts: \
39235 configure-target-libcilkrts
39236 @: $(MAKE); $(unstage)
39237 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39238 r=`${PWD_COMMAND}`; export r; \
39239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39240 $(NORMAL_TARGET_EXPORTS) \
39241 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
39242 for flag in $(EXTRA_TARGET_FLAGS); do \
39243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39244 done; \
39245 (cd $(TARGET_SUBDIR)/libcilkrts && \
39246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39248 "RANLIB=$${RANLIB}" \
39249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39250 pdf) \
39251 || exit 1
39252
39253@endif target-libcilkrts
39254
39255.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
39256maybe-html-target-libcilkrts:
39257@if target-libcilkrts
39258maybe-html-target-libcilkrts: html-target-libcilkrts
39259
39260html-target-libcilkrts: \
39261 configure-target-libcilkrts
39262 @: $(MAKE); $(unstage)
39263 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39264 r=`${PWD_COMMAND}`; export r; \
39265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39266 $(NORMAL_TARGET_EXPORTS) \
39267 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
39268 for flag in $(EXTRA_TARGET_FLAGS); do \
39269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39270 done; \
39271 (cd $(TARGET_SUBDIR)/libcilkrts && \
39272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39274 "RANLIB=$${RANLIB}" \
39275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39276 html) \
39277 || exit 1
39278
39279@endif target-libcilkrts
39280
39281.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
39282maybe-TAGS-target-libcilkrts:
39283@if target-libcilkrts
39284maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
39285
39286TAGS-target-libcilkrts: \
39287 configure-target-libcilkrts
39288 @: $(MAKE); $(unstage)
39289 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39290 r=`${PWD_COMMAND}`; export r; \
39291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39292 $(NORMAL_TARGET_EXPORTS) \
39293 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
39294 for flag in $(EXTRA_TARGET_FLAGS); do \
39295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39296 done; \
39297 (cd $(TARGET_SUBDIR)/libcilkrts && \
39298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39300 "RANLIB=$${RANLIB}" \
39301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39302 TAGS) \
39303 || exit 1
39304
39305@endif target-libcilkrts
39306
39307.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
39308maybe-install-info-target-libcilkrts:
39309@if target-libcilkrts
39310maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
39311
39312install-info-target-libcilkrts: \
39313 configure-target-libcilkrts \
39314 info-target-libcilkrts
39315 @: $(MAKE); $(unstage)
39316 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39317 r=`${PWD_COMMAND}`; export r; \
39318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39319 $(NORMAL_TARGET_EXPORTS) \
39320 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
39321 for flag in $(EXTRA_TARGET_FLAGS); do \
39322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39323 done; \
39324 (cd $(TARGET_SUBDIR)/libcilkrts && \
39325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39327 "RANLIB=$${RANLIB}" \
39328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39329 install-info) \
39330 || exit 1
39331
39332@endif target-libcilkrts
39333
39334.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
39335maybe-install-pdf-target-libcilkrts:
39336@if target-libcilkrts
39337maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
39338
39339install-pdf-target-libcilkrts: \
39340 configure-target-libcilkrts \
39341 pdf-target-libcilkrts
39342 @: $(MAKE); $(unstage)
39343 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39344 r=`${PWD_COMMAND}`; export r; \
39345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39346 $(NORMAL_TARGET_EXPORTS) \
39347 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
39348 for flag in $(EXTRA_TARGET_FLAGS); do \
39349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39350 done; \
39351 (cd $(TARGET_SUBDIR)/libcilkrts && \
39352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39354 "RANLIB=$${RANLIB}" \
39355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39356 install-pdf) \
39357 || exit 1
39358
39359@endif target-libcilkrts
39360
39361.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
39362maybe-install-html-target-libcilkrts:
39363@if target-libcilkrts
39364maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
39365
39366install-html-target-libcilkrts: \
39367 configure-target-libcilkrts \
39368 html-target-libcilkrts
39369 @: $(MAKE); $(unstage)
39370 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39371 r=`${PWD_COMMAND}`; export r; \
39372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39373 $(NORMAL_TARGET_EXPORTS) \
39374 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
39375 for flag in $(EXTRA_TARGET_FLAGS); do \
39376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39377 done; \
39378 (cd $(TARGET_SUBDIR)/libcilkrts && \
39379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39381 "RANLIB=$${RANLIB}" \
39382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39383 install-html) \
39384 || exit 1
39385
39386@endif target-libcilkrts
39387
39388.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
39389maybe-installcheck-target-libcilkrts:
39390@if target-libcilkrts
39391maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
39392
39393installcheck-target-libcilkrts: \
39394 configure-target-libcilkrts
39395 @: $(MAKE); $(unstage)
39396 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39397 r=`${PWD_COMMAND}`; export r; \
39398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39399 $(NORMAL_TARGET_EXPORTS) \
39400 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
39401 for flag in $(EXTRA_TARGET_FLAGS); do \
39402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39403 done; \
39404 (cd $(TARGET_SUBDIR)/libcilkrts && \
39405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39407 "RANLIB=$${RANLIB}" \
39408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39409 installcheck) \
39410 || exit 1
39411
39412@endif target-libcilkrts
39413
39414.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
39415maybe-mostlyclean-target-libcilkrts:
39416@if target-libcilkrts
39417maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
39418
39419mostlyclean-target-libcilkrts:
39420 @: $(MAKE); $(unstage)
39421 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39422 r=`${PWD_COMMAND}`; export r; \
39423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39424 $(NORMAL_TARGET_EXPORTS) \
39425 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
39426 for flag in $(EXTRA_TARGET_FLAGS); do \
39427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39428 done; \
39429 (cd $(TARGET_SUBDIR)/libcilkrts && \
39430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39432 "RANLIB=$${RANLIB}" \
39433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39434 mostlyclean) \
39435 || exit 1
39436
39437@endif target-libcilkrts
39438
39439.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
39440maybe-clean-target-libcilkrts:
39441@if target-libcilkrts
39442maybe-clean-target-libcilkrts: clean-target-libcilkrts
39443
39444clean-target-libcilkrts:
39445 @: $(MAKE); $(unstage)
39446 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39447 r=`${PWD_COMMAND}`; export r; \
39448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39449 $(NORMAL_TARGET_EXPORTS) \
39450 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
39451 for flag in $(EXTRA_TARGET_FLAGS); do \
39452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39453 done; \
39454 (cd $(TARGET_SUBDIR)/libcilkrts && \
39455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39457 "RANLIB=$${RANLIB}" \
39458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39459 clean) \
39460 || exit 1
39461
39462@endif target-libcilkrts
39463
39464.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
39465maybe-distclean-target-libcilkrts:
39466@if target-libcilkrts
39467maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
39468
39469distclean-target-libcilkrts:
39470 @: $(MAKE); $(unstage)
39471 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39472 r=`${PWD_COMMAND}`; export r; \
39473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39474 $(NORMAL_TARGET_EXPORTS) \
39475 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
39476 for flag in $(EXTRA_TARGET_FLAGS); do \
39477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39478 done; \
39479 (cd $(TARGET_SUBDIR)/libcilkrts && \
39480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39482 "RANLIB=$${RANLIB}" \
39483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39484 distclean) \
39485 || exit 1
39486
39487@endif target-libcilkrts
39488
39489.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
39490maybe-maintainer-clean-target-libcilkrts:
39491@if target-libcilkrts
39492maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
39493
39494maintainer-clean-target-libcilkrts:
39495 @: $(MAKE); $(unstage)
39496 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39497 r=`${PWD_COMMAND}`; export r; \
39498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39499 $(NORMAL_TARGET_EXPORTS) \
39500 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
39501 for flag in $(EXTRA_TARGET_FLAGS); do \
39502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39503 done; \
39504 (cd $(TARGET_SUBDIR)/libcilkrts && \
39505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39507 "RANLIB=$${RANLIB}" \
39508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39509 maintainer-clean) \
39510 || exit 1
39511
39512@endif target-libcilkrts
39513
39514
39515
39516
39517
1b6c0831
L
39518.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
39519maybe-configure-target-liboffloadmic:
39520@if gcc-bootstrap
39521configure-target-liboffloadmic: stage_current
39522@endif gcc-bootstrap
39523@if target-liboffloadmic
39524maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
39525configure-target-liboffloadmic:
39526 @: $(MAKE); $(unstage)
39527 @r=`${PWD_COMMAND}`; export r; \
39528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39529 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
39530 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
39531 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
39532 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
39533 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
39534 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
39535 else \
39536 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
39537 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
39538 fi; \
39539 else \
39540 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
39541 fi; \
39542 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 39543 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
39544 $(NORMAL_TARGET_EXPORTS) \
39545 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
39546 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
39547 case $(srcdir) in \
39548 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39549 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
39550 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39551 esac; \
39552 module_srcdir=liboffloadmic; \
39553 rm -f no-such-file || : ; \
39554 CONFIG_SITE=no-such-file $(SHELL) \
39555 $$s/$$module_srcdir/configure \
39556 --srcdir=$${topdir}/$$module_srcdir \
39557 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39558 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
39559 || exit 1
39560@endif target-liboffloadmic
39561
39562
39563
39564
39565
39566.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
39567maybe-all-target-liboffloadmic:
39568@if gcc-bootstrap
39569all-target-liboffloadmic: stage_current
39570@endif gcc-bootstrap
39571@if target-liboffloadmic
39572TARGET-target-liboffloadmic=all
39573maybe-all-target-liboffloadmic: all-target-liboffloadmic
39574all-target-liboffloadmic: configure-target-liboffloadmic
39575 @: $(MAKE); $(unstage)
39576 @r=`${PWD_COMMAND}`; export r; \
39577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39578 $(NORMAL_TARGET_EXPORTS) \
39579 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39580 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
39581 $(TARGET-target-liboffloadmic))
39582@endif target-liboffloadmic
39583
39584
39585
39586
39587
39588.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
39589maybe-check-target-liboffloadmic:
39590@if target-liboffloadmic
39591maybe-check-target-liboffloadmic: check-target-liboffloadmic
39592
39593check-target-liboffloadmic:
39594 @: $(MAKE); $(unstage)
39595 @r=`${PWD_COMMAND}`; export r; \
39596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39597 $(NORMAL_TARGET_EXPORTS) \
39598 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39599 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39600
39601@endif target-liboffloadmic
39602
39603.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
39604maybe-install-target-liboffloadmic:
39605@if target-liboffloadmic
39606maybe-install-target-liboffloadmic: install-target-liboffloadmic
39607
39608install-target-liboffloadmic: installdirs
39609 @: $(MAKE); $(unstage)
39610 @r=`${PWD_COMMAND}`; export r; \
39611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39612 $(NORMAL_TARGET_EXPORTS) \
39613 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39614 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39615
39616@endif target-liboffloadmic
39617
39618.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
39619maybe-install-strip-target-liboffloadmic:
39620@if target-liboffloadmic
39621maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
39622
39623install-strip-target-liboffloadmic: installdirs
39624 @: $(MAKE); $(unstage)
39625 @r=`${PWD_COMMAND}`; export r; \
39626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39627 $(NORMAL_TARGET_EXPORTS) \
39628 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39629 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39630
39631@endif target-liboffloadmic
39632
39633# Other targets (info, dvi, pdf, etc.)
39634
39635.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
39636maybe-info-target-liboffloadmic:
39637@if target-liboffloadmic
39638maybe-info-target-liboffloadmic: info-target-liboffloadmic
39639
39640info-target-liboffloadmic: \
39641 configure-target-liboffloadmic
39642 @: $(MAKE); $(unstage)
22121df0 39643 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39644 r=`${PWD_COMMAND}`; export r; \
39645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39646 $(NORMAL_TARGET_EXPORTS) \
22121df0 39647 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39648 for flag in $(EXTRA_TARGET_FLAGS); do \
39649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39650 done; \
39651 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39654 "RANLIB=$${RANLIB}" \
39655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39656 info) \
39657 || exit 1
39658
39659@endif target-liboffloadmic
39660
39661.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
39662maybe-dvi-target-liboffloadmic:
39663@if target-liboffloadmic
39664maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
39665
39666dvi-target-liboffloadmic: \
39667 configure-target-liboffloadmic
39668 @: $(MAKE); $(unstage)
22121df0 39669 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39670 r=`${PWD_COMMAND}`; export r; \
39671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39672 $(NORMAL_TARGET_EXPORTS) \
22121df0 39673 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39674 for flag in $(EXTRA_TARGET_FLAGS); do \
39675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39676 done; \
39677 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39680 "RANLIB=$${RANLIB}" \
39681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39682 dvi) \
39683 || exit 1
39684
39685@endif target-liboffloadmic
39686
39687.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
39688maybe-pdf-target-liboffloadmic:
39689@if target-liboffloadmic
39690maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
39691
39692pdf-target-liboffloadmic: \
39693 configure-target-liboffloadmic
39694 @: $(MAKE); $(unstage)
22121df0 39695 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39696 r=`${PWD_COMMAND}`; export r; \
39697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39698 $(NORMAL_TARGET_EXPORTS) \
22121df0 39699 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39700 for flag in $(EXTRA_TARGET_FLAGS); do \
39701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39702 done; \
39703 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39706 "RANLIB=$${RANLIB}" \
39707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39708 pdf) \
39709 || exit 1
39710
39711@endif target-liboffloadmic
39712
39713.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
39714maybe-html-target-liboffloadmic:
39715@if target-liboffloadmic
39716maybe-html-target-liboffloadmic: html-target-liboffloadmic
39717
39718html-target-liboffloadmic: \
39719 configure-target-liboffloadmic
39720 @: $(MAKE); $(unstage)
22121df0 39721 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39722 r=`${PWD_COMMAND}`; export r; \
39723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39724 $(NORMAL_TARGET_EXPORTS) \
22121df0 39725 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39726 for flag in $(EXTRA_TARGET_FLAGS); do \
39727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39728 done; \
39729 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39732 "RANLIB=$${RANLIB}" \
39733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39734 html) \
39735 || exit 1
39736
39737@endif target-liboffloadmic
39738
39739.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
39740maybe-TAGS-target-liboffloadmic:
39741@if target-liboffloadmic
39742maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
39743
39744TAGS-target-liboffloadmic: \
39745 configure-target-liboffloadmic
39746 @: $(MAKE); $(unstage)
22121df0 39747 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39748 r=`${PWD_COMMAND}`; export r; \
39749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39750 $(NORMAL_TARGET_EXPORTS) \
22121df0 39751 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39752 for flag in $(EXTRA_TARGET_FLAGS); do \
39753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39754 done; \
39755 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39758 "RANLIB=$${RANLIB}" \
39759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39760 TAGS) \
39761 || exit 1
39762
39763@endif target-liboffloadmic
39764
39765.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
39766maybe-install-info-target-liboffloadmic:
39767@if target-liboffloadmic
39768maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
39769
39770install-info-target-liboffloadmic: \
39771 configure-target-liboffloadmic \
39772 info-target-liboffloadmic
39773 @: $(MAKE); $(unstage)
22121df0 39774 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39775 r=`${PWD_COMMAND}`; export r; \
39776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39777 $(NORMAL_TARGET_EXPORTS) \
22121df0 39778 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39779 for flag in $(EXTRA_TARGET_FLAGS); do \
39780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39781 done; \
39782 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39785 "RANLIB=$${RANLIB}" \
39786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39787 install-info) \
39788 || exit 1
39789
39790@endif target-liboffloadmic
39791
39792.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
39793maybe-install-pdf-target-liboffloadmic:
39794@if target-liboffloadmic
39795maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
39796
39797install-pdf-target-liboffloadmic: \
39798 configure-target-liboffloadmic \
39799 pdf-target-liboffloadmic
39800 @: $(MAKE); $(unstage)
22121df0 39801 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39802 r=`${PWD_COMMAND}`; export r; \
39803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39804 $(NORMAL_TARGET_EXPORTS) \
22121df0 39805 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39806 for flag in $(EXTRA_TARGET_FLAGS); do \
39807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39808 done; \
39809 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39812 "RANLIB=$${RANLIB}" \
39813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39814 install-pdf) \
39815 || exit 1
39816
39817@endif target-liboffloadmic
39818
39819.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
39820maybe-install-html-target-liboffloadmic:
39821@if target-liboffloadmic
39822maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
39823
39824install-html-target-liboffloadmic: \
39825 configure-target-liboffloadmic \
39826 html-target-liboffloadmic
39827 @: $(MAKE); $(unstage)
22121df0 39828 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39829 r=`${PWD_COMMAND}`; export r; \
39830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39831 $(NORMAL_TARGET_EXPORTS) \
22121df0 39832 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39833 for flag in $(EXTRA_TARGET_FLAGS); do \
39834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39835 done; \
39836 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39839 "RANLIB=$${RANLIB}" \
39840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39841 install-html) \
39842 || exit 1
39843
39844@endif target-liboffloadmic
39845
39846.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
39847maybe-installcheck-target-liboffloadmic:
39848@if target-liboffloadmic
39849maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
39850
39851installcheck-target-liboffloadmic: \
39852 configure-target-liboffloadmic
39853 @: $(MAKE); $(unstage)
22121df0 39854 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39855 r=`${PWD_COMMAND}`; export r; \
39856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39857 $(NORMAL_TARGET_EXPORTS) \
22121df0 39858 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39859 for flag in $(EXTRA_TARGET_FLAGS); do \
39860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39861 done; \
39862 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39865 "RANLIB=$${RANLIB}" \
39866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39867 installcheck) \
39868 || exit 1
39869
39870@endif target-liboffloadmic
39871
39872.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
39873maybe-mostlyclean-target-liboffloadmic:
39874@if target-liboffloadmic
39875maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
39876
39877mostlyclean-target-liboffloadmic:
39878 @: $(MAKE); $(unstage)
22121df0 39879 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39880 r=`${PWD_COMMAND}`; export r; \
39881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39882 $(NORMAL_TARGET_EXPORTS) \
22121df0 39883 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39884 for flag in $(EXTRA_TARGET_FLAGS); do \
39885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39886 done; \
39887 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39890 "RANLIB=$${RANLIB}" \
39891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39892 mostlyclean) \
39893 || exit 1
39894
39895@endif target-liboffloadmic
39896
39897.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
39898maybe-clean-target-liboffloadmic:
39899@if target-liboffloadmic
39900maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
39901
39902clean-target-liboffloadmic:
39903 @: $(MAKE); $(unstage)
22121df0 39904 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39905 r=`${PWD_COMMAND}`; export r; \
39906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39907 $(NORMAL_TARGET_EXPORTS) \
22121df0 39908 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39909 for flag in $(EXTRA_TARGET_FLAGS); do \
39910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39911 done; \
39912 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39915 "RANLIB=$${RANLIB}" \
39916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39917 clean) \
39918 || exit 1
39919
39920@endif target-liboffloadmic
39921
39922.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
39923maybe-distclean-target-liboffloadmic:
39924@if target-liboffloadmic
39925maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
39926
39927distclean-target-liboffloadmic:
39928 @: $(MAKE); $(unstage)
22121df0 39929 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39930 r=`${PWD_COMMAND}`; export r; \
39931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39932 $(NORMAL_TARGET_EXPORTS) \
22121df0 39933 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39934 for flag in $(EXTRA_TARGET_FLAGS); do \
39935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39936 done; \
39937 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39940 "RANLIB=$${RANLIB}" \
39941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39942 distclean) \
39943 || exit 1
39944
39945@endif target-liboffloadmic
39946
39947.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
39948maybe-maintainer-clean-target-liboffloadmic:
39949@if target-liboffloadmic
39950maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
39951
39952maintainer-clean-target-liboffloadmic:
39953 @: $(MAKE); $(unstage)
22121df0 39954 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39955 r=`${PWD_COMMAND}`; export r; \
39956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39957 $(NORMAL_TARGET_EXPORTS) \
22121df0 39958 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39959 for flag in $(EXTRA_TARGET_FLAGS); do \
39960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39961 done; \
39962 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39965 "RANLIB=$${RANLIB}" \
39966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39967 maintainer-clean) \
39968 || exit 1
39969
39970@endif target-liboffloadmic
39971
39972
39973
39974
39975
a90ef4bf
JM
39976.PHONY: configure-target-libssp maybe-configure-target-libssp
39977maybe-configure-target-libssp:
4f0ef2d8 39978@if gcc-bootstrap
a90ef4bf 39979configure-target-libssp: stage_current
4f0ef2d8 39980@endif gcc-bootstrap
a90ef4bf
JM
39981@if target-libssp
39982maybe-configure-target-libssp: configure-target-libssp
39983configure-target-libssp:
0aed8855
PB
39984 @: $(MAKE); $(unstage)
39985 @r=`${PWD_COMMAND}`; export r; \
39986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39987 echo "Checking multilib configuration for libssp..."; \
22121df0
L
39988 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
39989 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39990 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
39991 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
39992 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 39993 else \
a90ef4bf
JM
39994 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
39995 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
39996 fi; \
39997 else \
a90ef4bf 39998 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 39999 fi; \
a90ef4bf 40000 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 40001 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 40002 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40003 echo Configuring in $(TARGET_SUBDIR)/libssp; \
40004 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 40005 case $(srcdir) in \
b00612cc 40006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40007 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 40008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 40009 esac; \
1b6c0831 40010 module_srcdir=libssp; \
4b1cb4fe 40011 rm -f no-such-file || : ; \
1b6c0831
L
40012 CONFIG_SITE=no-such-file $(SHELL) \
40013 $$s/$$module_srcdir/configure \
40014 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40015 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40016 --target=${target_alias} \
4b1cb4fe 40017 || exit 1
a90ef4bf 40018@endif target-libssp
4b1cb4fe 40019
a7254363
PB
40020
40021
d545f33b
PB
40022
40023
a90ef4bf
JM
40024.PHONY: all-target-libssp maybe-all-target-libssp
40025maybe-all-target-libssp:
4f0ef2d8 40026@if gcc-bootstrap
a90ef4bf 40027all-target-libssp: stage_current
4f0ef2d8 40028@endif gcc-bootstrap
a90ef4bf
JM
40029@if target-libssp
40030TARGET-target-libssp=all
40031maybe-all-target-libssp: all-target-libssp
40032all-target-libssp: configure-target-libssp
0aed8855 40033 @: $(MAKE); $(unstage)
4b1cb4fe
DD
40034 @r=`${PWD_COMMAND}`; export r; \
40035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40036 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40037 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 40038 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40039 $(TARGET-target-libssp))
40040@endif target-libssp
4b1cb4fe 40041
a7254363
PB
40042
40043
d545f33b
PB
40044
40045
a90ef4bf
JM
40046.PHONY: check-target-libssp maybe-check-target-libssp
40047maybe-check-target-libssp:
40048@if target-libssp
40049maybe-check-target-libssp: check-target-libssp
4b1cb4fe 40050
a90ef4bf 40051check-target-libssp:
0aed8855 40052 @: $(MAKE); $(unstage)
b40e3958
L
40053 @r=`${PWD_COMMAND}`; export r; \
40054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40055 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40056 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 40057 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 40058
a90ef4bf 40059@endif target-libssp
3866be5d 40060
a90ef4bf
JM
40061.PHONY: install-target-libssp maybe-install-target-libssp
40062maybe-install-target-libssp:
40063@if target-libssp
40064maybe-install-target-libssp: install-target-libssp
e2b9e2dc 40065
a90ef4bf 40066install-target-libssp: installdirs
0aed8855 40067 @: $(MAKE); $(unstage)
b40e3958
L
40068 @r=`${PWD_COMMAND}`; export r; \
40069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40070 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40071 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 40072 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40073
a90ef4bf 40074@endif target-libssp
3866be5d 40075
a90ef4bf
JM
40076.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
40077maybe-install-strip-target-libssp:
40078@if target-libssp
40079maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 40080
a90ef4bf 40081install-strip-target-libssp: installdirs
9b980aa1
RW
40082 @: $(MAKE); $(unstage)
40083 @r=`${PWD_COMMAND}`; export r; \
40084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40085 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40086 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
40087 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40088
a90ef4bf 40089@endif target-libssp
9b980aa1 40090
56a8fe78 40091# Other targets (info, dvi, pdf, etc.)
3866be5d 40092
a90ef4bf
JM
40093.PHONY: maybe-info-target-libssp info-target-libssp
40094maybe-info-target-libssp:
40095@if target-libssp
40096maybe-info-target-libssp: info-target-libssp
3866be5d 40097
a90ef4bf
JM
40098info-target-libssp: \
40099 configure-target-libssp
0aed8855 40100 @: $(MAKE); $(unstage)
22121df0 40101 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
40102 r=`${PWD_COMMAND}`; export r; \
40103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40104 $(NORMAL_TARGET_EXPORTS) \
22121df0 40105 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40106 for flag in $(EXTRA_TARGET_FLAGS); do \
40107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40108 done; \
a90ef4bf 40109 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40112 "RANLIB=$${RANLIB}" \
0c24b341 40113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40114 info) \
4fa63067 40115 || exit 1
16ae0395 40116
a90ef4bf 40117@endif target-libssp
3866be5d 40118
a90ef4bf
JM
40119.PHONY: maybe-dvi-target-libssp dvi-target-libssp
40120maybe-dvi-target-libssp:
40121@if target-libssp
40122maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 40123
a90ef4bf
JM
40124dvi-target-libssp: \
40125 configure-target-libssp
0aed8855 40126 @: $(MAKE); $(unstage)
22121df0 40127 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
40128 r=`${PWD_COMMAND}`; export r; \
40129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40130 $(NORMAL_TARGET_EXPORTS) \
22121df0 40131 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40132 for flag in $(EXTRA_TARGET_FLAGS); do \
40133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40134 done; \
a90ef4bf 40135 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40138 "RANLIB=$${RANLIB}" \
0c24b341 40139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40140 dvi) \
e2b9e2dc
NN
40141 || exit 1
40142
a90ef4bf 40143@endif target-libssp
3866be5d 40144
a90ef4bf
JM
40145.PHONY: maybe-pdf-target-libssp pdf-target-libssp
40146maybe-pdf-target-libssp:
40147@if target-libssp
40148maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 40149
a90ef4bf
JM
40150pdf-target-libssp: \
40151 configure-target-libssp
56a8fe78 40152 @: $(MAKE); $(unstage)
22121df0 40153 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
40154 r=`${PWD_COMMAND}`; export r; \
40155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40156 $(NORMAL_TARGET_EXPORTS) \
22121df0 40157 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
40158 for flag in $(EXTRA_TARGET_FLAGS); do \
40159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40160 done; \
a90ef4bf 40161 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
40162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40164 "RANLIB=$${RANLIB}" \
0c24b341 40165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40166 pdf) \
40167 || exit 1
40168
a90ef4bf 40169@endif target-libssp
a3ca38d2 40170
a90ef4bf
JM
40171.PHONY: maybe-html-target-libssp html-target-libssp
40172maybe-html-target-libssp:
40173@if target-libssp
40174maybe-html-target-libssp: html-target-libssp
108a6f8e 40175
a90ef4bf
JM
40176html-target-libssp: \
40177 configure-target-libssp
108a6f8e 40178 @: $(MAKE); $(unstage)
22121df0 40179 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
40180 r=`${PWD_COMMAND}`; export r; \
40181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40182 $(NORMAL_TARGET_EXPORTS) \
22121df0 40183 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
40184 for flag in $(EXTRA_TARGET_FLAGS); do \
40185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40186 done; \
a90ef4bf 40187 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
40188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40190 "RANLIB=$${RANLIB}" \
0c24b341 40191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40192 html) \
108a6f8e
CD
40193 || exit 1
40194
a90ef4bf 40195@endif target-libssp
108a6f8e 40196
a90ef4bf
JM
40197.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
40198maybe-TAGS-target-libssp:
40199@if target-libssp
40200maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 40201
a90ef4bf
JM
40202TAGS-target-libssp: \
40203 configure-target-libssp
0aed8855 40204 @: $(MAKE); $(unstage)
22121df0 40205 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
40206 r=`${PWD_COMMAND}`; export r; \
40207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40208 $(NORMAL_TARGET_EXPORTS) \
22121df0 40209 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40210 for flag in $(EXTRA_TARGET_FLAGS); do \
40211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40212 done; \
a90ef4bf 40213 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40216 "RANLIB=$${RANLIB}" \
0c24b341 40217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40218 TAGS) \
e2b9e2dc
NN
40219 || exit 1
40220
a90ef4bf 40221@endif target-libssp
3866be5d 40222
a90ef4bf
JM
40223.PHONY: maybe-install-info-target-libssp install-info-target-libssp
40224maybe-install-info-target-libssp:
40225@if target-libssp
40226maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 40227
a90ef4bf
JM
40228install-info-target-libssp: \
40229 configure-target-libssp \
40230 info-target-libssp
0aed8855 40231 @: $(MAKE); $(unstage)
22121df0 40232 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 40233 r=`${PWD_COMMAND}`; export r; \
b40e3958 40234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40235 $(NORMAL_TARGET_EXPORTS) \
22121df0 40236 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40237 for flag in $(EXTRA_TARGET_FLAGS); do \
40238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40239 done; \
a90ef4bf 40240 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40243 "RANLIB=$${RANLIB}" \
0c24b341 40244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40245 install-info) \
4fa63067 40246 || exit 1
3866be5d 40247
a90ef4bf 40248@endif target-libssp
3866be5d 40249
a90ef4bf
JM
40250.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
40251maybe-install-pdf-target-libssp:
40252@if target-libssp
40253maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 40254
a90ef4bf
JM
40255install-pdf-target-libssp: \
40256 configure-target-libssp \
40257 pdf-target-libssp
0aed8855 40258 @: $(MAKE); $(unstage)
22121df0 40259 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 40260 r=`${PWD_COMMAND}`; export r; \
b40e3958 40261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40262 $(NORMAL_TARGET_EXPORTS) \
22121df0 40263 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40264 for flag in $(EXTRA_TARGET_FLAGS); do \
40265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40266 done; \
a90ef4bf 40267 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40270 "RANLIB=$${RANLIB}" \
0c24b341 40271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40272 install-pdf) \
4fa63067 40273 || exit 1
3866be5d 40274
a90ef4bf 40275@endif target-libssp
3866be5d 40276
a90ef4bf
JM
40277.PHONY: maybe-install-html-target-libssp install-html-target-libssp
40278maybe-install-html-target-libssp:
40279@if target-libssp
40280maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 40281
a90ef4bf
JM
40282install-html-target-libssp: \
40283 configure-target-libssp \
40284 html-target-libssp
0aed8855 40285 @: $(MAKE); $(unstage)
22121df0 40286 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
40287 r=`${PWD_COMMAND}`; export r; \
40288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40289 $(NORMAL_TARGET_EXPORTS) \
22121df0 40290 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40291 for flag in $(EXTRA_TARGET_FLAGS); do \
40292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40293 done; \
a90ef4bf 40294 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40297 "RANLIB=$${RANLIB}" \
0c24b341 40298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40299 install-html) \
e2b9e2dc
NN
40300 || exit 1
40301
a90ef4bf 40302@endif target-libssp
3866be5d 40303
a90ef4bf
JM
40304.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
40305maybe-installcheck-target-libssp:
40306@if target-libssp
40307maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 40308
a90ef4bf
JM
40309installcheck-target-libssp: \
40310 configure-target-libssp
0aed8855 40311 @: $(MAKE); $(unstage)
22121df0 40312 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 40313 r=`${PWD_COMMAND}`; export r; \
b40e3958 40314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40315 $(NORMAL_TARGET_EXPORTS) \
22121df0 40316 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40317 for flag in $(EXTRA_TARGET_FLAGS); do \
40318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40319 done; \
a90ef4bf 40320 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40323 "RANLIB=$${RANLIB}" \
0c24b341 40324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40325 installcheck) \
6aa8ef82 40326 || exit 1
6aa8ef82 40327
a90ef4bf 40328@endif target-libssp
6aa8ef82 40329
a90ef4bf
JM
40330.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
40331maybe-mostlyclean-target-libssp:
40332@if target-libssp
40333maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 40334
a90ef4bf
JM
40335mostlyclean-target-libssp:
40336 @: $(MAKE); $(unstage)
22121df0 40337 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40338 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40340 $(NORMAL_TARGET_EXPORTS) \
22121df0 40341 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40342 for flag in $(EXTRA_TARGET_FLAGS); do \
40343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40344 done; \
40345 (cd $(TARGET_SUBDIR)/libssp && \
40346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40348 "RANLIB=$${RANLIB}" \
40349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40350 mostlyclean) \
40351 || exit 1
6aa8ef82 40352
a90ef4bf 40353@endif target-libssp
6aa8ef82 40354
a90ef4bf
JM
40355.PHONY: maybe-clean-target-libssp clean-target-libssp
40356maybe-clean-target-libssp:
40357@if target-libssp
40358maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 40359
a90ef4bf
JM
40360clean-target-libssp:
40361 @: $(MAKE); $(unstage)
22121df0 40362 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40363 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40365 $(NORMAL_TARGET_EXPORTS) \
22121df0 40366 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40367 for flag in $(EXTRA_TARGET_FLAGS); do \
40368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40369 done; \
40370 (cd $(TARGET_SUBDIR)/libssp && \
40371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40373 "RANLIB=$${RANLIB}" \
40374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40375 clean) \
40376 || exit 1
6aa8ef82 40377
a90ef4bf 40378@endif target-libssp
6aa8ef82 40379
a90ef4bf
JM
40380.PHONY: maybe-distclean-target-libssp distclean-target-libssp
40381maybe-distclean-target-libssp:
40382@if target-libssp
40383maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 40384
a90ef4bf
JM
40385distclean-target-libssp:
40386 @: $(MAKE); $(unstage)
22121df0 40387 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40388 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40390 $(NORMAL_TARGET_EXPORTS) \
22121df0 40391 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40392 for flag in $(EXTRA_TARGET_FLAGS); do \
40393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40394 done; \
40395 (cd $(TARGET_SUBDIR)/libssp && \
40396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40398 "RANLIB=$${RANLIB}" \
40399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40400 distclean) \
40401 || exit 1
6aa8ef82 40402
a90ef4bf 40403@endif target-libssp
6aa8ef82 40404
a90ef4bf
JM
40405.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
40406maybe-maintainer-clean-target-libssp:
40407@if target-libssp
40408maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 40409
a90ef4bf
JM
40410maintainer-clean-target-libssp:
40411 @: $(MAKE); $(unstage)
22121df0 40412 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40413 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40415 $(NORMAL_TARGET_EXPORTS) \
22121df0 40416 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40417 for flag in $(EXTRA_TARGET_FLAGS); do \
40418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40419 done; \
40420 (cd $(TARGET_SUBDIR)/libssp && \
40421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40423 "RANLIB=$${RANLIB}" \
40424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40425 maintainer-clean) \
40426 || exit 1
6aa8ef82 40427
a90ef4bf 40428@endif target-libssp
6aa8ef82
DJ
40429
40430
a90ef4bf
JM
40431
40432
40433
40434.PHONY: configure-target-newlib maybe-configure-target-newlib
40435maybe-configure-target-newlib:
40436@if gcc-bootstrap
40437configure-target-newlib: stage_current
40438@endif gcc-bootstrap
40439@if target-newlib
40440maybe-configure-target-newlib: configure-target-newlib
40441configure-target-newlib:
40442 @: $(MAKE); $(unstage)
6aa8ef82
DJ
40443 @r=`${PWD_COMMAND}`; export r; \
40444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40445 echo "Checking multilib configuration for newlib..."; \
22121df0
L
40446 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
40447 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40448 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
40449 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
40450 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
40451 else \
40452 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
40453 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
40454 fi; \
6aa8ef82 40455 else \
a90ef4bf 40456 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 40457 fi; \
a90ef4bf 40458 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 40459 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
40460 $(NORMAL_TARGET_EXPORTS) \
40461 echo Configuring in $(TARGET_SUBDIR)/newlib; \
40462 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
40463 case $(srcdir) in \
40464 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40465 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
40466 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40467 esac; \
1b6c0831 40468 module_srcdir=newlib; \
a90ef4bf 40469 rm -f no-such-file || : ; \
1b6c0831
L
40470 CONFIG_SITE=no-such-file $(SHELL) \
40471 $$s/$$module_srcdir/configure \
40472 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40473 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40474 --target=${target_alias} \
a90ef4bf
JM
40475 || exit 1
40476@endif target-newlib
6aa8ef82
DJ
40477
40478
40479
40480
40481
a90ef4bf
JM
40482.PHONY: all-target-newlib maybe-all-target-newlib
40483maybe-all-target-newlib:
40484@if gcc-bootstrap
40485all-target-newlib: stage_current
40486@endif gcc-bootstrap
40487@if target-newlib
40488TARGET-target-newlib=all
40489maybe-all-target-newlib: all-target-newlib
40490all-target-newlib: configure-target-newlib
40491 @: $(MAKE); $(unstage)
40492 @r=`${PWD_COMMAND}`; export r; \
40493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40494 $(NORMAL_TARGET_EXPORTS) \
40495 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 40496 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40497 $(TARGET-target-newlib))
40498@endif target-newlib
6aa8ef82 40499
6aa8ef82 40500
6aa8ef82 40501
6aa8ef82 40502
6aa8ef82 40503
a90ef4bf
JM
40504.PHONY: check-target-newlib maybe-check-target-newlib
40505maybe-check-target-newlib:
40506@if target-newlib
40507maybe-check-target-newlib: check-target-newlib
40508
40509check-target-newlib:
6aa8ef82
DJ
40510 @: $(MAKE); $(unstage)
40511 @r=`${PWD_COMMAND}`; export r; \
40512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40513 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40514 (cd $(TARGET_SUBDIR)/newlib && \
40515 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40516
40517@endif target-newlib
40518
40519.PHONY: install-target-newlib maybe-install-target-newlib
40520maybe-install-target-newlib:
40521@if target-newlib
40522maybe-install-target-newlib: install-target-newlib
40523
40524install-target-newlib: installdirs
40525 @: $(MAKE); $(unstage)
40526 @r=`${PWD_COMMAND}`; export r; \
40527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40528 $(NORMAL_TARGET_EXPORTS) \
40529 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40530 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40531
a90ef4bf 40532@endif target-newlib
6aa8ef82 40533
a90ef4bf
JM
40534.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
40535maybe-install-strip-target-newlib:
40536@if target-newlib
40537maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 40538
a90ef4bf 40539install-strip-target-newlib: installdirs
9b980aa1
RW
40540 @: $(MAKE); $(unstage)
40541 @r=`${PWD_COMMAND}`; export r; \
40542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40543 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40544 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
40545 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40546
a90ef4bf 40547@endif target-newlib
9b980aa1 40548
6aa8ef82
DJ
40549# Other targets (info, dvi, pdf, etc.)
40550
a90ef4bf
JM
40551.PHONY: maybe-info-target-newlib info-target-newlib
40552maybe-info-target-newlib:
40553@if target-newlib
40554maybe-info-target-newlib: info-target-newlib
6aa8ef82 40555
a90ef4bf
JM
40556info-target-newlib: \
40557 configure-target-newlib
6aa8ef82 40558 @: $(MAKE); $(unstage)
22121df0 40559 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40560 r=`${PWD_COMMAND}`; export r; \
40561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40562 $(NORMAL_TARGET_EXPORTS) \
22121df0 40563 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40564 for flag in $(EXTRA_TARGET_FLAGS); do \
40565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40566 done; \
a90ef4bf 40567 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40570 "RANLIB=$${RANLIB}" \
0c24b341 40571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40572 info) \
40573 || exit 1
40574
a90ef4bf 40575@endif target-newlib
6aa8ef82 40576
a90ef4bf
JM
40577.PHONY: maybe-dvi-target-newlib dvi-target-newlib
40578maybe-dvi-target-newlib:
40579@if target-newlib
40580maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 40581
a90ef4bf
JM
40582dvi-target-newlib: \
40583 configure-target-newlib
6aa8ef82 40584 @: $(MAKE); $(unstage)
22121df0 40585 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40586 r=`${PWD_COMMAND}`; export r; \
40587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40588 $(NORMAL_TARGET_EXPORTS) \
22121df0 40589 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40590 for flag in $(EXTRA_TARGET_FLAGS); do \
40591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40592 done; \
a90ef4bf 40593 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40596 "RANLIB=$${RANLIB}" \
0c24b341 40597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40598 dvi) \
40599 || exit 1
40600
a90ef4bf 40601@endif target-newlib
6aa8ef82 40602
a90ef4bf
JM
40603.PHONY: maybe-pdf-target-newlib pdf-target-newlib
40604maybe-pdf-target-newlib:
40605@if target-newlib
40606maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 40607
a90ef4bf
JM
40608pdf-target-newlib: \
40609 configure-target-newlib
6aa8ef82 40610 @: $(MAKE); $(unstage)
22121df0 40611 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40612 r=`${PWD_COMMAND}`; export r; \
40613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40614 $(NORMAL_TARGET_EXPORTS) \
22121df0 40615 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40616 for flag in $(EXTRA_TARGET_FLAGS); do \
40617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40618 done; \
a90ef4bf 40619 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40622 "RANLIB=$${RANLIB}" \
0c24b341 40623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40624 pdf) \
40625 || exit 1
40626
a90ef4bf 40627@endif target-newlib
6aa8ef82 40628
a90ef4bf
JM
40629.PHONY: maybe-html-target-newlib html-target-newlib
40630maybe-html-target-newlib:
40631@if target-newlib
40632maybe-html-target-newlib: html-target-newlib
6aa8ef82 40633
a90ef4bf
JM
40634html-target-newlib: \
40635 configure-target-newlib
6aa8ef82 40636 @: $(MAKE); $(unstage)
22121df0 40637 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40638 r=`${PWD_COMMAND}`; export r; \
40639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40640 $(NORMAL_TARGET_EXPORTS) \
22121df0 40641 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40642 for flag in $(EXTRA_TARGET_FLAGS); do \
40643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40644 done; \
a90ef4bf 40645 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40648 "RANLIB=$${RANLIB}" \
0c24b341 40649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40650 html) \
40651 || exit 1
40652
a90ef4bf 40653@endif target-newlib
6aa8ef82 40654
a90ef4bf
JM
40655.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
40656maybe-TAGS-target-newlib:
40657@if target-newlib
40658maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 40659
a90ef4bf
JM
40660TAGS-target-newlib: \
40661 configure-target-newlib
6aa8ef82 40662 @: $(MAKE); $(unstage)
22121df0 40663 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40664 r=`${PWD_COMMAND}`; export r; \
40665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40666 $(NORMAL_TARGET_EXPORTS) \
22121df0 40667 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40668 for flag in $(EXTRA_TARGET_FLAGS); do \
40669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40670 done; \
a90ef4bf 40671 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40674 "RANLIB=$${RANLIB}" \
0c24b341 40675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40676 TAGS) \
40677 || exit 1
40678
a90ef4bf 40679@endif target-newlib
6aa8ef82 40680
a90ef4bf
JM
40681.PHONY: maybe-install-info-target-newlib install-info-target-newlib
40682maybe-install-info-target-newlib:
40683@if target-newlib
40684maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 40685
a90ef4bf
JM
40686install-info-target-newlib: \
40687 configure-target-newlib \
40688 info-target-newlib
6aa8ef82 40689 @: $(MAKE); $(unstage)
22121df0 40690 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40691 r=`${PWD_COMMAND}`; export r; \
40692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40693 $(NORMAL_TARGET_EXPORTS) \
22121df0 40694 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40695 for flag in $(EXTRA_TARGET_FLAGS); do \
40696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40697 done; \
a90ef4bf 40698 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40701 "RANLIB=$${RANLIB}" \
0c24b341 40702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40703 install-info) \
40704 || exit 1
40705
a90ef4bf 40706@endif target-newlib
6aa8ef82 40707
a90ef4bf
JM
40708.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
40709maybe-install-pdf-target-newlib:
40710@if target-newlib
40711maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 40712
a90ef4bf
JM
40713install-pdf-target-newlib: \
40714 configure-target-newlib \
40715 pdf-target-newlib
a3ca38d2 40716 @: $(MAKE); $(unstage)
22121df0 40717 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
40718 r=`${PWD_COMMAND}`; export r; \
40719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40720 $(NORMAL_TARGET_EXPORTS) \
22121df0 40721 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
40722 for flag in $(EXTRA_TARGET_FLAGS); do \
40723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40724 done; \
a90ef4bf 40725 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
40726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40728 "RANLIB=$${RANLIB}" \
0c24b341 40729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40730 install-pdf) \
40731 || exit 1
40732
a90ef4bf 40733@endif target-newlib
a3ca38d2 40734
a90ef4bf
JM
40735.PHONY: maybe-install-html-target-newlib install-html-target-newlib
40736maybe-install-html-target-newlib:
40737@if target-newlib
40738maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 40739
a90ef4bf
JM
40740install-html-target-newlib: \
40741 configure-target-newlib \
40742 html-target-newlib
6aa8ef82 40743 @: $(MAKE); $(unstage)
22121df0 40744 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40745 r=`${PWD_COMMAND}`; export r; \
40746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40747 $(NORMAL_TARGET_EXPORTS) \
22121df0 40748 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40749 for flag in $(EXTRA_TARGET_FLAGS); do \
40750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40751 done; \
a90ef4bf 40752 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40755 "RANLIB=$${RANLIB}" \
0c24b341 40756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40757 install-html) \
40758 || exit 1
40759
a90ef4bf 40760@endif target-newlib
6aa8ef82 40761
a90ef4bf
JM
40762.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
40763maybe-installcheck-target-newlib:
40764@if target-newlib
40765maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 40766
a90ef4bf
JM
40767installcheck-target-newlib: \
40768 configure-target-newlib
6aa8ef82 40769 @: $(MAKE); $(unstage)
22121df0 40770 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40771 r=`${PWD_COMMAND}`; export r; \
40772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40773 $(NORMAL_TARGET_EXPORTS) \
22121df0 40774 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40775 for flag in $(EXTRA_TARGET_FLAGS); do \
40776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40777 done; \
a90ef4bf 40778 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40781 "RANLIB=$${RANLIB}" \
0c24b341 40782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40783 installcheck) \
40784 || exit 1
40785
a90ef4bf 40786@endif target-newlib
6aa8ef82 40787
a90ef4bf
JM
40788.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
40789maybe-mostlyclean-target-newlib:
40790@if target-newlib
40791maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 40792
a90ef4bf 40793mostlyclean-target-newlib:
6aa8ef82 40794 @: $(MAKE); $(unstage)
22121df0 40795 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40796 r=`${PWD_COMMAND}`; export r; \
40797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40798 $(NORMAL_TARGET_EXPORTS) \
22121df0 40799 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40800 for flag in $(EXTRA_TARGET_FLAGS); do \
40801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40802 done; \
a90ef4bf 40803 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40806 "RANLIB=$${RANLIB}" \
0c24b341 40807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40808 mostlyclean) \
40809 || exit 1
40810
a90ef4bf 40811@endif target-newlib
6aa8ef82 40812
a90ef4bf
JM
40813.PHONY: maybe-clean-target-newlib clean-target-newlib
40814maybe-clean-target-newlib:
40815@if target-newlib
40816maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 40817
a90ef4bf 40818clean-target-newlib:
6aa8ef82 40819 @: $(MAKE); $(unstage)
22121df0 40820 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40821 r=`${PWD_COMMAND}`; export r; \
40822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40823 $(NORMAL_TARGET_EXPORTS) \
22121df0 40824 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40825 for flag in $(EXTRA_TARGET_FLAGS); do \
40826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40827 done; \
a90ef4bf 40828 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40831 "RANLIB=$${RANLIB}" \
0c24b341 40832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40833 clean) \
40834 || exit 1
40835
a90ef4bf 40836@endif target-newlib
6aa8ef82 40837
a90ef4bf
JM
40838.PHONY: maybe-distclean-target-newlib distclean-target-newlib
40839maybe-distclean-target-newlib:
40840@if target-newlib
40841maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 40842
a90ef4bf 40843distclean-target-newlib:
6aa8ef82 40844 @: $(MAKE); $(unstage)
22121df0 40845 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40846 r=`${PWD_COMMAND}`; export r; \
40847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40848 $(NORMAL_TARGET_EXPORTS) \
22121df0 40849 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40850 for flag in $(EXTRA_TARGET_FLAGS); do \
40851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40852 done; \
a90ef4bf 40853 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40856 "RANLIB=$${RANLIB}" \
0c24b341 40857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40858 distclean) \
40859 || exit 1
40860
a90ef4bf 40861@endif target-newlib
6aa8ef82 40862
a90ef4bf
JM
40863.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
40864maybe-maintainer-clean-target-newlib:
40865@if target-newlib
40866maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 40867
a90ef4bf 40868maintainer-clean-target-newlib:
6aa8ef82 40869 @: $(MAKE); $(unstage)
22121df0 40870 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40871 r=`${PWD_COMMAND}`; export r; \
40872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40873 $(NORMAL_TARGET_EXPORTS) \
22121df0 40874 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40875 for flag in $(EXTRA_TARGET_FLAGS); do \
40876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40877 done; \
a90ef4bf 40878 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40881 "RANLIB=$${RANLIB}" \
0c24b341 40882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40883 maintainer-clean) \
40884 || exit 1
40885
a90ef4bf 40886@endif target-newlib
6aa8ef82
DJ
40887
40888
40889
40890
40891
a90ef4bf
JM
40892.PHONY: configure-target-libgcc maybe-configure-target-libgcc
40893maybe-configure-target-libgcc:
e552509b 40894@if gcc-bootstrap
a90ef4bf 40895configure-target-libgcc: stage_current
e552509b 40896@endif gcc-bootstrap
a90ef4bf
JM
40897@if target-libgcc
40898maybe-configure-target-libgcc: configure-target-libgcc
40899configure-target-libgcc:
e552509b
ILT
40900 @r=`${PWD_COMMAND}`; export r; \
40901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40902 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
40903 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
40904 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40905 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40906 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40907 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 40908 else \
a90ef4bf
JM
40909 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40910 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
40911 fi; \
40912 else \
a90ef4bf 40913 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 40914 fi; \
a90ef4bf 40915 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 40916 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 40917 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40918 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
40919 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
40920 case $(srcdir) in \
40921 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40922 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
40923 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40924 esac; \
1b6c0831 40925 module_srcdir=libgcc; \
e552509b 40926 rm -f no-such-file || : ; \
1b6c0831
L
40927 CONFIG_SITE=no-such-file $(SHELL) \
40928 $$s/$$module_srcdir/configure \
40929 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40930 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40931 --target=${target_alias} \
e552509b 40932 || exit 1
a90ef4bf 40933@endif target-libgcc
e552509b
ILT
40934
40935
e552509b 40936
a90ef4bf
JM
40937.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
40938maybe-configure-stage1-target-libgcc:
40939@if target-libgcc-bootstrap
40940maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
40941configure-stage1-target-libgcc:
40942 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40943 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40944 @r=`${PWD_COMMAND}`; export r; \
40945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40946 TFLAGS="$(STAGE1_TFLAGS)"; \
40947 echo "Checking multilib configuration for libgcc..."; \
22121df0 40948 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40949 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40950 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40951 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40952 else \
40953 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40954 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40955 fi; \
40956 else \
40957 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40958 fi; \
40959 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40960 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40961 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40962 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40963 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40964 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
40965 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40966 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40967 case $(srcdir) in \
40968 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40969 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40970 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40971 esac; \
1b6c0831
L
40972 module_srcdir=libgcc; \
40973 $(SHELL) $$s/$$module_srcdir/configure \
40974 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40975 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
40976 --target=${target_alias} \
40977 \
a90ef4bf
JM
40978 $(STAGE1_CONFIGURE_FLAGS)
40979@endif target-libgcc-bootstrap
e552509b 40980
a90ef4bf
JM
40981.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
40982maybe-configure-stage2-target-libgcc:
40983@if target-libgcc-bootstrap
40984maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
40985configure-stage2-target-libgcc:
40986 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
40987 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40988 @r=`${PWD_COMMAND}`; export r; \
40989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40990 TFLAGS="$(STAGE2_TFLAGS)"; \
40991 echo "Checking multilib configuration for libgcc..."; \
22121df0 40992 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40993 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40994 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40995 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40996 else \
40997 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40998 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40999 fi; \
41000 else \
41001 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41002 fi; \
41003 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41004 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41005 \
41006 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41007 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41008 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41009 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
41010 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41011 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41012 case $(srcdir) in \
41013 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41014 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41015 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41016 esac; \
1b6c0831
L
41017 module_srcdir=libgcc; \
41018 $(SHELL) $$s/$$module_srcdir/configure \
41019 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41020 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41021 --target=${target_alias} \
22121df0 41022 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41023 $(STAGE2_CONFIGURE_FLAGS)
41024@endif target-libgcc-bootstrap
9b980aa1 41025
a90ef4bf
JM
41026.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
41027maybe-configure-stage3-target-libgcc:
41028@if target-libgcc-bootstrap
41029maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
41030configure-stage3-target-libgcc:
41031 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
41032 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
41033 @r=`${PWD_COMMAND}`; export r; \
41034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41035 TFLAGS="$(STAGE3_TFLAGS)"; \
41036 echo "Checking multilib configuration for libgcc..."; \
22121df0 41037 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41038 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41039 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41040 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41041 else \
41042 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41043 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41044 fi; \
41045 else \
41046 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41047 fi; \
41048 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 41049 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41050 \
41051 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41052 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41053 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41054 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
41055 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41056 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41057 case $(srcdir) in \
41058 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41059 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41060 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41061 esac; \
1b6c0831
L
41062 module_srcdir=libgcc; \
41063 $(SHELL) $$s/$$module_srcdir/configure \
41064 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41065 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41066 --target=${target_alias} \
22121df0 41067 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41068 $(STAGE3_CONFIGURE_FLAGS)
41069@endif target-libgcc-bootstrap
e552509b 41070
a90ef4bf
JM
41071.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
41072maybe-configure-stage4-target-libgcc:
41073@if target-libgcc-bootstrap
41074maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
41075configure-stage4-target-libgcc:
41076 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
41077 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
41078 @r=`${PWD_COMMAND}`; export r; \
e552509b 41079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41080 TFLAGS="$(STAGE4_TFLAGS)"; \
41081 echo "Checking multilib configuration for libgcc..."; \
22121df0 41082 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41083 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41084 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41085 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41086 else \
41087 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41088 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41089 fi; \
41090 else \
41091 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41092 fi; \
41093 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41094 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41095 \
41096 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41097 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41098 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41099 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
41100 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41101 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41102 case $(srcdir) in \
41103 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41104 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41105 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41106 esac; \
1b6c0831
L
41107 module_srcdir=libgcc; \
41108 $(SHELL) $$s/$$module_srcdir/configure \
41109 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41110 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41111 --target=${target_alias} \
22121df0 41112 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41113 $(STAGE4_CONFIGURE_FLAGS)
41114@endif target-libgcc-bootstrap
41115
41116.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
41117maybe-configure-stageprofile-target-libgcc:
41118@if target-libgcc-bootstrap
41119maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
41120configure-stageprofile-target-libgcc:
41121 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
41122 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
41123 @r=`${PWD_COMMAND}`; export r; \
e552509b 41124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41125 TFLAGS="$(STAGEprofile_TFLAGS)"; \
41126 echo "Checking multilib configuration for libgcc..."; \
22121df0 41127 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41128 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41129 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41130 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41131 else \
41132 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41133 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41134 fi; \
41135 else \
41136 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41137 fi; \
41138 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41139 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41140 \
41141 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41142 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41143 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41144 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
41145 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41146 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41147 case $(srcdir) in \
41148 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41149 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41150 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41151 esac; \
1b6c0831
L
41152 module_srcdir=libgcc; \
41153 $(SHELL) $$s/$$module_srcdir/configure \
41154 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41155 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41156 --target=${target_alias} \
22121df0 41157 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41158 $(STAGEprofile_CONFIGURE_FLAGS)
41159@endif target-libgcc-bootstrap
e552509b 41160
a90ef4bf
JM
41161.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
41162maybe-configure-stagefeedback-target-libgcc:
41163@if target-libgcc-bootstrap
41164maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
41165configure-stagefeedback-target-libgcc:
41166 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
41167 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
41168 @r=`${PWD_COMMAND}`; export r; \
e552509b 41169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41170 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
41171 echo "Checking multilib configuration for libgcc..."; \
22121df0 41172 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41173 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41174 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41175 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41176 else \
41177 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41178 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41179 fi; \
41180 else \
41181 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41182 fi; \
41183 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41184 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41185 \
41186 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41187 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41188 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41189 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
41190 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41191 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41192 case $(srcdir) in \
41193 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41194 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41195 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41196 esac; \
1b6c0831
L
41197 module_srcdir=libgcc; \
41198 $(SHELL) $$s/$$module_srcdir/configure \
41199 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41200 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41201 --target=${target_alias} \
22121df0 41202 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41203 $(STAGEfeedback_CONFIGURE_FLAGS)
41204@endif target-libgcc-bootstrap
e552509b 41205
e552509b 41206
e552509b 41207
e552509b 41208
e552509b 41209
a90ef4bf
JM
41210.PHONY: all-target-libgcc maybe-all-target-libgcc
41211maybe-all-target-libgcc:
41212@if gcc-bootstrap
41213all-target-libgcc: stage_current
41214@endif gcc-bootstrap
41215@if target-libgcc
41216TARGET-target-libgcc=all
41217maybe-all-target-libgcc: all-target-libgcc
41218all-target-libgcc: configure-target-libgcc
41219 @r=`${PWD_COMMAND}`; export r; \
e552509b 41220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41221 $(NORMAL_TARGET_EXPORTS) \
41222 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41223 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41224 $(TARGET-target-libgcc))
41225@endif target-libgcc
e552509b 41226
e552509b 41227
e552509b 41228
a90ef4bf
JM
41229.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
41230.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
41231maybe-all-stage1-target-libgcc:
41232maybe-clean-stage1-target-libgcc:
41233@if target-libgcc-bootstrap
41234maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
41235all-stage1: all-stage1-target-libgcc
41236TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
41237all-stage1-target-libgcc: configure-stage1-target-libgcc
41238 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
41239 @r=`${PWD_COMMAND}`; export r; \
e552509b 41240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41241 TFLAGS="$(STAGE1_TFLAGS)"; \
41242 $(NORMAL_TARGET_EXPORTS) \
41243 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41244 \
a90ef4bf
JM
41245 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41246 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41247 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41248 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41249 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41250 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41251 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
41252 $(EXTRA_TARGET_FLAGS) \
41253 \
05a13254 41254 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 41255 $(TARGET-stage1-target-libgcc)
e552509b 41256
a90ef4bf
JM
41257maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
41258clean-stage1: clean-stage1-target-libgcc
41259clean-stage1-target-libgcc:
41260 @if [ $(current_stage) = stage1 ]; then \
41261 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41262 else \
41263 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
41264 $(MAKE) stage1-start; \
41265 fi; \
41266 cd $(TARGET_SUBDIR)/libgcc && \
41267 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 41268 clean
a90ef4bf 41269@endif target-libgcc-bootstrap
e552509b 41270
e552509b 41271
a90ef4bf
JM
41272.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
41273.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
41274maybe-all-stage2-target-libgcc:
41275maybe-clean-stage2-target-libgcc:
41276@if target-libgcc-bootstrap
41277maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
41278all-stage2: all-stage2-target-libgcc
41279TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
41280all-stage2-target-libgcc: configure-stage2-target-libgcc
41281 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
41282 @r=`${PWD_COMMAND}`; export r; \
e552509b 41283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41284 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 41285 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41286 \
41287 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41288 \
a90ef4bf
JM
41289 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41290 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41291 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41292 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41293 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41294 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41295 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41296 $(EXTRA_TARGET_FLAGS) \
05a13254 41297 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 41298 $(TARGET-stage2-target-libgcc)
e552509b 41299
a90ef4bf
JM
41300maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
41301clean-stage2: clean-stage2-target-libgcc
41302clean-stage2-target-libgcc:
41303 @if [ $(current_stage) = stage2 ]; then \
41304 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41305 else \
41306 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
41307 $(MAKE) stage2-start; \
41308 fi; \
41309 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41310 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41311@endif target-libgcc-bootstrap
e552509b 41312
e552509b 41313
a90ef4bf
JM
41314.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
41315.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
41316maybe-all-stage3-target-libgcc:
41317maybe-clean-stage3-target-libgcc:
41318@if target-libgcc-bootstrap
41319maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
41320all-stage3: all-stage3-target-libgcc
41321TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
41322all-stage3-target-libgcc: configure-stage3-target-libgcc
41323 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
41324 @r=`${PWD_COMMAND}`; export r; \
e552509b 41325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41326 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 41327 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41328 \
41329 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41330 \
a90ef4bf
JM
41331 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41332 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41333 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41334 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41335 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41336 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41337 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41338 $(EXTRA_TARGET_FLAGS) \
05a13254 41339 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 41340 $(TARGET-stage3-target-libgcc)
e552509b 41341
a90ef4bf
JM
41342maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
41343clean-stage3: clean-stage3-target-libgcc
41344clean-stage3-target-libgcc:
41345 @if [ $(current_stage) = stage3 ]; then \
41346 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41347 else \
41348 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
41349 $(MAKE) stage3-start; \
41350 fi; \
41351 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41352 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41353@endif target-libgcc-bootstrap
e552509b 41354
e552509b 41355
a90ef4bf
JM
41356.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
41357.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
41358maybe-all-stage4-target-libgcc:
41359maybe-clean-stage4-target-libgcc:
41360@if target-libgcc-bootstrap
41361maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
41362all-stage4: all-stage4-target-libgcc
41363TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
41364all-stage4-target-libgcc: configure-stage4-target-libgcc
41365 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
41366 @r=`${PWD_COMMAND}`; export r; \
e552509b 41367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41368 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 41369 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41370 \
41371 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41372 \
a90ef4bf
JM
41373 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41374 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41375 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41376 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41377 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41378 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41379 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41380 $(EXTRA_TARGET_FLAGS) \
05a13254 41381 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 41382 $(TARGET-stage4-target-libgcc)
e552509b 41383
a90ef4bf
JM
41384maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
41385clean-stage4: clean-stage4-target-libgcc
41386clean-stage4-target-libgcc:
41387 @if [ $(current_stage) = stage4 ]; then \
41388 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41389 else \
41390 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
41391 $(MAKE) stage4-start; \
41392 fi; \
41393 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41394 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41395@endif target-libgcc-bootstrap
e552509b
ILT
41396
41397
a90ef4bf
JM
41398.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
41399.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
41400maybe-all-stageprofile-target-libgcc:
41401maybe-clean-stageprofile-target-libgcc:
41402@if target-libgcc-bootstrap
41403maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
41404all-stageprofile: all-stageprofile-target-libgcc
41405TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
41406all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
41407 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
41408 @r=`${PWD_COMMAND}`; export r; \
41409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41410 TFLAGS="$(STAGEprofile_TFLAGS)"; \
41411 $(NORMAL_TARGET_EXPORTS) \
41412 \
41413 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41414 \
a90ef4bf
JM
41415 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41416 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41417 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41418 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41419 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41420 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41421 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41422 $(EXTRA_TARGET_FLAGS) \
05a13254 41423 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
41424 $(TARGET-stageprofile-target-libgcc)
41425
41426maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
41427clean-stageprofile: clean-stageprofile-target-libgcc
41428clean-stageprofile-target-libgcc:
41429 @if [ $(current_stage) = stageprofile ]; then \
41430 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 41431 else \
a90ef4bf
JM
41432 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
41433 $(MAKE) stageprofile-start; \
c52c6897 41434 fi; \
a90ef4bf 41435 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41436 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41437@endif target-libgcc-bootstrap
d545f33b
PB
41438
41439
a90ef4bf
JM
41440.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
41441.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
41442maybe-all-stagefeedback-target-libgcc:
41443maybe-clean-stagefeedback-target-libgcc:
41444@if target-libgcc-bootstrap
41445maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
41446all-stagefeedback: all-stagefeedback-target-libgcc
41447TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
41448all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
41449 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
41450 @r=`${PWD_COMMAND}`; export r; \
41451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41452 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
41453 $(NORMAL_TARGET_EXPORTS) \
41454 \
41455 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41456 \
a90ef4bf
JM
41457 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41458 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41459 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41460 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41461 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41462 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41463 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41464 $(EXTRA_TARGET_FLAGS) \
05a13254 41465 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
41466 $(TARGET-stagefeedback-target-libgcc)
41467
41468maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
41469clean-stagefeedback: clean-stagefeedback-target-libgcc
41470clean-stagefeedback-target-libgcc:
41471 @if [ $(current_stage) = stagefeedback ]; then \
41472 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41473 else \
41474 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
41475 $(MAKE) stagefeedback-start; \
41476 fi; \
41477 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41478 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41479@endif target-libgcc-bootstrap
4b1cb4fe 41480
a7254363
PB
41481
41482
d545f33b
PB
41483
41484
4b1cb4fe 41485
a90ef4bf
JM
41486.PHONY: check-target-libgcc maybe-check-target-libgcc
41487maybe-check-target-libgcc:
41488@if target-libgcc
41489maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 41490
a90ef4bf
JM
41491# Dummy target for uncheckable module.
41492check-target-libgcc:
4b1cb4fe 41493
a90ef4bf 41494@endif target-libgcc
4b1cb4fe 41495
a90ef4bf
JM
41496.PHONY: install-target-libgcc maybe-install-target-libgcc
41497maybe-install-target-libgcc:
41498@if target-libgcc
41499maybe-install-target-libgcc: install-target-libgcc
41500
41501install-target-libgcc: installdirs
0aed8855 41502 @: $(MAKE); $(unstage)
4b1cb4fe
DD
41503 @r=`${PWD_COMMAND}`; export r; \
41504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41505 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41506 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 41507 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 41508
a90ef4bf 41509@endif target-libgcc
4b1cb4fe 41510
a90ef4bf
JM
41511.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
41512maybe-install-strip-target-libgcc:
41513@if target-libgcc
41514maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 41515
a90ef4bf 41516install-strip-target-libgcc: installdirs
9b980aa1
RW
41517 @: $(MAKE); $(unstage)
41518 @r=`${PWD_COMMAND}`; export r; \
41519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41520 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41521 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
41522 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41523
a90ef4bf 41524@endif target-libgcc
9b980aa1 41525
56a8fe78 41526# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 41527
a90ef4bf
JM
41528.PHONY: maybe-info-target-libgcc info-target-libgcc
41529maybe-info-target-libgcc:
41530@if target-libgcc
41531maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 41532
a90ef4bf
JM
41533info-target-libgcc: \
41534 configure-target-libgcc
0aed8855 41535 @: $(MAKE); $(unstage)
22121df0 41536 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41537 r=`${PWD_COMMAND}`; export r; \
41538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41539 $(NORMAL_TARGET_EXPORTS) \
22121df0 41540 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41541 for flag in $(EXTRA_TARGET_FLAGS); do \
41542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41543 done; \
a90ef4bf 41544 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41547 "RANLIB=$${RANLIB}" \
0c24b341 41548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41549 info) \
4b1cb4fe
DD
41550 || exit 1
41551
a90ef4bf 41552@endif target-libgcc
4b1cb4fe 41553
a90ef4bf
JM
41554.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
41555maybe-dvi-target-libgcc:
41556@if target-libgcc
41557maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 41558
a90ef4bf
JM
41559dvi-target-libgcc: \
41560 configure-target-libgcc
0aed8855 41561 @: $(MAKE); $(unstage)
22121df0 41562 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41563 r=`${PWD_COMMAND}`; export r; \
41564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41565 $(NORMAL_TARGET_EXPORTS) \
22121df0 41566 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41567 for flag in $(EXTRA_TARGET_FLAGS); do \
41568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41569 done; \
a90ef4bf 41570 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41573 "RANLIB=$${RANLIB}" \
0c24b341 41574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41575 dvi) \
4b1cb4fe
DD
41576 || exit 1
41577
a90ef4bf 41578@endif target-libgcc
4b1cb4fe 41579
a90ef4bf
JM
41580.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
41581maybe-pdf-target-libgcc:
41582@if target-libgcc
41583maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 41584
a90ef4bf
JM
41585pdf-target-libgcc: \
41586 configure-target-libgcc
56a8fe78 41587 @: $(MAKE); $(unstage)
22121df0 41588 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
41589 r=`${PWD_COMMAND}`; export r; \
41590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41591 $(NORMAL_TARGET_EXPORTS) \
22121df0 41592 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
41593 for flag in $(EXTRA_TARGET_FLAGS); do \
41594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41595 done; \
a90ef4bf 41596 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
41597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41599 "RANLIB=$${RANLIB}" \
0c24b341 41600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41601 pdf) \
41602 || exit 1
41603
a90ef4bf 41604@endif target-libgcc
56a8fe78 41605
a90ef4bf
JM
41606.PHONY: maybe-html-target-libgcc html-target-libgcc
41607maybe-html-target-libgcc:
41608@if target-libgcc
41609maybe-html-target-libgcc: html-target-libgcc
6d389afc 41610
a90ef4bf
JM
41611html-target-libgcc: \
41612 configure-target-libgcc
0aed8855 41613 @: $(MAKE); $(unstage)
22121df0 41614 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
41615 r=`${PWD_COMMAND}`; export r; \
41616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41617 $(NORMAL_TARGET_EXPORTS) \
22121df0 41618 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
41619 for flag in $(EXTRA_TARGET_FLAGS); do \
41620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41621 done; \
a90ef4bf 41622 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
41623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41625 "RANLIB=$${RANLIB}" \
0c24b341 41626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41627 html) \
41628 || exit 1
41629
a90ef4bf 41630@endif target-libgcc
6d389afc 41631
a90ef4bf
JM
41632.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
41633maybe-TAGS-target-libgcc:
41634@if target-libgcc
41635maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 41636
a90ef4bf
JM
41637TAGS-target-libgcc: \
41638 configure-target-libgcc
0aed8855 41639 @: $(MAKE); $(unstage)
22121df0 41640 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41641 r=`${PWD_COMMAND}`; export r; \
41642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41643 $(NORMAL_TARGET_EXPORTS) \
22121df0 41644 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41645 for flag in $(EXTRA_TARGET_FLAGS); do \
41646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41647 done; \
a90ef4bf 41648 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41651 "RANLIB=$${RANLIB}" \
0c24b341 41652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41653 TAGS) \
4b1cb4fe
DD
41654 || exit 1
41655
a90ef4bf 41656@endif target-libgcc
4b1cb4fe 41657
a90ef4bf
JM
41658.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
41659maybe-install-info-target-libgcc:
41660@if target-libgcc
41661maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 41662
a90ef4bf
JM
41663install-info-target-libgcc: \
41664 configure-target-libgcc \
41665 info-target-libgcc
0aed8855 41666 @: $(MAKE); $(unstage)
22121df0 41667 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41668 r=`${PWD_COMMAND}`; export r; \
41669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41670 $(NORMAL_TARGET_EXPORTS) \
22121df0 41671 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41672 for flag in $(EXTRA_TARGET_FLAGS); do \
41673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41674 done; \
a90ef4bf 41675 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41678 "RANLIB=$${RANLIB}" \
0c24b341 41679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41680 install-info) \
4b1cb4fe
DD
41681 || exit 1
41682
a90ef4bf 41683@endif target-libgcc
4b1cb4fe 41684
a90ef4bf
JM
41685.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
41686maybe-install-pdf-target-libgcc:
41687@if target-libgcc
41688maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 41689
a90ef4bf
JM
41690install-pdf-target-libgcc: \
41691 configure-target-libgcc \
41692 pdf-target-libgcc
a3ca38d2 41693 @: $(MAKE); $(unstage)
22121df0 41694 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
41695 r=`${PWD_COMMAND}`; export r; \
41696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41697 $(NORMAL_TARGET_EXPORTS) \
22121df0 41698 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
41699 for flag in $(EXTRA_TARGET_FLAGS); do \
41700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41701 done; \
a90ef4bf 41702 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
41703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41705 "RANLIB=$${RANLIB}" \
0c24b341 41706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41707 install-pdf) \
41708 || exit 1
41709
a90ef4bf 41710@endif target-libgcc
a3ca38d2 41711
a90ef4bf
JM
41712.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
41713maybe-install-html-target-libgcc:
41714@if target-libgcc
41715maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 41716
a90ef4bf
JM
41717install-html-target-libgcc: \
41718 configure-target-libgcc \
41719 html-target-libgcc
108a6f8e 41720 @: $(MAKE); $(unstage)
22121df0 41721 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
41722 r=`${PWD_COMMAND}`; export r; \
41723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41724 $(NORMAL_TARGET_EXPORTS) \
22121df0 41725 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
41726 for flag in $(EXTRA_TARGET_FLAGS); do \
41727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41728 done; \
a90ef4bf 41729 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
41730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41732 "RANLIB=$${RANLIB}" \
0c24b341 41733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41734 install-html) \
41735 || exit 1
41736
a90ef4bf 41737@endif target-libgcc
108a6f8e 41738
a90ef4bf
JM
41739.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
41740maybe-installcheck-target-libgcc:
41741@if target-libgcc
41742maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 41743
a90ef4bf
JM
41744installcheck-target-libgcc: \
41745 configure-target-libgcc
0aed8855 41746 @: $(MAKE); $(unstage)
22121df0 41747 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41748 r=`${PWD_COMMAND}`; export r; \
41749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41750 $(NORMAL_TARGET_EXPORTS) \
22121df0 41751 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41752 for flag in $(EXTRA_TARGET_FLAGS); do \
41753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41754 done; \
a90ef4bf 41755 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41758 "RANLIB=$${RANLIB}" \
0c24b341 41759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41760 installcheck) \
4b1cb4fe
DD
41761 || exit 1
41762
a90ef4bf 41763@endif target-libgcc
4b1cb4fe 41764
a90ef4bf
JM
41765.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
41766maybe-mostlyclean-target-libgcc:
41767@if target-libgcc
41768maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 41769
a90ef4bf 41770mostlyclean-target-libgcc:
0aed8855 41771 @: $(MAKE); $(unstage)
22121df0 41772 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41773 r=`${PWD_COMMAND}`; export r; \
41774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41775 $(NORMAL_TARGET_EXPORTS) \
22121df0 41776 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41777 for flag in $(EXTRA_TARGET_FLAGS); do \
41778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41779 done; \
a90ef4bf 41780 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41783 "RANLIB=$${RANLIB}" \
0c24b341 41784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41785 mostlyclean) \
4b1cb4fe
DD
41786 || exit 1
41787
a90ef4bf 41788@endif target-libgcc
4b1cb4fe 41789
a90ef4bf
JM
41790.PHONY: maybe-clean-target-libgcc clean-target-libgcc
41791maybe-clean-target-libgcc:
41792@if target-libgcc
41793maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 41794
a90ef4bf 41795clean-target-libgcc:
0aed8855 41796 @: $(MAKE); $(unstage)
22121df0 41797 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41798 r=`${PWD_COMMAND}`; export r; \
41799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41800 $(NORMAL_TARGET_EXPORTS) \
22121df0 41801 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41802 for flag in $(EXTRA_TARGET_FLAGS); do \
41803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41804 done; \
a90ef4bf 41805 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41808 "RANLIB=$${RANLIB}" \
0c24b341 41809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41810 clean) \
4b1cb4fe
DD
41811 || exit 1
41812
a90ef4bf 41813@endif target-libgcc
4b1cb4fe 41814
a90ef4bf
JM
41815.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
41816maybe-distclean-target-libgcc:
41817@if target-libgcc
41818maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 41819
a90ef4bf 41820distclean-target-libgcc:
0aed8855 41821 @: $(MAKE); $(unstage)
22121df0 41822 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41823 r=`${PWD_COMMAND}`; export r; \
41824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41825 $(NORMAL_TARGET_EXPORTS) \
22121df0 41826 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41827 for flag in $(EXTRA_TARGET_FLAGS); do \
41828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41829 done; \
a90ef4bf 41830 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41833 "RANLIB=$${RANLIB}" \
0c24b341 41834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41835 distclean) \
4b1cb4fe
DD
41836 || exit 1
41837
a90ef4bf 41838@endif target-libgcc
4b1cb4fe 41839
a90ef4bf
JM
41840.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
41841maybe-maintainer-clean-target-libgcc:
41842@if target-libgcc
41843maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 41844
a90ef4bf 41845maintainer-clean-target-libgcc:
0aed8855 41846 @: $(MAKE); $(unstage)
22121df0 41847 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41848 r=`${PWD_COMMAND}`; export r; \
41849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41850 $(NORMAL_TARGET_EXPORTS) \
22121df0 41851 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41852 for flag in $(EXTRA_TARGET_FLAGS); do \
41853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41854 done; \
a90ef4bf 41855 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41858 "RANLIB=$${RANLIB}" \
0c24b341 41859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41860 maintainer-clean) \
4b1cb4fe
DD
41861 || exit 1
41862
a90ef4bf 41863@endif target-libgcc
4b1cb4fe
DD
41864
41865
3866be5d 41866
a7254363 41867
e90269c8 41868
2bf680c4
ILT
41869.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
41870maybe-configure-target-libbacktrace:
41871@if gcc-bootstrap
41872configure-target-libbacktrace: stage_current
41873@endif gcc-bootstrap
41874@if target-libbacktrace
41875maybe-configure-target-libbacktrace: configure-target-libbacktrace
41876configure-target-libbacktrace:
41877 @: $(MAKE); $(unstage)
41878 @r=`${PWD_COMMAND}`; export r; \
41879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41880 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
41881 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
41882 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
41883 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
41884 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
41885 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
41886 else \
41887 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
41888 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
41889 fi; \
41890 else \
41891 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
41892 fi; \
41893 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 41894 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
41895 $(NORMAL_TARGET_EXPORTS) \
41896 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
41897 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
41898 case $(srcdir) in \
41899 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41900 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
41901 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41902 esac; \
1b6c0831 41903 module_srcdir=libbacktrace; \
2bf680c4 41904 rm -f no-such-file || : ; \
1b6c0831
L
41905 CONFIG_SITE=no-such-file $(SHELL) \
41906 $$s/$$module_srcdir/configure \
41907 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 41908 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41909 --target=${target_alias} \
2bf680c4
ILT
41910 || exit 1
41911@endif target-libbacktrace
41912
41913
41914
41915
41916
41917.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
41918maybe-all-target-libbacktrace:
41919@if gcc-bootstrap
41920all-target-libbacktrace: stage_current
41921@endif gcc-bootstrap
41922@if target-libbacktrace
41923TARGET-target-libbacktrace=all
41924maybe-all-target-libbacktrace: all-target-libbacktrace
41925all-target-libbacktrace: configure-target-libbacktrace
41926 @: $(MAKE); $(unstage)
41927 @r=`${PWD_COMMAND}`; export r; \
41928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41929 $(NORMAL_TARGET_EXPORTS) \
41930 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 41931 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
41932 $(TARGET-target-libbacktrace))
41933@endif target-libbacktrace
41934
41935
41936
41937
41938
41939.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
41940maybe-check-target-libbacktrace:
41941@if target-libbacktrace
41942maybe-check-target-libbacktrace: check-target-libbacktrace
41943
41944check-target-libbacktrace:
41945 @: $(MAKE); $(unstage)
41946 @r=`${PWD_COMMAND}`; export r; \
41947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41948 $(NORMAL_TARGET_EXPORTS) \
41949 (cd $(TARGET_SUBDIR)/libbacktrace && \
41950 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
41951
41952@endif target-libbacktrace
41953
41954.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
41955maybe-install-target-libbacktrace:
41956@if target-libbacktrace
41957maybe-install-target-libbacktrace: install-target-libbacktrace
41958
41959install-target-libbacktrace: installdirs
41960 @: $(MAKE); $(unstage)
41961 @r=`${PWD_COMMAND}`; export r; \
41962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41963 $(NORMAL_TARGET_EXPORTS) \
41964 (cd $(TARGET_SUBDIR)/libbacktrace && \
41965 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
41966
41967@endif target-libbacktrace
41968
41969.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
41970maybe-install-strip-target-libbacktrace:
41971@if target-libbacktrace
41972maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
41973
41974install-strip-target-libbacktrace: installdirs
41975 @: $(MAKE); $(unstage)
41976 @r=`${PWD_COMMAND}`; export r; \
41977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41978 $(NORMAL_TARGET_EXPORTS) \
41979 (cd $(TARGET_SUBDIR)/libbacktrace && \
41980 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41981
41982@endif target-libbacktrace
41983
41984# Other targets (info, dvi, pdf, etc.)
41985
41986.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
41987maybe-info-target-libbacktrace:
41988@if target-libbacktrace
41989maybe-info-target-libbacktrace: info-target-libbacktrace
41990
41991info-target-libbacktrace: \
41992 configure-target-libbacktrace
41993 @: $(MAKE); $(unstage)
22121df0 41994 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41995 r=`${PWD_COMMAND}`; export r; \
41996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41997 $(NORMAL_TARGET_EXPORTS) \
22121df0 41998 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41999 for flag in $(EXTRA_TARGET_FLAGS); do \
42000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42001 done; \
42002 (cd $(TARGET_SUBDIR)/libbacktrace && \
42003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42005 "RANLIB=$${RANLIB}" \
42006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42007 info) \
42008 || exit 1
42009
42010@endif target-libbacktrace
42011
42012.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
42013maybe-dvi-target-libbacktrace:
42014@if target-libbacktrace
42015maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
42016
42017dvi-target-libbacktrace: \
42018 configure-target-libbacktrace
42019 @: $(MAKE); $(unstage)
22121df0 42020 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42021 r=`${PWD_COMMAND}`; export r; \
42022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42023 $(NORMAL_TARGET_EXPORTS) \
22121df0 42024 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42025 for flag in $(EXTRA_TARGET_FLAGS); do \
42026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42027 done; \
42028 (cd $(TARGET_SUBDIR)/libbacktrace && \
42029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42031 "RANLIB=$${RANLIB}" \
42032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42033 dvi) \
42034 || exit 1
42035
42036@endif target-libbacktrace
42037
42038.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
42039maybe-pdf-target-libbacktrace:
42040@if target-libbacktrace
42041maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
42042
42043pdf-target-libbacktrace: \
42044 configure-target-libbacktrace
42045 @: $(MAKE); $(unstage)
22121df0 42046 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42047 r=`${PWD_COMMAND}`; export r; \
42048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42049 $(NORMAL_TARGET_EXPORTS) \
22121df0 42050 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42051 for flag in $(EXTRA_TARGET_FLAGS); do \
42052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42053 done; \
42054 (cd $(TARGET_SUBDIR)/libbacktrace && \
42055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42057 "RANLIB=$${RANLIB}" \
42058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42059 pdf) \
42060 || exit 1
42061
42062@endif target-libbacktrace
42063
42064.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
42065maybe-html-target-libbacktrace:
42066@if target-libbacktrace
42067maybe-html-target-libbacktrace: html-target-libbacktrace
42068
42069html-target-libbacktrace: \
42070 configure-target-libbacktrace
42071 @: $(MAKE); $(unstage)
22121df0 42072 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42073 r=`${PWD_COMMAND}`; export r; \
42074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42075 $(NORMAL_TARGET_EXPORTS) \
22121df0 42076 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42077 for flag in $(EXTRA_TARGET_FLAGS); do \
42078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42079 done; \
42080 (cd $(TARGET_SUBDIR)/libbacktrace && \
42081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42083 "RANLIB=$${RANLIB}" \
42084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42085 html) \
42086 || exit 1
42087
42088@endif target-libbacktrace
42089
42090.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
42091maybe-TAGS-target-libbacktrace:
42092@if target-libbacktrace
42093maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
42094
42095TAGS-target-libbacktrace: \
42096 configure-target-libbacktrace
42097 @: $(MAKE); $(unstage)
22121df0 42098 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42099 r=`${PWD_COMMAND}`; export r; \
42100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42101 $(NORMAL_TARGET_EXPORTS) \
22121df0 42102 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42103 for flag in $(EXTRA_TARGET_FLAGS); do \
42104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42105 done; \
42106 (cd $(TARGET_SUBDIR)/libbacktrace && \
42107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42109 "RANLIB=$${RANLIB}" \
42110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42111 TAGS) \
42112 || exit 1
42113
42114@endif target-libbacktrace
42115
42116.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
42117maybe-install-info-target-libbacktrace:
42118@if target-libbacktrace
42119maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
42120
42121install-info-target-libbacktrace: \
42122 configure-target-libbacktrace \
42123 info-target-libbacktrace
42124 @: $(MAKE); $(unstage)
22121df0 42125 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42126 r=`${PWD_COMMAND}`; export r; \
42127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42128 $(NORMAL_TARGET_EXPORTS) \
22121df0 42129 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42130 for flag in $(EXTRA_TARGET_FLAGS); do \
42131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42132 done; \
42133 (cd $(TARGET_SUBDIR)/libbacktrace && \
42134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42136 "RANLIB=$${RANLIB}" \
42137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42138 install-info) \
42139 || exit 1
42140
42141@endif target-libbacktrace
42142
42143.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
42144maybe-install-pdf-target-libbacktrace:
42145@if target-libbacktrace
42146maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
42147
42148install-pdf-target-libbacktrace: \
42149 configure-target-libbacktrace \
42150 pdf-target-libbacktrace
42151 @: $(MAKE); $(unstage)
22121df0 42152 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42153 r=`${PWD_COMMAND}`; export r; \
42154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42155 $(NORMAL_TARGET_EXPORTS) \
22121df0 42156 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42157 for flag in $(EXTRA_TARGET_FLAGS); do \
42158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42159 done; \
42160 (cd $(TARGET_SUBDIR)/libbacktrace && \
42161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42163 "RANLIB=$${RANLIB}" \
42164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42165 install-pdf) \
42166 || exit 1
42167
42168@endif target-libbacktrace
42169
42170.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
42171maybe-install-html-target-libbacktrace:
42172@if target-libbacktrace
42173maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
42174
42175install-html-target-libbacktrace: \
42176 configure-target-libbacktrace \
42177 html-target-libbacktrace
42178 @: $(MAKE); $(unstage)
22121df0 42179 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42180 r=`${PWD_COMMAND}`; export r; \
42181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42182 $(NORMAL_TARGET_EXPORTS) \
22121df0 42183 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42184 for flag in $(EXTRA_TARGET_FLAGS); do \
42185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42186 done; \
42187 (cd $(TARGET_SUBDIR)/libbacktrace && \
42188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42190 "RANLIB=$${RANLIB}" \
42191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42192 install-html) \
42193 || exit 1
42194
42195@endif target-libbacktrace
42196
42197.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
42198maybe-installcheck-target-libbacktrace:
42199@if target-libbacktrace
42200maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
42201
42202installcheck-target-libbacktrace: \
42203 configure-target-libbacktrace
42204 @: $(MAKE); $(unstage)
22121df0 42205 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42206 r=`${PWD_COMMAND}`; export r; \
42207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42208 $(NORMAL_TARGET_EXPORTS) \
22121df0 42209 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42210 for flag in $(EXTRA_TARGET_FLAGS); do \
42211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42212 done; \
42213 (cd $(TARGET_SUBDIR)/libbacktrace && \
42214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42216 "RANLIB=$${RANLIB}" \
42217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42218 installcheck) \
42219 || exit 1
42220
42221@endif target-libbacktrace
42222
42223.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
42224maybe-mostlyclean-target-libbacktrace:
42225@if target-libbacktrace
42226maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
42227
42228mostlyclean-target-libbacktrace:
42229 @: $(MAKE); $(unstage)
22121df0 42230 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42231 r=`${PWD_COMMAND}`; export r; \
42232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42233 $(NORMAL_TARGET_EXPORTS) \
22121df0 42234 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42235 for flag in $(EXTRA_TARGET_FLAGS); do \
42236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42237 done; \
42238 (cd $(TARGET_SUBDIR)/libbacktrace && \
42239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42241 "RANLIB=$${RANLIB}" \
42242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42243 mostlyclean) \
42244 || exit 1
42245
42246@endif target-libbacktrace
42247
42248.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
42249maybe-clean-target-libbacktrace:
42250@if target-libbacktrace
42251maybe-clean-target-libbacktrace: clean-target-libbacktrace
42252
42253clean-target-libbacktrace:
42254 @: $(MAKE); $(unstage)
22121df0 42255 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42256 r=`${PWD_COMMAND}`; export r; \
42257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42258 $(NORMAL_TARGET_EXPORTS) \
22121df0 42259 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42260 for flag in $(EXTRA_TARGET_FLAGS); do \
42261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42262 done; \
42263 (cd $(TARGET_SUBDIR)/libbacktrace && \
42264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42266 "RANLIB=$${RANLIB}" \
42267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42268 clean) \
42269 || exit 1
42270
42271@endif target-libbacktrace
42272
42273.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
42274maybe-distclean-target-libbacktrace:
42275@if target-libbacktrace
42276maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
42277
42278distclean-target-libbacktrace:
42279 @: $(MAKE); $(unstage)
22121df0 42280 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42281 r=`${PWD_COMMAND}`; export r; \
42282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42283 $(NORMAL_TARGET_EXPORTS) \
22121df0 42284 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42285 for flag in $(EXTRA_TARGET_FLAGS); do \
42286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42287 done; \
42288 (cd $(TARGET_SUBDIR)/libbacktrace && \
42289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42291 "RANLIB=$${RANLIB}" \
42292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42293 distclean) \
42294 || exit 1
42295
42296@endif target-libbacktrace
42297
42298.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
42299maybe-maintainer-clean-target-libbacktrace:
42300@if target-libbacktrace
42301maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
42302
42303maintainer-clean-target-libbacktrace:
42304 @: $(MAKE); $(unstage)
22121df0 42305 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42306 r=`${PWD_COMMAND}`; export r; \
42307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42308 $(NORMAL_TARGET_EXPORTS) \
22121df0 42309 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42310 for flag in $(EXTRA_TARGET_FLAGS); do \
42311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42312 done; \
42313 (cd $(TARGET_SUBDIR)/libbacktrace && \
42314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42316 "RANLIB=$${RANLIB}" \
42317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42318 maintainer-clean) \
42319 || exit 1
42320
42321@endif target-libbacktrace
42322
42323
42324
42325
42326
a90ef4bf
JM
42327.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
42328maybe-configure-target-libquadmath:
4f0ef2d8 42329@if gcc-bootstrap
a90ef4bf 42330configure-target-libquadmath: stage_current
4f0ef2d8 42331@endif gcc-bootstrap
a90ef4bf
JM
42332@if target-libquadmath
42333maybe-configure-target-libquadmath: configure-target-libquadmath
42334configure-target-libquadmath:
0aed8855
PB
42335 @: $(MAKE); $(unstage)
42336 @r=`${PWD_COMMAND}`; export r; \
42337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42338 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
42339 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
42340 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42341 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
42342 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
42343 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 42344 else \
a90ef4bf
JM
42345 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
42346 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
42347 fi; \
42348 else \
a90ef4bf 42349 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 42350 fi; \
a90ef4bf 42351 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 42352 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 42353 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42354 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
42355 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 42356 case $(srcdir) in \
b00612cc 42357 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42358 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 42359 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 42360 esac; \
1b6c0831 42361 module_srcdir=libquadmath; \
4fa63067 42362 rm -f no-such-file || : ; \
1b6c0831
L
42363 CONFIG_SITE=no-such-file $(SHELL) \
42364 $$s/$$module_srcdir/configure \
42365 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42366 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42367 --target=${target_alias} \
e2b9e2dc 42368 || exit 1
a90ef4bf 42369@endif target-libquadmath
e2b9e2dc 42370
a7254363
PB
42371
42372
d545f33b
PB
42373
42374
a90ef4bf
JM
42375.PHONY: all-target-libquadmath maybe-all-target-libquadmath
42376maybe-all-target-libquadmath:
4f0ef2d8 42377@if gcc-bootstrap
a90ef4bf 42378all-target-libquadmath: stage_current
4f0ef2d8 42379@endif gcc-bootstrap
a90ef4bf
JM
42380@if target-libquadmath
42381TARGET-target-libquadmath=all
42382maybe-all-target-libquadmath: all-target-libquadmath
42383all-target-libquadmath: configure-target-libquadmath
0aed8855 42384 @: $(MAKE); $(unstage)
b40e3958
L
42385 @r=`${PWD_COMMAND}`; export r; \
42386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42387 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42388 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 42389 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42390 $(TARGET-target-libquadmath))
42391@endif target-libquadmath
3866be5d 42392
a7254363
PB
42393
42394
d545f33b
PB
42395
42396
a90ef4bf
JM
42397.PHONY: check-target-libquadmath maybe-check-target-libquadmath
42398maybe-check-target-libquadmath:
42399@if target-libquadmath
42400maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 42401
a90ef4bf 42402check-target-libquadmath:
0aed8855 42403 @: $(MAKE); $(unstage)
b40e3958
L
42404 @r=`${PWD_COMMAND}`; export r; \
42405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42406 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42407 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 42408 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 42409
a90ef4bf 42410@endif target-libquadmath
3866be5d 42411
a90ef4bf
JM
42412.PHONY: install-target-libquadmath maybe-install-target-libquadmath
42413maybe-install-target-libquadmath:
42414@if target-libquadmath
42415maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 42416
a90ef4bf 42417install-target-libquadmath: installdirs
0aed8855 42418 @: $(MAKE); $(unstage)
b40e3958
L
42419 @r=`${PWD_COMMAND}`; export r; \
42420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42421 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42422 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 42423 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 42424
a90ef4bf 42425@endif target-libquadmath
3866be5d 42426
a90ef4bf
JM
42427.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
42428maybe-install-strip-target-libquadmath:
42429@if target-libquadmath
42430maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 42431
a90ef4bf 42432install-strip-target-libquadmath: installdirs
9b980aa1
RW
42433 @: $(MAKE); $(unstage)
42434 @r=`${PWD_COMMAND}`; export r; \
42435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42436 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42437 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
42438 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42439
a90ef4bf 42440@endif target-libquadmath
9b980aa1 42441
56a8fe78 42442# Other targets (info, dvi, pdf, etc.)
4fa63067 42443
a90ef4bf
JM
42444.PHONY: maybe-info-target-libquadmath info-target-libquadmath
42445maybe-info-target-libquadmath:
42446@if target-libquadmath
42447maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 42448
a90ef4bf
JM
42449info-target-libquadmath: \
42450 configure-target-libquadmath
0aed8855 42451 @: $(MAKE); $(unstage)
22121df0 42452 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42453 r=`${PWD_COMMAND}`; export r; \
b40e3958 42454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42455 $(NORMAL_TARGET_EXPORTS) \
22121df0 42456 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42457 for flag in $(EXTRA_TARGET_FLAGS); do \
42458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42459 done; \
a90ef4bf 42460 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42463 "RANLIB=$${RANLIB}" \
0c24b341 42464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42465 info) \
4fa63067 42466 || exit 1
3866be5d 42467
a90ef4bf 42468@endif target-libquadmath
3866be5d 42469
a90ef4bf
JM
42470.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
42471maybe-dvi-target-libquadmath:
42472@if target-libquadmath
42473maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 42474
a90ef4bf
JM
42475dvi-target-libquadmath: \
42476 configure-target-libquadmath
0aed8855 42477 @: $(MAKE); $(unstage)
22121df0 42478 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42479 r=`${PWD_COMMAND}`; export r; \
b40e3958 42480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42481 $(NORMAL_TARGET_EXPORTS) \
22121df0 42482 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42483 for flag in $(EXTRA_TARGET_FLAGS); do \
42484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42485 done; \
a90ef4bf 42486 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42489 "RANLIB=$${RANLIB}" \
0c24b341 42490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42491 dvi) \
4fa63067 42492 || exit 1
3866be5d 42493
a90ef4bf 42494@endif target-libquadmath
3866be5d 42495
a90ef4bf
JM
42496.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
42497maybe-pdf-target-libquadmath:
42498@if target-libquadmath
42499maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 42500
a90ef4bf
JM
42501pdf-target-libquadmath: \
42502 configure-target-libquadmath
56a8fe78 42503 @: $(MAKE); $(unstage)
22121df0 42504 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
42505 r=`${PWD_COMMAND}`; export r; \
42506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42507 $(NORMAL_TARGET_EXPORTS) \
22121df0 42508 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
42509 for flag in $(EXTRA_TARGET_FLAGS); do \
42510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42511 done; \
a90ef4bf 42512 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
42513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42515 "RANLIB=$${RANLIB}" \
0c24b341 42516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42517 pdf) \
42518 || exit 1
42519
a90ef4bf 42520@endif target-libquadmath
56a8fe78 42521
a90ef4bf
JM
42522.PHONY: maybe-html-target-libquadmath html-target-libquadmath
42523maybe-html-target-libquadmath:
42524@if target-libquadmath
42525maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 42526
a90ef4bf
JM
42527html-target-libquadmath: \
42528 configure-target-libquadmath
0aed8855 42529 @: $(MAKE); $(unstage)
22121df0 42530 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
42531 r=`${PWD_COMMAND}`; export r; \
42532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42533 $(NORMAL_TARGET_EXPORTS) \
22121df0 42534 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
42535 for flag in $(EXTRA_TARGET_FLAGS); do \
42536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42537 done; \
a90ef4bf 42538 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
42539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42541 "RANLIB=$${RANLIB}" \
0c24b341 42542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42543 html) \
42544 || exit 1
42545
a90ef4bf 42546@endif target-libquadmath
6d389afc 42547
a90ef4bf
JM
42548.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
42549maybe-TAGS-target-libquadmath:
42550@if target-libquadmath
42551maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 42552
a90ef4bf
JM
42553TAGS-target-libquadmath: \
42554 configure-target-libquadmath
0aed8855 42555 @: $(MAKE); $(unstage)
22121df0 42556 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
42557 r=`${PWD_COMMAND}`; export r; \
42558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42559 $(NORMAL_TARGET_EXPORTS) \
22121df0 42560 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42561 for flag in $(EXTRA_TARGET_FLAGS); do \
42562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42563 done; \
a90ef4bf 42564 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42567 "RANLIB=$${RANLIB}" \
0c24b341 42568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42569 TAGS) \
e2b9e2dc
NN
42570 || exit 1
42571
a90ef4bf 42572@endif target-libquadmath
4fa63067 42573
a90ef4bf
JM
42574.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
42575maybe-install-info-target-libquadmath:
42576@if target-libquadmath
42577maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 42578
a90ef4bf
JM
42579install-info-target-libquadmath: \
42580 configure-target-libquadmath \
42581 info-target-libquadmath
0aed8855 42582 @: $(MAKE); $(unstage)
22121df0 42583 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42584 r=`${PWD_COMMAND}`; export r; \
b40e3958 42585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42586 $(NORMAL_TARGET_EXPORTS) \
22121df0 42587 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42588 for flag in $(EXTRA_TARGET_FLAGS); do \
42589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42590 done; \
a90ef4bf 42591 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42594 "RANLIB=$${RANLIB}" \
0c24b341 42595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42596 install-info) \
4fa63067 42597 || exit 1
3866be5d 42598
a90ef4bf 42599@endif target-libquadmath
3866be5d 42600
a90ef4bf
JM
42601.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
42602maybe-install-pdf-target-libquadmath:
42603@if target-libquadmath
42604maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 42605
a90ef4bf
JM
42606install-pdf-target-libquadmath: \
42607 configure-target-libquadmath \
42608 pdf-target-libquadmath
a3ca38d2 42609 @: $(MAKE); $(unstage)
22121df0 42610 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
42611 r=`${PWD_COMMAND}`; export r; \
42612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42613 $(NORMAL_TARGET_EXPORTS) \
22121df0 42614 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
42615 for flag in $(EXTRA_TARGET_FLAGS); do \
42616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42617 done; \
a90ef4bf 42618 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
42619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42621 "RANLIB=$${RANLIB}" \
0c24b341 42622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42623 install-pdf) \
42624 || exit 1
42625
a90ef4bf 42626@endif target-libquadmath
a3ca38d2 42627
a90ef4bf
JM
42628.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
42629maybe-install-html-target-libquadmath:
42630@if target-libquadmath
42631maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 42632
a90ef4bf
JM
42633install-html-target-libquadmath: \
42634 configure-target-libquadmath \
42635 html-target-libquadmath
108a6f8e 42636 @: $(MAKE); $(unstage)
22121df0 42637 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
42638 r=`${PWD_COMMAND}`; export r; \
42639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42640 $(NORMAL_TARGET_EXPORTS) \
22121df0 42641 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
42642 for flag in $(EXTRA_TARGET_FLAGS); do \
42643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42644 done; \
a90ef4bf 42645 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
42646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42648 "RANLIB=$${RANLIB}" \
0c24b341 42649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42650 install-html) \
42651 || exit 1
42652
a90ef4bf 42653@endif target-libquadmath
108a6f8e 42654
a90ef4bf
JM
42655.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
42656maybe-installcheck-target-libquadmath:
42657@if target-libquadmath
42658maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 42659
a90ef4bf
JM
42660installcheck-target-libquadmath: \
42661 configure-target-libquadmath
0aed8855 42662 @: $(MAKE); $(unstage)
22121df0 42663 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42664 r=`${PWD_COMMAND}`; export r; \
b40e3958 42665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42666 $(NORMAL_TARGET_EXPORTS) \
22121df0 42667 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42668 for flag in $(EXTRA_TARGET_FLAGS); do \
42669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42670 done; \
a90ef4bf 42671 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42674 "RANLIB=$${RANLIB}" \
0c24b341 42675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42676 installcheck) \
4fa63067 42677 || exit 1
3866be5d 42678
a90ef4bf 42679@endif target-libquadmath
3866be5d 42680
a90ef4bf
JM
42681.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
42682maybe-mostlyclean-target-libquadmath:
42683@if target-libquadmath
42684maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 42685
a90ef4bf 42686mostlyclean-target-libquadmath:
0aed8855 42687 @: $(MAKE); $(unstage)
22121df0 42688 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42689 r=`${PWD_COMMAND}`; export r; \
b40e3958 42690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42691 $(NORMAL_TARGET_EXPORTS) \
22121df0 42692 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42693 for flag in $(EXTRA_TARGET_FLAGS); do \
42694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42695 done; \
a90ef4bf 42696 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42699 "RANLIB=$${RANLIB}" \
0c24b341 42700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42701 mostlyclean) \
4fa63067 42702 || exit 1
3866be5d 42703
a90ef4bf 42704@endif target-libquadmath
3866be5d 42705
a90ef4bf
JM
42706.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
42707maybe-clean-target-libquadmath:
42708@if target-libquadmath
42709maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 42710
a90ef4bf 42711clean-target-libquadmath:
0aed8855 42712 @: $(MAKE); $(unstage)
22121df0 42713 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
42714 r=`${PWD_COMMAND}`; export r; \
42715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42716 $(NORMAL_TARGET_EXPORTS) \
22121df0 42717 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42718 for flag in $(EXTRA_TARGET_FLAGS); do \
42719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42720 done; \
a90ef4bf 42721 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42724 "RANLIB=$${RANLIB}" \
0c24b341 42725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42726 clean) \
e2b9e2dc
NN
42727 || exit 1
42728
a90ef4bf 42729@endif target-libquadmath
3866be5d 42730
a90ef4bf
JM
42731.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
42732maybe-distclean-target-libquadmath:
42733@if target-libquadmath
42734maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 42735
a90ef4bf 42736distclean-target-libquadmath:
0aed8855 42737 @: $(MAKE); $(unstage)
22121df0 42738 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42739 r=`${PWD_COMMAND}`; export r; \
b40e3958 42740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42741 $(NORMAL_TARGET_EXPORTS) \
22121df0 42742 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42743 for flag in $(EXTRA_TARGET_FLAGS); do \
42744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42745 done; \
a90ef4bf 42746 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42749 "RANLIB=$${RANLIB}" \
0c24b341 42750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42751 distclean) \
4fa63067 42752 || exit 1
3866be5d 42753
a90ef4bf 42754@endif target-libquadmath
3866be5d 42755
a90ef4bf
JM
42756.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
42757maybe-maintainer-clean-target-libquadmath:
42758@if target-libquadmath
42759maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 42760
a90ef4bf 42761maintainer-clean-target-libquadmath:
0aed8855 42762 @: $(MAKE); $(unstage)
22121df0 42763 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42764 r=`${PWD_COMMAND}`; export r; \
b40e3958 42765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42766 $(NORMAL_TARGET_EXPORTS) \
22121df0 42767 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42768 for flag in $(EXTRA_TARGET_FLAGS); do \
42769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42770 done; \
a90ef4bf 42771 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42774 "RANLIB=$${RANLIB}" \
0c24b341 42775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42776 maintainer-clean) \
4fa63067 42777 || exit 1
3866be5d 42778
a90ef4bf 42779@endif target-libquadmath
3866be5d 42780
4fa63067 42781
4fa63067 42782
a7254363 42783
e90269c8 42784
a90ef4bf
JM
42785.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
42786maybe-configure-target-libgfortran:
e552509b 42787@if gcc-bootstrap
a90ef4bf 42788configure-target-libgfortran: stage_current
e552509b 42789@endif gcc-bootstrap
a90ef4bf
JM
42790@if target-libgfortran
42791maybe-configure-target-libgfortran: configure-target-libgfortran
42792configure-target-libgfortran:
e552509b
ILT
42793 @: $(MAKE); $(unstage)
42794 @r=`${PWD_COMMAND}`; export r; \
42795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42796 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
42797 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
42798 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42799 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
42800 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
42801 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 42802 else \
a90ef4bf
JM
42803 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
42804 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
42805 fi; \
42806 else \
a90ef4bf 42807 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 42808 fi; \
a90ef4bf 42809 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 42810 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 42811 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42812 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
42813 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
42814 case $(srcdir) in \
42815 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42816 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
42817 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42818 esac; \
1b6c0831 42819 module_srcdir=libgfortran; \
e552509b 42820 rm -f no-such-file || : ; \
1b6c0831
L
42821 CONFIG_SITE=no-such-file $(SHELL) \
42822 $$s/$$module_srcdir/configure \
42823 --srcdir=$${topdir}/$$module_srcdir \
e552509b 42824 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42825 --target=${target_alias} \
e552509b 42826 || exit 1
a90ef4bf 42827@endif target-libgfortran
e552509b
ILT
42828
42829
42830
42831
42832
a90ef4bf
JM
42833.PHONY: all-target-libgfortran maybe-all-target-libgfortran
42834maybe-all-target-libgfortran:
e552509b 42835@if gcc-bootstrap
a90ef4bf 42836all-target-libgfortran: stage_current
e552509b 42837@endif gcc-bootstrap
a90ef4bf
JM
42838@if target-libgfortran
42839TARGET-target-libgfortran=all
42840maybe-all-target-libgfortran: all-target-libgfortran
42841all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
42842 @: $(MAKE); $(unstage)
42843 @r=`${PWD_COMMAND}`; export r; \
42844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42845 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42846 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 42847 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42848 $(TARGET-target-libgfortran))
42849@endif target-libgfortran
e552509b
ILT
42850
42851
42852
42853
42854
a90ef4bf
JM
42855.PHONY: check-target-libgfortran maybe-check-target-libgfortran
42856maybe-check-target-libgfortran:
42857@if target-libgfortran
42858maybe-check-target-libgfortran: check-target-libgfortran
e552509b 42859
a90ef4bf 42860check-target-libgfortran:
e552509b
ILT
42861 @: $(MAKE); $(unstage)
42862 @r=`${PWD_COMMAND}`; export r; \
42863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42864 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42865 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42866 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
42867
a90ef4bf 42868@endif target-libgfortran
e552509b 42869
a90ef4bf
JM
42870.PHONY: install-target-libgfortran maybe-install-target-libgfortran
42871maybe-install-target-libgfortran:
42872@if target-libgfortran
42873maybe-install-target-libgfortran: install-target-libgfortran
e552509b 42874
a90ef4bf 42875install-target-libgfortran: installdirs
e552509b
ILT
42876 @: $(MAKE); $(unstage)
42877 @r=`${PWD_COMMAND}`; export r; \
42878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42879 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42880 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42881 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
42882
a90ef4bf 42883@endif target-libgfortran
e552509b 42884
a90ef4bf
JM
42885.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
42886maybe-install-strip-target-libgfortran:
42887@if target-libgfortran
42888maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 42889
a90ef4bf 42890install-strip-target-libgfortran: installdirs
9b980aa1
RW
42891 @: $(MAKE); $(unstage)
42892 @r=`${PWD_COMMAND}`; export r; \
42893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42894 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42895 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
42896 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42897
a90ef4bf 42898@endif target-libgfortran
9b980aa1 42899
e552509b
ILT
42900# Other targets (info, dvi, pdf, etc.)
42901
a90ef4bf
JM
42902.PHONY: maybe-info-target-libgfortran info-target-libgfortran
42903maybe-info-target-libgfortran:
42904@if target-libgfortran
42905maybe-info-target-libgfortran: info-target-libgfortran
e552509b 42906
a90ef4bf
JM
42907info-target-libgfortran: \
42908 configure-target-libgfortran
e552509b 42909 @: $(MAKE); $(unstage)
22121df0 42910 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42911 r=`${PWD_COMMAND}`; export r; \
42912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42913 $(NORMAL_TARGET_EXPORTS) \
22121df0 42914 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42915 for flag in $(EXTRA_TARGET_FLAGS); do \
42916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42917 done; \
a90ef4bf 42918 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42921 "RANLIB=$${RANLIB}" \
42922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42923 info) \
42924 || exit 1
42925
a90ef4bf 42926@endif target-libgfortran
e552509b 42927
a90ef4bf
JM
42928.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
42929maybe-dvi-target-libgfortran:
42930@if target-libgfortran
42931maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 42932
a90ef4bf
JM
42933dvi-target-libgfortran: \
42934 configure-target-libgfortran
e552509b 42935 @: $(MAKE); $(unstage)
22121df0 42936 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42937 r=`${PWD_COMMAND}`; export r; \
42938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42939 $(NORMAL_TARGET_EXPORTS) \
22121df0 42940 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42941 for flag in $(EXTRA_TARGET_FLAGS); do \
42942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42943 done; \
a90ef4bf 42944 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42947 "RANLIB=$${RANLIB}" \
42948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42949 dvi) \
42950 || exit 1
42951
a90ef4bf 42952@endif target-libgfortran
e552509b 42953
a90ef4bf
JM
42954.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
42955maybe-pdf-target-libgfortran:
42956@if target-libgfortran
42957maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 42958
a90ef4bf
JM
42959pdf-target-libgfortran: \
42960 configure-target-libgfortran
e552509b 42961 @: $(MAKE); $(unstage)
22121df0 42962 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42963 r=`${PWD_COMMAND}`; export r; \
42964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42965 $(NORMAL_TARGET_EXPORTS) \
22121df0 42966 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42967 for flag in $(EXTRA_TARGET_FLAGS); do \
42968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42969 done; \
a90ef4bf 42970 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42973 "RANLIB=$${RANLIB}" \
42974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42975 pdf) \
42976 || exit 1
42977
a90ef4bf 42978@endif target-libgfortran
e552509b 42979
a90ef4bf
JM
42980.PHONY: maybe-html-target-libgfortran html-target-libgfortran
42981maybe-html-target-libgfortran:
42982@if target-libgfortran
42983maybe-html-target-libgfortran: html-target-libgfortran
e552509b 42984
a90ef4bf
JM
42985html-target-libgfortran: \
42986 configure-target-libgfortran
e552509b 42987 @: $(MAKE); $(unstage)
22121df0 42988 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42989 r=`${PWD_COMMAND}`; export r; \
42990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42991 $(NORMAL_TARGET_EXPORTS) \
22121df0 42992 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42993 for flag in $(EXTRA_TARGET_FLAGS); do \
42994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42995 done; \
a90ef4bf 42996 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42999 "RANLIB=$${RANLIB}" \
43000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43001 html) \
43002 || exit 1
43003
a90ef4bf 43004@endif target-libgfortran
e552509b 43005
a90ef4bf
JM
43006.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
43007maybe-TAGS-target-libgfortran:
43008@if target-libgfortran
43009maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 43010
a90ef4bf
JM
43011TAGS-target-libgfortran: \
43012 configure-target-libgfortran
e552509b 43013 @: $(MAKE); $(unstage)
22121df0 43014 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43015 r=`${PWD_COMMAND}`; export r; \
43016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43017 $(NORMAL_TARGET_EXPORTS) \
22121df0 43018 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43019 for flag in $(EXTRA_TARGET_FLAGS); do \
43020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43021 done; \
a90ef4bf 43022 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43025 "RANLIB=$${RANLIB}" \
43026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43027 TAGS) \
43028 || exit 1
43029
a90ef4bf 43030@endif target-libgfortran
e552509b 43031
a90ef4bf
JM
43032.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
43033maybe-install-info-target-libgfortran:
43034@if target-libgfortran
43035maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 43036
a90ef4bf
JM
43037install-info-target-libgfortran: \
43038 configure-target-libgfortran \
43039 info-target-libgfortran
e552509b 43040 @: $(MAKE); $(unstage)
22121df0 43041 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43042 r=`${PWD_COMMAND}`; export r; \
43043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43044 $(NORMAL_TARGET_EXPORTS) \
22121df0 43045 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43046 for flag in $(EXTRA_TARGET_FLAGS); do \
43047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43048 done; \
a90ef4bf 43049 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43052 "RANLIB=$${RANLIB}" \
43053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43054 install-info) \
43055 || exit 1
43056
a90ef4bf 43057@endif target-libgfortran
e552509b 43058
a90ef4bf
JM
43059.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
43060maybe-install-pdf-target-libgfortran:
43061@if target-libgfortran
43062maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 43063
a90ef4bf
JM
43064install-pdf-target-libgfortran: \
43065 configure-target-libgfortran \
43066 pdf-target-libgfortran
e552509b 43067 @: $(MAKE); $(unstage)
22121df0 43068 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43069 r=`${PWD_COMMAND}`; export r; \
43070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43071 $(NORMAL_TARGET_EXPORTS) \
22121df0 43072 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43073 for flag in $(EXTRA_TARGET_FLAGS); do \
43074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43075 done; \
a90ef4bf 43076 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43079 "RANLIB=$${RANLIB}" \
43080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43081 install-pdf) \
43082 || exit 1
43083
a90ef4bf 43084@endif target-libgfortran
e552509b 43085
a90ef4bf
JM
43086.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
43087maybe-install-html-target-libgfortran:
43088@if target-libgfortran
43089maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 43090
a90ef4bf
JM
43091install-html-target-libgfortran: \
43092 configure-target-libgfortran \
43093 html-target-libgfortran
e552509b 43094 @: $(MAKE); $(unstage)
22121df0 43095 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43096 r=`${PWD_COMMAND}`; export r; \
43097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43098 $(NORMAL_TARGET_EXPORTS) \
22121df0 43099 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43100 for flag in $(EXTRA_TARGET_FLAGS); do \
43101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43102 done; \
a90ef4bf 43103 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43106 "RANLIB=$${RANLIB}" \
43107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43108 install-html) \
43109 || exit 1
43110
a90ef4bf 43111@endif target-libgfortran
e552509b 43112
a90ef4bf
JM
43113.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
43114maybe-installcheck-target-libgfortran:
43115@if target-libgfortran
43116maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 43117
a90ef4bf
JM
43118installcheck-target-libgfortran: \
43119 configure-target-libgfortran
e552509b 43120 @: $(MAKE); $(unstage)
22121df0 43121 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43122 r=`${PWD_COMMAND}`; export r; \
43123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43124 $(NORMAL_TARGET_EXPORTS) \
22121df0 43125 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43126 for flag in $(EXTRA_TARGET_FLAGS); do \
43127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43128 done; \
a90ef4bf 43129 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43132 "RANLIB=$${RANLIB}" \
43133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43134 installcheck) \
43135 || exit 1
43136
a90ef4bf 43137@endif target-libgfortran
e552509b 43138
a90ef4bf
JM
43139.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
43140maybe-mostlyclean-target-libgfortran:
43141@if target-libgfortran
43142maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 43143
a90ef4bf 43144mostlyclean-target-libgfortran:
e552509b 43145 @: $(MAKE); $(unstage)
22121df0 43146 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43147 r=`${PWD_COMMAND}`; export r; \
43148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43149 $(NORMAL_TARGET_EXPORTS) \
22121df0 43150 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43151 for flag in $(EXTRA_TARGET_FLAGS); do \
43152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43153 done; \
a90ef4bf 43154 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43157 "RANLIB=$${RANLIB}" \
43158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43159 mostlyclean) \
43160 || exit 1
43161
a90ef4bf 43162@endif target-libgfortran
e552509b 43163
a90ef4bf
JM
43164.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
43165maybe-clean-target-libgfortran:
43166@if target-libgfortran
43167maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 43168
a90ef4bf 43169clean-target-libgfortran:
e552509b 43170 @: $(MAKE); $(unstage)
22121df0 43171 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43172 r=`${PWD_COMMAND}`; export r; \
43173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43174 $(NORMAL_TARGET_EXPORTS) \
22121df0 43175 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43176 for flag in $(EXTRA_TARGET_FLAGS); do \
43177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43178 done; \
a90ef4bf 43179 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43182 "RANLIB=$${RANLIB}" \
43183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43184 clean) \
43185 || exit 1
43186
a90ef4bf 43187@endif target-libgfortran
e552509b 43188
a90ef4bf
JM
43189.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
43190maybe-distclean-target-libgfortran:
43191@if target-libgfortran
43192maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 43193
a90ef4bf 43194distclean-target-libgfortran:
e552509b 43195 @: $(MAKE); $(unstage)
22121df0 43196 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43197 r=`${PWD_COMMAND}`; export r; \
43198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43199 $(NORMAL_TARGET_EXPORTS) \
22121df0 43200 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43201 for flag in $(EXTRA_TARGET_FLAGS); do \
43202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43203 done; \
a90ef4bf 43204 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43207 "RANLIB=$${RANLIB}" \
43208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43209 distclean) \
43210 || exit 1
43211
a90ef4bf 43212@endif target-libgfortran
e552509b 43213
a90ef4bf
JM
43214.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
43215maybe-maintainer-clean-target-libgfortran:
43216@if target-libgfortran
43217maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 43218
a90ef4bf 43219maintainer-clean-target-libgfortran:
e552509b 43220 @: $(MAKE); $(unstage)
22121df0 43221 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43222 r=`${PWD_COMMAND}`; export r; \
43223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43224 $(NORMAL_TARGET_EXPORTS) \
22121df0 43225 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43226 for flag in $(EXTRA_TARGET_FLAGS); do \
43227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43228 done; \
a90ef4bf 43229 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43232 "RANLIB=$${RANLIB}" \
43233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43234 maintainer-clean) \
43235 || exit 1
43236
a90ef4bf 43237@endif target-libgfortran
e552509b
ILT
43238
43239
43240
43241
43242
a90ef4bf
JM
43243.PHONY: configure-target-libobjc maybe-configure-target-libobjc
43244maybe-configure-target-libobjc:
4f0ef2d8 43245@if gcc-bootstrap
a90ef4bf 43246configure-target-libobjc: stage_current
4f0ef2d8 43247@endif gcc-bootstrap
a90ef4bf
JM
43248@if target-libobjc
43249maybe-configure-target-libobjc: configure-target-libobjc
43250configure-target-libobjc:
0aed8855
PB
43251 @: $(MAKE); $(unstage)
43252 @r=`${PWD_COMMAND}`; export r; \
43253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43254 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
43255 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
43256 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43257 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
43258 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
43259 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 43260 else \
a90ef4bf
JM
43261 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
43262 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
43263 fi; \
43264 else \
a90ef4bf 43265 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 43266 fi; \
a90ef4bf 43267 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 43268 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 43269 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43270 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
43271 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 43272 case $(srcdir) in \
b00612cc 43273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43274 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 43275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 43276 esac; \
1b6c0831 43277 module_srcdir=libobjc; \
4fa63067 43278 rm -f no-such-file || : ; \
1b6c0831
L
43279 CONFIG_SITE=no-such-file $(SHELL) \
43280 $$s/$$module_srcdir/configure \
43281 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43282 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43283 --target=${target_alias} \
e2b9e2dc 43284 || exit 1
a90ef4bf 43285@endif target-libobjc
e2b9e2dc 43286
a7254363
PB
43287
43288
d545f33b
PB
43289
43290
a90ef4bf
JM
43291.PHONY: all-target-libobjc maybe-all-target-libobjc
43292maybe-all-target-libobjc:
4f0ef2d8 43293@if gcc-bootstrap
a90ef4bf 43294all-target-libobjc: stage_current
4f0ef2d8 43295@endif gcc-bootstrap
a90ef4bf
JM
43296@if target-libobjc
43297TARGET-target-libobjc=all
43298maybe-all-target-libobjc: all-target-libobjc
43299all-target-libobjc: configure-target-libobjc
0aed8855 43300 @: $(MAKE); $(unstage)
b40e3958
L
43301 @r=`${PWD_COMMAND}`; export r; \
43302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43303 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43304 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 43305 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43306 $(TARGET-target-libobjc))
43307@endif target-libobjc
3866be5d 43308
a7254363
PB
43309
43310
d545f33b
PB
43311
43312
a90ef4bf
JM
43313.PHONY: check-target-libobjc maybe-check-target-libobjc
43314maybe-check-target-libobjc:
43315@if target-libobjc
43316maybe-check-target-libobjc: check-target-libobjc
3866be5d 43317
a90ef4bf
JM
43318check-target-libobjc:
43319 @: $(MAKE); $(unstage)
43320 @r=`${PWD_COMMAND}`; export r; \
43321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43322 $(NORMAL_TARGET_EXPORTS) \
43323 (cd $(TARGET_SUBDIR)/libobjc && \
43324 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 43325
a90ef4bf 43326@endif target-libobjc
4fa63067 43327
a90ef4bf
JM
43328.PHONY: install-target-libobjc maybe-install-target-libobjc
43329maybe-install-target-libobjc:
43330@if target-libobjc
43331maybe-install-target-libobjc: install-target-libobjc
4fa63067 43332
a90ef4bf 43333install-target-libobjc: installdirs
0aed8855 43334 @: $(MAKE); $(unstage)
b40e3958
L
43335 @r=`${PWD_COMMAND}`; export r; \
43336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43337 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43338 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 43339 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 43340
a90ef4bf 43341@endif target-libobjc
3866be5d 43342
a90ef4bf
JM
43343.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
43344maybe-install-strip-target-libobjc:
43345@if target-libobjc
43346maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 43347
a90ef4bf 43348install-strip-target-libobjc: installdirs
9b980aa1
RW
43349 @: $(MAKE); $(unstage)
43350 @r=`${PWD_COMMAND}`; export r; \
43351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43352 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43353 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
43354 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43355
a90ef4bf 43356@endif target-libobjc
9b980aa1 43357
56a8fe78 43358# Other targets (info, dvi, pdf, etc.)
16ae0395 43359
a90ef4bf
JM
43360.PHONY: maybe-info-target-libobjc info-target-libobjc
43361maybe-info-target-libobjc:
43362@if target-libobjc
43363maybe-info-target-libobjc: info-target-libobjc
6d389afc 43364
a90ef4bf
JM
43365info-target-libobjc: \
43366 configure-target-libobjc
0aed8855 43367 @: $(MAKE); $(unstage)
22121df0 43368 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
43369 r=`${PWD_COMMAND}`; export r; \
43370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43371 $(NORMAL_TARGET_EXPORTS) \
22121df0 43372 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
43373 for flag in $(EXTRA_TARGET_FLAGS); do \
43374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43375 done; \
a90ef4bf 43376 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
43377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43379 "RANLIB=$${RANLIB}" \
0c24b341 43380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43381 info) \
43382 || exit 1
43383
a90ef4bf 43384@endif target-libobjc
6d389afc 43385
a90ef4bf
JM
43386.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
43387maybe-dvi-target-libobjc:
43388@if target-libobjc
43389maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 43390
a90ef4bf
JM
43391dvi-target-libobjc: \
43392 configure-target-libobjc
0aed8855 43393 @: $(MAKE); $(unstage)
22121df0 43394 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43395 r=`${PWD_COMMAND}`; export r; \
b40e3958 43396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43397 $(NORMAL_TARGET_EXPORTS) \
22121df0 43398 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43399 for flag in $(EXTRA_TARGET_FLAGS); do \
43400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43401 done; \
a90ef4bf 43402 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43405 "RANLIB=$${RANLIB}" \
0c24b341 43406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 43407 dvi) \
4fa63067 43408 || exit 1
3866be5d 43409
a90ef4bf 43410@endif target-libobjc
3866be5d 43411
a90ef4bf
JM
43412.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
43413maybe-pdf-target-libobjc:
43414@if target-libobjc
43415maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 43416
a90ef4bf
JM
43417pdf-target-libobjc: \
43418 configure-target-libobjc
56a8fe78 43419 @: $(MAKE); $(unstage)
22121df0 43420 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
43421 r=`${PWD_COMMAND}`; export r; \
43422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43423 $(NORMAL_TARGET_EXPORTS) \
22121df0 43424 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
43425 for flag in $(EXTRA_TARGET_FLAGS); do \
43426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43427 done; \
a90ef4bf 43428 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
43429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43431 "RANLIB=$${RANLIB}" \
0c24b341 43432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43433 pdf) \
43434 || exit 1
43435
a90ef4bf 43436@endif target-libobjc
56a8fe78 43437
a90ef4bf
JM
43438.PHONY: maybe-html-target-libobjc html-target-libobjc
43439maybe-html-target-libobjc:
43440@if target-libobjc
43441maybe-html-target-libobjc: html-target-libobjc
4fa63067 43442
a90ef4bf
JM
43443html-target-libobjc: \
43444 configure-target-libobjc
0aed8855 43445 @: $(MAKE); $(unstage)
22121df0 43446 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
43447 r=`${PWD_COMMAND}`; export r; \
43448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43449 $(NORMAL_TARGET_EXPORTS) \
22121df0 43450 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43451 for flag in $(EXTRA_TARGET_FLAGS); do \
43452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43453 done; \
a90ef4bf 43454 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43457 "RANLIB=$${RANLIB}" \
0c24b341 43458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 43459 html) \
e2b9e2dc
NN
43460 || exit 1
43461
a90ef4bf 43462@endif target-libobjc
4fa63067 43463
a90ef4bf
JM
43464.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
43465maybe-TAGS-target-libobjc:
43466@if target-libobjc
43467maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 43468
a90ef4bf
JM
43469TAGS-target-libobjc: \
43470 configure-target-libobjc
0aed8855 43471 @: $(MAKE); $(unstage)
22121df0 43472 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43473 r=`${PWD_COMMAND}`; export r; \
b40e3958 43474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43475 $(NORMAL_TARGET_EXPORTS) \
22121df0 43476 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43477 for flag in $(EXTRA_TARGET_FLAGS); do \
43478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43479 done; \
a90ef4bf 43480 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43483 "RANLIB=$${RANLIB}" \
0c24b341 43484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43485 TAGS) \
4fa63067 43486 || exit 1
3866be5d 43487
a90ef4bf 43488@endif target-libobjc
3866be5d 43489
a90ef4bf
JM
43490.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
43491maybe-install-info-target-libobjc:
43492@if target-libobjc
43493maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 43494
a90ef4bf
JM
43495install-info-target-libobjc: \
43496 configure-target-libobjc \
43497 info-target-libobjc
0aed8855 43498 @: $(MAKE); $(unstage)
22121df0 43499 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
43500 r=`${PWD_COMMAND}`; export r; \
43501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43502 $(NORMAL_TARGET_EXPORTS) \
22121df0 43503 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43504 for flag in $(EXTRA_TARGET_FLAGS); do \
43505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43506 done; \
a90ef4bf 43507 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43510 "RANLIB=$${RANLIB}" \
0c24b341 43511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43512 install-info) \
4fa63067 43513 || exit 1
3866be5d 43514
a90ef4bf 43515@endif target-libobjc
16ae0395 43516
a90ef4bf
JM
43517.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
43518maybe-install-pdf-target-libobjc:
43519@if target-libobjc
43520maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 43521
a90ef4bf
JM
43522install-pdf-target-libobjc: \
43523 configure-target-libobjc \
43524 pdf-target-libobjc
a3ca38d2 43525 @: $(MAKE); $(unstage)
22121df0 43526 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
43527 r=`${PWD_COMMAND}`; export r; \
43528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43529 $(NORMAL_TARGET_EXPORTS) \
22121df0 43530 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
43531 for flag in $(EXTRA_TARGET_FLAGS); do \
43532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43533 done; \
a90ef4bf 43534 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
43535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43537 "RANLIB=$${RANLIB}" \
0c24b341 43538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43539 install-pdf) \
43540 || exit 1
43541
a90ef4bf 43542@endif target-libobjc
a3ca38d2 43543
a90ef4bf
JM
43544.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
43545maybe-install-html-target-libobjc:
43546@if target-libobjc
43547maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 43548
a90ef4bf
JM
43549install-html-target-libobjc: \
43550 configure-target-libobjc \
43551 html-target-libobjc
108a6f8e 43552 @: $(MAKE); $(unstage)
22121df0 43553 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
43554 r=`${PWD_COMMAND}`; export r; \
43555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43556 $(NORMAL_TARGET_EXPORTS) \
22121df0 43557 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
43558 for flag in $(EXTRA_TARGET_FLAGS); do \
43559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43560 done; \
a90ef4bf 43561 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
43562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43564 "RANLIB=$${RANLIB}" \
0c24b341 43565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43566 install-html) \
43567 || exit 1
43568
a90ef4bf 43569@endif target-libobjc
108a6f8e 43570
a90ef4bf
JM
43571.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
43572maybe-installcheck-target-libobjc:
43573@if target-libobjc
43574maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 43575
a90ef4bf
JM
43576installcheck-target-libobjc: \
43577 configure-target-libobjc
0aed8855 43578 @: $(MAKE); $(unstage)
22121df0 43579 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43580 r=`${PWD_COMMAND}`; export r; \
b40e3958 43581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43582 $(NORMAL_TARGET_EXPORTS) \
22121df0 43583 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43584 for flag in $(EXTRA_TARGET_FLAGS); do \
43585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43586 done; \
a90ef4bf 43587 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43590 "RANLIB=$${RANLIB}" \
0c24b341 43591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43592 installcheck) \
4fa63067 43593 || exit 1
3866be5d 43594
a90ef4bf 43595@endif target-libobjc
3866be5d 43596
a90ef4bf
JM
43597.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
43598maybe-mostlyclean-target-libobjc:
43599@if target-libobjc
43600maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 43601
a90ef4bf
JM
43602mostlyclean-target-libobjc:
43603 @: $(MAKE); $(unstage)
22121df0 43604 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43605 r=`${PWD_COMMAND}`; export r; \
43606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43607 $(NORMAL_TARGET_EXPORTS) \
22121df0 43608 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43609 for flag in $(EXTRA_TARGET_FLAGS); do \
43610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43611 done; \
43612 (cd $(TARGET_SUBDIR)/libobjc && \
43613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43615 "RANLIB=$${RANLIB}" \
43616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43617 mostlyclean) \
43618 || exit 1
4fa63067 43619
a90ef4bf 43620@endif target-libobjc
4fa63067 43621
a90ef4bf
JM
43622.PHONY: maybe-clean-target-libobjc clean-target-libobjc
43623maybe-clean-target-libobjc:
43624@if target-libobjc
43625maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 43626
a90ef4bf
JM
43627clean-target-libobjc:
43628 @: $(MAKE); $(unstage)
22121df0 43629 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43630 r=`${PWD_COMMAND}`; export r; \
43631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43632 $(NORMAL_TARGET_EXPORTS) \
22121df0 43633 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43634 for flag in $(EXTRA_TARGET_FLAGS); do \
43635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43636 done; \
43637 (cd $(TARGET_SUBDIR)/libobjc && \
43638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43640 "RANLIB=$${RANLIB}" \
43641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43642 clean) \
43643 || exit 1
4fa63067 43644
a90ef4bf 43645@endif target-libobjc
4fa63067 43646
a90ef4bf
JM
43647.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
43648maybe-distclean-target-libobjc:
43649@if target-libobjc
43650maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 43651
a90ef4bf
JM
43652distclean-target-libobjc:
43653 @: $(MAKE); $(unstage)
22121df0 43654 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43655 r=`${PWD_COMMAND}`; export r; \
43656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43657 $(NORMAL_TARGET_EXPORTS) \
22121df0 43658 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43659 for flag in $(EXTRA_TARGET_FLAGS); do \
43660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43661 done; \
43662 (cd $(TARGET_SUBDIR)/libobjc && \
43663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43665 "RANLIB=$${RANLIB}" \
43666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43667 distclean) \
43668 || exit 1
4fa63067 43669
a90ef4bf 43670@endif target-libobjc
4fa63067 43671
a90ef4bf
JM
43672.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
43673maybe-maintainer-clean-target-libobjc:
43674@if target-libobjc
43675maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 43676
a90ef4bf
JM
43677maintainer-clean-target-libobjc:
43678 @: $(MAKE); $(unstage)
22121df0 43679 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43680 r=`${PWD_COMMAND}`; export r; \
43681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43682 $(NORMAL_TARGET_EXPORTS) \
22121df0 43683 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43684 for flag in $(EXTRA_TARGET_FLAGS); do \
43685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43686 done; \
43687 (cd $(TARGET_SUBDIR)/libobjc && \
43688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43690 "RANLIB=$${RANLIB}" \
43691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43692 maintainer-clean) \
43693 || exit 1
4fa63067 43694
a90ef4bf 43695@endif target-libobjc
4fa63067
NN
43696
43697
4fa63067 43698
4fa63067 43699
a7254363 43700
a90ef4bf
JM
43701.PHONY: configure-target-libgo maybe-configure-target-libgo
43702maybe-configure-target-libgo:
4f0ef2d8 43703@if gcc-bootstrap
a90ef4bf 43704configure-target-libgo: stage_current
4f0ef2d8 43705@endif gcc-bootstrap
a90ef4bf
JM
43706@if target-libgo
43707maybe-configure-target-libgo: configure-target-libgo
43708configure-target-libgo:
0aed8855
PB
43709 @: $(MAKE); $(unstage)
43710 @r=`${PWD_COMMAND}`; export r; \
43711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43712 echo "Checking multilib configuration for libgo..."; \
22121df0
L
43713 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
43714 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43715 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
43716 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
43717 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 43718 else \
a90ef4bf
JM
43719 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
43720 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
43721 fi; \
43722 else \
a90ef4bf 43723 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 43724 fi; \
a90ef4bf 43725 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 43726 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 43727 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43728 echo Configuring in $(TARGET_SUBDIR)/libgo; \
43729 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 43730 case $(srcdir) in \
b00612cc 43731 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43732 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 43733 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 43734 esac; \
1b6c0831 43735 module_srcdir=libgo; \
4fa63067 43736 rm -f no-such-file || : ; \
1b6c0831
L
43737 CONFIG_SITE=no-such-file $(SHELL) \
43738 $$s/$$module_srcdir/configure \
43739 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43740 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43741 --target=${target_alias} \
e2b9e2dc 43742 || exit 1
a90ef4bf 43743@endif target-libgo
e2b9e2dc 43744
a7254363
PB
43745
43746
d545f33b
PB
43747
43748
a90ef4bf
JM
43749.PHONY: all-target-libgo maybe-all-target-libgo
43750maybe-all-target-libgo:
4f0ef2d8 43751@if gcc-bootstrap
a90ef4bf 43752all-target-libgo: stage_current
4f0ef2d8 43753@endif gcc-bootstrap
a90ef4bf
JM
43754@if target-libgo
43755TARGET-target-libgo=all
43756maybe-all-target-libgo: all-target-libgo
43757all-target-libgo: configure-target-libgo
0aed8855 43758 @: $(MAKE); $(unstage)
b40e3958
L
43759 @r=`${PWD_COMMAND}`; export r; \
43760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43761 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43762 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 43763 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43764 $(TARGET-target-libgo))
43765@endif target-libgo
3866be5d 43766
a7254363
PB
43767
43768
d545f33b
PB
43769
43770
a90ef4bf
JM
43771.PHONY: check-target-libgo maybe-check-target-libgo
43772maybe-check-target-libgo:
43773@if target-libgo
43774maybe-check-target-libgo: check-target-libgo
3866be5d 43775
a90ef4bf 43776check-target-libgo:
0aed8855 43777 @: $(MAKE); $(unstage)
4fa63067
NN
43778 @r=`${PWD_COMMAND}`; export r; \
43779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43780 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43781 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 43782 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 43783
a90ef4bf 43784@endif target-libgo
3866be5d 43785
a90ef4bf
JM
43786.PHONY: install-target-libgo maybe-install-target-libgo
43787maybe-install-target-libgo:
43788@if target-libgo
43789maybe-install-target-libgo: install-target-libgo
16ae0395 43790
a90ef4bf 43791install-target-libgo: installdirs
0aed8855 43792 @: $(MAKE); $(unstage)
4fa63067
NN
43793 @r=`${PWD_COMMAND}`; export r; \
43794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43795 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43796 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 43797 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 43798
a90ef4bf 43799@endif target-libgo
3866be5d 43800
a90ef4bf
JM
43801.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
43802maybe-install-strip-target-libgo:
43803@if target-libgo
43804maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 43805
a90ef4bf 43806install-strip-target-libgo: installdirs
9b980aa1
RW
43807 @: $(MAKE); $(unstage)
43808 @r=`${PWD_COMMAND}`; export r; \
43809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43810 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43811 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
43812 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43813
a90ef4bf 43814@endif target-libgo
9b980aa1 43815
56a8fe78 43816# Other targets (info, dvi, pdf, etc.)
4fa63067 43817
a90ef4bf
JM
43818.PHONY: maybe-info-target-libgo info-target-libgo
43819maybe-info-target-libgo:
43820@if target-libgo
43821maybe-info-target-libgo: info-target-libgo
4fa63067 43822
a90ef4bf
JM
43823info-target-libgo: \
43824 configure-target-libgo
0aed8855 43825 @: $(MAKE); $(unstage)
22121df0 43826 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43827 r=`${PWD_COMMAND}`; export r; \
43828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43829 $(NORMAL_TARGET_EXPORTS) \
22121df0 43830 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43831 for flag in $(EXTRA_TARGET_FLAGS); do \
43832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43833 done; \
a90ef4bf 43834 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43837 "RANLIB=$${RANLIB}" \
0c24b341 43838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43839 info) \
e2b9e2dc
NN
43840 || exit 1
43841
a90ef4bf 43842@endif target-libgo
3866be5d 43843
a90ef4bf
JM
43844.PHONY: maybe-dvi-target-libgo dvi-target-libgo
43845maybe-dvi-target-libgo:
43846@if target-libgo
43847maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 43848
a90ef4bf
JM
43849dvi-target-libgo: \
43850 configure-target-libgo
0aed8855 43851 @: $(MAKE); $(unstage)
22121df0 43852 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43853 r=`${PWD_COMMAND}`; export r; \
b40e3958 43854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43855 $(NORMAL_TARGET_EXPORTS) \
22121df0 43856 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43857 for flag in $(EXTRA_TARGET_FLAGS); do \
43858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43859 done; \
a90ef4bf 43860 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43863 "RANLIB=$${RANLIB}" \
0c24b341 43864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43865 dvi) \
4fa63067 43866 || exit 1
3866be5d 43867
a90ef4bf 43868@endif target-libgo
3866be5d 43869
a90ef4bf
JM
43870.PHONY: maybe-pdf-target-libgo pdf-target-libgo
43871maybe-pdf-target-libgo:
43872@if target-libgo
43873maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 43874
a90ef4bf
JM
43875pdf-target-libgo: \
43876 configure-target-libgo
56a8fe78 43877 @: $(MAKE); $(unstage)
22121df0 43878 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
43879 r=`${PWD_COMMAND}`; export r; \
43880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43881 $(NORMAL_TARGET_EXPORTS) \
22121df0 43882 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
43883 for flag in $(EXTRA_TARGET_FLAGS); do \
43884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43885 done; \
a90ef4bf 43886 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
43887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43889 "RANLIB=$${RANLIB}" \
0c24b341 43890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43891 pdf) \
43892 || exit 1
43893
a90ef4bf 43894@endif target-libgo
56a8fe78 43895
a90ef4bf
JM
43896.PHONY: maybe-html-target-libgo html-target-libgo
43897maybe-html-target-libgo:
43898@if target-libgo
43899maybe-html-target-libgo: html-target-libgo
6d389afc 43900
a90ef4bf
JM
43901html-target-libgo: \
43902 configure-target-libgo
0aed8855 43903 @: $(MAKE); $(unstage)
22121df0 43904 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
43905 r=`${PWD_COMMAND}`; export r; \
43906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43907 $(NORMAL_TARGET_EXPORTS) \
22121df0 43908 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
43909 for flag in $(EXTRA_TARGET_FLAGS); do \
43910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43911 done; \
a90ef4bf 43912 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
43913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43915 "RANLIB=$${RANLIB}" \
0c24b341 43916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43917 html) \
43918 || exit 1
43919
a90ef4bf 43920@endif target-libgo
6d389afc 43921
a90ef4bf
JM
43922.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
43923maybe-TAGS-target-libgo:
43924@if target-libgo
43925maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 43926
a90ef4bf
JM
43927TAGS-target-libgo: \
43928 configure-target-libgo
0aed8855 43929 @: $(MAKE); $(unstage)
22121df0 43930 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43931 r=`${PWD_COMMAND}`; export r; \
b40e3958 43932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43933 $(NORMAL_TARGET_EXPORTS) \
22121df0 43934 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43935 for flag in $(EXTRA_TARGET_FLAGS); do \
43936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43937 done; \
a90ef4bf 43938 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43941 "RANLIB=$${RANLIB}" \
0c24b341 43942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43943 TAGS) \
4fa63067 43944 || exit 1
3866be5d 43945
a90ef4bf 43946@endif target-libgo
3866be5d 43947
a90ef4bf
JM
43948.PHONY: maybe-install-info-target-libgo install-info-target-libgo
43949maybe-install-info-target-libgo:
43950@if target-libgo
43951maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 43952
a90ef4bf
JM
43953install-info-target-libgo: \
43954 configure-target-libgo \
43955 info-target-libgo
0aed8855 43956 @: $(MAKE); $(unstage)
22121df0 43957 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43958 r=`${PWD_COMMAND}`; export r; \
43959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43960 $(NORMAL_TARGET_EXPORTS) \
22121df0 43961 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43962 for flag in $(EXTRA_TARGET_FLAGS); do \
43963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43964 done; \
a90ef4bf 43965 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43968 "RANLIB=$${RANLIB}" \
0c24b341 43969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43970 install-info) \
e2b9e2dc
NN
43971 || exit 1
43972
a90ef4bf 43973@endif target-libgo
4fa63067 43974
a90ef4bf
JM
43975.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
43976maybe-install-pdf-target-libgo:
43977@if target-libgo
43978maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 43979
a90ef4bf
JM
43980install-pdf-target-libgo: \
43981 configure-target-libgo \
43982 pdf-target-libgo
a3ca38d2 43983 @: $(MAKE); $(unstage)
22121df0 43984 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
43985 r=`${PWD_COMMAND}`; export r; \
43986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43987 $(NORMAL_TARGET_EXPORTS) \
22121df0 43988 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
43989 for flag in $(EXTRA_TARGET_FLAGS); do \
43990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43991 done; \
a90ef4bf 43992 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
43993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43995 "RANLIB=$${RANLIB}" \
0c24b341 43996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43997 install-pdf) \
43998 || exit 1
43999
a90ef4bf 44000@endif target-libgo
a3ca38d2 44001
a90ef4bf
JM
44002.PHONY: maybe-install-html-target-libgo install-html-target-libgo
44003maybe-install-html-target-libgo:
44004@if target-libgo
44005maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 44006
a90ef4bf
JM
44007install-html-target-libgo: \
44008 configure-target-libgo \
44009 html-target-libgo
108a6f8e 44010 @: $(MAKE); $(unstage)
22121df0 44011 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
44012 r=`${PWD_COMMAND}`; export r; \
44013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44014 $(NORMAL_TARGET_EXPORTS) \
22121df0 44015 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
44016 for flag in $(EXTRA_TARGET_FLAGS); do \
44017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44018 done; \
a90ef4bf 44019 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
44020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44022 "RANLIB=$${RANLIB}" \
0c24b341 44023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44024 install-html) \
44025 || exit 1
44026
a90ef4bf 44027@endif target-libgo
108a6f8e 44028
a90ef4bf
JM
44029.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
44030maybe-installcheck-target-libgo:
44031@if target-libgo
44032maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 44033
a90ef4bf
JM
44034installcheck-target-libgo: \
44035 configure-target-libgo
0aed8855 44036 @: $(MAKE); $(unstage)
22121df0 44037 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44038 r=`${PWD_COMMAND}`; export r; \
b40e3958 44039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44040 $(NORMAL_TARGET_EXPORTS) \
22121df0 44041 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44042 for flag in $(EXTRA_TARGET_FLAGS); do \
44043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44044 done; \
a90ef4bf 44045 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44048 "RANLIB=$${RANLIB}" \
0c24b341 44049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44050 installcheck) \
4fa63067 44051 || exit 1
3866be5d 44052
a90ef4bf 44053@endif target-libgo
3866be5d 44054
a90ef4bf
JM
44055.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
44056maybe-mostlyclean-target-libgo:
44057@if target-libgo
44058maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 44059
a90ef4bf 44060mostlyclean-target-libgo:
0aed8855 44061 @: $(MAKE); $(unstage)
22121df0 44062 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44063 r=`${PWD_COMMAND}`; export r; \
b40e3958 44064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44065 $(NORMAL_TARGET_EXPORTS) \
22121df0 44066 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44067 for flag in $(EXTRA_TARGET_FLAGS); do \
44068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44069 done; \
a90ef4bf 44070 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44073 "RANLIB=$${RANLIB}" \
0c24b341 44074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44075 mostlyclean) \
4fa63067 44076 || exit 1
3866be5d 44077
a90ef4bf 44078@endif target-libgo
3866be5d 44079
a90ef4bf
JM
44080.PHONY: maybe-clean-target-libgo clean-target-libgo
44081maybe-clean-target-libgo:
44082@if target-libgo
44083maybe-clean-target-libgo: clean-target-libgo
16ae0395 44084
a90ef4bf 44085clean-target-libgo:
0aed8855 44086 @: $(MAKE); $(unstage)
22121df0 44087 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44088 r=`${PWD_COMMAND}`; export r; \
b40e3958 44089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44090 $(NORMAL_TARGET_EXPORTS) \
22121df0 44091 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44092 for flag in $(EXTRA_TARGET_FLAGS); do \
44093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44094 done; \
a90ef4bf 44095 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44098 "RANLIB=$${RANLIB}" \
0c24b341 44099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44100 clean) \
4fa63067 44101 || exit 1
3866be5d 44102
a90ef4bf 44103@endif target-libgo
3866be5d 44104
a90ef4bf
JM
44105.PHONY: maybe-distclean-target-libgo distclean-target-libgo
44106maybe-distclean-target-libgo:
44107@if target-libgo
44108maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 44109
a90ef4bf 44110distclean-target-libgo:
0aed8855 44111 @: $(MAKE); $(unstage)
22121df0 44112 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
44113 r=`${PWD_COMMAND}`; export r; \
44114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44115 $(NORMAL_TARGET_EXPORTS) \
22121df0 44116 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44117 for flag in $(EXTRA_TARGET_FLAGS); do \
44118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44119 done; \
a90ef4bf 44120 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44123 "RANLIB=$${RANLIB}" \
0c24b341 44124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44125 distclean) \
e2b9e2dc
NN
44126 || exit 1
44127
a90ef4bf 44128@endif target-libgo
3866be5d 44129
a90ef4bf
JM
44130.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
44131maybe-maintainer-clean-target-libgo:
44132@if target-libgo
44133maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 44134
a90ef4bf 44135maintainer-clean-target-libgo:
0aed8855 44136 @: $(MAKE); $(unstage)
22121df0 44137 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44138 r=`${PWD_COMMAND}`; export r; \
b40e3958 44139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44140 $(NORMAL_TARGET_EXPORTS) \
22121df0 44141 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44142 for flag in $(EXTRA_TARGET_FLAGS); do \
44143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44144 done; \
a90ef4bf 44145 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44148 "RANLIB=$${RANLIB}" \
0c24b341 44149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44150 maintainer-clean) \
4fa63067 44151 || exit 1
3866be5d 44152
a90ef4bf 44153@endif target-libgo
3866be5d 44154
16ae0395 44155
3866be5d 44156
e90269c8 44157
a7254363 44158
a90ef4bf
JM
44159.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
44160maybe-configure-target-libtermcap:
4f0ef2d8 44161@if gcc-bootstrap
a90ef4bf 44162configure-target-libtermcap: stage_current
4f0ef2d8 44163@endif gcc-bootstrap
a90ef4bf
JM
44164@if target-libtermcap
44165maybe-configure-target-libtermcap: configure-target-libtermcap
44166configure-target-libtermcap:
0aed8855
PB
44167 @: $(MAKE); $(unstage)
44168 @r=`${PWD_COMMAND}`; export r; \
44169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44170 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
44171 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
44172 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44173 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
44174 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
44175 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 44176 else \
a90ef4bf
JM
44177 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
44178 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
44179 fi; \
44180 else \
a90ef4bf 44181 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 44182 fi; \
a90ef4bf 44183 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 44184 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 44185 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44186 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
44187 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 44188 case $(srcdir) in \
b00612cc 44189 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44190 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 44191 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 44192 esac; \
1b6c0831 44193 module_srcdir=libtermcap; \
4fa63067 44194 rm -f no-such-file || : ; \
1b6c0831
L
44195 CONFIG_SITE=no-such-file $(SHELL) \
44196 $$s/$$module_srcdir/configure \
44197 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44198 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44199 --target=${target_alias} \
e2b9e2dc 44200 || exit 1
a90ef4bf 44201@endif target-libtermcap
e2b9e2dc 44202
a7254363
PB
44203
44204
d545f33b
PB
44205
44206
a90ef4bf
JM
44207.PHONY: all-target-libtermcap maybe-all-target-libtermcap
44208maybe-all-target-libtermcap:
4f0ef2d8 44209@if gcc-bootstrap
a90ef4bf 44210all-target-libtermcap: stage_current
4f0ef2d8 44211@endif gcc-bootstrap
a90ef4bf
JM
44212@if target-libtermcap
44213TARGET-target-libtermcap=all
44214maybe-all-target-libtermcap: all-target-libtermcap
44215all-target-libtermcap: configure-target-libtermcap
0aed8855 44216 @: $(MAKE); $(unstage)
b40e3958
L
44217 @r=`${PWD_COMMAND}`; export r; \
44218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44219 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44220 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 44221 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44222 $(TARGET-target-libtermcap))
44223@endif target-libtermcap
e393202e 44224
a7254363
PB
44225
44226
d545f33b
PB
44227
44228
a90ef4bf
JM
44229.PHONY: check-target-libtermcap maybe-check-target-libtermcap
44230maybe-check-target-libtermcap:
44231@if target-libtermcap
44232maybe-check-target-libtermcap: check-target-libtermcap
e393202e 44233
4fa63067 44234# Dummy target for uncheckable module.
a90ef4bf 44235check-target-libtermcap:
e393202e 44236
a90ef4bf 44237@endif target-libtermcap
e393202e 44238
a90ef4bf
JM
44239.PHONY: install-target-libtermcap maybe-install-target-libtermcap
44240maybe-install-target-libtermcap:
44241@if target-libtermcap
44242maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 44243
a90ef4bf 44244install-target-libtermcap: installdirs
0aed8855 44245 @: $(MAKE); $(unstage)
b40e3958
L
44246 @r=`${PWD_COMMAND}`; export r; \
44247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44248 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44249 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 44250 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44251
a90ef4bf 44252@endif target-libtermcap
56a8fe78 44253
a90ef4bf
JM
44254.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
44255maybe-install-strip-target-libtermcap:
44256@if target-libtermcap
44257maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 44258
a90ef4bf 44259install-strip-target-libtermcap: installdirs
0aed8855 44260 @: $(MAKE); $(unstage)
a90ef4bf 44261 @r=`${PWD_COMMAND}`; export r; \
6d389afc 44262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44263 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44264 (cd $(TARGET_SUBDIR)/libtermcap && \
44265 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 44266
a90ef4bf 44267@endif target-libtermcap
6d389afc 44268
a90ef4bf 44269# Other targets (info, dvi, pdf, etc.)
16ae0395 44270
a90ef4bf
JM
44271.PHONY: maybe-info-target-libtermcap info-target-libtermcap
44272maybe-info-target-libtermcap:
44273@if target-libtermcap
44274maybe-info-target-libtermcap: info-target-libtermcap
44275
44276info-target-libtermcap: \
44277 configure-target-libtermcap
0aed8855 44278 @: $(MAKE); $(unstage)
22121df0 44279 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44280 r=`${PWD_COMMAND}`; export r; \
b40e3958 44281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44282 $(NORMAL_TARGET_EXPORTS) \
22121df0 44283 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44284 for flag in $(EXTRA_TARGET_FLAGS); do \
44285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44286 done; \
a90ef4bf 44287 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44290 "RANLIB=$${RANLIB}" \
0c24b341 44291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44292 info) \
4fa63067 44293 || exit 1
ce5b542e 44294
a90ef4bf 44295@endif target-libtermcap
ce5b542e 44296
a90ef4bf
JM
44297.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
44298maybe-dvi-target-libtermcap:
44299@if target-libtermcap
44300maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 44301
a90ef4bf
JM
44302dvi-target-libtermcap: \
44303 configure-target-libtermcap
0aed8855 44304 @: $(MAKE); $(unstage)
22121df0 44305 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
44306 r=`${PWD_COMMAND}`; export r; \
44307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44308 $(NORMAL_TARGET_EXPORTS) \
22121df0 44309 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44310 for flag in $(EXTRA_TARGET_FLAGS); do \
44311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44312 done; \
a90ef4bf 44313 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44316 "RANLIB=$${RANLIB}" \
0c24b341 44317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44318 dvi) \
e2b9e2dc
NN
44319 || exit 1
44320
a90ef4bf 44321@endif target-libtermcap
e393202e 44322
a90ef4bf
JM
44323.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
44324maybe-pdf-target-libtermcap:
44325@if target-libtermcap
44326maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 44327
a90ef4bf
JM
44328pdf-target-libtermcap: \
44329 configure-target-libtermcap
a3ca38d2 44330 @: $(MAKE); $(unstage)
22121df0 44331 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
44332 r=`${PWD_COMMAND}`; export r; \
44333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44334 $(NORMAL_TARGET_EXPORTS) \
22121df0 44335 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
44336 for flag in $(EXTRA_TARGET_FLAGS); do \
44337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44338 done; \
a90ef4bf 44339 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
44340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44342 "RANLIB=$${RANLIB}" \
0c24b341 44343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44344 pdf) \
a3ca38d2
DD
44345 || exit 1
44346
a90ef4bf 44347@endif target-libtermcap
a3ca38d2 44348
a90ef4bf
JM
44349.PHONY: maybe-html-target-libtermcap html-target-libtermcap
44350maybe-html-target-libtermcap:
44351@if target-libtermcap
44352maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 44353
a90ef4bf
JM
44354html-target-libtermcap: \
44355 configure-target-libtermcap
108a6f8e 44356 @: $(MAKE); $(unstage)
22121df0 44357 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
44358 r=`${PWD_COMMAND}`; export r; \
44359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44360 $(NORMAL_TARGET_EXPORTS) \
22121df0 44361 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
44362 for flag in $(EXTRA_TARGET_FLAGS); do \
44363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44364 done; \
a90ef4bf 44365 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
44366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44368 "RANLIB=$${RANLIB}" \
0c24b341 44369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44370 html) \
108a6f8e
CD
44371 || exit 1
44372
a90ef4bf 44373@endif target-libtermcap
108a6f8e 44374
a90ef4bf
JM
44375.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
44376maybe-TAGS-target-libtermcap:
44377@if target-libtermcap
44378maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 44379
a90ef4bf
JM
44380TAGS-target-libtermcap: \
44381 configure-target-libtermcap
0aed8855 44382 @: $(MAKE); $(unstage)
22121df0 44383 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
44384 r=`${PWD_COMMAND}`; export r; \
44385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44386 $(NORMAL_TARGET_EXPORTS) \
22121df0 44387 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44388 for flag in $(EXTRA_TARGET_FLAGS); do \
44389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44390 done; \
a90ef4bf 44391 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44394 "RANLIB=$${RANLIB}" \
0c24b341 44395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44396 TAGS) \
4fa63067 44397 || exit 1
3866be5d 44398
a90ef4bf 44399@endif target-libtermcap
3866be5d 44400
a90ef4bf
JM
44401.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
44402maybe-install-info-target-libtermcap:
44403@if target-libtermcap
44404maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 44405
a90ef4bf
JM
44406install-info-target-libtermcap: \
44407 configure-target-libtermcap \
44408 info-target-libtermcap
0aed8855 44409 @: $(MAKE); $(unstage)
22121df0 44410 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44411 r=`${PWD_COMMAND}`; export r; \
b40e3958 44412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44413 $(NORMAL_TARGET_EXPORTS) \
22121df0 44414 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44415 for flag in $(EXTRA_TARGET_FLAGS); do \
44416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44417 done; \
a90ef4bf 44418 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44421 "RANLIB=$${RANLIB}" \
0c24b341 44422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44423 install-info) \
4fa63067 44424 || exit 1
e393202e 44425
a90ef4bf 44426@endif target-libtermcap
3866be5d 44427
a90ef4bf
JM
44428.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
44429maybe-install-pdf-target-libtermcap:
44430@if target-libtermcap
44431maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 44432
a90ef4bf
JM
44433install-pdf-target-libtermcap: \
44434 configure-target-libtermcap \
44435 pdf-target-libtermcap
0aed8855 44436 @: $(MAKE); $(unstage)
22121df0 44437 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
44438 r=`${PWD_COMMAND}`; export r; \
44439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44440 $(NORMAL_TARGET_EXPORTS) \
22121df0 44441 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44442 for flag in $(EXTRA_TARGET_FLAGS); do \
44443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44444 done; \
a90ef4bf 44445 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44448 "RANLIB=$${RANLIB}" \
0c24b341 44449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44450 install-pdf) \
e2b9e2dc
NN
44451 || exit 1
44452
a90ef4bf 44453@endif target-libtermcap
e393202e 44454
a90ef4bf
JM
44455.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
44456maybe-install-html-target-libtermcap:
44457@if target-libtermcap
44458maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 44459
a90ef4bf
JM
44460install-html-target-libtermcap: \
44461 configure-target-libtermcap \
44462 html-target-libtermcap
0aed8855 44463 @: $(MAKE); $(unstage)
22121df0 44464 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
44465 r=`${PWD_COMMAND}`; export r; \
44466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44467 $(NORMAL_TARGET_EXPORTS) \
22121df0 44468 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44469 for flag in $(EXTRA_TARGET_FLAGS); do \
44470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44471 done; \
a90ef4bf 44472 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44475 "RANLIB=$${RANLIB}" \
0c24b341 44476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44477 install-html) \
4fa63067 44478 || exit 1
3866be5d 44479
a90ef4bf 44480@endif target-libtermcap
3866be5d 44481
a90ef4bf
JM
44482.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
44483maybe-installcheck-target-libtermcap:
44484@if target-libtermcap
44485maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 44486
a90ef4bf
JM
44487installcheck-target-libtermcap: \
44488 configure-target-libtermcap
0aed8855 44489 @: $(MAKE); $(unstage)
22121df0 44490 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44491 r=`${PWD_COMMAND}`; export r; \
b40e3958 44492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44493 $(NORMAL_TARGET_EXPORTS) \
22121df0 44494 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44495 for flag in $(EXTRA_TARGET_FLAGS); do \
44496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44497 done; \
a90ef4bf 44498 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44501 "RANLIB=$${RANLIB}" \
0c24b341 44502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44503 installcheck) \
4fa63067 44504 || exit 1
3866be5d 44505
a90ef4bf
JM
44506@endif target-libtermcap
44507
44508.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
44509maybe-mostlyclean-target-libtermcap:
44510@if target-libtermcap
44511maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
44512
44513# libtermcap doesn't support mostlyclean.
44514mostlyclean-target-libtermcap:
44515
44516@endif target-libtermcap
3866be5d 44517
a90ef4bf
JM
44518.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
44519maybe-clean-target-libtermcap:
44520@if target-libtermcap
44521maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 44522
a90ef4bf
JM
44523# libtermcap doesn't support clean.
44524clean-target-libtermcap:
15723a45 44525
a90ef4bf 44526@endif target-libtermcap
e90269c8 44527
a90ef4bf
JM
44528.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
44529maybe-distclean-target-libtermcap:
44530@if target-libtermcap
44531maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 44532
a90ef4bf
JM
44533# libtermcap doesn't support distclean.
44534distclean-target-libtermcap:
44535
44536@endif target-libtermcap
44537
44538.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
44539maybe-maintainer-clean-target-libtermcap:
44540@if target-libtermcap
44541maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
44542
44543# libtermcap doesn't support maintainer-clean.
44544maintainer-clean-target-libtermcap:
44545
44546@endif target-libtermcap
44547
44548
44549
44550
44551
44552.PHONY: configure-target-winsup maybe-configure-target-winsup
44553maybe-configure-target-winsup:
4f0ef2d8 44554@if gcc-bootstrap
a90ef4bf 44555configure-target-winsup: stage_current
4f0ef2d8 44556@endif gcc-bootstrap
a90ef4bf
JM
44557@if target-winsup
44558maybe-configure-target-winsup: configure-target-winsup
44559configure-target-winsup:
0aed8855
PB
44560 @: $(MAKE); $(unstage)
44561 @r=`${PWD_COMMAND}`; export r; \
44562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44563 echo "Checking multilib configuration for winsup..."; \
22121df0
L
44564 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
44565 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44566 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
44567 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
44568 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 44569 else \
a90ef4bf
JM
44570 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
44571 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
44572 fi; \
44573 else \
a90ef4bf 44574 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 44575 fi; \
a90ef4bf 44576 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 44577 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 44578 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44579 echo Configuring in $(TARGET_SUBDIR)/winsup; \
44580 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 44581 case $(srcdir) in \
b00612cc 44582 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44583 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 44584 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44585 esac; \
1b6c0831 44586 module_srcdir=winsup; \
bba45b8b 44587 rm -f no-such-file || : ; \
1b6c0831
L
44588 CONFIG_SITE=no-such-file $(SHELL) \
44589 $$s/$$module_srcdir/configure \
44590 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44591 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44592 --target=${target_alias} \
bba45b8b 44593 || exit 1
a90ef4bf 44594@endif target-winsup
e393202e 44595
a7254363
PB
44596
44597
d545f33b
PB
44598
44599
a90ef4bf
JM
44600.PHONY: all-target-winsup maybe-all-target-winsup
44601maybe-all-target-winsup:
4f0ef2d8 44602@if gcc-bootstrap
a90ef4bf 44603all-target-winsup: stage_current
4f0ef2d8 44604@endif gcc-bootstrap
a90ef4bf
JM
44605@if target-winsup
44606TARGET-target-winsup=all
44607maybe-all-target-winsup: all-target-winsup
44608all-target-winsup: configure-target-winsup
0aed8855 44609 @: $(MAKE); $(unstage)
b40e3958
L
44610 @r=`${PWD_COMMAND}`; export r; \
44611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44612 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44613 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 44614 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44615 $(TARGET-target-winsup))
44616@endif target-winsup
e393202e 44617
a7254363
PB
44618
44619
d545f33b
PB
44620
44621
a90ef4bf
JM
44622.PHONY: check-target-winsup maybe-check-target-winsup
44623maybe-check-target-winsup:
44624@if target-winsup
44625maybe-check-target-winsup: check-target-winsup
16ae0395 44626
a90ef4bf 44627check-target-winsup:
0aed8855 44628 @: $(MAKE); $(unstage)
b40e3958
L
44629 @r=`${PWD_COMMAND}`; export r; \
44630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44631 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44632 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 44633 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 44634
a90ef4bf 44635@endif target-winsup
e393202e 44636
a90ef4bf
JM
44637.PHONY: install-target-winsup maybe-install-target-winsup
44638maybe-install-target-winsup:
44639@if target-winsup
44640maybe-install-target-winsup: install-target-winsup
4fa63067 44641
a90ef4bf 44642install-target-winsup: installdirs
0aed8855 44643 @: $(MAKE); $(unstage)
4fa63067
NN
44644 @r=`${PWD_COMMAND}`; export r; \
44645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44646 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44647 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 44648 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 44649
a90ef4bf 44650@endif target-winsup
4fa63067 44651
a90ef4bf
JM
44652.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
44653maybe-install-strip-target-winsup:
44654@if target-winsup
44655maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 44656
a90ef4bf 44657install-strip-target-winsup: installdirs
9b980aa1
RW
44658 @: $(MAKE); $(unstage)
44659 @r=`${PWD_COMMAND}`; export r; \
44660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44661 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44662 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
44663 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44664
a90ef4bf 44665@endif target-winsup
9b980aa1 44666
56a8fe78 44667# Other targets (info, dvi, pdf, etc.)
4fa63067 44668
a90ef4bf
JM
44669.PHONY: maybe-info-target-winsup info-target-winsup
44670maybe-info-target-winsup:
44671@if target-winsup
44672maybe-info-target-winsup: info-target-winsup
4fa63067 44673
a90ef4bf
JM
44674info-target-winsup: \
44675 configure-target-winsup
0aed8855 44676 @: $(MAKE); $(unstage)
22121df0 44677 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44678 r=`${PWD_COMMAND}`; export r; \
44679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44680 $(NORMAL_TARGET_EXPORTS) \
22121df0 44681 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44682 for flag in $(EXTRA_TARGET_FLAGS); do \
44683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44684 done; \
a90ef4bf 44685 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44688 "RANLIB=$${RANLIB}" \
0c24b341 44689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44690 info) \
4fa63067
NN
44691 || exit 1
44692
a90ef4bf 44693@endif target-winsup
4fa63067 44694
a90ef4bf
JM
44695.PHONY: maybe-dvi-target-winsup dvi-target-winsup
44696maybe-dvi-target-winsup:
44697@if target-winsup
44698maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 44699
a90ef4bf
JM
44700dvi-target-winsup: \
44701 configure-target-winsup
0aed8855 44702 @: $(MAKE); $(unstage)
22121df0 44703 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44704 r=`${PWD_COMMAND}`; export r; \
44705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44706 $(NORMAL_TARGET_EXPORTS) \
22121df0 44707 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44708 for flag in $(EXTRA_TARGET_FLAGS); do \
44709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44710 done; \
a90ef4bf 44711 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44714 "RANLIB=$${RANLIB}" \
0c24b341 44715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44716 dvi) \
4fa63067
NN
44717 || exit 1
44718
a90ef4bf 44719@endif target-winsup
4fa63067 44720
a90ef4bf
JM
44721.PHONY: maybe-pdf-target-winsup pdf-target-winsup
44722maybe-pdf-target-winsup:
44723@if target-winsup
44724maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 44725
a90ef4bf
JM
44726pdf-target-winsup: \
44727 configure-target-winsup
56a8fe78 44728 @: $(MAKE); $(unstage)
22121df0 44729 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
44730 r=`${PWD_COMMAND}`; export r; \
44731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44732 $(NORMAL_TARGET_EXPORTS) \
22121df0 44733 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
44734 for flag in $(EXTRA_TARGET_FLAGS); do \
44735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44736 done; \
a90ef4bf 44737 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
44738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44740 "RANLIB=$${RANLIB}" \
0c24b341 44741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44742 pdf) \
44743 || exit 1
44744
a90ef4bf 44745@endif target-winsup
56a8fe78 44746
a90ef4bf
JM
44747.PHONY: maybe-html-target-winsup html-target-winsup
44748maybe-html-target-winsup:
44749@if target-winsup
44750maybe-html-target-winsup: html-target-winsup
6d389afc 44751
a90ef4bf
JM
44752html-target-winsup: \
44753 configure-target-winsup
0aed8855 44754 @: $(MAKE); $(unstage)
22121df0 44755 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
44756 r=`${PWD_COMMAND}`; export r; \
44757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44758 $(NORMAL_TARGET_EXPORTS) \
22121df0 44759 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
44760 for flag in $(EXTRA_TARGET_FLAGS); do \
44761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44762 done; \
a90ef4bf 44763 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
44764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44766 "RANLIB=$${RANLIB}" \
0c24b341 44767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44768 html) \
44769 || exit 1
44770
a90ef4bf 44771@endif target-winsup
6d389afc 44772
a90ef4bf
JM
44773.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
44774maybe-TAGS-target-winsup:
44775@if target-winsup
44776maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 44777
a90ef4bf
JM
44778TAGS-target-winsup: \
44779 configure-target-winsup
0aed8855 44780 @: $(MAKE); $(unstage)
22121df0 44781 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44782 r=`${PWD_COMMAND}`; export r; \
44783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44784 $(NORMAL_TARGET_EXPORTS) \
22121df0 44785 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44786 for flag in $(EXTRA_TARGET_FLAGS); do \
44787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44788 done; \
a90ef4bf 44789 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44792 "RANLIB=$${RANLIB}" \
0c24b341 44793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44794 TAGS) \
4fa63067
NN
44795 || exit 1
44796
a90ef4bf 44797@endif target-winsup
4fa63067 44798
a90ef4bf
JM
44799.PHONY: maybe-install-info-target-winsup install-info-target-winsup
44800maybe-install-info-target-winsup:
44801@if target-winsup
44802maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 44803
a90ef4bf
JM
44804install-info-target-winsup: \
44805 configure-target-winsup \
44806 info-target-winsup
0aed8855 44807 @: $(MAKE); $(unstage)
22121df0 44808 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44809 r=`${PWD_COMMAND}`; export r; \
44810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44811 $(NORMAL_TARGET_EXPORTS) \
22121df0 44812 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44813 for flag in $(EXTRA_TARGET_FLAGS); do \
44814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44815 done; \
a90ef4bf 44816 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44819 "RANLIB=$${RANLIB}" \
0c24b341 44820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44821 install-info) \
4fa63067
NN
44822 || exit 1
44823
a90ef4bf 44824@endif target-winsup
4fa63067 44825
a90ef4bf
JM
44826.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
44827maybe-install-pdf-target-winsup:
44828@if target-winsup
44829maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 44830
a90ef4bf
JM
44831install-pdf-target-winsup: \
44832 configure-target-winsup \
44833 pdf-target-winsup
a3ca38d2 44834 @: $(MAKE); $(unstage)
22121df0 44835 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
44836 r=`${PWD_COMMAND}`; export r; \
44837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44838 $(NORMAL_TARGET_EXPORTS) \
22121df0 44839 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
44840 for flag in $(EXTRA_TARGET_FLAGS); do \
44841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44842 done; \
a90ef4bf 44843 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
44844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44846 "RANLIB=$${RANLIB}" \
0c24b341 44847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44848 install-pdf) \
44849 || exit 1
44850
a90ef4bf 44851@endif target-winsup
a3ca38d2 44852
a90ef4bf
JM
44853.PHONY: maybe-install-html-target-winsup install-html-target-winsup
44854maybe-install-html-target-winsup:
44855@if target-winsup
44856maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 44857
a90ef4bf
JM
44858install-html-target-winsup: \
44859 configure-target-winsup \
44860 html-target-winsup
108a6f8e 44861 @: $(MAKE); $(unstage)
22121df0 44862 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
44863 r=`${PWD_COMMAND}`; export r; \
44864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44865 $(NORMAL_TARGET_EXPORTS) \
22121df0 44866 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
44867 for flag in $(EXTRA_TARGET_FLAGS); do \
44868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44869 done; \
a90ef4bf 44870 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
44871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44873 "RANLIB=$${RANLIB}" \
0c24b341 44874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44875 install-html) \
44876 || exit 1
44877
a90ef4bf 44878@endif target-winsup
108a6f8e 44879
a90ef4bf
JM
44880.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
44881maybe-installcheck-target-winsup:
44882@if target-winsup
44883maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 44884
a90ef4bf
JM
44885installcheck-target-winsup: \
44886 configure-target-winsup
0aed8855 44887 @: $(MAKE); $(unstage)
22121df0 44888 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44889 r=`${PWD_COMMAND}`; export r; \
44890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44891 $(NORMAL_TARGET_EXPORTS) \
22121df0 44892 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44893 for flag in $(EXTRA_TARGET_FLAGS); do \
44894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44895 done; \
a90ef4bf 44896 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44899 "RANLIB=$${RANLIB}" \
0c24b341 44900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44901 installcheck) \
4fa63067
NN
44902 || exit 1
44903
a90ef4bf 44904@endif target-winsup
4fa63067 44905
a90ef4bf
JM
44906.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
44907maybe-mostlyclean-target-winsup:
44908@if target-winsup
44909maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 44910
a90ef4bf 44911mostlyclean-target-winsup:
0aed8855 44912 @: $(MAKE); $(unstage)
22121df0 44913 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44914 r=`${PWD_COMMAND}`; export r; \
44915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44916 $(NORMAL_TARGET_EXPORTS) \
22121df0 44917 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44918 for flag in $(EXTRA_TARGET_FLAGS); do \
44919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44920 done; \
a90ef4bf 44921 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44924 "RANLIB=$${RANLIB}" \
0c24b341 44925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44926 mostlyclean) \
4fa63067
NN
44927 || exit 1
44928
a90ef4bf 44929@endif target-winsup
4fa63067 44930
a90ef4bf
JM
44931.PHONY: maybe-clean-target-winsup clean-target-winsup
44932maybe-clean-target-winsup:
44933@if target-winsup
44934maybe-clean-target-winsup: clean-target-winsup
4fa63067 44935
a90ef4bf 44936clean-target-winsup:
0aed8855 44937 @: $(MAKE); $(unstage)
22121df0 44938 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44939 r=`${PWD_COMMAND}`; export r; \
44940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44941 $(NORMAL_TARGET_EXPORTS) \
22121df0 44942 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44943 for flag in $(EXTRA_TARGET_FLAGS); do \
44944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44945 done; \
a90ef4bf 44946 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44949 "RANLIB=$${RANLIB}" \
0c24b341 44950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44951 clean) \
4fa63067
NN
44952 || exit 1
44953
a90ef4bf 44954@endif target-winsup
4fa63067 44955
a90ef4bf
JM
44956.PHONY: maybe-distclean-target-winsup distclean-target-winsup
44957maybe-distclean-target-winsup:
44958@if target-winsup
44959maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 44960
a90ef4bf 44961distclean-target-winsup:
0aed8855 44962 @: $(MAKE); $(unstage)
22121df0 44963 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44964 r=`${PWD_COMMAND}`; export r; \
44965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44966 $(NORMAL_TARGET_EXPORTS) \
22121df0 44967 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44968 for flag in $(EXTRA_TARGET_FLAGS); do \
44969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44970 done; \
a90ef4bf 44971 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44974 "RANLIB=$${RANLIB}" \
0c24b341 44975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44976 distclean) \
4fa63067
NN
44977 || exit 1
44978
a90ef4bf 44979@endif target-winsup
4fa63067 44980
a90ef4bf
JM
44981.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
44982maybe-maintainer-clean-target-winsup:
44983@if target-winsup
44984maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 44985
a90ef4bf 44986maintainer-clean-target-winsup:
0aed8855 44987 @: $(MAKE); $(unstage)
22121df0 44988 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44989 r=`${PWD_COMMAND}`; export r; \
44990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44991 $(NORMAL_TARGET_EXPORTS) \
22121df0 44992 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44993 for flag in $(EXTRA_TARGET_FLAGS); do \
44994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44995 done; \
a90ef4bf 44996 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44999 "RANLIB=$${RANLIB}" \
0c24b341 45000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45001 maintainer-clean) \
4fa63067 45002 || exit 1
16ae0395 45003
a90ef4bf 45004@endif target-winsup
e393202e
NN
45005
45006
15723a45 45007
e90269c8 45008
a7254363 45009
a90ef4bf
JM
45010.PHONY: configure-target-libgloss maybe-configure-target-libgloss
45011maybe-configure-target-libgloss:
4f0ef2d8 45012@if gcc-bootstrap
a90ef4bf 45013configure-target-libgloss: stage_current
4f0ef2d8 45014@endif gcc-bootstrap
a90ef4bf
JM
45015@if target-libgloss
45016maybe-configure-target-libgloss: configure-target-libgloss
45017configure-target-libgloss:
0aed8855
PB
45018 @: $(MAKE); $(unstage)
45019 @r=`${PWD_COMMAND}`; export r; \
45020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 45021 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
45022 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
45023 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45024 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
45025 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
45026 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 45027 else \
a90ef4bf
JM
45028 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
45029 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
45030 fi; \
45031 else \
a90ef4bf 45032 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 45033 fi; \
a90ef4bf 45034 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 45035 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 45036 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45037 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
45038 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 45039 case $(srcdir) in \
b00612cc 45040 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 45041 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 45042 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45043 esac; \
1b6c0831 45044 module_srcdir=libgloss; \
bba45b8b 45045 rm -f no-such-file || : ; \
1b6c0831
L
45046 CONFIG_SITE=no-such-file $(SHELL) \
45047 $$s/$$module_srcdir/configure \
45048 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45049 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45050 --target=${target_alias} \
bba45b8b 45051 || exit 1
a90ef4bf 45052@endif target-libgloss
e393202e 45053
a7254363
PB
45054
45055
d545f33b
PB
45056
45057
a90ef4bf
JM
45058.PHONY: all-target-libgloss maybe-all-target-libgloss
45059maybe-all-target-libgloss:
4f0ef2d8 45060@if gcc-bootstrap
a90ef4bf 45061all-target-libgloss: stage_current
4f0ef2d8 45062@endif gcc-bootstrap
a90ef4bf
JM
45063@if target-libgloss
45064TARGET-target-libgloss=all
45065maybe-all-target-libgloss: all-target-libgloss
45066all-target-libgloss: configure-target-libgloss
0aed8855 45067 @: $(MAKE); $(unstage)
b40e3958
L
45068 @r=`${PWD_COMMAND}`; export r; \
45069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45070 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45071 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 45072 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
45073 $(TARGET-target-libgloss))
45074@endif target-libgloss
e393202e 45075
a7254363
PB
45076
45077
d545f33b
PB
45078
45079
a90ef4bf
JM
45080.PHONY: check-target-libgloss maybe-check-target-libgloss
45081maybe-check-target-libgloss:
45082@if target-libgloss
45083maybe-check-target-libgloss: check-target-libgloss
16ae0395 45084
a90ef4bf
JM
45085# Dummy target for uncheckable module.
45086check-target-libgloss:
930314a4 45087
a90ef4bf 45088@endif target-libgloss
e393202e 45089
a90ef4bf
JM
45090.PHONY: install-target-libgloss maybe-install-target-libgloss
45091maybe-install-target-libgloss:
45092@if target-libgloss
45093maybe-install-target-libgloss: install-target-libgloss
4fa63067 45094
a90ef4bf 45095install-target-libgloss: installdirs
0aed8855 45096 @: $(MAKE); $(unstage)
4fa63067
NN
45097 @r=`${PWD_COMMAND}`; export r; \
45098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45099 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45100 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 45101 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45102
a90ef4bf 45103@endif target-libgloss
4fa63067 45104
a90ef4bf
JM
45105.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
45106maybe-install-strip-target-libgloss:
45107@if target-libgloss
45108maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 45109
a90ef4bf 45110install-strip-target-libgloss: installdirs
9b980aa1
RW
45111 @: $(MAKE); $(unstage)
45112 @r=`${PWD_COMMAND}`; export r; \
45113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45114 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45115 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
45116 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45117
a90ef4bf 45118@endif target-libgloss
9b980aa1 45119
56a8fe78 45120# Other targets (info, dvi, pdf, etc.)
4fa63067 45121
a90ef4bf
JM
45122.PHONY: maybe-info-target-libgloss info-target-libgloss
45123maybe-info-target-libgloss:
45124@if target-libgloss
45125maybe-info-target-libgloss: info-target-libgloss
4fa63067 45126
a90ef4bf
JM
45127info-target-libgloss: \
45128 configure-target-libgloss
0aed8855 45129 @: $(MAKE); $(unstage)
22121df0 45130 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45131 r=`${PWD_COMMAND}`; export r; \
45132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45133 $(NORMAL_TARGET_EXPORTS) \
22121df0 45134 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45135 for flag in $(EXTRA_TARGET_FLAGS); do \
45136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45137 done; \
a90ef4bf 45138 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45141 "RANLIB=$${RANLIB}" \
0c24b341 45142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45143 info) \
4fa63067
NN
45144 || exit 1
45145
a90ef4bf 45146@endif target-libgloss
4fa63067 45147
a90ef4bf
JM
45148.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
45149maybe-dvi-target-libgloss:
45150@if target-libgloss
45151maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 45152
a90ef4bf
JM
45153dvi-target-libgloss: \
45154 configure-target-libgloss
0aed8855 45155 @: $(MAKE); $(unstage)
22121df0 45156 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45157 r=`${PWD_COMMAND}`; export r; \
45158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45159 $(NORMAL_TARGET_EXPORTS) \
22121df0 45160 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45161 for flag in $(EXTRA_TARGET_FLAGS); do \
45162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45163 done; \
a90ef4bf 45164 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45167 "RANLIB=$${RANLIB}" \
0c24b341 45168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45169 dvi) \
4fa63067
NN
45170 || exit 1
45171
a90ef4bf 45172@endif target-libgloss
4fa63067 45173
a90ef4bf
JM
45174.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
45175maybe-pdf-target-libgloss:
45176@if target-libgloss
45177maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 45178
a90ef4bf
JM
45179pdf-target-libgloss: \
45180 configure-target-libgloss
56a8fe78 45181 @: $(MAKE); $(unstage)
22121df0 45182 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
45183 r=`${PWD_COMMAND}`; export r; \
45184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45185 $(NORMAL_TARGET_EXPORTS) \
22121df0 45186 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
45187 for flag in $(EXTRA_TARGET_FLAGS); do \
45188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45189 done; \
a90ef4bf 45190 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
45191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45193 "RANLIB=$${RANLIB}" \
0c24b341 45194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45195 pdf) \
45196 || exit 1
45197
a90ef4bf 45198@endif target-libgloss
56a8fe78 45199
a90ef4bf
JM
45200.PHONY: maybe-html-target-libgloss html-target-libgloss
45201maybe-html-target-libgloss:
45202@if target-libgloss
45203maybe-html-target-libgloss: html-target-libgloss
6d389afc 45204
a90ef4bf
JM
45205html-target-libgloss: \
45206 configure-target-libgloss
0aed8855 45207 @: $(MAKE); $(unstage)
22121df0 45208 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
45209 r=`${PWD_COMMAND}`; export r; \
45210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45211 $(NORMAL_TARGET_EXPORTS) \
22121df0 45212 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
45213 for flag in $(EXTRA_TARGET_FLAGS); do \
45214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45215 done; \
a90ef4bf 45216 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
45217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45219 "RANLIB=$${RANLIB}" \
0c24b341 45220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45221 html) \
45222 || exit 1
45223
a90ef4bf 45224@endif target-libgloss
6d389afc 45225
a90ef4bf
JM
45226.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
45227maybe-TAGS-target-libgloss:
45228@if target-libgloss
45229maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 45230
a90ef4bf
JM
45231TAGS-target-libgloss: \
45232 configure-target-libgloss
0aed8855 45233 @: $(MAKE); $(unstage)
22121df0 45234 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45235 r=`${PWD_COMMAND}`; export r; \
45236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45237 $(NORMAL_TARGET_EXPORTS) \
22121df0 45238 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45239 for flag in $(EXTRA_TARGET_FLAGS); do \
45240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45241 done; \
a90ef4bf 45242 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45245 "RANLIB=$${RANLIB}" \
0c24b341 45246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45247 TAGS) \
4fa63067
NN
45248 || exit 1
45249
a90ef4bf 45250@endif target-libgloss
4fa63067 45251
a90ef4bf
JM
45252.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
45253maybe-install-info-target-libgloss:
45254@if target-libgloss
45255maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 45256
a90ef4bf
JM
45257install-info-target-libgloss: \
45258 configure-target-libgloss \
45259 info-target-libgloss
0aed8855 45260 @: $(MAKE); $(unstage)
22121df0 45261 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45262 r=`${PWD_COMMAND}`; export r; \
45263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45264 $(NORMAL_TARGET_EXPORTS) \
22121df0 45265 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45266 for flag in $(EXTRA_TARGET_FLAGS); do \
45267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45268 done; \
a90ef4bf 45269 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45272 "RANLIB=$${RANLIB}" \
0c24b341 45273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45274 install-info) \
4fa63067
NN
45275 || exit 1
45276
a90ef4bf 45277@endif target-libgloss
4fa63067 45278
a90ef4bf
JM
45279.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
45280maybe-install-pdf-target-libgloss:
45281@if target-libgloss
45282maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 45283
a90ef4bf
JM
45284install-pdf-target-libgloss: \
45285 configure-target-libgloss \
45286 pdf-target-libgloss
a3ca38d2 45287 @: $(MAKE); $(unstage)
22121df0 45288 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
45289 r=`${PWD_COMMAND}`; export r; \
45290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45291 $(NORMAL_TARGET_EXPORTS) \
22121df0 45292 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
45293 for flag in $(EXTRA_TARGET_FLAGS); do \
45294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45295 done; \
a90ef4bf 45296 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
45297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45299 "RANLIB=$${RANLIB}" \
0c24b341 45300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45301 install-pdf) \
45302 || exit 1
45303
a90ef4bf 45304@endif target-libgloss
a3ca38d2 45305
a90ef4bf
JM
45306.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
45307maybe-install-html-target-libgloss:
45308@if target-libgloss
45309maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 45310
a90ef4bf
JM
45311install-html-target-libgloss: \
45312 configure-target-libgloss \
45313 html-target-libgloss
108a6f8e 45314 @: $(MAKE); $(unstage)
22121df0 45315 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
45316 r=`${PWD_COMMAND}`; export r; \
45317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45318 $(NORMAL_TARGET_EXPORTS) \
22121df0 45319 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
45320 for flag in $(EXTRA_TARGET_FLAGS); do \
45321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45322 done; \
a90ef4bf 45323 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
45324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45326 "RANLIB=$${RANLIB}" \
0c24b341 45327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45328 install-html) \
45329 || exit 1
45330
a90ef4bf 45331@endif target-libgloss
108a6f8e 45332
a90ef4bf
JM
45333.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
45334maybe-installcheck-target-libgloss:
45335@if target-libgloss
45336maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 45337
a90ef4bf
JM
45338installcheck-target-libgloss: \
45339 configure-target-libgloss
0aed8855 45340 @: $(MAKE); $(unstage)
22121df0 45341 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45342 r=`${PWD_COMMAND}`; export r; \
45343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45344 $(NORMAL_TARGET_EXPORTS) \
22121df0 45345 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45346 for flag in $(EXTRA_TARGET_FLAGS); do \
45347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45348 done; \
a90ef4bf 45349 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45352 "RANLIB=$${RANLIB}" \
0c24b341 45353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45354 installcheck) \
4fa63067
NN
45355 || exit 1
45356
a90ef4bf 45357@endif target-libgloss
4fa63067 45358
a90ef4bf
JM
45359.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
45360maybe-mostlyclean-target-libgloss:
45361@if target-libgloss
45362maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 45363
a90ef4bf 45364mostlyclean-target-libgloss:
0aed8855 45365 @: $(MAKE); $(unstage)
22121df0 45366 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45367 r=`${PWD_COMMAND}`; export r; \
45368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45369 $(NORMAL_TARGET_EXPORTS) \
22121df0 45370 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45371 for flag in $(EXTRA_TARGET_FLAGS); do \
45372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45373 done; \
a90ef4bf 45374 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45377 "RANLIB=$${RANLIB}" \
0c24b341 45378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45379 mostlyclean) \
4fa63067
NN
45380 || exit 1
45381
a90ef4bf 45382@endif target-libgloss
4fa63067 45383
a90ef4bf
JM
45384.PHONY: maybe-clean-target-libgloss clean-target-libgloss
45385maybe-clean-target-libgloss:
45386@if target-libgloss
45387maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 45388
a90ef4bf 45389clean-target-libgloss:
0aed8855 45390 @: $(MAKE); $(unstage)
22121df0 45391 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45392 r=`${PWD_COMMAND}`; export r; \
45393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45394 $(NORMAL_TARGET_EXPORTS) \
22121df0 45395 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45396 for flag in $(EXTRA_TARGET_FLAGS); do \
45397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45398 done; \
a90ef4bf 45399 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45402 "RANLIB=$${RANLIB}" \
0c24b341 45403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45404 clean) \
4fa63067
NN
45405 || exit 1
45406
a90ef4bf 45407@endif target-libgloss
4fa63067 45408
a90ef4bf
JM
45409.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
45410maybe-distclean-target-libgloss:
45411@if target-libgloss
45412maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 45413
a90ef4bf 45414distclean-target-libgloss:
0aed8855 45415 @: $(MAKE); $(unstage)
22121df0 45416 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45417 r=`${PWD_COMMAND}`; export r; \
45418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45419 $(NORMAL_TARGET_EXPORTS) \
22121df0 45420 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45421 for flag in $(EXTRA_TARGET_FLAGS); do \
45422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45423 done; \
a90ef4bf 45424 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45427 "RANLIB=$${RANLIB}" \
0c24b341 45428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45429 distclean) \
4fa63067
NN
45430 || exit 1
45431
a90ef4bf 45432@endif target-libgloss
4fa63067 45433
a90ef4bf
JM
45434.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
45435maybe-maintainer-clean-target-libgloss:
45436@if target-libgloss
45437maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 45438
a90ef4bf 45439maintainer-clean-target-libgloss:
0aed8855 45440 @: $(MAKE); $(unstage)
22121df0 45441 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45442 r=`${PWD_COMMAND}`; export r; \
45443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45444 $(NORMAL_TARGET_EXPORTS) \
22121df0 45445 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45446 for flag in $(EXTRA_TARGET_FLAGS); do \
45447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45448 done; \
a90ef4bf 45449 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45452 "RANLIB=$${RANLIB}" \
0c24b341 45453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45454 maintainer-clean) \
4fa63067 45455 || exit 1
16ae0395 45456
a90ef4bf 45457@endif target-libgloss
e393202e
NN
45458
45459
15723a45 45460
a7254363
PB
45461
45462
a7254363
PB
45463.PHONY: configure-target-libffi maybe-configure-target-libffi
45464maybe-configure-target-libffi:
4f0ef2d8
CD
45465@if gcc-bootstrap
45466configure-target-libffi: stage_current
45467@endif gcc-bootstrap
a7254363
PB
45468@if target-libffi
45469maybe-configure-target-libffi: configure-target-libffi
c52c6897 45470configure-target-libffi:
0aed8855
PB
45471 @: $(MAKE); $(unstage)
45472 @r=`${PWD_COMMAND}`; export r; \
45473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45474 echo "Checking multilib configuration for libffi..."; \
22121df0
L
45475 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
45476 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
45477 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
45478 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
45479 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
45480 else \
45481 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
45482 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
45483 fi; \
45484 else \
45485 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
45486 fi; \
45487 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 45488 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 45489 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45490 echo Configuring in $(TARGET_SUBDIR)/libffi; \
45491 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 45492 case $(srcdir) in \
b00612cc
PB
45493 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45494 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
45495 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45496 esac; \
1b6c0831 45497 module_srcdir=libffi; \
bba45b8b 45498 rm -f no-such-file || : ; \
1b6c0831
L
45499 CONFIG_SITE=no-such-file $(SHELL) \
45500 $$s/$$module_srcdir/configure \
45501 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45502 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45503 --target=${target_alias} \
bba45b8b 45504 || exit 1
6bd3dfaa 45505@endif target-libffi
e393202e 45506
a7254363
PB
45507
45508
d545f33b
PB
45509
45510
4fa63067
NN
45511.PHONY: all-target-libffi maybe-all-target-libffi
45512maybe-all-target-libffi:
4f0ef2d8
CD
45513@if gcc-bootstrap
45514all-target-libffi: stage_current
45515@endif gcc-bootstrap
6bd3dfaa 45516@if target-libffi
72b2455a 45517TARGET-target-libffi=all
6bd3dfaa 45518maybe-all-target-libffi: all-target-libffi
4fa63067 45519all-target-libffi: configure-target-libffi
0aed8855 45520 @: $(MAKE); $(unstage)
b40e3958
L
45521 @r=`${PWD_COMMAND}`; export r; \
45522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45523 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45524 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 45525 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45526 $(TARGET-target-libffi))
6bd3dfaa 45527@endif target-libffi
e393202e 45528
a7254363
PB
45529
45530
d545f33b
PB
45531
45532
4fa63067
NN
45533.PHONY: check-target-libffi maybe-check-target-libffi
45534maybe-check-target-libffi:
6bd3dfaa
PB
45535@if target-libffi
45536maybe-check-target-libffi: check-target-libffi
16ae0395 45537
4fa63067 45538check-target-libffi:
0aed8855 45539 @: $(MAKE); $(unstage)
b40e3958
L
45540 @r=`${PWD_COMMAND}`; export r; \
45541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45542 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45543 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 45544 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 45545
6bd3dfaa 45546@endif target-libffi
e393202e 45547
4fa63067
NN
45548.PHONY: install-target-libffi maybe-install-target-libffi
45549maybe-install-target-libffi:
6bd3dfaa
PB
45550@if target-libffi
45551maybe-install-target-libffi: install-target-libffi
16ae0395 45552
b836cb18
JBG
45553# Dummy target for uninstallable.
45554install-target-libffi:
e393202e 45555
6bd3dfaa 45556@endif target-libffi
e393202e 45557
9b980aa1
RW
45558.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
45559maybe-install-strip-target-libffi:
45560@if target-libffi
45561maybe-install-strip-target-libffi: install-strip-target-libffi
45562
b836cb18
JBG
45563# Dummy target for uninstallable.
45564install-strip-target-libffi:
9b980aa1
RW
45565
45566@endif target-libffi
45567
56a8fe78 45568# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45569
45570.PHONY: maybe-info-target-libffi info-target-libffi
45571maybe-info-target-libffi:
6bd3dfaa
PB
45572@if target-libffi
45573maybe-info-target-libffi: info-target-libffi
4fa63067
NN
45574
45575info-target-libffi: \
45576 configure-target-libffi
0aed8855 45577 @: $(MAKE); $(unstage)
22121df0 45578 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45579 r=`${PWD_COMMAND}`; export r; \
45580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45581 $(NORMAL_TARGET_EXPORTS) \
22121df0 45582 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45583 for flag in $(EXTRA_TARGET_FLAGS); do \
45584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45585 done; \
45586 (cd $(TARGET_SUBDIR)/libffi && \
45587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45589 "RANLIB=$${RANLIB}" \
0c24b341 45590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45591 info) \
4fa63067
NN
45592 || exit 1
45593
6bd3dfaa 45594@endif target-libffi
4fa63067
NN
45595
45596.PHONY: maybe-dvi-target-libffi dvi-target-libffi
45597maybe-dvi-target-libffi:
6bd3dfaa
PB
45598@if target-libffi
45599maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
45600
45601dvi-target-libffi: \
45602 configure-target-libffi
0aed8855 45603 @: $(MAKE); $(unstage)
22121df0 45604 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45605 r=`${PWD_COMMAND}`; export r; \
45606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45607 $(NORMAL_TARGET_EXPORTS) \
22121df0 45608 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45609 for flag in $(EXTRA_TARGET_FLAGS); do \
45610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45611 done; \
45612 (cd $(TARGET_SUBDIR)/libffi && \
45613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45615 "RANLIB=$${RANLIB}" \
0c24b341 45616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45617 dvi) \
4fa63067
NN
45618 || exit 1
45619
6bd3dfaa 45620@endif target-libffi
4fa63067 45621
56a8fe78
DD
45622.PHONY: maybe-pdf-target-libffi pdf-target-libffi
45623maybe-pdf-target-libffi:
45624@if target-libffi
45625maybe-pdf-target-libffi: pdf-target-libffi
45626
45627pdf-target-libffi: \
45628 configure-target-libffi
45629 @: $(MAKE); $(unstage)
22121df0 45630 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
45631 r=`${PWD_COMMAND}`; export r; \
45632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45633 $(NORMAL_TARGET_EXPORTS) \
22121df0 45634 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
45635 for flag in $(EXTRA_TARGET_FLAGS); do \
45636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45637 done; \
45638 (cd $(TARGET_SUBDIR)/libffi && \
45639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45641 "RANLIB=$${RANLIB}" \
0c24b341 45642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45643 pdf) \
45644 || exit 1
45645
45646@endif target-libffi
45647
6d389afc
MS
45648.PHONY: maybe-html-target-libffi html-target-libffi
45649maybe-html-target-libffi:
45650@if target-libffi
45651maybe-html-target-libffi: html-target-libffi
45652
45653html-target-libffi: \
45654 configure-target-libffi
0aed8855 45655 @: $(MAKE); $(unstage)
22121df0 45656 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
45657 r=`${PWD_COMMAND}`; export r; \
45658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45659 $(NORMAL_TARGET_EXPORTS) \
22121df0 45660 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
45661 for flag in $(EXTRA_TARGET_FLAGS); do \
45662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45663 done; \
45664 (cd $(TARGET_SUBDIR)/libffi && \
45665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45667 "RANLIB=$${RANLIB}" \
0c24b341 45668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45669 html) \
45670 || exit 1
45671
45672@endif target-libffi
45673
4fa63067
NN
45674.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
45675maybe-TAGS-target-libffi:
6bd3dfaa
PB
45676@if target-libffi
45677maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
45678
45679TAGS-target-libffi: \
45680 configure-target-libffi
0aed8855 45681 @: $(MAKE); $(unstage)
22121df0 45682 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45683 r=`${PWD_COMMAND}`; export r; \
45684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45685 $(NORMAL_TARGET_EXPORTS) \
22121df0 45686 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45687 for flag in $(EXTRA_TARGET_FLAGS); do \
45688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45689 done; \
45690 (cd $(TARGET_SUBDIR)/libffi && \
45691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45693 "RANLIB=$${RANLIB}" \
0c24b341 45694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45695 TAGS) \
4fa63067
NN
45696 || exit 1
45697
6bd3dfaa 45698@endif target-libffi
4fa63067
NN
45699
45700.PHONY: maybe-install-info-target-libffi install-info-target-libffi
45701maybe-install-info-target-libffi:
6bd3dfaa
PB
45702@if target-libffi
45703maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
45704
45705install-info-target-libffi: \
45706 configure-target-libffi \
45707 info-target-libffi
0aed8855 45708 @: $(MAKE); $(unstage)
22121df0 45709 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45710 r=`${PWD_COMMAND}`; export r; \
45711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45712 $(NORMAL_TARGET_EXPORTS) \
22121df0 45713 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45714 for flag in $(EXTRA_TARGET_FLAGS); do \
45715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45716 done; \
45717 (cd $(TARGET_SUBDIR)/libffi && \
45718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45720 "RANLIB=$${RANLIB}" \
0c24b341 45721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45722 install-info) \
4fa63067
NN
45723 || exit 1
45724
6bd3dfaa 45725@endif target-libffi
4fa63067 45726
a3ca38d2
DD
45727.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
45728maybe-install-pdf-target-libffi:
45729@if target-libffi
45730maybe-install-pdf-target-libffi: install-pdf-target-libffi
45731
45732install-pdf-target-libffi: \
45733 configure-target-libffi \
45734 pdf-target-libffi
45735 @: $(MAKE); $(unstage)
22121df0 45736 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
45737 r=`${PWD_COMMAND}`; export r; \
45738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45739 $(NORMAL_TARGET_EXPORTS) \
22121df0 45740 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
45741 for flag in $(EXTRA_TARGET_FLAGS); do \
45742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45743 done; \
45744 (cd $(TARGET_SUBDIR)/libffi && \
45745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45747 "RANLIB=$${RANLIB}" \
0c24b341 45748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45749 install-pdf) \
45750 || exit 1
45751
45752@endif target-libffi
45753
108a6f8e
CD
45754.PHONY: maybe-install-html-target-libffi install-html-target-libffi
45755maybe-install-html-target-libffi:
45756@if target-libffi
45757maybe-install-html-target-libffi: install-html-target-libffi
45758
45759install-html-target-libffi: \
45760 configure-target-libffi \
45761 html-target-libffi
45762 @: $(MAKE); $(unstage)
22121df0 45763 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
45764 r=`${PWD_COMMAND}`; export r; \
45765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45766 $(NORMAL_TARGET_EXPORTS) \
22121df0 45767 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
45768 for flag in $(EXTRA_TARGET_FLAGS); do \
45769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45770 done; \
45771 (cd $(TARGET_SUBDIR)/libffi && \
45772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45774 "RANLIB=$${RANLIB}" \
0c24b341 45775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45776 install-html) \
45777 || exit 1
45778
45779@endif target-libffi
45780
4fa63067
NN
45781.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
45782maybe-installcheck-target-libffi:
6bd3dfaa
PB
45783@if target-libffi
45784maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
45785
45786installcheck-target-libffi: \
45787 configure-target-libffi
0aed8855 45788 @: $(MAKE); $(unstage)
22121df0 45789 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45790 r=`${PWD_COMMAND}`; export r; \
45791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45792 $(NORMAL_TARGET_EXPORTS) \
22121df0 45793 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45794 for flag in $(EXTRA_TARGET_FLAGS); do \
45795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45796 done; \
45797 (cd $(TARGET_SUBDIR)/libffi && \
45798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45800 "RANLIB=$${RANLIB}" \
0c24b341 45801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45802 installcheck) \
4fa63067
NN
45803 || exit 1
45804
6bd3dfaa 45805@endif target-libffi
4fa63067
NN
45806
45807.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
45808maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
45809@if target-libffi
45810maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
45811
45812mostlyclean-target-libffi:
0aed8855 45813 @: $(MAKE); $(unstage)
22121df0 45814 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45815 r=`${PWD_COMMAND}`; export r; \
45816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45817 $(NORMAL_TARGET_EXPORTS) \
22121df0 45818 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45819 for flag in $(EXTRA_TARGET_FLAGS); do \
45820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45821 done; \
45822 (cd $(TARGET_SUBDIR)/libffi && \
45823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45825 "RANLIB=$${RANLIB}" \
0c24b341 45826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45827 mostlyclean) \
4fa63067
NN
45828 || exit 1
45829
6bd3dfaa 45830@endif target-libffi
4fa63067
NN
45831
45832.PHONY: maybe-clean-target-libffi clean-target-libffi
45833maybe-clean-target-libffi:
6bd3dfaa
PB
45834@if target-libffi
45835maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
45836
45837clean-target-libffi:
0aed8855 45838 @: $(MAKE); $(unstage)
22121df0 45839 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45840 r=`${PWD_COMMAND}`; export r; \
45841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45842 $(NORMAL_TARGET_EXPORTS) \
22121df0 45843 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45844 for flag in $(EXTRA_TARGET_FLAGS); do \
45845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45846 done; \
45847 (cd $(TARGET_SUBDIR)/libffi && \
45848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45850 "RANLIB=$${RANLIB}" \
0c24b341 45851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45852 clean) \
4fa63067
NN
45853 || exit 1
45854
6bd3dfaa 45855@endif target-libffi
4fa63067
NN
45856
45857.PHONY: maybe-distclean-target-libffi distclean-target-libffi
45858maybe-distclean-target-libffi:
6bd3dfaa
PB
45859@if target-libffi
45860maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
45861
45862distclean-target-libffi:
0aed8855 45863 @: $(MAKE); $(unstage)
22121df0 45864 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45865 r=`${PWD_COMMAND}`; export r; \
45866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45867 $(NORMAL_TARGET_EXPORTS) \
22121df0 45868 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45869 for flag in $(EXTRA_TARGET_FLAGS); do \
45870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45871 done; \
45872 (cd $(TARGET_SUBDIR)/libffi && \
45873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45875 "RANLIB=$${RANLIB}" \
0c24b341 45876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45877 distclean) \
4fa63067
NN
45878 || exit 1
45879
6bd3dfaa 45880@endif target-libffi
4fa63067
NN
45881
45882.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
45883maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
45884@if target-libffi
45885maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
45886
45887maintainer-clean-target-libffi:
0aed8855 45888 @: $(MAKE); $(unstage)
22121df0 45889 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45890 r=`${PWD_COMMAND}`; export r; \
45891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45892 $(NORMAL_TARGET_EXPORTS) \
22121df0 45893 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45894 for flag in $(EXTRA_TARGET_FLAGS); do \
45895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45896 done; \
45897 (cd $(TARGET_SUBDIR)/libffi && \
45898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45900 "RANLIB=$${RANLIB}" \
0c24b341 45901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45902 maintainer-clean) \
4fa63067
NN
45903 || exit 1
45904
6bd3dfaa 45905@endif target-libffi
4fa63067
NN
45906
45907
15723a45 45908
a7254363 45909
15723a45 45910
a7254363
PB
45911.PHONY: configure-target-zlib maybe-configure-target-zlib
45912maybe-configure-target-zlib:
4f0ef2d8
CD
45913@if gcc-bootstrap
45914configure-target-zlib: stage_current
45915@endif gcc-bootstrap
a7254363
PB
45916@if target-zlib
45917maybe-configure-target-zlib: configure-target-zlib
c52c6897 45918configure-target-zlib:
0aed8855
PB
45919 @: $(MAKE); $(unstage)
45920 @r=`${PWD_COMMAND}`; export r; \
45921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45922 echo "Checking multilib configuration for zlib..."; \
22121df0
L
45923 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
45924 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
45925 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
45926 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
45927 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
45928 else \
45929 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
45930 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
45931 fi; \
45932 else \
45933 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
45934 fi; \
45935 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 45936 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 45937 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45938 echo Configuring in $(TARGET_SUBDIR)/zlib; \
45939 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 45940 case $(srcdir) in \
b00612cc
PB
45941 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45942 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
45943 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45944 esac; \
1b6c0831 45945 module_srcdir=zlib; \
bba45b8b 45946 rm -f no-such-file || : ; \
1b6c0831
L
45947 CONFIG_SITE=no-such-file $(SHELL) \
45948 $$s/$$module_srcdir/configure \
45949 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45950 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45951 --target=${target_alias} \
bba45b8b 45952 || exit 1
6bd3dfaa 45953@endif target-zlib
e393202e 45954
a7254363
PB
45955
45956
d545f33b
PB
45957
45958
4fa63067
NN
45959.PHONY: all-target-zlib maybe-all-target-zlib
45960maybe-all-target-zlib:
4f0ef2d8
CD
45961@if gcc-bootstrap
45962all-target-zlib: stage_current
45963@endif gcc-bootstrap
6bd3dfaa 45964@if target-zlib
72b2455a 45965TARGET-target-zlib=all
6bd3dfaa 45966maybe-all-target-zlib: all-target-zlib
4fa63067 45967all-target-zlib: configure-target-zlib
0aed8855 45968 @: $(MAKE); $(unstage)
b40e3958
L
45969 @r=`${PWD_COMMAND}`; export r; \
45970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45971 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45972 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 45973 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45974 $(TARGET-target-zlib))
6bd3dfaa 45975@endif target-zlib
e393202e 45976
a7254363
PB
45977
45978
d545f33b
PB
45979
45980
4fa63067
NN
45981.PHONY: check-target-zlib maybe-check-target-zlib
45982maybe-check-target-zlib:
6bd3dfaa
PB
45983@if target-zlib
45984maybe-check-target-zlib: check-target-zlib
16ae0395 45985
4fa63067 45986check-target-zlib:
0aed8855 45987 @: $(MAKE); $(unstage)
b40e3958
L
45988 @r=`${PWD_COMMAND}`; export r; \
45989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45990 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45991 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 45992 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 45993
6bd3dfaa 45994@endif target-zlib
930314a4 45995
4fa63067
NN
45996.PHONY: install-target-zlib maybe-install-target-zlib
45997maybe-install-target-zlib:
6bd3dfaa
PB
45998@if target-zlib
45999maybe-install-target-zlib: install-target-zlib
16ae0395 46000
4fa63067 46001install-target-zlib: installdirs
0aed8855 46002 @: $(MAKE); $(unstage)
b40e3958
L
46003 @r=`${PWD_COMMAND}`; export r; \
46004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46005 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46006 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 46007 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 46008
6bd3dfaa 46009@endif target-zlib
e393202e 46010
9b980aa1
RW
46011.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
46012maybe-install-strip-target-zlib:
46013@if target-zlib
46014maybe-install-strip-target-zlib: install-strip-target-zlib
46015
46016install-strip-target-zlib: installdirs
46017 @: $(MAKE); $(unstage)
46018 @r=`${PWD_COMMAND}`; export r; \
46019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46020 $(NORMAL_TARGET_EXPORTS) \
46021 (cd $(TARGET_SUBDIR)/zlib && \
46022 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46023
46024@endif target-zlib
46025
56a8fe78 46026# Other targets (info, dvi, pdf, etc.)
15723a45 46027
4fa63067
NN
46028.PHONY: maybe-info-target-zlib info-target-zlib
46029maybe-info-target-zlib:
6bd3dfaa
PB
46030@if target-zlib
46031maybe-info-target-zlib: info-target-zlib
15723a45 46032
4fa63067
NN
46033info-target-zlib: \
46034 configure-target-zlib
0aed8855 46035 @: $(MAKE); $(unstage)
22121df0 46036 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
46037 r=`${PWD_COMMAND}`; export r; \
46038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46039 $(NORMAL_TARGET_EXPORTS) \
22121df0 46040 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46041 for flag in $(EXTRA_TARGET_FLAGS); do \
46042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46043 done; \
46044 (cd $(TARGET_SUBDIR)/zlib && \
46045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46047 "RANLIB=$${RANLIB}" \
0c24b341 46048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46049 info) \
bba45b8b 46050 || exit 1
e393202e 46051
6bd3dfaa 46052@endif target-zlib
e393202e 46053
4fa63067
NN
46054.PHONY: maybe-dvi-target-zlib dvi-target-zlib
46055maybe-dvi-target-zlib:
6bd3dfaa
PB
46056@if target-zlib
46057maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 46058
4fa63067
NN
46059dvi-target-zlib: \
46060 configure-target-zlib
0aed8855 46061 @: $(MAKE); $(unstage)
22121df0 46062 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46063 r=`${PWD_COMMAND}`; export r; \
b40e3958 46064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46065 $(NORMAL_TARGET_EXPORTS) \
22121df0 46066 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46067 for flag in $(EXTRA_TARGET_FLAGS); do \
46068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46069 done; \
46070 (cd $(TARGET_SUBDIR)/zlib && \
46071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46073 "RANLIB=$${RANLIB}" \
0c24b341 46074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46075 dvi) \
4fa63067 46076 || exit 1
e393202e 46077
6bd3dfaa 46078@endif target-zlib
930314a4 46079
56a8fe78
DD
46080.PHONY: maybe-pdf-target-zlib pdf-target-zlib
46081maybe-pdf-target-zlib:
46082@if target-zlib
46083maybe-pdf-target-zlib: pdf-target-zlib
46084
46085pdf-target-zlib: \
46086 configure-target-zlib
46087 @: $(MAKE); $(unstage)
22121df0 46088 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
46089 r=`${PWD_COMMAND}`; export r; \
46090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46091 $(NORMAL_TARGET_EXPORTS) \
22121df0 46092 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
46093 for flag in $(EXTRA_TARGET_FLAGS); do \
46094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46095 done; \
46096 (cd $(TARGET_SUBDIR)/zlib && \
46097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46099 "RANLIB=$${RANLIB}" \
0c24b341 46100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46101 pdf) \
46102 || exit 1
46103
46104@endif target-zlib
46105
6d389afc
MS
46106.PHONY: maybe-html-target-zlib html-target-zlib
46107maybe-html-target-zlib:
46108@if target-zlib
46109maybe-html-target-zlib: html-target-zlib
46110
46111html-target-zlib: \
46112 configure-target-zlib
0aed8855 46113 @: $(MAKE); $(unstage)
22121df0 46114 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
46115 r=`${PWD_COMMAND}`; export r; \
46116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46117 $(NORMAL_TARGET_EXPORTS) \
22121df0 46118 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
46119 for flag in $(EXTRA_TARGET_FLAGS); do \
46120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46121 done; \
46122 (cd $(TARGET_SUBDIR)/zlib && \
46123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46125 "RANLIB=$${RANLIB}" \
0c24b341 46126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46127 html) \
46128 || exit 1
46129
46130@endif target-zlib
46131
4fa63067
NN
46132.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
46133maybe-TAGS-target-zlib:
6bd3dfaa
PB
46134@if target-zlib
46135maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 46136
4fa63067
NN
46137TAGS-target-zlib: \
46138 configure-target-zlib
0aed8855 46139 @: $(MAKE); $(unstage)
22121df0 46140 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46141 r=`${PWD_COMMAND}`; export r; \
b40e3958 46142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46143 $(NORMAL_TARGET_EXPORTS) \
22121df0 46144 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46145 for flag in $(EXTRA_TARGET_FLAGS); do \
46146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46147 done; \
46148 (cd $(TARGET_SUBDIR)/zlib && \
46149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46151 "RANLIB=$${RANLIB}" \
0c24b341 46152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46153 TAGS) \
4fa63067 46154 || exit 1
e393202e 46155
6bd3dfaa 46156@endif target-zlib
15723a45 46157
4fa63067
NN
46158.PHONY: maybe-install-info-target-zlib install-info-target-zlib
46159maybe-install-info-target-zlib:
6bd3dfaa
PB
46160@if target-zlib
46161maybe-install-info-target-zlib: install-info-target-zlib
15723a45 46162
4fa63067
NN
46163install-info-target-zlib: \
46164 configure-target-zlib \
46165 info-target-zlib
0aed8855 46166 @: $(MAKE); $(unstage)
22121df0 46167 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
46168 r=`${PWD_COMMAND}`; export r; \
46169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46170 $(NORMAL_TARGET_EXPORTS) \
22121df0 46171 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46172 for flag in $(EXTRA_TARGET_FLAGS); do \
46173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46174 done; \
46175 (cd $(TARGET_SUBDIR)/zlib && \
46176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46178 "RANLIB=$${RANLIB}" \
0c24b341 46179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46180 install-info) \
bba45b8b 46181 || exit 1
e393202e 46182
6bd3dfaa 46183@endif target-zlib
16ae0395 46184
a3ca38d2
DD
46185.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
46186maybe-install-pdf-target-zlib:
46187@if target-zlib
46188maybe-install-pdf-target-zlib: install-pdf-target-zlib
46189
46190install-pdf-target-zlib: \
46191 configure-target-zlib \
46192 pdf-target-zlib
46193 @: $(MAKE); $(unstage)
22121df0 46194 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
46195 r=`${PWD_COMMAND}`; export r; \
46196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46197 $(NORMAL_TARGET_EXPORTS) \
22121df0 46198 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
46199 for flag in $(EXTRA_TARGET_FLAGS); do \
46200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46201 done; \
46202 (cd $(TARGET_SUBDIR)/zlib && \
46203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46205 "RANLIB=$${RANLIB}" \
0c24b341 46206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46207 install-pdf) \
46208 || exit 1
46209
46210@endif target-zlib
46211
108a6f8e
CD
46212.PHONY: maybe-install-html-target-zlib install-html-target-zlib
46213maybe-install-html-target-zlib:
46214@if target-zlib
46215maybe-install-html-target-zlib: install-html-target-zlib
46216
46217install-html-target-zlib: \
46218 configure-target-zlib \
46219 html-target-zlib
46220 @: $(MAKE); $(unstage)
22121df0 46221 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
46222 r=`${PWD_COMMAND}`; export r; \
46223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46224 $(NORMAL_TARGET_EXPORTS) \
22121df0 46225 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
46226 for flag in $(EXTRA_TARGET_FLAGS); do \
46227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46228 done; \
46229 (cd $(TARGET_SUBDIR)/zlib && \
46230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46232 "RANLIB=$${RANLIB}" \
0c24b341 46233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46234 install-html) \
46235 || exit 1
46236
46237@endif target-zlib
46238
4fa63067
NN
46239.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
46240maybe-installcheck-target-zlib:
6bd3dfaa
PB
46241@if target-zlib
46242maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 46243
4fa63067
NN
46244installcheck-target-zlib: \
46245 configure-target-zlib
0aed8855 46246 @: $(MAKE); $(unstage)
22121df0 46247 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
46248 r=`${PWD_COMMAND}`; export r; \
46249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46250 $(NORMAL_TARGET_EXPORTS) \
22121df0 46251 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46252 for flag in $(EXTRA_TARGET_FLAGS); do \
46253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46254 done; \
46255 (cd $(TARGET_SUBDIR)/zlib && \
46256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46258 "RANLIB=$${RANLIB}" \
0c24b341 46259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46260 installcheck) \
4fa63067 46261 || exit 1
e393202e 46262
6bd3dfaa 46263@endif target-zlib
16ae0395 46264
4fa63067
NN
46265.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
46266maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
46267@if target-zlib
46268maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 46269
4fa63067 46270mostlyclean-target-zlib:
0aed8855 46271 @: $(MAKE); $(unstage)
22121df0 46272 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
46273 r=`${PWD_COMMAND}`; export r; \
46274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46275 $(NORMAL_TARGET_EXPORTS) \
22121df0 46276 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46277 for flag in $(EXTRA_TARGET_FLAGS); do \
46278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46279 done; \
46280 (cd $(TARGET_SUBDIR)/zlib && \
46281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46283 "RANLIB=$${RANLIB}" \
0c24b341 46284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46285 mostlyclean) \
4fa63067 46286 || exit 1
e393202e 46287
6bd3dfaa 46288@endif target-zlib
15723a45 46289
4fa63067
NN
46290.PHONY: maybe-clean-target-zlib clean-target-zlib
46291maybe-clean-target-zlib:
6bd3dfaa
PB
46292@if target-zlib
46293maybe-clean-target-zlib: clean-target-zlib
15723a45 46294
4fa63067 46295clean-target-zlib:
0aed8855 46296 @: $(MAKE); $(unstage)
22121df0 46297 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
46298 r=`${PWD_COMMAND}`; export r; \
46299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46300 $(NORMAL_TARGET_EXPORTS) \
22121df0 46301 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46302 for flag in $(EXTRA_TARGET_FLAGS); do \
46303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46304 done; \
46305 (cd $(TARGET_SUBDIR)/zlib && \
46306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46308 "RANLIB=$${RANLIB}" \
0c24b341 46309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46310 clean) \
bba45b8b 46311 || exit 1
e393202e 46312
6bd3dfaa 46313@endif target-zlib
e393202e 46314
4fa63067
NN
46315.PHONY: maybe-distclean-target-zlib distclean-target-zlib
46316maybe-distclean-target-zlib:
6bd3dfaa
PB
46317@if target-zlib
46318maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 46319
4fa63067 46320distclean-target-zlib:
0aed8855 46321 @: $(MAKE); $(unstage)
22121df0 46322 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46323 r=`${PWD_COMMAND}`; export r; \
b40e3958 46324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46325 $(NORMAL_TARGET_EXPORTS) \
22121df0 46326 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46327 for flag in $(EXTRA_TARGET_FLAGS); do \
46328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46329 done; \
46330 (cd $(TARGET_SUBDIR)/zlib && \
46331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46333 "RANLIB=$${RANLIB}" \
0c24b341 46334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46335 distclean) \
4fa63067 46336 || exit 1
e393202e 46337
6bd3dfaa 46338@endif target-zlib
e393202e 46339
4fa63067
NN
46340.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
46341maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
46342@if target-zlib
46343maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 46344
4fa63067 46345maintainer-clean-target-zlib:
0aed8855 46346 @: $(MAKE); $(unstage)
22121df0 46347 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46348 r=`${PWD_COMMAND}`; export r; \
b40e3958 46349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46350 $(NORMAL_TARGET_EXPORTS) \
22121df0 46351 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46352 for flag in $(EXTRA_TARGET_FLAGS); do \
46353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46354 done; \
46355 (cd $(TARGET_SUBDIR)/zlib && \
46356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46358 "RANLIB=$${RANLIB}" \
0c24b341 46359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46360 maintainer-clean) \
4fa63067 46361 || exit 1
e393202e 46362
6bd3dfaa 46363@endif target-zlib
930314a4 46364
4fa63067 46365
15723a45 46366
a7254363 46367
e90269c8 46368
a7254363
PB
46369.PHONY: configure-target-rda maybe-configure-target-rda
46370maybe-configure-target-rda:
4f0ef2d8
CD
46371@if gcc-bootstrap
46372configure-target-rda: stage_current
46373@endif gcc-bootstrap
a7254363
PB
46374@if target-rda
46375maybe-configure-target-rda: configure-target-rda
c52c6897 46376configure-target-rda:
0aed8855
PB
46377 @: $(MAKE); $(unstage)
46378 @r=`${PWD_COMMAND}`; export r; \
46379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46380 echo "Checking multilib configuration for rda..."; \
22121df0
L
46381 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
46382 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
46383 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
46384 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
46385 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
46386 else \
46387 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
46388 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
46389 fi; \
46390 else \
46391 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
46392 fi; \
46393 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 46394 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 46395 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
46396 echo Configuring in $(TARGET_SUBDIR)/rda; \
46397 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 46398 case $(srcdir) in \
b00612cc
PB
46399 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46400 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
46401 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 46402 esac; \
1b6c0831 46403 module_srcdir=rda; \
bba45b8b 46404 rm -f no-such-file || : ; \
1b6c0831
L
46405 CONFIG_SITE=no-such-file $(SHELL) \
46406 $$s/$$module_srcdir/configure \
46407 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46408 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46409 --target=${target_alias} \
bba45b8b 46410 || exit 1
6bd3dfaa 46411@endif target-rda
49b7683b 46412
a7254363
PB
46413
46414
d545f33b
PB
46415
46416
4fa63067
NN
46417.PHONY: all-target-rda maybe-all-target-rda
46418maybe-all-target-rda:
4f0ef2d8
CD
46419@if gcc-bootstrap
46420all-target-rda: stage_current
46421@endif gcc-bootstrap
6bd3dfaa 46422@if target-rda
72b2455a 46423TARGET-target-rda=all
6bd3dfaa 46424maybe-all-target-rda: all-target-rda
4fa63067 46425all-target-rda: configure-target-rda
0aed8855 46426 @: $(MAKE); $(unstage)
b40e3958
L
46427 @r=`${PWD_COMMAND}`; export r; \
46428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46429 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46430 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 46431 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46432 $(TARGET-target-rda))
6bd3dfaa 46433@endif target-rda
252b5132 46434
a7254363
PB
46435
46436
d545f33b
PB
46437
46438
4fa63067
NN
46439.PHONY: check-target-rda maybe-check-target-rda
46440maybe-check-target-rda:
6bd3dfaa
PB
46441@if target-rda
46442maybe-check-target-rda: check-target-rda
16ae0395 46443
4fa63067 46444check-target-rda:
0aed8855 46445 @: $(MAKE); $(unstage)
b40e3958
L
46446 @r=`${PWD_COMMAND}`; export r; \
46447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46448 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46449 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 46450 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 46451
6bd3dfaa 46452@endif target-rda
930314a4 46453
4fa63067
NN
46454.PHONY: install-target-rda maybe-install-target-rda
46455maybe-install-target-rda:
6bd3dfaa
PB
46456@if target-rda
46457maybe-install-target-rda: install-target-rda
16ae0395 46458
4fa63067 46459install-target-rda: installdirs
0aed8855 46460 @: $(MAKE); $(unstage)
b40e3958
L
46461 @r=`${PWD_COMMAND}`; export r; \
46462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46463 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46464 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 46465 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 46466
6bd3dfaa 46467@endif target-rda
e393202e 46468
9b980aa1
RW
46469.PHONY: install-strip-target-rda maybe-install-strip-target-rda
46470maybe-install-strip-target-rda:
46471@if target-rda
46472maybe-install-strip-target-rda: install-strip-target-rda
46473
46474install-strip-target-rda: installdirs
46475 @: $(MAKE); $(unstage)
46476 @r=`${PWD_COMMAND}`; export r; \
46477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46478 $(NORMAL_TARGET_EXPORTS) \
46479 (cd $(TARGET_SUBDIR)/rda && \
46480 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46481
46482@endif target-rda
46483
56a8fe78 46484# Other targets (info, dvi, pdf, etc.)
15723a45 46485
4fa63067
NN
46486.PHONY: maybe-info-target-rda info-target-rda
46487maybe-info-target-rda:
6bd3dfaa
PB
46488@if target-rda
46489maybe-info-target-rda: info-target-rda
15723a45 46490
4fa63067
NN
46491info-target-rda: \
46492 configure-target-rda
0aed8855 46493 @: $(MAKE); $(unstage)
22121df0 46494 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
46495 r=`${PWD_COMMAND}`; export r; \
46496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46497 $(NORMAL_TARGET_EXPORTS) \
22121df0 46498 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46499 for flag in $(EXTRA_TARGET_FLAGS); do \
46500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46501 done; \
46502 (cd $(TARGET_SUBDIR)/rda && \
46503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46505 "RANLIB=$${RANLIB}" \
0c24b341 46506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46507 info) \
bba45b8b 46508 || exit 1
252b5132 46509
6bd3dfaa 46510@endif target-rda
4fa63067
NN
46511
46512.PHONY: maybe-dvi-target-rda dvi-target-rda
46513maybe-dvi-target-rda:
6bd3dfaa
PB
46514@if target-rda
46515maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
46516
46517dvi-target-rda: \
46518 configure-target-rda
0aed8855 46519 @: $(MAKE); $(unstage)
22121df0 46520 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46521 r=`${PWD_COMMAND}`; export r; \
b40e3958 46522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46523 $(NORMAL_TARGET_EXPORTS) \
22121df0 46524 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46525 for flag in $(EXTRA_TARGET_FLAGS); do \
46526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46527 done; \
46528 (cd $(TARGET_SUBDIR)/rda && \
46529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46531 "RANLIB=$${RANLIB}" \
0c24b341 46532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46533 dvi) \
4fa63067 46534 || exit 1
252b5132 46535
6bd3dfaa 46536@endif target-rda
16ae0395 46537
56a8fe78
DD
46538.PHONY: maybe-pdf-target-rda pdf-target-rda
46539maybe-pdf-target-rda:
46540@if target-rda
46541maybe-pdf-target-rda: pdf-target-rda
46542
46543pdf-target-rda: \
46544 configure-target-rda
46545 @: $(MAKE); $(unstage)
22121df0 46546 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
46547 r=`${PWD_COMMAND}`; export r; \
46548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46549 $(NORMAL_TARGET_EXPORTS) \
22121df0 46550 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
46551 for flag in $(EXTRA_TARGET_FLAGS); do \
46552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46553 done; \
46554 (cd $(TARGET_SUBDIR)/rda && \
46555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46557 "RANLIB=$${RANLIB}" \
0c24b341 46558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46559 pdf) \
46560 || exit 1
46561
46562@endif target-rda
46563
6d389afc
MS
46564.PHONY: maybe-html-target-rda html-target-rda
46565maybe-html-target-rda:
46566@if target-rda
46567maybe-html-target-rda: html-target-rda
46568
46569html-target-rda: \
46570 configure-target-rda
0aed8855 46571 @: $(MAKE); $(unstage)
22121df0 46572 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
46573 r=`${PWD_COMMAND}`; export r; \
46574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46575 $(NORMAL_TARGET_EXPORTS) \
22121df0 46576 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
46577 for flag in $(EXTRA_TARGET_FLAGS); do \
46578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46579 done; \
46580 (cd $(TARGET_SUBDIR)/rda && \
46581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46583 "RANLIB=$${RANLIB}" \
0c24b341 46584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46585 html) \
46586 || exit 1
46587
46588@endif target-rda
46589
4fa63067
NN
46590.PHONY: maybe-TAGS-target-rda TAGS-target-rda
46591maybe-TAGS-target-rda:
6bd3dfaa
PB
46592@if target-rda
46593maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
46594
46595TAGS-target-rda: \
46596 configure-target-rda
0aed8855 46597 @: $(MAKE); $(unstage)
22121df0 46598 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46599 r=`${PWD_COMMAND}`; export r; \
b40e3958 46600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46601 $(NORMAL_TARGET_EXPORTS) \
22121df0 46602 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46603 for flag in $(EXTRA_TARGET_FLAGS); do \
46604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46605 done; \
46606 (cd $(TARGET_SUBDIR)/rda && \
46607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46609 "RANLIB=$${RANLIB}" \
0c24b341 46610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46611 TAGS) \
4fa63067 46612 || exit 1
e393202e 46613
6bd3dfaa 46614@endif target-rda
930314a4 46615
4fa63067
NN
46616.PHONY: maybe-install-info-target-rda install-info-target-rda
46617maybe-install-info-target-rda:
6bd3dfaa
PB
46618@if target-rda
46619maybe-install-info-target-rda: install-info-target-rda
16ae0395 46620
4fa63067
NN
46621install-info-target-rda: \
46622 configure-target-rda \
46623 info-target-rda
0aed8855 46624 @: $(MAKE); $(unstage)
22121df0 46625 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46626 r=`${PWD_COMMAND}`; export r; \
b40e3958 46627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46628 $(NORMAL_TARGET_EXPORTS) \
22121df0 46629 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46630 for flag in $(EXTRA_TARGET_FLAGS); do \
46631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46632 done; \
46633 (cd $(TARGET_SUBDIR)/rda && \
46634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46636 "RANLIB=$${RANLIB}" \
0c24b341 46637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46638 install-info) \
4fa63067 46639 || exit 1
252b5132 46640
6bd3dfaa 46641@endif target-rda
e393202e 46642
a3ca38d2
DD
46643.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
46644maybe-install-pdf-target-rda:
46645@if target-rda
46646maybe-install-pdf-target-rda: install-pdf-target-rda
46647
46648install-pdf-target-rda: \
46649 configure-target-rda \
46650 pdf-target-rda
46651 @: $(MAKE); $(unstage)
22121df0 46652 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
46653 r=`${PWD_COMMAND}`; export r; \
46654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46655 $(NORMAL_TARGET_EXPORTS) \
22121df0 46656 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
46657 for flag in $(EXTRA_TARGET_FLAGS); do \
46658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46659 done; \
46660 (cd $(TARGET_SUBDIR)/rda && \
46661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46663 "RANLIB=$${RANLIB}" \
0c24b341 46664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46665 install-pdf) \
46666 || exit 1
46667
46668@endif target-rda
46669
108a6f8e
CD
46670.PHONY: maybe-install-html-target-rda install-html-target-rda
46671maybe-install-html-target-rda:
46672@if target-rda
46673maybe-install-html-target-rda: install-html-target-rda
46674
46675install-html-target-rda: \
46676 configure-target-rda \
46677 html-target-rda
46678 @: $(MAKE); $(unstage)
22121df0 46679 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
46680 r=`${PWD_COMMAND}`; export r; \
46681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46682 $(NORMAL_TARGET_EXPORTS) \
22121df0 46683 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
46684 for flag in $(EXTRA_TARGET_FLAGS); do \
46685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46686 done; \
46687 (cd $(TARGET_SUBDIR)/rda && \
46688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46690 "RANLIB=$${RANLIB}" \
0c24b341 46691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46692 install-html) \
46693 || exit 1
46694
46695@endif target-rda
46696
4fa63067
NN
46697.PHONY: maybe-installcheck-target-rda installcheck-target-rda
46698maybe-installcheck-target-rda:
6bd3dfaa
PB
46699@if target-rda
46700maybe-installcheck-target-rda: installcheck-target-rda
15723a45 46701
4fa63067
NN
46702installcheck-target-rda: \
46703 configure-target-rda
0aed8855 46704 @: $(MAKE); $(unstage)
22121df0 46705 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
46706 r=`${PWD_COMMAND}`; export r; \
46707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46708 $(NORMAL_TARGET_EXPORTS) \
22121df0 46709 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46710 for flag in $(EXTRA_TARGET_FLAGS); do \
46711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46712 done; \
46713 (cd $(TARGET_SUBDIR)/rda && \
46714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46716 "RANLIB=$${RANLIB}" \
0c24b341 46717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46718 installcheck) \
4fa63067 46719 || exit 1
15723a45 46720
6bd3dfaa 46721@endif target-rda
4fa63067
NN
46722
46723.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
46724maybe-mostlyclean-target-rda:
6bd3dfaa
PB
46725@if target-rda
46726maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
46727
46728mostlyclean-target-rda:
0aed8855 46729 @: $(MAKE); $(unstage)
22121df0 46730 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
46731 r=`${PWD_COMMAND}`; export r; \
46732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46733 $(NORMAL_TARGET_EXPORTS) \
22121df0 46734 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46735 for flag in $(EXTRA_TARGET_FLAGS); do \
46736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46737 done; \
46738 (cd $(TARGET_SUBDIR)/rda && \
46739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46741 "RANLIB=$${RANLIB}" \
0c24b341 46742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46743 mostlyclean) \
bba45b8b 46744 || exit 1
252b5132 46745
6bd3dfaa 46746@endif target-rda
4fa63067
NN
46747
46748.PHONY: maybe-clean-target-rda clean-target-rda
46749maybe-clean-target-rda:
6bd3dfaa
PB
46750@if target-rda
46751maybe-clean-target-rda: clean-target-rda
4fa63067
NN
46752
46753clean-target-rda:
0aed8855 46754 @: $(MAKE); $(unstage)
22121df0 46755 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46756 r=`${PWD_COMMAND}`; export r; \
b40e3958 46757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46758 $(NORMAL_TARGET_EXPORTS) \
22121df0 46759 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46760 for flag in $(EXTRA_TARGET_FLAGS); do \
46761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46762 done; \
bba45b8b 46763 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46766 "RANLIB=$${RANLIB}" \
0c24b341 46767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46768 clean) \
4fa63067 46769 || exit 1
252b5132 46770
6bd3dfaa 46771@endif target-rda
16ae0395 46772
4fa63067
NN
46773.PHONY: maybe-distclean-target-rda distclean-target-rda
46774maybe-distclean-target-rda:
6bd3dfaa
PB
46775@if target-rda
46776maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
46777
46778distclean-target-rda:
0aed8855 46779 @: $(MAKE); $(unstage)
22121df0 46780 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46781 r=`${PWD_COMMAND}`; export r; \
b40e3958 46782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46783 $(NORMAL_TARGET_EXPORTS) \
22121df0 46784 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46785 for flag in $(EXTRA_TARGET_FLAGS); do \
46786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46787 done; \
bba45b8b 46788 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46791 "RANLIB=$${RANLIB}" \
0c24b341 46792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46793 distclean) \
4fa63067 46794 || exit 1
252b5132 46795
6bd3dfaa 46796@endif target-rda
930314a4 46797
4fa63067
NN
46798.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
46799maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
46800@if target-rda
46801maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 46802
4fa63067 46803maintainer-clean-target-rda:
0aed8855 46804 @: $(MAKE); $(unstage)
22121df0 46805 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46806 r=`${PWD_COMMAND}`; export r; \
b40e3958 46807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46808 $(NORMAL_TARGET_EXPORTS) \
22121df0 46809 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46810 for flag in $(EXTRA_TARGET_FLAGS); do \
46811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46812 done; \
bba45b8b 46813 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46816 "RANLIB=$${RANLIB}" \
0c24b341 46817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46818 maintainer-clean) \
4fa63067
NN
46819 || exit 1
46820
6bd3dfaa 46821@endif target-rda
252b5132 46822
e393202e 46823
a2592b1b 46824
a7254363
PB
46825
46826
46827.PHONY: configure-target-libada maybe-configure-target-libada
46828maybe-configure-target-libada:
4f0ef2d8
CD
46829@if gcc-bootstrap
46830configure-target-libada: stage_current
46831@endif gcc-bootstrap
a7254363
PB
46832@if target-libada
46833maybe-configure-target-libada: configure-target-libada
c52c6897 46834configure-target-libada:
0aed8855
PB
46835 @: $(MAKE); $(unstage)
46836 @r=`${PWD_COMMAND}`; export r; \
46837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46838 echo "Checking multilib configuration for libada..."; \
22121df0
L
46839 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
46840 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
46841 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
46842 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
46843 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
46844 else \
46845 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
46846 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
46847 fi; \
46848 else \
46849 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
46850 fi; \
46851 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 46852 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 46853 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
46854 echo Configuring in $(TARGET_SUBDIR)/libada; \
46855 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
46856 case $(srcdir) in \
b00612cc
PB
46857 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46858 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
46859 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 46860 esac; \
1b6c0831 46861 module_srcdir=libada; \
a2592b1b 46862 rm -f no-such-file || : ; \
1b6c0831
L
46863 CONFIG_SITE=no-such-file $(SHELL) \
46864 $$s/$$module_srcdir/configure \
46865 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46866 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46867 --target=${target_alias} \
a2592b1b 46868 || exit 1
6bd3dfaa 46869@endif target-libada
a2592b1b 46870
a7254363
PB
46871
46872
d545f33b
PB
46873
46874
4fa63067
NN
46875.PHONY: all-target-libada maybe-all-target-libada
46876maybe-all-target-libada:
4f0ef2d8
CD
46877@if gcc-bootstrap
46878all-target-libada: stage_current
46879@endif gcc-bootstrap
6bd3dfaa 46880@if target-libada
72b2455a 46881TARGET-target-libada=all
6bd3dfaa 46882maybe-all-target-libada: all-target-libada
4fa63067 46883all-target-libada: configure-target-libada
0aed8855 46884 @: $(MAKE); $(unstage)
4fa63067
NN
46885 @r=`${PWD_COMMAND}`; export r; \
46886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46887 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46888 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 46889 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46890 $(TARGET-target-libada))
6bd3dfaa 46891@endif target-libada
4fa63067 46892
a7254363
PB
46893
46894
d545f33b
PB
46895
46896
4fa63067
NN
46897.PHONY: check-target-libada maybe-check-target-libada
46898maybe-check-target-libada:
6bd3dfaa
PB
46899@if target-libada
46900maybe-check-target-libada: check-target-libada
4fa63067
NN
46901
46902check-target-libada:
0aed8855 46903 @: $(MAKE); $(unstage)
4fa63067
NN
46904 @r=`${PWD_COMMAND}`; export r; \
46905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46906 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46907 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 46908 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 46909
6bd3dfaa 46910@endif target-libada
4fa63067
NN
46911
46912.PHONY: install-target-libada maybe-install-target-libada
46913maybe-install-target-libada:
6bd3dfaa
PB
46914@if target-libada
46915maybe-install-target-libada: install-target-libada
4fa63067
NN
46916
46917install-target-libada: installdirs
0aed8855 46918 @: $(MAKE); $(unstage)
4fa63067
NN
46919 @r=`${PWD_COMMAND}`; export r; \
46920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46921 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46922 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 46923 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 46924
6bd3dfaa 46925@endif target-libada
4fa63067 46926
9b980aa1
RW
46927.PHONY: install-strip-target-libada maybe-install-strip-target-libada
46928maybe-install-strip-target-libada:
46929@if target-libada
46930maybe-install-strip-target-libada: install-strip-target-libada
46931
46932install-strip-target-libada: installdirs
46933 @: $(MAKE); $(unstage)
46934 @r=`${PWD_COMMAND}`; export r; \
46935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46936 $(NORMAL_TARGET_EXPORTS) \
46937 (cd $(TARGET_SUBDIR)/libada && \
46938 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46939
46940@endif target-libada
46941
56a8fe78 46942# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
46943
46944.PHONY: maybe-info-target-libada info-target-libada
46945maybe-info-target-libada:
6bd3dfaa
PB
46946@if target-libada
46947maybe-info-target-libada: info-target-libada
4fa63067
NN
46948
46949info-target-libada: \
46950 configure-target-libada
0aed8855 46951 @: $(MAKE); $(unstage)
22121df0 46952 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46953 r=`${PWD_COMMAND}`; export r; \
46954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46955 $(NORMAL_TARGET_EXPORTS) \
22121df0 46956 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46957 for flag in $(EXTRA_TARGET_FLAGS); do \
46958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46959 done; \
46960 (cd $(TARGET_SUBDIR)/libada && \
46961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46963 "RANLIB=$${RANLIB}" \
0c24b341 46964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46965 info) \
4fa63067
NN
46966 || exit 1
46967
6bd3dfaa 46968@endif target-libada
4fa63067
NN
46969
46970.PHONY: maybe-dvi-target-libada dvi-target-libada
46971maybe-dvi-target-libada:
6bd3dfaa
PB
46972@if target-libada
46973maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
46974
46975dvi-target-libada: \
46976 configure-target-libada
0aed8855 46977 @: $(MAKE); $(unstage)
22121df0 46978 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46979 r=`${PWD_COMMAND}`; export r; \
46980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46981 $(NORMAL_TARGET_EXPORTS) \
22121df0 46982 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46983 for flag in $(EXTRA_TARGET_FLAGS); do \
46984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46985 done; \
46986 (cd $(TARGET_SUBDIR)/libada && \
46987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46989 "RANLIB=$${RANLIB}" \
0c24b341 46990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46991 dvi) \
4fa63067
NN
46992 || exit 1
46993
6bd3dfaa 46994@endif target-libada
4fa63067 46995
56a8fe78
DD
46996.PHONY: maybe-pdf-target-libada pdf-target-libada
46997maybe-pdf-target-libada:
46998@if target-libada
46999maybe-pdf-target-libada: pdf-target-libada
47000
47001pdf-target-libada: \
47002 configure-target-libada
47003 @: $(MAKE); $(unstage)
22121df0 47004 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
47005 r=`${PWD_COMMAND}`; export r; \
47006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47007 $(NORMAL_TARGET_EXPORTS) \
22121df0 47008 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
47009 for flag in $(EXTRA_TARGET_FLAGS); do \
47010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47011 done; \
47012 (cd $(TARGET_SUBDIR)/libada && \
47013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47015 "RANLIB=$${RANLIB}" \
0c24b341 47016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
47017 pdf) \
47018 || exit 1
47019
47020@endif target-libada
47021
6d389afc
MS
47022.PHONY: maybe-html-target-libada html-target-libada
47023maybe-html-target-libada:
47024@if target-libada
47025maybe-html-target-libada: html-target-libada
47026
47027html-target-libada: \
47028 configure-target-libada
0aed8855 47029 @: $(MAKE); $(unstage)
22121df0 47030 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
47031 r=`${PWD_COMMAND}`; export r; \
47032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 47033 $(NORMAL_TARGET_EXPORTS) \
22121df0 47034 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
47035 for flag in $(EXTRA_TARGET_FLAGS); do \
47036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47037 done; \
47038 (cd $(TARGET_SUBDIR)/libada && \
47039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47041 "RANLIB=$${RANLIB}" \
0c24b341 47042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
47043 html) \
47044 || exit 1
47045
47046@endif target-libada
47047
4fa63067
NN
47048.PHONY: maybe-TAGS-target-libada TAGS-target-libada
47049maybe-TAGS-target-libada:
6bd3dfaa
PB
47050@if target-libada
47051maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
47052
47053TAGS-target-libada: \
47054 configure-target-libada
0aed8855 47055 @: $(MAKE); $(unstage)
22121df0 47056 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47057 r=`${PWD_COMMAND}`; export r; \
47058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47059 $(NORMAL_TARGET_EXPORTS) \
22121df0 47060 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47061 for flag in $(EXTRA_TARGET_FLAGS); do \
47062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47063 done; \
47064 (cd $(TARGET_SUBDIR)/libada && \
47065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47067 "RANLIB=$${RANLIB}" \
0c24b341 47068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47069 TAGS) \
4fa63067
NN
47070 || exit 1
47071
6bd3dfaa 47072@endif target-libada
4fa63067
NN
47073
47074.PHONY: maybe-install-info-target-libada install-info-target-libada
47075maybe-install-info-target-libada:
6bd3dfaa
PB
47076@if target-libada
47077maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
47078
47079install-info-target-libada: \
47080 configure-target-libada \
47081 info-target-libada
0aed8855 47082 @: $(MAKE); $(unstage)
22121df0 47083 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47084 r=`${PWD_COMMAND}`; export r; \
47085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47086 $(NORMAL_TARGET_EXPORTS) \
22121df0 47087 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47088 for flag in $(EXTRA_TARGET_FLAGS); do \
47089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47090 done; \
47091 (cd $(TARGET_SUBDIR)/libada && \
47092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47094 "RANLIB=$${RANLIB}" \
0c24b341 47095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47096 install-info) \
4fa63067
NN
47097 || exit 1
47098
6bd3dfaa 47099@endif target-libada
4fa63067 47100
a3ca38d2
DD
47101.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
47102maybe-install-pdf-target-libada:
47103@if target-libada
47104maybe-install-pdf-target-libada: install-pdf-target-libada
47105
47106install-pdf-target-libada: \
47107 configure-target-libada \
47108 pdf-target-libada
47109 @: $(MAKE); $(unstage)
22121df0 47110 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
47111 r=`${PWD_COMMAND}`; export r; \
47112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47113 $(NORMAL_TARGET_EXPORTS) \
22121df0 47114 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
47115 for flag in $(EXTRA_TARGET_FLAGS); do \
47116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47117 done; \
47118 (cd $(TARGET_SUBDIR)/libada && \
47119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47121 "RANLIB=$${RANLIB}" \
0c24b341 47122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
47123 install-pdf) \
47124 || exit 1
47125
47126@endif target-libada
47127
108a6f8e
CD
47128.PHONY: maybe-install-html-target-libada install-html-target-libada
47129maybe-install-html-target-libada:
47130@if target-libada
47131maybe-install-html-target-libada: install-html-target-libada
47132
47133install-html-target-libada: \
47134 configure-target-libada \
47135 html-target-libada
47136 @: $(MAKE); $(unstage)
22121df0 47137 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
47138 r=`${PWD_COMMAND}`; export r; \
47139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47140 $(NORMAL_TARGET_EXPORTS) \
22121df0 47141 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
47142 for flag in $(EXTRA_TARGET_FLAGS); do \
47143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47144 done; \
47145 (cd $(TARGET_SUBDIR)/libada && \
47146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47148 "RANLIB=$${RANLIB}" \
0c24b341 47149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
47150 install-html) \
47151 || exit 1
47152
47153@endif target-libada
47154
4fa63067
NN
47155.PHONY: maybe-installcheck-target-libada installcheck-target-libada
47156maybe-installcheck-target-libada:
6bd3dfaa
PB
47157@if target-libada
47158maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
47159
47160installcheck-target-libada: \
47161 configure-target-libada
0aed8855 47162 @: $(MAKE); $(unstage)
22121df0 47163 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47164 r=`${PWD_COMMAND}`; export r; \
47165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47166 $(NORMAL_TARGET_EXPORTS) \
22121df0 47167 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47168 for flag in $(EXTRA_TARGET_FLAGS); do \
47169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47170 done; \
47171 (cd $(TARGET_SUBDIR)/libada && \
47172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47174 "RANLIB=$${RANLIB}" \
0c24b341 47175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47176 installcheck) \
4fa63067
NN
47177 || exit 1
47178
6bd3dfaa 47179@endif target-libada
4fa63067
NN
47180
47181.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
47182maybe-mostlyclean-target-libada:
6bd3dfaa
PB
47183@if target-libada
47184maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
47185
47186mostlyclean-target-libada:
0aed8855 47187 @: $(MAKE); $(unstage)
22121df0 47188 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47189 r=`${PWD_COMMAND}`; export r; \
47190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47191 $(NORMAL_TARGET_EXPORTS) \
22121df0 47192 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47193 for flag in $(EXTRA_TARGET_FLAGS); do \
47194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47195 done; \
47196 (cd $(TARGET_SUBDIR)/libada && \
47197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47199 "RANLIB=$${RANLIB}" \
0c24b341 47200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47201 mostlyclean) \
4fa63067
NN
47202 || exit 1
47203
6bd3dfaa 47204@endif target-libada
4fa63067
NN
47205
47206.PHONY: maybe-clean-target-libada clean-target-libada
47207maybe-clean-target-libada:
6bd3dfaa
PB
47208@if target-libada
47209maybe-clean-target-libada: clean-target-libada
4fa63067
NN
47210
47211clean-target-libada:
0aed8855 47212 @: $(MAKE); $(unstage)
22121df0 47213 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47214 r=`${PWD_COMMAND}`; export r; \
47215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47216 $(NORMAL_TARGET_EXPORTS) \
22121df0 47217 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47218 for flag in $(EXTRA_TARGET_FLAGS); do \
47219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47220 done; \
47221 (cd $(TARGET_SUBDIR)/libada && \
47222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47224 "RANLIB=$${RANLIB}" \
0c24b341 47225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47226 clean) \
4fa63067
NN
47227 || exit 1
47228
6bd3dfaa 47229@endif target-libada
a2592b1b 47230
4fa63067
NN
47231.PHONY: maybe-distclean-target-libada distclean-target-libada
47232maybe-distclean-target-libada:
6bd3dfaa
PB
47233@if target-libada
47234maybe-distclean-target-libada: distclean-target-libada
a2592b1b 47235
4fa63067 47236distclean-target-libada:
0aed8855 47237 @: $(MAKE); $(unstage)
22121df0 47238 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 47239 r=`${PWD_COMMAND}`; export r; \
a2592b1b 47240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47241 $(NORMAL_TARGET_EXPORTS) \
22121df0 47242 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47243 for flag in $(EXTRA_TARGET_FLAGS); do \
47244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47245 done; \
a2592b1b 47246 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
47247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47249 "RANLIB=$${RANLIB}" \
0c24b341 47250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47251 distclean) \
4fa63067 47252 || exit 1
a2592b1b 47253
6bd3dfaa 47254@endif target-libada
a2592b1b 47255
4fa63067
NN
47256.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
47257maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
47258@if target-libada
47259maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 47260
4fa63067 47261maintainer-clean-target-libada:
0aed8855 47262 @: $(MAKE); $(unstage)
22121df0 47263 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 47264 r=`${PWD_COMMAND}`; export r; \
a2592b1b 47265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47266 $(NORMAL_TARGET_EXPORTS) \
22121df0 47267 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47268 for flag in $(EXTRA_TARGET_FLAGS); do \
47269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47270 done; \
a2592b1b 47271 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
47272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47274 "RANLIB=$${RANLIB}" \
0c24b341 47275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47276 maintainer-clean) \
4fa63067
NN
47277 || exit 1
47278
6bd3dfaa 47279@endif target-libada
a2592b1b
DD
47280
47281
e393202e 47282
b3ded179
PB
47283
47284
47285.PHONY: configure-target-libgomp maybe-configure-target-libgomp
47286maybe-configure-target-libgomp:
4f0ef2d8
CD
47287@if gcc-bootstrap
47288configure-target-libgomp: stage_current
47289@endif gcc-bootstrap
b3ded179
PB
47290@if target-libgomp
47291maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 47292configure-target-libgomp:
b3ded179
PB
47293 @r=`${PWD_COMMAND}`; export r; \
47294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47295 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
47296 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
47297 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
47298 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47299 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47300 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47301 else \
47302 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47303 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47304 fi; \
47305 else \
47306 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
47307 fi; \
47308 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 47309 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 47310 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
47311 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
47312 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
47313 case $(srcdir) in \
47314 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47315 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47316 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47317 esac; \
1b6c0831 47318 module_srcdir=libgomp; \
b3ded179 47319 rm -f no-such-file || : ; \
1b6c0831
L
47320 CONFIG_SITE=no-such-file $(SHELL) \
47321 $$s/$$module_srcdir/configure \
47322 --srcdir=$${topdir}/$$module_srcdir \
4b900473 47323 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47324 --target=${target_alias} \
b3ded179
PB
47325 || exit 1
47326@endif target-libgomp
47327
47328
47329
911e63d0
JR
47330.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
47331maybe-configure-stage1-target-libgomp:
47332@if target-libgomp-bootstrap
47333maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
47334configure-stage1-target-libgomp:
47335 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
47336 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47337 @r=`${PWD_COMMAND}`; export r; \
47338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47339 TFLAGS="$(STAGE1_TFLAGS)"; \
47340 echo "Checking multilib configuration for libgomp..."; \
22121df0 47341 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47342 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47343 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47344 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47345 else \
47346 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47347 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47348 fi; \
47349 else \
47350 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47351 fi; \
47352 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47353 $(NORMAL_TARGET_EXPORTS) \
47354 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47355 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47356 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47357 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
47358 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47359 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47360 case $(srcdir) in \
47361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47362 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47364 esac; \
1b6c0831
L
47365 module_srcdir=libgomp; \
47366 $(SHELL) $$s/$$module_srcdir/configure \
47367 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47368 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
47369 --target=${target_alias} \
47370 \
911e63d0
JR
47371 $(STAGE1_CONFIGURE_FLAGS)
47372@endif target-libgomp-bootstrap
47373
47374.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
47375maybe-configure-stage2-target-libgomp:
47376@if target-libgomp-bootstrap
47377maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
47378configure-stage2-target-libgomp:
47379 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
47380 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47381 @r=`${PWD_COMMAND}`; export r; \
47382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47383 TFLAGS="$(STAGE2_TFLAGS)"; \
47384 echo "Checking multilib configuration for libgomp..."; \
22121df0 47385 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47386 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47387 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47388 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47389 else \
47390 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47391 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47392 fi; \
47393 else \
47394 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47395 fi; \
47396 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47397 $(NORMAL_TARGET_EXPORTS) \
47398 \
47399 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47400 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47401 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47402 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
47403 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47404 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47405 case $(srcdir) in \
47406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47407 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47409 esac; \
1b6c0831
L
47410 module_srcdir=libgomp; \
47411 $(SHELL) $$s/$$module_srcdir/configure \
47412 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47413 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47414 --target=${target_alias} \
22121df0 47415 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47416 $(STAGE2_CONFIGURE_FLAGS)
47417@endif target-libgomp-bootstrap
47418
47419.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
47420maybe-configure-stage3-target-libgomp:
47421@if target-libgomp-bootstrap
47422maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
47423configure-stage3-target-libgomp:
47424 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
47425 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47426 @r=`${PWD_COMMAND}`; export r; \
47427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47428 TFLAGS="$(STAGE3_TFLAGS)"; \
47429 echo "Checking multilib configuration for libgomp..."; \
22121df0 47430 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47431 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47432 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47433 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47434 else \
47435 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47436 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47437 fi; \
47438 else \
47439 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47440 fi; \
47441 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47442 $(NORMAL_TARGET_EXPORTS) \
47443 \
47444 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47445 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47446 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47447 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
47448 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47449 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47450 case $(srcdir) in \
47451 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47452 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47453 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47454 esac; \
1b6c0831
L
47455 module_srcdir=libgomp; \
47456 $(SHELL) $$s/$$module_srcdir/configure \
47457 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47458 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47459 --target=${target_alias} \
22121df0 47460 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47461 $(STAGE3_CONFIGURE_FLAGS)
47462@endif target-libgomp-bootstrap
47463
47464.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
47465maybe-configure-stage4-target-libgomp:
47466@if target-libgomp-bootstrap
47467maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
47468configure-stage4-target-libgomp:
47469 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47470 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47471 @r=`${PWD_COMMAND}`; export r; \
47472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47473 TFLAGS="$(STAGE4_TFLAGS)"; \
47474 echo "Checking multilib configuration for libgomp..."; \
22121df0 47475 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47476 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47477 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47478 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47479 else \
47480 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47481 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47482 fi; \
47483 else \
47484 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47485 fi; \
47486 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47487 $(NORMAL_TARGET_EXPORTS) \
47488 \
47489 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47490 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47491 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47492 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
47493 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47494 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47495 case $(srcdir) in \
47496 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47497 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47498 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47499 esac; \
1b6c0831
L
47500 module_srcdir=libgomp; \
47501 $(SHELL) $$s/$$module_srcdir/configure \
47502 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47503 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47504 --target=${target_alias} \
22121df0 47505 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47506 $(STAGE4_CONFIGURE_FLAGS)
47507@endif target-libgomp-bootstrap
47508
47509.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
47510maybe-configure-stageprofile-target-libgomp:
47511@if target-libgomp-bootstrap
47512maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
47513configure-stageprofile-target-libgomp:
47514 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47515 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47516 @r=`${PWD_COMMAND}`; export r; \
47517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47518 TFLAGS="$(STAGEprofile_TFLAGS)"; \
47519 echo "Checking multilib configuration for libgomp..."; \
22121df0 47520 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47521 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47522 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47523 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47524 else \
47525 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47526 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47527 fi; \
47528 else \
47529 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47530 fi; \
47531 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47532 $(NORMAL_TARGET_EXPORTS) \
47533 \
47534 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47535 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47536 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47537 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
47538 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47539 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47540 case $(srcdir) in \
47541 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47542 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47543 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47544 esac; \
1b6c0831
L
47545 module_srcdir=libgomp; \
47546 $(SHELL) $$s/$$module_srcdir/configure \
47547 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47548 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47549 --target=${target_alias} \
22121df0 47550 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47551 $(STAGEprofile_CONFIGURE_FLAGS)
47552@endif target-libgomp-bootstrap
47553
47554.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
47555maybe-configure-stagefeedback-target-libgomp:
47556@if target-libgomp-bootstrap
47557maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
47558configure-stagefeedback-target-libgomp:
47559 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47560 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47561 @r=`${PWD_COMMAND}`; export r; \
47562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47563 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
47564 echo "Checking multilib configuration for libgomp..."; \
22121df0 47565 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47566 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47567 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47568 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47569 else \
47570 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47571 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47572 fi; \
47573 else \
47574 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47575 fi; \
47576 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47577 $(NORMAL_TARGET_EXPORTS) \
47578 \
47579 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47580 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47581 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47582 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
47583 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47584 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47585 case $(srcdir) in \
47586 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47587 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47588 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47589 esac; \
1b6c0831
L
47590 module_srcdir=libgomp; \
47591 $(SHELL) $$s/$$module_srcdir/configure \
47592 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47593 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47594 --target=${target_alias} \
22121df0 47595 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47596 $(STAGEfeedback_CONFIGURE_FLAGS)
47597@endif target-libgomp-bootstrap
47598
47599
47600
b3ded179
PB
47601
47602
47603.PHONY: all-target-libgomp maybe-all-target-libgomp
47604maybe-all-target-libgomp:
4f0ef2d8
CD
47605@if gcc-bootstrap
47606all-target-libgomp: stage_current
47607@endif gcc-bootstrap
b3ded179
PB
47608@if target-libgomp
47609TARGET-target-libgomp=all
47610maybe-all-target-libgomp: all-target-libgomp
47611all-target-libgomp: configure-target-libgomp
b3ded179
PB
47612 @r=`${PWD_COMMAND}`; export r; \
47613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 47614 $(NORMAL_TARGET_EXPORTS) \
b3ded179 47615 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47616 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 47617 $(TARGET-target-libgomp))
b3ded179
PB
47618@endif target-libgomp
47619
47620
47621
911e63d0
JR
47622.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
47623.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
47624maybe-all-stage1-target-libgomp:
47625maybe-clean-stage1-target-libgomp:
47626@if target-libgomp-bootstrap
47627maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
47628all-stage1: all-stage1-target-libgomp
47629TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
47630all-stage1-target-libgomp: configure-stage1-target-libgomp
47631 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
47632 @r=`${PWD_COMMAND}`; export r; \
47633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47634 TFLAGS="$(STAGE1_TFLAGS)"; \
47635 $(NORMAL_TARGET_EXPORTS) \
47636 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47637 \
911e63d0
JR
47638 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47639 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47640 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47641 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47642 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47643 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47644 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
47645 $(EXTRA_TARGET_FLAGS) \
47646 \
05a13254 47647 TFLAGS="$(STAGE1_TFLAGS)" \
911e63d0
JR
47648 $(TARGET-stage1-target-libgomp)
47649
47650maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
47651clean-stage1: clean-stage1-target-libgomp
47652clean-stage1-target-libgomp:
47653 @if [ $(current_stage) = stage1 ]; then \
47654 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47655 else \
47656 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
47657 $(MAKE) stage1-start; \
47658 fi; \
47659 cd $(TARGET_SUBDIR)/libgomp && \
47660 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 47661 clean
911e63d0
JR
47662@endif target-libgomp-bootstrap
47663
47664
47665.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
47666.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
47667maybe-all-stage2-target-libgomp:
47668maybe-clean-stage2-target-libgomp:
47669@if target-libgomp-bootstrap
47670maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
47671all-stage2: all-stage2-target-libgomp
47672TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
47673all-stage2-target-libgomp: configure-stage2-target-libgomp
47674 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
47675 @r=`${PWD_COMMAND}`; export r; \
47676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47677 TFLAGS="$(STAGE2_TFLAGS)"; \
47678 $(NORMAL_TARGET_EXPORTS) \
47679 \
47680 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47681 \
911e63d0
JR
47682 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47683 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47684 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47685 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47686 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47687 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47688 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47689 $(EXTRA_TARGET_FLAGS) \
05a13254 47690 TFLAGS="$(STAGE2_TFLAGS)" \
911e63d0
JR
47691 $(TARGET-stage2-target-libgomp)
47692
47693maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
47694clean-stage2: clean-stage2-target-libgomp
47695clean-stage2-target-libgomp:
47696 @if [ $(current_stage) = stage2 ]; then \
47697 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47698 else \
47699 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
47700 $(MAKE) stage2-start; \
47701 fi; \
47702 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47703 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47704@endif target-libgomp-bootstrap
47705
47706
47707.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
47708.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
47709maybe-all-stage3-target-libgomp:
47710maybe-clean-stage3-target-libgomp:
47711@if target-libgomp-bootstrap
47712maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
47713all-stage3: all-stage3-target-libgomp
47714TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
47715all-stage3-target-libgomp: configure-stage3-target-libgomp
47716 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
47717 @r=`${PWD_COMMAND}`; export r; \
47718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47719 TFLAGS="$(STAGE3_TFLAGS)"; \
47720 $(NORMAL_TARGET_EXPORTS) \
47721 \
47722 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47723 \
911e63d0
JR
47724 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47725 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47726 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47727 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47728 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47729 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47730 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47731 $(EXTRA_TARGET_FLAGS) \
05a13254 47732 TFLAGS="$(STAGE3_TFLAGS)" \
911e63d0
JR
47733 $(TARGET-stage3-target-libgomp)
47734
47735maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
47736clean-stage3: clean-stage3-target-libgomp
47737clean-stage3-target-libgomp:
47738 @if [ $(current_stage) = stage3 ]; then \
47739 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47740 else \
47741 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
47742 $(MAKE) stage3-start; \
47743 fi; \
47744 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47745 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47746@endif target-libgomp-bootstrap
47747
47748
47749.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
47750.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
47751maybe-all-stage4-target-libgomp:
47752maybe-clean-stage4-target-libgomp:
47753@if target-libgomp-bootstrap
47754maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
47755all-stage4: all-stage4-target-libgomp
47756TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
47757all-stage4-target-libgomp: configure-stage4-target-libgomp
47758 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47759 @r=`${PWD_COMMAND}`; export r; \
47760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47761 TFLAGS="$(STAGE4_TFLAGS)"; \
47762 $(NORMAL_TARGET_EXPORTS) \
47763 \
47764 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47765 \
911e63d0
JR
47766 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47767 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47768 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47769 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47770 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47771 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47772 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47773 $(EXTRA_TARGET_FLAGS) \
05a13254 47774 TFLAGS="$(STAGE4_TFLAGS)" \
911e63d0
JR
47775 $(TARGET-stage4-target-libgomp)
47776
47777maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
47778clean-stage4: clean-stage4-target-libgomp
47779clean-stage4-target-libgomp:
47780 @if [ $(current_stage) = stage4 ]; then \
47781 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47782 else \
47783 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
47784 $(MAKE) stage4-start; \
47785 fi; \
47786 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47787 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47788@endif target-libgomp-bootstrap
47789
47790
47791.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
47792.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
47793maybe-all-stageprofile-target-libgomp:
47794maybe-clean-stageprofile-target-libgomp:
47795@if target-libgomp-bootstrap
47796maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
47797all-stageprofile: all-stageprofile-target-libgomp
47798TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
47799all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
47800 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47801 @r=`${PWD_COMMAND}`; export r; \
47802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47803 TFLAGS="$(STAGEprofile_TFLAGS)"; \
47804 $(NORMAL_TARGET_EXPORTS) \
47805 \
47806 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47807 \
911e63d0
JR
47808 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47809 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47810 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47811 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47812 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47813 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47814 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47815 $(EXTRA_TARGET_FLAGS) \
05a13254 47816 TFLAGS="$(STAGEprofile_TFLAGS)" \
911e63d0
JR
47817 $(TARGET-stageprofile-target-libgomp)
47818
47819maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
47820clean-stageprofile: clean-stageprofile-target-libgomp
47821clean-stageprofile-target-libgomp:
47822 @if [ $(current_stage) = stageprofile ]; then \
47823 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47824 else \
47825 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
47826 $(MAKE) stageprofile-start; \
47827 fi; \
47828 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47829 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47830@endif target-libgomp-bootstrap
47831
47832
47833.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
47834.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
47835maybe-all-stagefeedback-target-libgomp:
47836maybe-clean-stagefeedback-target-libgomp:
47837@if target-libgomp-bootstrap
47838maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
47839all-stagefeedback: all-stagefeedback-target-libgomp
47840TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
47841all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
47842 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47843 @r=`${PWD_COMMAND}`; export r; \
47844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47845 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
47846 $(NORMAL_TARGET_EXPORTS) \
47847 \
47848 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47849 \
911e63d0
JR
47850 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47851 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47852 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47853 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47854 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47855 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47856 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47857 $(EXTRA_TARGET_FLAGS) \
05a13254 47858 TFLAGS="$(STAGEfeedback_TFLAGS)" \
911e63d0
JR
47859 $(TARGET-stagefeedback-target-libgomp)
47860
47861maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
47862clean-stagefeedback: clean-stagefeedback-target-libgomp
47863clean-stagefeedback-target-libgomp:
47864 @if [ $(current_stage) = stagefeedback ]; then \
47865 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47866 else \
47867 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
47868 $(MAKE) stagefeedback-start; \
47869 fi; \
47870 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47871 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47872@endif target-libgomp-bootstrap
47873
47874
47875
47876
b3ded179
PB
47877
47878
47879.PHONY: check-target-libgomp maybe-check-target-libgomp
47880maybe-check-target-libgomp:
47881@if target-libgomp
47882maybe-check-target-libgomp: check-target-libgomp
47883
47884check-target-libgomp:
47885 @: $(MAKE); $(unstage)
47886 @r=`${PWD_COMMAND}`; export r; \
47887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47888 $(NORMAL_TARGET_EXPORTS) \
47889 (cd $(TARGET_SUBDIR)/libgomp && \
47890 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47891
47892@endif target-libgomp
47893
47894.PHONY: install-target-libgomp maybe-install-target-libgomp
47895maybe-install-target-libgomp:
47896@if target-libgomp
47897maybe-install-target-libgomp: install-target-libgomp
47898
47899install-target-libgomp: installdirs
47900 @: $(MAKE); $(unstage)
47901 @r=`${PWD_COMMAND}`; export r; \
47902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47903 $(NORMAL_TARGET_EXPORTS) \
47904 (cd $(TARGET_SUBDIR)/libgomp && \
47905 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47906
47907@endif target-libgomp
47908
9b980aa1
RW
47909.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
47910maybe-install-strip-target-libgomp:
47911@if target-libgomp
47912maybe-install-strip-target-libgomp: install-strip-target-libgomp
47913
47914install-strip-target-libgomp: installdirs
47915 @: $(MAKE); $(unstage)
47916 @r=`${PWD_COMMAND}`; export r; \
47917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47918 $(NORMAL_TARGET_EXPORTS) \
47919 (cd $(TARGET_SUBDIR)/libgomp && \
47920 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47921
47922@endif target-libgomp
47923
56a8fe78 47924# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
47925
47926.PHONY: maybe-info-target-libgomp info-target-libgomp
47927maybe-info-target-libgomp:
47928@if target-libgomp
47929maybe-info-target-libgomp: info-target-libgomp
47930
47931info-target-libgomp: \
47932 configure-target-libgomp
47933 @: $(MAKE); $(unstage)
22121df0 47934 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47935 r=`${PWD_COMMAND}`; export r; \
47936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47937 $(NORMAL_TARGET_EXPORTS) \
22121df0 47938 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47939 for flag in $(EXTRA_TARGET_FLAGS); do \
47940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47941 done; \
47942 (cd $(TARGET_SUBDIR)/libgomp && \
47943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47945 "RANLIB=$${RANLIB}" \
0c24b341 47946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47947 info) \
47948 || exit 1
47949
47950@endif target-libgomp
47951
47952.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
47953maybe-dvi-target-libgomp:
47954@if target-libgomp
47955maybe-dvi-target-libgomp: dvi-target-libgomp
47956
47957dvi-target-libgomp: \
47958 configure-target-libgomp
47959 @: $(MAKE); $(unstage)
22121df0 47960 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47961 r=`${PWD_COMMAND}`; export r; \
47962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47963 $(NORMAL_TARGET_EXPORTS) \
22121df0 47964 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47965 for flag in $(EXTRA_TARGET_FLAGS); do \
47966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47967 done; \
47968 (cd $(TARGET_SUBDIR)/libgomp && \
47969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47971 "RANLIB=$${RANLIB}" \
0c24b341 47972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47973 dvi) \
47974 || exit 1
47975
47976@endif target-libgomp
47977
56a8fe78
DD
47978.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
47979maybe-pdf-target-libgomp:
47980@if target-libgomp
47981maybe-pdf-target-libgomp: pdf-target-libgomp
47982
47983pdf-target-libgomp: \
47984 configure-target-libgomp
47985 @: $(MAKE); $(unstage)
22121df0 47986 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
47987 r=`${PWD_COMMAND}`; export r; \
47988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47989 $(NORMAL_TARGET_EXPORTS) \
22121df0 47990 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
47991 for flag in $(EXTRA_TARGET_FLAGS); do \
47992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47993 done; \
47994 (cd $(TARGET_SUBDIR)/libgomp && \
47995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47997 "RANLIB=$${RANLIB}" \
0c24b341 47998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
47999 pdf) \
48000 || exit 1
48001
48002@endif target-libgomp
48003
b3ded179
PB
48004.PHONY: maybe-html-target-libgomp html-target-libgomp
48005maybe-html-target-libgomp:
48006@if target-libgomp
48007maybe-html-target-libgomp: html-target-libgomp
48008
48009html-target-libgomp: \
48010 configure-target-libgomp
48011 @: $(MAKE); $(unstage)
22121df0 48012 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48013 r=`${PWD_COMMAND}`; export r; \
48014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48015 $(NORMAL_TARGET_EXPORTS) \
22121df0 48016 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48017 for flag in $(EXTRA_TARGET_FLAGS); do \
48018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48019 done; \
48020 (cd $(TARGET_SUBDIR)/libgomp && \
48021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48023 "RANLIB=$${RANLIB}" \
0c24b341 48024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48025 html) \
48026 || exit 1
48027
48028@endif target-libgomp
48029
48030.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
48031maybe-TAGS-target-libgomp:
48032@if target-libgomp
48033maybe-TAGS-target-libgomp: TAGS-target-libgomp
48034
48035TAGS-target-libgomp: \
48036 configure-target-libgomp
48037 @: $(MAKE); $(unstage)
22121df0 48038 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48039 r=`${PWD_COMMAND}`; export r; \
48040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48041 $(NORMAL_TARGET_EXPORTS) \
22121df0 48042 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48043 for flag in $(EXTRA_TARGET_FLAGS); do \
48044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48045 done; \
48046 (cd $(TARGET_SUBDIR)/libgomp && \
48047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48049 "RANLIB=$${RANLIB}" \
0c24b341 48050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48051 TAGS) \
48052 || exit 1
48053
48054@endif target-libgomp
48055
48056.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
48057maybe-install-info-target-libgomp:
48058@if target-libgomp
48059maybe-install-info-target-libgomp: install-info-target-libgomp
48060
48061install-info-target-libgomp: \
48062 configure-target-libgomp \
48063 info-target-libgomp
48064 @: $(MAKE); $(unstage)
22121df0 48065 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48066 r=`${PWD_COMMAND}`; export r; \
48067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48068 $(NORMAL_TARGET_EXPORTS) \
22121df0 48069 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48070 for flag in $(EXTRA_TARGET_FLAGS); do \
48071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48072 done; \
48073 (cd $(TARGET_SUBDIR)/libgomp && \
48074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48076 "RANLIB=$${RANLIB}" \
0c24b341 48077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48078 install-info) \
48079 || exit 1
48080
48081@endif target-libgomp
48082
a3ca38d2
DD
48083.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
48084maybe-install-pdf-target-libgomp:
48085@if target-libgomp
48086maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
48087
48088install-pdf-target-libgomp: \
48089 configure-target-libgomp \
48090 pdf-target-libgomp
48091 @: $(MAKE); $(unstage)
22121df0 48092 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
48093 r=`${PWD_COMMAND}`; export r; \
48094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48095 $(NORMAL_TARGET_EXPORTS) \
22121df0 48096 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
48097 for flag in $(EXTRA_TARGET_FLAGS); do \
48098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48099 done; \
48100 (cd $(TARGET_SUBDIR)/libgomp && \
48101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48103 "RANLIB=$${RANLIB}" \
0c24b341 48104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
48105 install-pdf) \
48106 || exit 1
48107
48108@endif target-libgomp
48109
108a6f8e
CD
48110.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
48111maybe-install-html-target-libgomp:
48112@if target-libgomp
48113maybe-install-html-target-libgomp: install-html-target-libgomp
48114
48115install-html-target-libgomp: \
48116 configure-target-libgomp \
48117 html-target-libgomp
48118 @: $(MAKE); $(unstage)
22121df0 48119 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
48120 r=`${PWD_COMMAND}`; export r; \
48121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48122 $(NORMAL_TARGET_EXPORTS) \
22121df0 48123 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
48124 for flag in $(EXTRA_TARGET_FLAGS); do \
48125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48126 done; \
48127 (cd $(TARGET_SUBDIR)/libgomp && \
48128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48130 "RANLIB=$${RANLIB}" \
0c24b341 48131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
48132 install-html) \
48133 || exit 1
48134
48135@endif target-libgomp
48136
b3ded179
PB
48137.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
48138maybe-installcheck-target-libgomp:
48139@if target-libgomp
48140maybe-installcheck-target-libgomp: installcheck-target-libgomp
48141
48142installcheck-target-libgomp: \
48143 configure-target-libgomp
48144 @: $(MAKE); $(unstage)
22121df0 48145 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48146 r=`${PWD_COMMAND}`; export r; \
48147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48148 $(NORMAL_TARGET_EXPORTS) \
22121df0 48149 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48150 for flag in $(EXTRA_TARGET_FLAGS); do \
48151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48152 done; \
48153 (cd $(TARGET_SUBDIR)/libgomp && \
48154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48156 "RANLIB=$${RANLIB}" \
0c24b341 48157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48158 installcheck) \
48159 || exit 1
48160
48161@endif target-libgomp
48162
48163.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
48164maybe-mostlyclean-target-libgomp:
48165@if target-libgomp
48166maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
48167
48168mostlyclean-target-libgomp:
48169 @: $(MAKE); $(unstage)
22121df0 48170 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48171 r=`${PWD_COMMAND}`; export r; \
48172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48173 $(NORMAL_TARGET_EXPORTS) \
22121df0 48174 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48175 for flag in $(EXTRA_TARGET_FLAGS); do \
48176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48177 done; \
48178 (cd $(TARGET_SUBDIR)/libgomp && \
48179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48181 "RANLIB=$${RANLIB}" \
0c24b341 48182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48183 mostlyclean) \
48184 || exit 1
48185
48186@endif target-libgomp
48187
48188.PHONY: maybe-clean-target-libgomp clean-target-libgomp
48189maybe-clean-target-libgomp:
48190@if target-libgomp
48191maybe-clean-target-libgomp: clean-target-libgomp
48192
48193clean-target-libgomp:
48194 @: $(MAKE); $(unstage)
22121df0 48195 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48196 r=`${PWD_COMMAND}`; export r; \
48197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48198 $(NORMAL_TARGET_EXPORTS) \
22121df0 48199 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48200 for flag in $(EXTRA_TARGET_FLAGS); do \
48201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48202 done; \
48203 (cd $(TARGET_SUBDIR)/libgomp && \
48204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48206 "RANLIB=$${RANLIB}" \
0c24b341 48207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48208 clean) \
48209 || exit 1
48210
48211@endif target-libgomp
48212
48213.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
48214maybe-distclean-target-libgomp:
48215@if target-libgomp
48216maybe-distclean-target-libgomp: distclean-target-libgomp
48217
48218distclean-target-libgomp:
48219 @: $(MAKE); $(unstage)
22121df0 48220 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48221 r=`${PWD_COMMAND}`; export r; \
48222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48223 $(NORMAL_TARGET_EXPORTS) \
22121df0 48224 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48225 for flag in $(EXTRA_TARGET_FLAGS); do \
48226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48227 done; \
48228 (cd $(TARGET_SUBDIR)/libgomp && \
48229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48231 "RANLIB=$${RANLIB}" \
0c24b341 48232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48233 distclean) \
48234 || exit 1
48235
48236@endif target-libgomp
48237
48238.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
48239maybe-maintainer-clean-target-libgomp:
48240@if target-libgomp
48241maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
48242
48243maintainer-clean-target-libgomp:
48244 @: $(MAKE); $(unstage)
22121df0 48245 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48246 r=`${PWD_COMMAND}`; export r; \
48247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48248 $(NORMAL_TARGET_EXPORTS) \
22121df0 48249 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48250 for flag in $(EXTRA_TARGET_FLAGS); do \
48251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48252 done; \
48253 (cd $(TARGET_SUBDIR)/libgomp && \
48254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48256 "RANLIB=$${RANLIB}" \
0c24b341 48257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48258 maintainer-clean) \
48259 || exit 1
48260
48261@endif target-libgomp
48262
48263
48264
7ec59b9e
L
48265
48266
48267.PHONY: configure-target-libitm maybe-configure-target-libitm
48268maybe-configure-target-libitm:
48269@if gcc-bootstrap
48270configure-target-libitm: stage_current
48271@endif gcc-bootstrap
48272@if target-libitm
48273maybe-configure-target-libitm: configure-target-libitm
48274configure-target-libitm:
48275 @: $(MAKE); $(unstage)
48276 @r=`${PWD_COMMAND}`; export r; \
48277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48278 echo "Checking multilib configuration for libitm..."; \
22121df0
L
48279 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
48280 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
48281 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
48282 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
48283 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
48284 else \
48285 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
48286 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
48287 fi; \
48288 else \
48289 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
48290 fi; \
48291 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 48292 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
48293 $(NORMAL_TARGET_EXPORTS) \
48294 echo Configuring in $(TARGET_SUBDIR)/libitm; \
48295 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
48296 case $(srcdir) in \
48297 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48298 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
48299 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
48300 esac; \
1b6c0831 48301 module_srcdir=libitm; \
7ec59b9e 48302 rm -f no-such-file || : ; \
1b6c0831
L
48303 CONFIG_SITE=no-such-file $(SHELL) \
48304 $$s/$$module_srcdir/configure \
48305 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 48306 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 48307 --target=${target_alias} \
7ec59b9e
L
48308 || exit 1
48309@endif target-libitm
48310
48311
48312
48313
48314
48315.PHONY: all-target-libitm maybe-all-target-libitm
48316maybe-all-target-libitm:
48317@if gcc-bootstrap
48318all-target-libitm: stage_current
48319@endif gcc-bootstrap
48320@if target-libitm
48321TARGET-target-libitm=all
48322maybe-all-target-libitm: all-target-libitm
48323all-target-libitm: configure-target-libitm
48324 @: $(MAKE); $(unstage)
48325 @r=`${PWD_COMMAND}`; export r; \
48326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48327 $(NORMAL_TARGET_EXPORTS) \
48328 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 48329 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
48330 $(TARGET-target-libitm))
48331@endif target-libitm
48332
48333
48334
48335
48336
48337.PHONY: check-target-libitm maybe-check-target-libitm
48338maybe-check-target-libitm:
48339@if target-libitm
48340maybe-check-target-libitm: check-target-libitm
48341
48342check-target-libitm:
48343 @: $(MAKE); $(unstage)
48344 @r=`${PWD_COMMAND}`; export r; \
48345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48346 $(NORMAL_TARGET_EXPORTS) \
48347 (cd $(TARGET_SUBDIR)/libitm && \
48348 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
48349
48350@endif target-libitm
48351
48352.PHONY: install-target-libitm maybe-install-target-libitm
48353maybe-install-target-libitm:
48354@if target-libitm
48355maybe-install-target-libitm: install-target-libitm
48356
48357install-target-libitm: installdirs
48358 @: $(MAKE); $(unstage)
48359 @r=`${PWD_COMMAND}`; export r; \
48360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48361 $(NORMAL_TARGET_EXPORTS) \
48362 (cd $(TARGET_SUBDIR)/libitm && \
48363 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
48364
48365@endif target-libitm
48366
48367.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
48368maybe-install-strip-target-libitm:
48369@if target-libitm
48370maybe-install-strip-target-libitm: install-strip-target-libitm
48371
48372install-strip-target-libitm: installdirs
48373 @: $(MAKE); $(unstage)
48374 @r=`${PWD_COMMAND}`; export r; \
48375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48376 $(NORMAL_TARGET_EXPORTS) \
48377 (cd $(TARGET_SUBDIR)/libitm && \
48378 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
48379
48380@endif target-libitm
48381
48382# Other targets (info, dvi, pdf, etc.)
48383
48384.PHONY: maybe-info-target-libitm info-target-libitm
48385maybe-info-target-libitm:
48386@if target-libitm
48387maybe-info-target-libitm: info-target-libitm
48388
48389info-target-libitm: \
48390 configure-target-libitm
48391 @: $(MAKE); $(unstage)
22121df0 48392 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48393 r=`${PWD_COMMAND}`; export r; \
48394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48395 $(NORMAL_TARGET_EXPORTS) \
22121df0 48396 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48397 for flag in $(EXTRA_TARGET_FLAGS); do \
48398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48399 done; \
48400 (cd $(TARGET_SUBDIR)/libitm && \
48401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48403 "RANLIB=$${RANLIB}" \
48404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48405 info) \
48406 || exit 1
48407
48408@endif target-libitm
48409
48410.PHONY: maybe-dvi-target-libitm dvi-target-libitm
48411maybe-dvi-target-libitm:
48412@if target-libitm
48413maybe-dvi-target-libitm: dvi-target-libitm
48414
48415dvi-target-libitm: \
48416 configure-target-libitm
48417 @: $(MAKE); $(unstage)
22121df0 48418 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48419 r=`${PWD_COMMAND}`; export r; \
48420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48421 $(NORMAL_TARGET_EXPORTS) \
22121df0 48422 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48423 for flag in $(EXTRA_TARGET_FLAGS); do \
48424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48425 done; \
48426 (cd $(TARGET_SUBDIR)/libitm && \
48427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48429 "RANLIB=$${RANLIB}" \
48430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48431 dvi) \
48432 || exit 1
48433
48434@endif target-libitm
48435
48436.PHONY: maybe-pdf-target-libitm pdf-target-libitm
48437maybe-pdf-target-libitm:
48438@if target-libitm
48439maybe-pdf-target-libitm: pdf-target-libitm
48440
48441pdf-target-libitm: \
48442 configure-target-libitm
48443 @: $(MAKE); $(unstage)
22121df0 48444 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48445 r=`${PWD_COMMAND}`; export r; \
48446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48447 $(NORMAL_TARGET_EXPORTS) \
22121df0 48448 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48449 for flag in $(EXTRA_TARGET_FLAGS); do \
48450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48451 done; \
48452 (cd $(TARGET_SUBDIR)/libitm && \
48453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48455 "RANLIB=$${RANLIB}" \
48456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48457 pdf) \
48458 || exit 1
48459
48460@endif target-libitm
48461
48462.PHONY: maybe-html-target-libitm html-target-libitm
48463maybe-html-target-libitm:
48464@if target-libitm
48465maybe-html-target-libitm: html-target-libitm
48466
48467html-target-libitm: \
48468 configure-target-libitm
48469 @: $(MAKE); $(unstage)
22121df0 48470 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48471 r=`${PWD_COMMAND}`; export r; \
48472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48473 $(NORMAL_TARGET_EXPORTS) \
22121df0 48474 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48475 for flag in $(EXTRA_TARGET_FLAGS); do \
48476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48477 done; \
48478 (cd $(TARGET_SUBDIR)/libitm && \
48479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48481 "RANLIB=$${RANLIB}" \
48482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48483 html) \
48484 || exit 1
48485
48486@endif target-libitm
48487
48488.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
48489maybe-TAGS-target-libitm:
48490@if target-libitm
48491maybe-TAGS-target-libitm: TAGS-target-libitm
48492
48493TAGS-target-libitm: \
48494 configure-target-libitm
48495 @: $(MAKE); $(unstage)
22121df0 48496 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48497 r=`${PWD_COMMAND}`; export r; \
48498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48499 $(NORMAL_TARGET_EXPORTS) \
22121df0 48500 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48501 for flag in $(EXTRA_TARGET_FLAGS); do \
48502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48503 done; \
48504 (cd $(TARGET_SUBDIR)/libitm && \
48505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48507 "RANLIB=$${RANLIB}" \
48508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48509 TAGS) \
48510 || exit 1
48511
48512@endif target-libitm
48513
48514.PHONY: maybe-install-info-target-libitm install-info-target-libitm
48515maybe-install-info-target-libitm:
48516@if target-libitm
48517maybe-install-info-target-libitm: install-info-target-libitm
48518
48519install-info-target-libitm: \
48520 configure-target-libitm \
48521 info-target-libitm
48522 @: $(MAKE); $(unstage)
22121df0 48523 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48524 r=`${PWD_COMMAND}`; export r; \
48525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48526 $(NORMAL_TARGET_EXPORTS) \
22121df0 48527 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48528 for flag in $(EXTRA_TARGET_FLAGS); do \
48529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48530 done; \
48531 (cd $(TARGET_SUBDIR)/libitm && \
48532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48534 "RANLIB=$${RANLIB}" \
48535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48536 install-info) \
48537 || exit 1
48538
48539@endif target-libitm
48540
48541.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
48542maybe-install-pdf-target-libitm:
48543@if target-libitm
48544maybe-install-pdf-target-libitm: install-pdf-target-libitm
48545
48546install-pdf-target-libitm: \
48547 configure-target-libitm \
48548 pdf-target-libitm
48549 @: $(MAKE); $(unstage)
22121df0 48550 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48551 r=`${PWD_COMMAND}`; export r; \
48552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48553 $(NORMAL_TARGET_EXPORTS) \
22121df0 48554 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48555 for flag in $(EXTRA_TARGET_FLAGS); do \
48556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48557 done; \
48558 (cd $(TARGET_SUBDIR)/libitm && \
48559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48561 "RANLIB=$${RANLIB}" \
48562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48563 install-pdf) \
48564 || exit 1
48565
48566@endif target-libitm
48567
48568.PHONY: maybe-install-html-target-libitm install-html-target-libitm
48569maybe-install-html-target-libitm:
48570@if target-libitm
48571maybe-install-html-target-libitm: install-html-target-libitm
48572
48573install-html-target-libitm: \
48574 configure-target-libitm \
48575 html-target-libitm
48576 @: $(MAKE); $(unstage)
22121df0 48577 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48578 r=`${PWD_COMMAND}`; export r; \
48579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48580 $(NORMAL_TARGET_EXPORTS) \
22121df0 48581 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48582 for flag in $(EXTRA_TARGET_FLAGS); do \
48583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48584 done; \
48585 (cd $(TARGET_SUBDIR)/libitm && \
48586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48588 "RANLIB=$${RANLIB}" \
48589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48590 install-html) \
48591 || exit 1
48592
48593@endif target-libitm
48594
48595.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
48596maybe-installcheck-target-libitm:
48597@if target-libitm
48598maybe-installcheck-target-libitm: installcheck-target-libitm
48599
48600installcheck-target-libitm: \
48601 configure-target-libitm
48602 @: $(MAKE); $(unstage)
22121df0 48603 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48604 r=`${PWD_COMMAND}`; export r; \
48605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48606 $(NORMAL_TARGET_EXPORTS) \
22121df0 48607 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48608 for flag in $(EXTRA_TARGET_FLAGS); do \
48609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48610 done; \
48611 (cd $(TARGET_SUBDIR)/libitm && \
48612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48614 "RANLIB=$${RANLIB}" \
48615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48616 installcheck) \
48617 || exit 1
48618
48619@endif target-libitm
48620
48621.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
48622maybe-mostlyclean-target-libitm:
48623@if target-libitm
48624maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
48625
48626mostlyclean-target-libitm:
48627 @: $(MAKE); $(unstage)
22121df0 48628 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48629 r=`${PWD_COMMAND}`; export r; \
48630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48631 $(NORMAL_TARGET_EXPORTS) \
22121df0 48632 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48633 for flag in $(EXTRA_TARGET_FLAGS); do \
48634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48635 done; \
48636 (cd $(TARGET_SUBDIR)/libitm && \
48637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48639 "RANLIB=$${RANLIB}" \
48640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48641 mostlyclean) \
48642 || exit 1
48643
48644@endif target-libitm
48645
48646.PHONY: maybe-clean-target-libitm clean-target-libitm
48647maybe-clean-target-libitm:
48648@if target-libitm
48649maybe-clean-target-libitm: clean-target-libitm
48650
48651clean-target-libitm:
48652 @: $(MAKE); $(unstage)
22121df0 48653 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48654 r=`${PWD_COMMAND}`; export r; \
48655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48656 $(NORMAL_TARGET_EXPORTS) \
22121df0 48657 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48658 for flag in $(EXTRA_TARGET_FLAGS); do \
48659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48660 done; \
48661 (cd $(TARGET_SUBDIR)/libitm && \
48662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48664 "RANLIB=$${RANLIB}" \
48665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48666 clean) \
48667 || exit 1
48668
48669@endif target-libitm
48670
48671.PHONY: maybe-distclean-target-libitm distclean-target-libitm
48672maybe-distclean-target-libitm:
48673@if target-libitm
48674maybe-distclean-target-libitm: distclean-target-libitm
48675
48676distclean-target-libitm:
48677 @: $(MAKE); $(unstage)
22121df0 48678 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48679 r=`${PWD_COMMAND}`; export r; \
48680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48681 $(NORMAL_TARGET_EXPORTS) \
22121df0 48682 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48683 for flag in $(EXTRA_TARGET_FLAGS); do \
48684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48685 done; \
48686 (cd $(TARGET_SUBDIR)/libitm && \
48687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48689 "RANLIB=$${RANLIB}" \
48690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48691 distclean) \
48692 || exit 1
48693
48694@endif target-libitm
48695
48696.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
48697maybe-maintainer-clean-target-libitm:
48698@if target-libitm
48699maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
48700
48701maintainer-clean-target-libitm:
48702 @: $(MAKE); $(unstage)
22121df0 48703 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48704 r=`${PWD_COMMAND}`; export r; \
48705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48706 $(NORMAL_TARGET_EXPORTS) \
22121df0 48707 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48708 for flag in $(EXTRA_TARGET_FLAGS); do \
48709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48710 done; \
48711 (cd $(TARGET_SUBDIR)/libitm && \
48712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48714 "RANLIB=$${RANLIB}" \
48715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48716 maintainer-clean) \
48717 || exit 1
48718
48719@endif target-libitm
48720
48721
48722
48723
48724
48725.PHONY: configure-target-libatomic maybe-configure-target-libatomic
48726maybe-configure-target-libatomic:
48727@if gcc-bootstrap
48728configure-target-libatomic: stage_current
48729@endif gcc-bootstrap
48730@if target-libatomic
48731maybe-configure-target-libatomic: configure-target-libatomic
48732configure-target-libatomic:
48733 @: $(MAKE); $(unstage)
48734 @r=`${PWD_COMMAND}`; export r; \
48735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48736 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
48737 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
48738 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
48739 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
48740 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
48741 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
48742 else \
48743 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
48744 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
48745 fi; \
48746 else \
48747 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
48748 fi; \
48749 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 48750 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
48751 $(NORMAL_TARGET_EXPORTS) \
48752 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
48753 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
48754 case $(srcdir) in \
48755 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48756 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
48757 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
48758 esac; \
1b6c0831 48759 module_srcdir=libatomic; \
7ec59b9e 48760 rm -f no-such-file || : ; \
1b6c0831
L
48761 CONFIG_SITE=no-such-file $(SHELL) \
48762 $$s/$$module_srcdir/configure \
48763 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 48764 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 48765 --target=${target_alias} \
7ec59b9e
L
48766 || exit 1
48767@endif target-libatomic
48768
48769
48770
48771
48772
48773.PHONY: all-target-libatomic maybe-all-target-libatomic
48774maybe-all-target-libatomic:
48775@if gcc-bootstrap
48776all-target-libatomic: stage_current
48777@endif gcc-bootstrap
48778@if target-libatomic
48779TARGET-target-libatomic=all
48780maybe-all-target-libatomic: all-target-libatomic
48781all-target-libatomic: configure-target-libatomic
48782 @: $(MAKE); $(unstage)
48783 @r=`${PWD_COMMAND}`; export r; \
48784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48785 $(NORMAL_TARGET_EXPORTS) \
48786 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 48787 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
48788 $(TARGET-target-libatomic))
48789@endif target-libatomic
48790
48791
48792
48793
48794
48795.PHONY: check-target-libatomic maybe-check-target-libatomic
48796maybe-check-target-libatomic:
48797@if target-libatomic
48798maybe-check-target-libatomic: check-target-libatomic
48799
48800check-target-libatomic:
48801 @: $(MAKE); $(unstage)
48802 @r=`${PWD_COMMAND}`; export r; \
48803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48804 $(NORMAL_TARGET_EXPORTS) \
48805 (cd $(TARGET_SUBDIR)/libatomic && \
48806 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
48807
48808@endif target-libatomic
48809
48810.PHONY: install-target-libatomic maybe-install-target-libatomic
48811maybe-install-target-libatomic:
48812@if target-libatomic
48813maybe-install-target-libatomic: install-target-libatomic
48814
48815install-target-libatomic: installdirs
48816 @: $(MAKE); $(unstage)
48817 @r=`${PWD_COMMAND}`; export r; \
48818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48819 $(NORMAL_TARGET_EXPORTS) \
48820 (cd $(TARGET_SUBDIR)/libatomic && \
48821 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
48822
48823@endif target-libatomic
48824
48825.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
48826maybe-install-strip-target-libatomic:
48827@if target-libatomic
48828maybe-install-strip-target-libatomic: install-strip-target-libatomic
48829
48830install-strip-target-libatomic: installdirs
48831 @: $(MAKE); $(unstage)
48832 @r=`${PWD_COMMAND}`; export r; \
48833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48834 $(NORMAL_TARGET_EXPORTS) \
48835 (cd $(TARGET_SUBDIR)/libatomic && \
48836 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
48837
48838@endif target-libatomic
48839
48840# Other targets (info, dvi, pdf, etc.)
48841
48842.PHONY: maybe-info-target-libatomic info-target-libatomic
48843maybe-info-target-libatomic:
48844@if target-libatomic
48845maybe-info-target-libatomic: info-target-libatomic
48846
48847info-target-libatomic: \
48848 configure-target-libatomic
48849 @: $(MAKE); $(unstage)
22121df0 48850 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48851 r=`${PWD_COMMAND}`; export r; \
48852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48853 $(NORMAL_TARGET_EXPORTS) \
22121df0 48854 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48855 for flag in $(EXTRA_TARGET_FLAGS); do \
48856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48857 done; \
48858 (cd $(TARGET_SUBDIR)/libatomic && \
48859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48861 "RANLIB=$${RANLIB}" \
48862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48863 info) \
48864 || exit 1
48865
48866@endif target-libatomic
48867
48868.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
48869maybe-dvi-target-libatomic:
48870@if target-libatomic
48871maybe-dvi-target-libatomic: dvi-target-libatomic
48872
48873dvi-target-libatomic: \
48874 configure-target-libatomic
48875 @: $(MAKE); $(unstage)
22121df0 48876 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48877 r=`${PWD_COMMAND}`; export r; \
48878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48879 $(NORMAL_TARGET_EXPORTS) \
22121df0 48880 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48881 for flag in $(EXTRA_TARGET_FLAGS); do \
48882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48883 done; \
48884 (cd $(TARGET_SUBDIR)/libatomic && \
48885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48887 "RANLIB=$${RANLIB}" \
48888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48889 dvi) \
48890 || exit 1
48891
48892@endif target-libatomic
48893
48894.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
48895maybe-pdf-target-libatomic:
48896@if target-libatomic
48897maybe-pdf-target-libatomic: pdf-target-libatomic
48898
48899pdf-target-libatomic: \
48900 configure-target-libatomic
48901 @: $(MAKE); $(unstage)
22121df0 48902 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48903 r=`${PWD_COMMAND}`; export r; \
48904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48905 $(NORMAL_TARGET_EXPORTS) \
22121df0 48906 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48907 for flag in $(EXTRA_TARGET_FLAGS); do \
48908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48909 done; \
48910 (cd $(TARGET_SUBDIR)/libatomic && \
48911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48913 "RANLIB=$${RANLIB}" \
48914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48915 pdf) \
48916 || exit 1
48917
48918@endif target-libatomic
48919
48920.PHONY: maybe-html-target-libatomic html-target-libatomic
48921maybe-html-target-libatomic:
48922@if target-libatomic
48923maybe-html-target-libatomic: html-target-libatomic
48924
48925html-target-libatomic: \
48926 configure-target-libatomic
48927 @: $(MAKE); $(unstage)
22121df0 48928 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48929 r=`${PWD_COMMAND}`; export r; \
48930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48931 $(NORMAL_TARGET_EXPORTS) \
22121df0 48932 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48933 for flag in $(EXTRA_TARGET_FLAGS); do \
48934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48935 done; \
48936 (cd $(TARGET_SUBDIR)/libatomic && \
48937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48939 "RANLIB=$${RANLIB}" \
48940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48941 html) \
48942 || exit 1
48943
48944@endif target-libatomic
48945
48946.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
48947maybe-TAGS-target-libatomic:
48948@if target-libatomic
48949maybe-TAGS-target-libatomic: TAGS-target-libatomic
48950
48951TAGS-target-libatomic: \
48952 configure-target-libatomic
48953 @: $(MAKE); $(unstage)
22121df0 48954 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48955 r=`${PWD_COMMAND}`; export r; \
48956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48957 $(NORMAL_TARGET_EXPORTS) \
22121df0 48958 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48959 for flag in $(EXTRA_TARGET_FLAGS); do \
48960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48961 done; \
48962 (cd $(TARGET_SUBDIR)/libatomic && \
48963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48965 "RANLIB=$${RANLIB}" \
48966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48967 TAGS) \
48968 || exit 1
48969
48970@endif target-libatomic
48971
48972.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
48973maybe-install-info-target-libatomic:
48974@if target-libatomic
48975maybe-install-info-target-libatomic: install-info-target-libatomic
48976
48977install-info-target-libatomic: \
48978 configure-target-libatomic \
48979 info-target-libatomic
48980 @: $(MAKE); $(unstage)
22121df0 48981 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48982 r=`${PWD_COMMAND}`; export r; \
48983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48984 $(NORMAL_TARGET_EXPORTS) \
22121df0 48985 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48986 for flag in $(EXTRA_TARGET_FLAGS); do \
48987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48988 done; \
48989 (cd $(TARGET_SUBDIR)/libatomic && \
48990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48992 "RANLIB=$${RANLIB}" \
48993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48994 install-info) \
48995 || exit 1
48996
48997@endif target-libatomic
48998
48999.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
49000maybe-install-pdf-target-libatomic:
49001@if target-libatomic
49002maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
49003
49004install-pdf-target-libatomic: \
49005 configure-target-libatomic \
49006 pdf-target-libatomic
49007 @: $(MAKE); $(unstage)
22121df0 49008 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49009 r=`${PWD_COMMAND}`; export r; \
49010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49011 $(NORMAL_TARGET_EXPORTS) \
22121df0 49012 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49013 for flag in $(EXTRA_TARGET_FLAGS); do \
49014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49015 done; \
49016 (cd $(TARGET_SUBDIR)/libatomic && \
49017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49019 "RANLIB=$${RANLIB}" \
49020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49021 install-pdf) \
49022 || exit 1
49023
49024@endif target-libatomic
49025
49026.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
49027maybe-install-html-target-libatomic:
49028@if target-libatomic
49029maybe-install-html-target-libatomic: install-html-target-libatomic
49030
49031install-html-target-libatomic: \
49032 configure-target-libatomic \
49033 html-target-libatomic
49034 @: $(MAKE); $(unstage)
22121df0 49035 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49036 r=`${PWD_COMMAND}`; export r; \
49037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49038 $(NORMAL_TARGET_EXPORTS) \
22121df0 49039 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49040 for flag in $(EXTRA_TARGET_FLAGS); do \
49041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49042 done; \
49043 (cd $(TARGET_SUBDIR)/libatomic && \
49044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49046 "RANLIB=$${RANLIB}" \
49047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49048 install-html) \
49049 || exit 1
49050
49051@endif target-libatomic
49052
49053.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
49054maybe-installcheck-target-libatomic:
49055@if target-libatomic
49056maybe-installcheck-target-libatomic: installcheck-target-libatomic
49057
49058installcheck-target-libatomic: \
49059 configure-target-libatomic
49060 @: $(MAKE); $(unstage)
22121df0 49061 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49062 r=`${PWD_COMMAND}`; export r; \
49063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49064 $(NORMAL_TARGET_EXPORTS) \
22121df0 49065 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49066 for flag in $(EXTRA_TARGET_FLAGS); do \
49067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49068 done; \
49069 (cd $(TARGET_SUBDIR)/libatomic && \
49070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49072 "RANLIB=$${RANLIB}" \
49073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49074 installcheck) \
49075 || exit 1
49076
49077@endif target-libatomic
49078
49079.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
49080maybe-mostlyclean-target-libatomic:
49081@if target-libatomic
49082maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
49083
49084mostlyclean-target-libatomic:
49085 @: $(MAKE); $(unstage)
22121df0 49086 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49087 r=`${PWD_COMMAND}`; export r; \
49088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49089 $(NORMAL_TARGET_EXPORTS) \
22121df0 49090 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49091 for flag in $(EXTRA_TARGET_FLAGS); do \
49092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49093 done; \
49094 (cd $(TARGET_SUBDIR)/libatomic && \
49095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49097 "RANLIB=$${RANLIB}" \
49098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49099 mostlyclean) \
49100 || exit 1
49101
49102@endif target-libatomic
49103
49104.PHONY: maybe-clean-target-libatomic clean-target-libatomic
49105maybe-clean-target-libatomic:
49106@if target-libatomic
49107maybe-clean-target-libatomic: clean-target-libatomic
49108
49109clean-target-libatomic:
49110 @: $(MAKE); $(unstage)
22121df0 49111 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49112 r=`${PWD_COMMAND}`; export r; \
49113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49114 $(NORMAL_TARGET_EXPORTS) \
22121df0 49115 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49116 for flag in $(EXTRA_TARGET_FLAGS); do \
49117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49118 done; \
49119 (cd $(TARGET_SUBDIR)/libatomic && \
49120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49122 "RANLIB=$${RANLIB}" \
49123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49124 clean) \
49125 || exit 1
49126
49127@endif target-libatomic
49128
49129.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
49130maybe-distclean-target-libatomic:
49131@if target-libatomic
49132maybe-distclean-target-libatomic: distclean-target-libatomic
49133
49134distclean-target-libatomic:
49135 @: $(MAKE); $(unstage)
22121df0 49136 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49137 r=`${PWD_COMMAND}`; export r; \
49138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49139 $(NORMAL_TARGET_EXPORTS) \
22121df0 49140 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49141 for flag in $(EXTRA_TARGET_FLAGS); do \
49142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49143 done; \
49144 (cd $(TARGET_SUBDIR)/libatomic && \
49145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49147 "RANLIB=$${RANLIB}" \
49148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49149 distclean) \
49150 || exit 1
49151
49152@endif target-libatomic
49153
49154.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
49155maybe-maintainer-clean-target-libatomic:
49156@if target-libatomic
49157maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
49158
49159maintainer-clean-target-libatomic:
49160 @: $(MAKE); $(unstage)
22121df0 49161 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49162 r=`${PWD_COMMAND}`; export r; \
49163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49164 $(NORMAL_TARGET_EXPORTS) \
22121df0 49165 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49166 for flag in $(EXTRA_TARGET_FLAGS); do \
49167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49168 done; \
49169 (cd $(TARGET_SUBDIR)/libatomic && \
49170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49172 "RANLIB=$${RANLIB}" \
49173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49174 maintainer-clean) \
49175 || exit 1
49176
49177@endif target-libatomic
49178
49179
49180
7ec59b9e
L
49181@if target-libgomp
49182.PHONY: check-target-libgomp-c++
49183check-target-libgomp-c++:
49184 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
49185
e0541124
EB
49186.PHONY: check-target-libgomp-fortran
49187check-target-libgomp-fortran:
49188 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
49189
7ec59b9e
L
49190@endif target-libgomp
49191
49192@if target-libitm
49193.PHONY: check-target-libitm-c++
49194check-target-libitm-c++:
49195 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
49196
49197@endif target-libitm
49198
15723a45
NN
49199# ----------
49200# GCC module
49201# ----------
49202
319cab08 49203@if gcc-no-bootstrap
252b5132 49204.PHONY: cross
72b2455a 49205cross: all-build all-gas all-ld
b40e3958
L
49206 @r=`${PWD_COMMAND}`; export r; \
49207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 49208 $(HOST_EXPORTS) \
252b5132 49209 echo "Building the C and C++ compiler"; \
5cec67bf 49210 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 49211 @r=`${PWD_COMMAND}`; export r; \
22121df0 49212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 49213 echo "Building runtime libraries"; \
656fdd47 49214 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 49215@endif gcc-no-bootstrap
252b5132 49216
6bd3dfaa 49217@if gcc
c50523ce
L
49218
49219.PHONY: check-gcc-c check-c
49220check-gcc-c:
49221 r=`${PWD_COMMAND}`; export r; \
49222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49223 $(HOST_EXPORTS) \
49224 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
49225check-c: check-gcc-c
49226
49227.PHONY: check-gcc-c++ check-c++
7d695d07 49228check-gcc-c++:
c50523ce
L
49229 r=`${PWD_COMMAND}`; export r; \
49230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49231 $(HOST_EXPORTS) \
7ec59b9e 49232 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 49233check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
49234
49235.PHONY: check-gcc-fortran check-fortran
49236check-gcc-fortran:
49237 r=`${PWD_COMMAND}`; export r; \
49238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49239 $(HOST_EXPORTS) \
49240 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e0541124 49241check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran
c50523ce 49242
c50523ce
L
49243.PHONY: check-gcc-ada check-ada
49244check-gcc-ada:
49245 r=`${PWD_COMMAND}`; export r; \
49246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49247 $(HOST_EXPORTS) \
49248 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
49249check-ada: check-gcc-ada check-target-libada
49250
49251.PHONY: check-gcc-objc check-objc
49252check-gcc-objc:
49253 r=`${PWD_COMMAND}`; export r; \
49254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49255 $(HOST_EXPORTS) \
49256 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
49257check-objc: check-gcc-objc check-target-libobjc
49258
49259.PHONY: check-gcc-obj-c++ check-obj-c++
49260check-gcc-obj-c++:
49261 r=`${PWD_COMMAND}`; export r; \
49262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49263 $(HOST_EXPORTS) \
49264 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
49265check-obj-c++: check-gcc-obj-c++
7d695d07 49266
e552509b
ILT
49267.PHONY: check-gcc-go check-go
49268check-gcc-go:
49269 r=`${PWD_COMMAND}`; export r; \
49270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49271 $(HOST_EXPORTS) \
49272 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
e3f56a99 49273check-go: check-gcc-go check-target-libgo
e552509b 49274
252b5132 49275
7ec59b9e
L
49276# The gcc part of install-no-fixedincludes, which relies on an intimate
49277# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
49278.PHONY: gcc-install-no-fixedincludes
49279gcc-install-no-fixedincludes:
15723a45 49280 @if [ -f ./gcc/Makefile ]; then \
b40e3958 49281 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 49282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 49283 $(HOST_EXPORTS) \
7ec59b9e
L
49284 (cd ./gcc \
49285 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 49286 else true; fi
6bd3dfaa 49287@endif gcc
4fa63067 49288
b813574b
PB
49289# ---------------------
49290# GCC bootstrap support
49291# ---------------------
4fa63067 49292
b813574b
PB
49293# We track the current stage (the one in 'gcc') in the stage_current file.
49294# stage_last instead tracks the stage that was built last. These targets
49295# are dummy when toplevel bootstrap is not active.
4fa63067 49296
f70224b5 49297# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
49298# there, so $(unstage) should be run at various points. To avoid excessive
49299# recursive invocations of make, we "inline" them using a variable. These
49300# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
49301# to avoid warnings from the GNU Make job server.
f70224b5
PB
49302
49303unstage = :
49304stage = :
c52c6897 49305current_stage = ""
f70224b5 49306
b813574b 49307@if gcc-bootstrap
9daf3993 49308unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 49309stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 49310current_stage = "`cat stage_current 2> /dev/null`"
b813574b 49311@endif gcc-bootstrap
4fa63067 49312
f70224b5
PB
49313.PHONY: unstage stage
49314unstage:
0aed8855 49315 @: $(MAKE); $(unstage)
b813574b 49316stage:
0aed8855 49317 @: $(MAKE); $(stage)
1d39f329 49318
80911fe1
PB
49319# Disable commands for lean bootstrap.
49320LEAN = false
49321
dfdffa2c
PB
49322# We name the build directories for the various stages "stage1-gcc",
49323# "stage2-gcc","stage3-gcc", etc.
49324
49325# Since the 'compare' process will fail (on debugging information) if any
49326# directory names are different, we need to link the gcc directory for
0aed8855 49327# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
49328# the build directories constant as well. For the latter, we use naked names
49329# like 'gcc', because the scripts in that directory assume it. We use
49330# mv on platforms where symlinks to directories do not work or are not
49331# reliable.
49332
1d39f329
NN
49333# 'touch' doesn't work right on some platforms.
49334STAMP = echo timestamp >
49335
dfdffa2c
PB
49336# We only want to compare .o files, so set this!
49337objext = .o
49338
dfdffa2c 49339
319cab08 49340.PHONY: stage1-start stage1-end
dfdffa2c 49341
656fdd47 49342stage1-start::
0aed8855 49343 @: $(MAKE); $(stage); \
22121df0 49344 echo stage1 > stage_current; \
b00612cc 49345 echo stage1 > stage_last; \
0aed8855 49346 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49347@if bfd
b00612cc
PB
49348 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
49349 mkdir stage1-bfd; \
22121df0 49350 mv stage1-bfd bfd
72b2455a
PB
49351@endif bfd
49352@if opcodes
b00612cc
PB
49353 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
49354 mkdir stage1-opcodes; \
22121df0 49355 mv stage1-opcodes opcodes
72b2455a
PB
49356@endif opcodes
49357@if binutils
b00612cc
PB
49358 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
49359 mkdir stage1-binutils; \
22121df0 49360 mv stage1-binutils binutils
72b2455a 49361@endif binutils
201f096f 49362@if fixincludes
49363 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
49364 mkdir stage1-fixincludes; \
22121df0 49365 mv stage1-fixincludes fixincludes
201f096f 49366@endif fixincludes
72b2455a 49367@if gas
b00612cc
PB
49368 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
49369 mkdir stage1-gas; \
22121df0 49370 mv stage1-gas gas
72b2455a
PB
49371@endif gas
49372@if gcc
b00612cc
PB
49373 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
49374 mkdir stage1-gcc; \
22121df0 49375 mv stage1-gcc gcc
72b2455a 49376@endif gcc
4b900473
PB
49377@if gmp
49378 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
49379 mkdir stage1-gmp; \
22121df0 49380 mv stage1-gmp gmp
4b900473
PB
49381@endif gmp
49382@if mpfr
49383 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
49384 mkdir stage1-mpfr; \
22121df0 49385 mv stage1-mpfr mpfr
4b900473 49386@endif mpfr
e8a5fa9c
RW
49387@if mpc
49388 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
49389 mkdir stage1-mpc; \
22121df0 49390 mv stage1-mpc mpc
e8a5fa9c 49391@endif mpc
7ec59b9e
L
49392@if isl
49393 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
49394 mkdir stage1-isl; \
22121df0 49395 mv stage1-isl isl
7ec59b9e 49396@endif isl
1f53ca9a
AO
49397@if libelf
49398 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
49399 mkdir stage1-libelf; \
22121df0 49400 mv stage1-libelf libelf
1f53ca9a 49401@endif libelf
93f9b408
ILT
49402@if gold
49403 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
49404 mkdir stage1-gold; \
22121df0 49405 mv stage1-gold gold
93f9b408 49406@endif gold
72b2455a 49407@if intl
b00612cc
PB
49408 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
49409 mkdir stage1-intl; \
22121df0 49410 mv stage1-intl intl
72b2455a
PB
49411@endif intl
49412@if ld
b00612cc
PB
49413 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
49414 mkdir stage1-ld; \
22121df0 49415 mv stage1-ld ld
72b2455a 49416@endif ld
2bf680c4
ILT
49417@if libbacktrace
49418 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
49419 mkdir stage1-libbacktrace; \
22121df0 49420 mv stage1-libbacktrace libbacktrace
2bf680c4 49421@endif libbacktrace
72b2455a 49422@if libcpp
b00612cc
PB
49423 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
49424 mkdir stage1-libcpp; \
22121df0 49425 mv stage1-libcpp libcpp
72b2455a 49426@endif libcpp
be01d343
PB
49427@if libdecnumber
49428 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
49429 mkdir stage1-libdecnumber; \
22121df0 49430 mv stage1-libdecnumber libdecnumber
be01d343 49431@endif libdecnumber
72b2455a 49432@if libiberty
b00612cc
PB
49433 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
49434 mkdir stage1-libiberty; \
22121df0 49435 mv stage1-libiberty libiberty
72b2455a 49436@endif libiberty
1b6c0831
L
49437@if libiberty-linker-plugin
49438 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
49439 mkdir stage1-libiberty-linker-plugin; \
22121df0 49440 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 49441@endif libiberty-linker-plugin
016a3251
DD
49442@if libiconv
49443 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
49444 mkdir stage1-libiconv; \
49445 mv stage1-libiconv libiconv
49446@endif libiconv
72b2455a 49447@if zlib
b00612cc
PB
49448 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
49449 mkdir stage1-zlib; \
22121df0 49450 mv stage1-zlib zlib
72b2455a 49451@endif zlib
700d40ca
ILT
49452@if lto-plugin
49453 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
49454 mkdir stage1-lto-plugin; \
22121df0 49455 mv stage1-lto-plugin lto-plugin
700d40ca 49456@endif lto-plugin
0e65dfba
NA
49457@if libctf
49458 @cd $(HOST_SUBDIR); [ -d stage1-libctf ] || \
49459 mkdir stage1-libctf; \
49460 mv stage1-libctf libctf
49461@endif libctf
0aed8855
PB
49462 @[ -d stage1-$(TARGET_SUBDIR) ] || \
49463 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 49464 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 49465
80911fe1 49466stage1-end::
72b2455a 49467@if bfd
22121df0
L
49468 @if test -d $(HOST_SUBDIR)/bfd; then \
49469 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 49470 fi
72b2455a
PB
49471@endif bfd
49472@if opcodes
22121df0
L
49473 @if test -d $(HOST_SUBDIR)/opcodes; then \
49474 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 49475 fi
72b2455a
PB
49476@endif opcodes
49477@if binutils
22121df0
L
49478 @if test -d $(HOST_SUBDIR)/binutils; then \
49479 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 49480 fi
72b2455a 49481@endif binutils
201f096f 49482@if fixincludes
22121df0
L
49483 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49484 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 49485 fi
49486@endif fixincludes
72b2455a 49487@if gas
22121df0
L
49488 @if test -d $(HOST_SUBDIR)/gas; then \
49489 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 49490 fi
72b2455a
PB
49491@endif gas
49492@if gcc
22121df0
L
49493 @if test -d $(HOST_SUBDIR)/gcc; then \
49494 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 49495 fi
72b2455a 49496@endif gcc
4b900473 49497@if gmp
22121df0
L
49498 @if test -d $(HOST_SUBDIR)/gmp; then \
49499 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
49500 fi
49501@endif gmp
49502@if mpfr
22121df0
L
49503 @if test -d $(HOST_SUBDIR)/mpfr; then \
49504 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
49505 fi
49506@endif mpfr
e8a5fa9c 49507@if mpc
22121df0
L
49508 @if test -d $(HOST_SUBDIR)/mpc; then \
49509 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
49510 fi
49511@endif mpc
7ec59b9e 49512@if isl
22121df0
L
49513 @if test -d $(HOST_SUBDIR)/isl; then \
49514 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 49515 fi
7ec59b9e 49516@endif isl
1f53ca9a 49517@if libelf
22121df0
L
49518 @if test -d $(HOST_SUBDIR)/libelf; then \
49519 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
49520 fi
49521@endif libelf
93f9b408 49522@if gold
22121df0
L
49523 @if test -d $(HOST_SUBDIR)/gold; then \
49524 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
49525 fi
49526@endif gold
72b2455a 49527@if intl
22121df0
L
49528 @if test -d $(HOST_SUBDIR)/intl; then \
49529 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 49530 fi
72b2455a
PB
49531@endif intl
49532@if ld
22121df0
L
49533 @if test -d $(HOST_SUBDIR)/ld; then \
49534 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 49535 fi
72b2455a 49536@endif ld
2bf680c4 49537@if libbacktrace
22121df0
L
49538 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49539 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
49540 fi
49541@endif libbacktrace
72b2455a 49542@if libcpp
22121df0
L
49543 @if test -d $(HOST_SUBDIR)/libcpp; then \
49544 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 49545 fi
72b2455a 49546@endif libcpp
be01d343 49547@if libdecnumber
22121df0
L
49548 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49549 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 49550 fi
be01d343 49551@endif libdecnumber
72b2455a 49552@if libiberty
22121df0
L
49553 @if test -d $(HOST_SUBDIR)/libiberty; then \
49554 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 49555 fi
72b2455a 49556@endif libiberty
1b6c0831 49557@if libiberty-linker-plugin
22121df0
L
49558 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49559 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
49560 fi
49561@endif libiberty-linker-plugin
016a3251
DD
49562@if libiconv
49563 @if test -d $(HOST_SUBDIR)/libiconv; then \
49564 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
49565 fi
49566@endif libiconv
72b2455a 49567@if zlib
22121df0
L
49568 @if test -d $(HOST_SUBDIR)/zlib; then \
49569 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 49570 fi
72b2455a 49571@endif zlib
700d40ca 49572@if lto-plugin
22121df0
L
49573 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49574 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
49575 fi
49576@endif lto-plugin
0e65dfba
NA
49577@if libctf
49578 @if test -d $(HOST_SUBDIR)/libctf; then \
49579 cd $(HOST_SUBDIR); mv libctf stage1-libctf; \
49580 fi
49581@endif libctf
22121df0
L
49582 @if test -d $(TARGET_SUBDIR); then \
49583 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 49584 fi
80911fe1 49585 rm -f stage_current
dfdffa2c 49586
973601e1 49587# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 49588# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49589# reconfigured either.
319cab08 49590.PHONY: stage1-bubble
656fdd47 49591stage1-bubble::
e360f423
PB
49592 @r=`${PWD_COMMAND}`; export r; \
49593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49594 if test -f stage1-lean ; then \
49595 echo Skipping rebuild of stage1; \
9cb3fa6f 49596 else \
f70224b5
PB
49597 $(MAKE) stage1-start; \
49598 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 49599 fi
72b2455a 49600
0df3d27f 49601.PHONY: all-stage1 clean-stage1
0df3d27f 49602do-clean: clean-stage1
0df3d27f 49603
72b2455a
PB
49604# FIXME: Will not need to be conditional when toplevel bootstrap is the
49605# only possibility, but now it conflicts with no-bootstrap rules
49606@if gcc-bootstrap
49607
49608
49609
49610
0df3d27f 49611# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49612
0df3d27f 49613.PHONY: distclean-stage1
72b2455a 49614distclean-stage1::
0aed8855 49615 @: $(MAKE); $(stage)
e00a73e3 49616 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 49617 rm -rf stage1-*
72b2455a
PB
49618
49619
49620@endif gcc-bootstrap
49621
49622
49623.PHONY: stage2-start stage2-end
49624
49625stage2-start::
0aed8855 49626 @: $(MAKE); $(stage); \
22121df0 49627 echo stage2 > stage_current; \
b00612cc 49628 echo stage2 > stage_last; \
0aed8855 49629 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49630@if bfd
b00612cc
PB
49631 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
49632 mkdir stage2-bfd; \
22121df0 49633 mv stage2-bfd bfd; \
80911fe1 49634 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49635@endif bfd
49636@if opcodes
b00612cc
PB
49637 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
49638 mkdir stage2-opcodes; \
22121df0 49639 mv stage2-opcodes opcodes; \
80911fe1 49640 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49641@endif opcodes
49642@if binutils
b00612cc
PB
49643 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
49644 mkdir stage2-binutils; \
22121df0 49645 mv stage2-binutils binutils; \
80911fe1 49646 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49647@endif binutils
201f096f 49648@if fixincludes
49649 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
49650 mkdir stage2-fixincludes; \
22121df0 49651 mv stage2-fixincludes fixincludes; \
201f096f 49652 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49653@endif fixincludes
72b2455a 49654@if gas
b00612cc
PB
49655 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
49656 mkdir stage2-gas; \
22121df0 49657 mv stage2-gas gas; \
80911fe1 49658 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49659@endif gas
49660@if gcc
b00612cc
PB
49661 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
49662 mkdir stage2-gcc; \
22121df0 49663 mv stage2-gcc gcc; \
80911fe1 49664 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49665@endif gcc
4b900473
PB
49666@if gmp
49667 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
49668 mkdir stage2-gmp; \
22121df0 49669 mv stage2-gmp gmp; \
4b900473
PB
49670 mv stage1-gmp prev-gmp || test -f stage1-lean
49671@endif gmp
49672@if mpfr
49673 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
49674 mkdir stage2-mpfr; \
22121df0 49675 mv stage2-mpfr mpfr; \
4b900473
PB
49676 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49677@endif mpfr
e8a5fa9c
RW
49678@if mpc
49679 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
49680 mkdir stage2-mpc; \
22121df0 49681 mv stage2-mpc mpc; \
e8a5fa9c
RW
49682 mv stage1-mpc prev-mpc || test -f stage1-lean
49683@endif mpc
7ec59b9e
L
49684@if isl
49685 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
49686 mkdir stage2-isl; \
22121df0 49687 mv stage2-isl isl; \
7ec59b9e
L
49688 mv stage1-isl prev-isl || test -f stage1-lean
49689@endif isl
1f53ca9a
AO
49690@if libelf
49691 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
49692 mkdir stage2-libelf; \
22121df0 49693 mv stage2-libelf libelf; \
1f53ca9a
AO
49694 mv stage1-libelf prev-libelf || test -f stage1-lean
49695@endif libelf
93f9b408
ILT
49696@if gold
49697 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
49698 mkdir stage2-gold; \
22121df0 49699 mv stage2-gold gold; \
93f9b408
ILT
49700 mv stage1-gold prev-gold || test -f stage1-lean
49701@endif gold
72b2455a 49702@if intl
b00612cc
PB
49703 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
49704 mkdir stage2-intl; \
22121df0 49705 mv stage2-intl intl; \
80911fe1 49706 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49707@endif intl
49708@if ld
b00612cc
PB
49709 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
49710 mkdir stage2-ld; \
22121df0 49711 mv stage2-ld ld; \
80911fe1 49712 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49713@endif ld
2bf680c4
ILT
49714@if libbacktrace
49715 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
49716 mkdir stage2-libbacktrace; \
22121df0 49717 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
49718 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49719@endif libbacktrace
72b2455a 49720@if libcpp
b00612cc
PB
49721 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
49722 mkdir stage2-libcpp; \
22121df0 49723 mv stage2-libcpp libcpp; \
80911fe1 49724 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49725@endif libcpp
be01d343
PB
49726@if libdecnumber
49727 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
49728 mkdir stage2-libdecnumber; \
22121df0 49729 mv stage2-libdecnumber libdecnumber; \
80911fe1 49730 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49731@endif libdecnumber
72b2455a 49732@if libiberty
b00612cc
PB
49733 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
49734 mkdir stage2-libiberty; \
22121df0 49735 mv stage2-libiberty libiberty; \
80911fe1 49736 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49737@endif libiberty
1b6c0831
L
49738@if libiberty-linker-plugin
49739 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
49740 mkdir stage2-libiberty-linker-plugin; \
22121df0 49741 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49742 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49743@endif libiberty-linker-plugin
016a3251
DD
49744@if libiconv
49745 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
49746 mkdir stage2-libiconv; \
49747 mv stage2-libiconv libiconv; \
49748 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49749@endif libiconv
72b2455a 49750@if zlib
b00612cc
PB
49751 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
49752 mkdir stage2-zlib; \
22121df0 49753 mv stage2-zlib zlib; \
80911fe1 49754 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 49755@endif zlib
700d40ca
ILT
49756@if lto-plugin
49757 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
49758 mkdir stage2-lto-plugin; \
22121df0 49759 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
49760 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49761@endif lto-plugin
0e65dfba
NA
49762@if libctf
49763 @cd $(HOST_SUBDIR); [ -d stage2-libctf ] || \
49764 mkdir stage2-libctf; \
49765 mv stage2-libctf libctf; \
49766 mv stage1-libctf prev-libctf || test -f stage1-lean
49767@endif libctf
0aed8855
PB
49768 @[ -d stage2-$(TARGET_SUBDIR) ] || \
49769 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 49770 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49771 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 49772
80911fe1 49773stage2-end::
72b2455a 49774@if bfd
22121df0
L
49775 @if test -d $(HOST_SUBDIR)/bfd; then \
49776 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
49777 mv prev-bfd stage1-bfd; : ; \
0aed8855 49778 fi
72b2455a
PB
49779@endif bfd
49780@if opcodes
22121df0
L
49781 @if test -d $(HOST_SUBDIR)/opcodes; then \
49782 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
49783 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 49784 fi
72b2455a
PB
49785@endif opcodes
49786@if binutils
22121df0
L
49787 @if test -d $(HOST_SUBDIR)/binutils; then \
49788 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
49789 mv prev-binutils stage1-binutils; : ; \
0aed8855 49790 fi
72b2455a 49791@endif binutils
201f096f 49792@if fixincludes
22121df0
L
49793 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49794 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
49795 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 49796 fi
49797@endif fixincludes
72b2455a 49798@if gas
22121df0
L
49799 @if test -d $(HOST_SUBDIR)/gas; then \
49800 cd $(HOST_SUBDIR); mv gas stage2-gas; \
49801 mv prev-gas stage1-gas; : ; \
0aed8855 49802 fi
72b2455a
PB
49803@endif gas
49804@if gcc
22121df0
L
49805 @if test -d $(HOST_SUBDIR)/gcc; then \
49806 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
49807 mv prev-gcc stage1-gcc; : ; \
0aed8855 49808 fi
72b2455a 49809@endif gcc
4b900473 49810@if gmp
22121df0
L
49811 @if test -d $(HOST_SUBDIR)/gmp; then \
49812 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
49813 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
49814 fi
49815@endif gmp
49816@if mpfr
22121df0
L
49817 @if test -d $(HOST_SUBDIR)/mpfr; then \
49818 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
49819 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
49820 fi
49821@endif mpfr
e8a5fa9c 49822@if mpc
22121df0
L
49823 @if test -d $(HOST_SUBDIR)/mpc; then \
49824 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
49825 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
49826 fi
49827@endif mpc
7ec59b9e 49828@if isl
22121df0
L
49829 @if test -d $(HOST_SUBDIR)/isl; then \
49830 cd $(HOST_SUBDIR); mv isl stage2-isl; \
49831 mv prev-isl stage1-isl; : ; \
e28c595f 49832 fi
7ec59b9e 49833@endif isl
1f53ca9a 49834@if libelf
22121df0
L
49835 @if test -d $(HOST_SUBDIR)/libelf; then \
49836 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
49837 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
49838 fi
49839@endif libelf
93f9b408 49840@if gold
22121df0
L
49841 @if test -d $(HOST_SUBDIR)/gold; then \
49842 cd $(HOST_SUBDIR); mv gold stage2-gold; \
49843 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
49844 fi
49845@endif gold
72b2455a 49846@if intl
22121df0
L
49847 @if test -d $(HOST_SUBDIR)/intl; then \
49848 cd $(HOST_SUBDIR); mv intl stage2-intl; \
49849 mv prev-intl stage1-intl; : ; \
0aed8855 49850 fi
72b2455a
PB
49851@endif intl
49852@if ld
22121df0
L
49853 @if test -d $(HOST_SUBDIR)/ld; then \
49854 cd $(HOST_SUBDIR); mv ld stage2-ld; \
49855 mv prev-ld stage1-ld; : ; \
0aed8855 49856 fi
72b2455a 49857@endif ld
2bf680c4 49858@if libbacktrace
22121df0
L
49859 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49860 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
49861 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
49862 fi
49863@endif libbacktrace
72b2455a 49864@if libcpp
22121df0
L
49865 @if test -d $(HOST_SUBDIR)/libcpp; then \
49866 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
49867 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 49868 fi
72b2455a 49869@endif libcpp
be01d343 49870@if libdecnumber
22121df0
L
49871 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49872 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
49873 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 49874 fi
be01d343 49875@endif libdecnumber
72b2455a 49876@if libiberty
22121df0
L
49877 @if test -d $(HOST_SUBDIR)/libiberty; then \
49878 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
49879 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 49880 fi
72b2455a 49881@endif libiberty
1b6c0831 49882@if libiberty-linker-plugin
22121df0
L
49883 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49884 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
49885 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
49886 fi
49887@endif libiberty-linker-plugin
016a3251
DD
49888@if libiconv
49889 @if test -d $(HOST_SUBDIR)/libiconv; then \
49890 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
49891 mv prev-libiconv stage1-libiconv; : ; \
49892 fi
49893@endif libiconv
72b2455a 49894@if zlib
22121df0
L
49895 @if test -d $(HOST_SUBDIR)/zlib; then \
49896 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
49897 mv prev-zlib stage1-zlib; : ; \
0aed8855 49898 fi
72b2455a 49899@endif zlib
700d40ca 49900@if lto-plugin
22121df0
L
49901 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49902 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
49903 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
49904 fi
49905@endif lto-plugin
0e65dfba
NA
49906@if libctf
49907 @if test -d $(HOST_SUBDIR)/libctf; then \
49908 cd $(HOST_SUBDIR); mv libctf stage2-libctf; \
49909 mv prev-libctf stage1-libctf; : ; \
49910 fi
49911@endif libctf
22121df0
L
49912 @if test -d $(TARGET_SUBDIR); then \
49913 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
49914 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 49915 fi
80911fe1 49916 rm -f stage_current
72b2455a 49917
973601e1 49918# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 49919# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49920# reconfigured either.
72b2455a
PB
49921.PHONY: stage2-bubble
49922stage2-bubble:: stage1-bubble
e360f423
PB
49923 @r=`${PWD_COMMAND}`; export r; \
49924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49925 if test -f stage2-lean || test -f stage1-lean ; then \
49926 echo Skipping rebuild of stage2; \
9cb3fa6f 49927 else \
f70224b5
PB
49928 $(MAKE) stage2-start; \
49929 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 49930 fi
72b2455a 49931
0df3d27f 49932.PHONY: all-stage2 clean-stage2
0df3d27f 49933do-clean: clean-stage2
0df3d27f 49934
72b2455a
PB
49935# FIXME: Will not need to be conditional when toplevel bootstrap is the
49936# only possibility, but now it conflicts with no-bootstrap rules
49937@if gcc-bootstrap
49938
49939
49940
80911fe1 49941.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
49942bootstrap2:
49943 echo stage2 > stage_final
49944 @r=`${PWD_COMMAND}`; export r; \
49945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49946 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 49947 @: $(MAKE); $(unstage)
be01d343
PB
49948 @r=`${PWD_COMMAND}`; export r; \
49949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49950 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 49951 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 49952
80911fe1
PB
49953bootstrap2-lean:
49954 echo stage2 > stage_final
49955 @r=`${PWD_COMMAND}`; export r; \
49956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49957 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
49958 @: $(MAKE); $(unstage)
49959 @r=`${PWD_COMMAND}`; export r; \
49960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49961 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
49962 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49963
72b2455a 49964
0df3d27f 49965# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49966distclean-stage1:: distclean-stage2
0df3d27f 49967.PHONY: distclean-stage2
72b2455a 49968distclean-stage2::
0aed8855 49969 @: $(MAKE); $(stage)
e00a73e3 49970 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 49971 rm -rf stage2-*
72b2455a
PB
49972
49973
49974@endif gcc-bootstrap
49975
49976
49977.PHONY: stage3-start stage3-end
49978
49979stage3-start::
0aed8855 49980 @: $(MAKE); $(stage); \
22121df0 49981 echo stage3 > stage_current; \
b00612cc 49982 echo stage3 > stage_last; \
0aed8855 49983 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49984@if bfd
b00612cc
PB
49985 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
49986 mkdir stage3-bfd; \
22121df0 49987 mv stage3-bfd bfd; \
80911fe1 49988 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
49989@endif bfd
49990@if opcodes
b00612cc
PB
49991 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
49992 mkdir stage3-opcodes; \
22121df0 49993 mv stage3-opcodes opcodes; \
80911fe1 49994 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
49995@endif opcodes
49996@if binutils
b00612cc
PB
49997 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
49998 mkdir stage3-binutils; \
22121df0 49999 mv stage3-binutils binutils; \
80911fe1 50000 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 50001@endif binutils
201f096f 50002@if fixincludes
50003 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
50004 mkdir stage3-fixincludes; \
22121df0 50005 mv stage3-fixincludes fixincludes; \
201f096f 50006 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
50007@endif fixincludes
72b2455a 50008@if gas
b00612cc
PB
50009 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
50010 mkdir stage3-gas; \
22121df0 50011 mv stage3-gas gas; \
80911fe1 50012 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
50013@endif gas
50014@if gcc
b00612cc
PB
50015 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
50016 mkdir stage3-gcc; \
22121df0 50017 mv stage3-gcc gcc; \
80911fe1 50018 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 50019@endif gcc
4b900473
PB
50020@if gmp
50021 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
50022 mkdir stage3-gmp; \
22121df0 50023 mv stage3-gmp gmp; \
4b900473
PB
50024 mv stage2-gmp prev-gmp || test -f stage2-lean
50025@endif gmp
50026@if mpfr
50027 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
50028 mkdir stage3-mpfr; \
22121df0 50029 mv stage3-mpfr mpfr; \
4b900473
PB
50030 mv stage2-mpfr prev-mpfr || test -f stage2-lean
50031@endif mpfr
e8a5fa9c
RW
50032@if mpc
50033 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
50034 mkdir stage3-mpc; \
22121df0 50035 mv stage3-mpc mpc; \
e8a5fa9c
RW
50036 mv stage2-mpc prev-mpc || test -f stage2-lean
50037@endif mpc
7ec59b9e
L
50038@if isl
50039 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
50040 mkdir stage3-isl; \
22121df0 50041 mv stage3-isl isl; \
7ec59b9e
L
50042 mv stage2-isl prev-isl || test -f stage2-lean
50043@endif isl
1f53ca9a
AO
50044@if libelf
50045 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
50046 mkdir stage3-libelf; \
22121df0 50047 mv stage3-libelf libelf; \
1f53ca9a
AO
50048 mv stage2-libelf prev-libelf || test -f stage2-lean
50049@endif libelf
93f9b408
ILT
50050@if gold
50051 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
50052 mkdir stage3-gold; \
22121df0 50053 mv stage3-gold gold; \
93f9b408
ILT
50054 mv stage2-gold prev-gold || test -f stage2-lean
50055@endif gold
72b2455a 50056@if intl
b00612cc
PB
50057 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
50058 mkdir stage3-intl; \
22121df0 50059 mv stage3-intl intl; \
80911fe1 50060 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
50061@endif intl
50062@if ld
b00612cc
PB
50063 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
50064 mkdir stage3-ld; \
22121df0 50065 mv stage3-ld ld; \
80911fe1 50066 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 50067@endif ld
2bf680c4
ILT
50068@if libbacktrace
50069 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
50070 mkdir stage3-libbacktrace; \
22121df0 50071 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
50072 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
50073@endif libbacktrace
72b2455a 50074@if libcpp
b00612cc
PB
50075 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
50076 mkdir stage3-libcpp; \
22121df0 50077 mv stage3-libcpp libcpp; \
80911fe1 50078 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 50079@endif libcpp
be01d343
PB
50080@if libdecnumber
50081 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
50082 mkdir stage3-libdecnumber; \
22121df0 50083 mv stage3-libdecnumber libdecnumber; \
80911fe1 50084 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 50085@endif libdecnumber
72b2455a 50086@if libiberty
b00612cc
PB
50087 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
50088 mkdir stage3-libiberty; \
22121df0 50089 mv stage3-libiberty libiberty; \
80911fe1 50090 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 50091@endif libiberty
1b6c0831
L
50092@if libiberty-linker-plugin
50093 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
50094 mkdir stage3-libiberty-linker-plugin; \
22121df0 50095 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50096 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
50097@endif libiberty-linker-plugin
016a3251
DD
50098@if libiconv
50099 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
50100 mkdir stage3-libiconv; \
50101 mv stage3-libiconv libiconv; \
50102 mv stage2-libiconv prev-libiconv || test -f stage2-lean
50103@endif libiconv
72b2455a 50104@if zlib
b00612cc
PB
50105 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
50106 mkdir stage3-zlib; \
22121df0 50107 mv stage3-zlib zlib; \
80911fe1 50108 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 50109@endif zlib
700d40ca
ILT
50110@if lto-plugin
50111 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
50112 mkdir stage3-lto-plugin; \
22121df0 50113 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
50114 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
50115@endif lto-plugin
0e65dfba
NA
50116@if libctf
50117 @cd $(HOST_SUBDIR); [ -d stage3-libctf ] || \
50118 mkdir stage3-libctf; \
50119 mv stage3-libctf libctf; \
50120 mv stage2-libctf prev-libctf || test -f stage2-lean
50121@endif libctf
0aed8855
PB
50122 @[ -d stage3-$(TARGET_SUBDIR) ] || \
50123 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 50124 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50125 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 50126
80911fe1 50127stage3-end::
72b2455a 50128@if bfd
22121df0
L
50129 @if test -d $(HOST_SUBDIR)/bfd; then \
50130 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
50131 mv prev-bfd stage2-bfd; : ; \
0aed8855 50132 fi
72b2455a
PB
50133@endif bfd
50134@if opcodes
22121df0
L
50135 @if test -d $(HOST_SUBDIR)/opcodes; then \
50136 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
50137 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 50138 fi
72b2455a
PB
50139@endif opcodes
50140@if binutils
22121df0
L
50141 @if test -d $(HOST_SUBDIR)/binutils; then \
50142 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
50143 mv prev-binutils stage2-binutils; : ; \
0aed8855 50144 fi
72b2455a 50145@endif binutils
201f096f 50146@if fixincludes
22121df0
L
50147 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50148 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
50149 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 50150 fi
50151@endif fixincludes
72b2455a 50152@if gas
22121df0
L
50153 @if test -d $(HOST_SUBDIR)/gas; then \
50154 cd $(HOST_SUBDIR); mv gas stage3-gas; \
50155 mv prev-gas stage2-gas; : ; \
0aed8855 50156 fi
72b2455a
PB
50157@endif gas
50158@if gcc
22121df0
L
50159 @if test -d $(HOST_SUBDIR)/gcc; then \
50160 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
50161 mv prev-gcc stage2-gcc; : ; \
0aed8855 50162 fi
72b2455a 50163@endif gcc
4b900473 50164@if gmp
22121df0
L
50165 @if test -d $(HOST_SUBDIR)/gmp; then \
50166 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
50167 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
50168 fi
50169@endif gmp
50170@if mpfr
22121df0
L
50171 @if test -d $(HOST_SUBDIR)/mpfr; then \
50172 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
50173 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
50174 fi
50175@endif mpfr
e8a5fa9c 50176@if mpc
22121df0
L
50177 @if test -d $(HOST_SUBDIR)/mpc; then \
50178 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
50179 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
50180 fi
50181@endif mpc
7ec59b9e 50182@if isl
22121df0
L
50183 @if test -d $(HOST_SUBDIR)/isl; then \
50184 cd $(HOST_SUBDIR); mv isl stage3-isl; \
50185 mv prev-isl stage2-isl; : ; \
e28c595f 50186 fi
7ec59b9e 50187@endif isl
1f53ca9a 50188@if libelf
22121df0
L
50189 @if test -d $(HOST_SUBDIR)/libelf; then \
50190 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
50191 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
50192 fi
50193@endif libelf
93f9b408 50194@if gold
22121df0
L
50195 @if test -d $(HOST_SUBDIR)/gold; then \
50196 cd $(HOST_SUBDIR); mv gold stage3-gold; \
50197 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
50198 fi
50199@endif gold
72b2455a 50200@if intl
22121df0
L
50201 @if test -d $(HOST_SUBDIR)/intl; then \
50202 cd $(HOST_SUBDIR); mv intl stage3-intl; \
50203 mv prev-intl stage2-intl; : ; \
0aed8855 50204 fi
72b2455a
PB
50205@endif intl
50206@if ld
22121df0
L
50207 @if test -d $(HOST_SUBDIR)/ld; then \
50208 cd $(HOST_SUBDIR); mv ld stage3-ld; \
50209 mv prev-ld stage2-ld; : ; \
0aed8855 50210 fi
72b2455a 50211@endif ld
2bf680c4 50212@if libbacktrace
22121df0
L
50213 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50214 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
50215 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
50216 fi
50217@endif libbacktrace
72b2455a 50218@if libcpp
22121df0
L
50219 @if test -d $(HOST_SUBDIR)/libcpp; then \
50220 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
50221 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 50222 fi
72b2455a 50223@endif libcpp
be01d343 50224@if libdecnumber
22121df0
L
50225 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50226 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
50227 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 50228 fi
be01d343 50229@endif libdecnumber
72b2455a 50230@if libiberty
22121df0
L
50231 @if test -d $(HOST_SUBDIR)/libiberty; then \
50232 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
50233 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 50234 fi
72b2455a 50235@endif libiberty
1b6c0831 50236@if libiberty-linker-plugin
22121df0
L
50237 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50238 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
50239 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
50240 fi
50241@endif libiberty-linker-plugin
016a3251
DD
50242@if libiconv
50243 @if test -d $(HOST_SUBDIR)/libiconv; then \
50244 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
50245 mv prev-libiconv stage2-libiconv; : ; \
50246 fi
50247@endif libiconv
72b2455a 50248@if zlib
22121df0
L
50249 @if test -d $(HOST_SUBDIR)/zlib; then \
50250 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
50251 mv prev-zlib stage2-zlib; : ; \
0aed8855 50252 fi
72b2455a 50253@endif zlib
700d40ca 50254@if lto-plugin
22121df0
L
50255 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50256 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
50257 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
50258 fi
50259@endif lto-plugin
0e65dfba
NA
50260@if libctf
50261 @if test -d $(HOST_SUBDIR)/libctf; then \
50262 cd $(HOST_SUBDIR); mv libctf stage3-libctf; \
50263 mv prev-libctf stage2-libctf; : ; \
50264 fi
50265@endif libctf
22121df0
L
50266 @if test -d $(TARGET_SUBDIR); then \
50267 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
50268 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 50269 fi
80911fe1 50270 rm -f stage_current
72b2455a 50271
973601e1 50272# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 50273# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50274# reconfigured either.
72b2455a
PB
50275.PHONY: stage3-bubble
50276stage3-bubble:: stage2-bubble
e360f423
PB
50277 @r=`${PWD_COMMAND}`; export r; \
50278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50279 if test -f stage3-lean || test -f stage2-lean ; then \
50280 echo Skipping rebuild of stage3; \
9cb3fa6f 50281 else \
f70224b5 50282 $(MAKE) stage3-start; \
80911fe1 50283 if $(LEAN); then \
22121df0
L
50284 rm -rf stage1-*; \
50285 $(STAMP) stage1-lean; \
80911fe1 50286 fi; \
f70224b5 50287 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 50288 fi
f6d183c0 50289 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 50290
0df3d27f 50291.PHONY: all-stage3 clean-stage3
0df3d27f 50292do-clean: clean-stage3
0df3d27f 50293
d545f33b
PB
50294# FIXME: Will not need to be conditional when toplevel bootstrap is the
50295# only possibility, but now it conflicts with no-bootstrap rules
50296@if gcc-bootstrap
72b2455a 50297
d545f33b 50298compare:
e360f423
PB
50299 @r=`${PWD_COMMAND}`; export r; \
50300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50301 if test -f stage2-lean; then \
22121df0
L
50302 echo Cannot compare object files as stage 2 was deleted.; \
50303 exit 0; \
d545f33b 50304 fi; \
0aed8855 50305 : $(MAKE); $(stage); \
22121df0
L
50306 rm -f .bad_compare; \
50307 echo Comparing stages 2 and 3; \
fda13ee8
AO
50308 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
50309 files=`find stage3-* -name "*$(objext)" -print | \
22121df0 50310 sed -n s,^stage$$sed-,,p`; \
e3f56a99 50311 for file in $${files}; do \
fda13ee8
AO
50312 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
50313 if test ! -f $$f1; then continue; fi; \
8520c408 50314 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
50315 if test $$? -eq 1; then \
50316 case $$file in \
e8a5fa9c 50317 @compare_exclusions@) \
f70224b5
PB
50318 echo warning: $$file differs ;; \
50319 *) \
50320 echo $$file differs >> .bad_compare ;; \
22121df0
L
50321 esac; \
50322 fi; \
50323 done; \
d545f33b
PB
50324 if [ -f .bad_compare ]; then \
50325 echo "Bootstrap comparison failure!"; \
50326 cat .bad_compare; \
50327 exit 1; \
50328 else \
c52c6897 50329 echo Comparison successful.; \
22121df0 50330 fi; \
d545f33b 50331 $(STAMP) compare
80911fe1
PB
50332 if $(LEAN); then \
50333 rm -rf stage2-*; \
50334 $(STAMP) stage2-lean; \
50335 fi
9cb3fa6f 50336
72b2455a 50337
72b2455a 50338
80911fe1 50339.PHONY: bootstrap bootstrap-lean
be01d343
PB
50340bootstrap:
50341 echo stage3 > stage_final
50342 @r=`${PWD_COMMAND}`; export r; \
50343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50344 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 50345 @: $(MAKE); $(unstage)
be01d343
PB
50346 @r=`${PWD_COMMAND}`; export r; \
50347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50348 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 50349 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 50350
80911fe1
PB
50351bootstrap-lean:
50352 echo stage3 > stage_final
50353 @r=`${PWD_COMMAND}`; export r; \
50354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50355 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
50356 @: $(MAKE); $(unstage)
50357 @r=`${PWD_COMMAND}`; export r; \
50358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50359 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
50360 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50361
72b2455a 50362
d545f33b
PB
50363# Rules to wipe a stage and all the following ones, also used for cleanstrap
50364distclean-stage2:: distclean-stage3
50365.PHONY: distclean-stage3
50366distclean-stage3::
0aed8855 50367 @: $(MAKE); $(stage)
e00a73e3 50368 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 50369 rm -rf stage3-* compare
0df3d27f 50370
9cb3fa6f 50371
d545f33b 50372.PHONY: cleanstrap
e00a73e3
PB
50373cleanstrap: do-distclean local-clean
50374 echo stage3 > stage_final
50375 @r=`${PWD_COMMAND}`; export r; \
50376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50377 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
50378 @: $(MAKE); $(unstage)
50379 @r=`${PWD_COMMAND}`; export r; \
50380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50381 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
50382 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50383
50384@endif gcc-bootstrap
50385
50386
72b2455a
PB
50387.PHONY: stage4-start stage4-end
50388
50389stage4-start::
0aed8855 50390 @: $(MAKE); $(stage); \
22121df0 50391 echo stage4 > stage_current; \
b00612cc 50392 echo stage4 > stage_last; \
0aed8855 50393 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50394@if bfd
b00612cc
PB
50395 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
50396 mkdir stage4-bfd; \
22121df0 50397 mv stage4-bfd bfd; \
80911fe1 50398 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
50399@endif bfd
50400@if opcodes
b00612cc
PB
50401 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
50402 mkdir stage4-opcodes; \
22121df0 50403 mv stage4-opcodes opcodes; \
80911fe1 50404 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
50405@endif opcodes
50406@if binutils
b00612cc
PB
50407 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
50408 mkdir stage4-binutils; \
22121df0 50409 mv stage4-binutils binutils; \
80911fe1 50410 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 50411@endif binutils
201f096f 50412@if fixincludes
50413 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
50414 mkdir stage4-fixincludes; \
22121df0 50415 mv stage4-fixincludes fixincludes; \
201f096f 50416 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
50417@endif fixincludes
72b2455a 50418@if gas
b00612cc
PB
50419 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
50420 mkdir stage4-gas; \
22121df0 50421 mv stage4-gas gas; \
80911fe1 50422 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
50423@endif gas
50424@if gcc
b00612cc
PB
50425 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
50426 mkdir stage4-gcc; \
22121df0 50427 mv stage4-gcc gcc; \
80911fe1 50428 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 50429@endif gcc
4b900473
PB
50430@if gmp
50431 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
50432 mkdir stage4-gmp; \
22121df0 50433 mv stage4-gmp gmp; \
4b900473
PB
50434 mv stage3-gmp prev-gmp || test -f stage3-lean
50435@endif gmp
50436@if mpfr
50437 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
50438 mkdir stage4-mpfr; \
22121df0 50439 mv stage4-mpfr mpfr; \
4b900473
PB
50440 mv stage3-mpfr prev-mpfr || test -f stage3-lean
50441@endif mpfr
e8a5fa9c
RW
50442@if mpc
50443 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
50444 mkdir stage4-mpc; \
22121df0 50445 mv stage4-mpc mpc; \
e8a5fa9c
RW
50446 mv stage3-mpc prev-mpc || test -f stage3-lean
50447@endif mpc
7ec59b9e
L
50448@if isl
50449 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
50450 mkdir stage4-isl; \
22121df0 50451 mv stage4-isl isl; \
7ec59b9e
L
50452 mv stage3-isl prev-isl || test -f stage3-lean
50453@endif isl
1f53ca9a
AO
50454@if libelf
50455 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
50456 mkdir stage4-libelf; \
22121df0 50457 mv stage4-libelf libelf; \
1f53ca9a
AO
50458 mv stage3-libelf prev-libelf || test -f stage3-lean
50459@endif libelf
93f9b408
ILT
50460@if gold
50461 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
50462 mkdir stage4-gold; \
22121df0 50463 mv stage4-gold gold; \
93f9b408
ILT
50464 mv stage3-gold prev-gold || test -f stage3-lean
50465@endif gold
72b2455a 50466@if intl
b00612cc
PB
50467 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
50468 mkdir stage4-intl; \
22121df0 50469 mv stage4-intl intl; \
80911fe1 50470 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
50471@endif intl
50472@if ld
b00612cc
PB
50473 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
50474 mkdir stage4-ld; \
22121df0 50475 mv stage4-ld ld; \
80911fe1 50476 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 50477@endif ld
2bf680c4
ILT
50478@if libbacktrace
50479 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
50480 mkdir stage4-libbacktrace; \
22121df0 50481 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
50482 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
50483@endif libbacktrace
72b2455a 50484@if libcpp
b00612cc
PB
50485 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
50486 mkdir stage4-libcpp; \
22121df0 50487 mv stage4-libcpp libcpp; \
80911fe1 50488 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 50489@endif libcpp
be01d343
PB
50490@if libdecnumber
50491 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
50492 mkdir stage4-libdecnumber; \
22121df0 50493 mv stage4-libdecnumber libdecnumber; \
80911fe1 50494 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 50495@endif libdecnumber
72b2455a 50496@if libiberty
b00612cc
PB
50497 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
50498 mkdir stage4-libiberty; \
22121df0 50499 mv stage4-libiberty libiberty; \
80911fe1 50500 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 50501@endif libiberty
1b6c0831
L
50502@if libiberty-linker-plugin
50503 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
50504 mkdir stage4-libiberty-linker-plugin; \
22121df0 50505 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50506 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
50507@endif libiberty-linker-plugin
016a3251
DD
50508@if libiconv
50509 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
50510 mkdir stage4-libiconv; \
50511 mv stage4-libiconv libiconv; \
50512 mv stage3-libiconv prev-libiconv || test -f stage3-lean
50513@endif libiconv
72b2455a 50514@if zlib
b00612cc
PB
50515 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
50516 mkdir stage4-zlib; \
22121df0 50517 mv stage4-zlib zlib; \
80911fe1 50518 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 50519@endif zlib
700d40ca
ILT
50520@if lto-plugin
50521 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
50522 mkdir stage4-lto-plugin; \
22121df0 50523 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
50524 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
50525@endif lto-plugin
0e65dfba
NA
50526@if libctf
50527 @cd $(HOST_SUBDIR); [ -d stage4-libctf ] || \
50528 mkdir stage4-libctf; \
50529 mv stage4-libctf libctf; \
50530 mv stage3-libctf prev-libctf || test -f stage3-lean
50531@endif libctf
0aed8855
PB
50532 @[ -d stage4-$(TARGET_SUBDIR) ] || \
50533 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 50534 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50535 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 50536
80911fe1 50537stage4-end::
72b2455a 50538@if bfd
22121df0
L
50539 @if test -d $(HOST_SUBDIR)/bfd; then \
50540 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
50541 mv prev-bfd stage3-bfd; : ; \
0aed8855 50542 fi
72b2455a
PB
50543@endif bfd
50544@if opcodes
22121df0
L
50545 @if test -d $(HOST_SUBDIR)/opcodes; then \
50546 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
50547 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 50548 fi
72b2455a
PB
50549@endif opcodes
50550@if binutils
22121df0
L
50551 @if test -d $(HOST_SUBDIR)/binutils; then \
50552 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
50553 mv prev-binutils stage3-binutils; : ; \
0aed8855 50554 fi
72b2455a 50555@endif binutils
201f096f 50556@if fixincludes
22121df0
L
50557 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50558 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
50559 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 50560 fi
50561@endif fixincludes
72b2455a 50562@if gas
22121df0
L
50563 @if test -d $(HOST_SUBDIR)/gas; then \
50564 cd $(HOST_SUBDIR); mv gas stage4-gas; \
50565 mv prev-gas stage3-gas; : ; \
0aed8855 50566 fi
72b2455a
PB
50567@endif gas
50568@if gcc
22121df0
L
50569 @if test -d $(HOST_SUBDIR)/gcc; then \
50570 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
50571 mv prev-gcc stage3-gcc; : ; \
0aed8855 50572 fi
72b2455a 50573@endif gcc
4b900473 50574@if gmp
22121df0
L
50575 @if test -d $(HOST_SUBDIR)/gmp; then \
50576 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
50577 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
50578 fi
50579@endif gmp
50580@if mpfr
22121df0
L
50581 @if test -d $(HOST_SUBDIR)/mpfr; then \
50582 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
50583 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
50584 fi
50585@endif mpfr
e8a5fa9c 50586@if mpc
22121df0
L
50587 @if test -d $(HOST_SUBDIR)/mpc; then \
50588 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
50589 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
50590 fi
50591@endif mpc
7ec59b9e 50592@if isl
22121df0
L
50593 @if test -d $(HOST_SUBDIR)/isl; then \
50594 cd $(HOST_SUBDIR); mv isl stage4-isl; \
50595 mv prev-isl stage3-isl; : ; \
e28c595f 50596 fi
7ec59b9e 50597@endif isl
1f53ca9a 50598@if libelf
22121df0
L
50599 @if test -d $(HOST_SUBDIR)/libelf; then \
50600 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
50601 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
50602 fi
50603@endif libelf
93f9b408 50604@if gold
22121df0
L
50605 @if test -d $(HOST_SUBDIR)/gold; then \
50606 cd $(HOST_SUBDIR); mv gold stage4-gold; \
50607 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
50608 fi
50609@endif gold
72b2455a 50610@if intl
22121df0
L
50611 @if test -d $(HOST_SUBDIR)/intl; then \
50612 cd $(HOST_SUBDIR); mv intl stage4-intl; \
50613 mv prev-intl stage3-intl; : ; \
0aed8855 50614 fi
72b2455a
PB
50615@endif intl
50616@if ld
22121df0
L
50617 @if test -d $(HOST_SUBDIR)/ld; then \
50618 cd $(HOST_SUBDIR); mv ld stage4-ld; \
50619 mv prev-ld stage3-ld; : ; \
0aed8855 50620 fi
72b2455a 50621@endif ld
2bf680c4 50622@if libbacktrace
22121df0
L
50623 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50624 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
50625 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
50626 fi
50627@endif libbacktrace
72b2455a 50628@if libcpp
22121df0
L
50629 @if test -d $(HOST_SUBDIR)/libcpp; then \
50630 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
50631 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 50632 fi
72b2455a 50633@endif libcpp
be01d343 50634@if libdecnumber
22121df0
L
50635 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50636 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
50637 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 50638 fi
be01d343 50639@endif libdecnumber
72b2455a 50640@if libiberty
22121df0
L
50641 @if test -d $(HOST_SUBDIR)/libiberty; then \
50642 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
50643 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 50644 fi
72b2455a 50645@endif libiberty
1b6c0831 50646@if libiberty-linker-plugin
22121df0
L
50647 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50648 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
50649 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
50650 fi
50651@endif libiberty-linker-plugin
016a3251
DD
50652@if libiconv
50653 @if test -d $(HOST_SUBDIR)/libiconv; then \
50654 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
50655 mv prev-libiconv stage3-libiconv; : ; \
50656 fi
50657@endif libiconv
72b2455a 50658@if zlib
22121df0
L
50659 @if test -d $(HOST_SUBDIR)/zlib; then \
50660 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
50661 mv prev-zlib stage3-zlib; : ; \
0aed8855 50662 fi
72b2455a 50663@endif zlib
700d40ca 50664@if lto-plugin
22121df0
L
50665 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50666 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
50667 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
50668 fi
50669@endif lto-plugin
0e65dfba
NA
50670@if libctf
50671 @if test -d $(HOST_SUBDIR)/libctf; then \
50672 cd $(HOST_SUBDIR); mv libctf stage4-libctf; \
50673 mv prev-libctf stage3-libctf; : ; \
50674 fi
50675@endif libctf
22121df0
L
50676 @if test -d $(TARGET_SUBDIR); then \
50677 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
50678 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 50679 fi
80911fe1 50680 rm -f stage_current
72b2455a 50681
973601e1 50682# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 50683# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50684# reconfigured either.
72b2455a
PB
50685.PHONY: stage4-bubble
50686stage4-bubble:: stage3-bubble
e360f423
PB
50687 @r=`${PWD_COMMAND}`; export r; \
50688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50689 if test -f stage4-lean || test -f stage3-lean ; then \
50690 echo Skipping rebuild of stage4; \
9cb3fa6f 50691 else \
f70224b5 50692 $(MAKE) stage4-start; \
80911fe1 50693 if $(LEAN); then \
22121df0
L
50694 rm -rf stage2-*; \
50695 $(STAMP) stage2-lean; \
80911fe1 50696 fi; \
f70224b5 50697 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 50698 fi
f6d183c0 50699 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 50700
0df3d27f 50701.PHONY: all-stage4 clean-stage4
0df3d27f 50702do-clean: clean-stage4
0df3d27f 50703
d545f33b
PB
50704# FIXME: Will not need to be conditional when toplevel bootstrap is the
50705# only possibility, but now it conflicts with no-bootstrap rules
50706@if gcc-bootstrap
72b2455a 50707
d545f33b 50708compare3:
e360f423
PB
50709 @r=`${PWD_COMMAND}`; export r; \
50710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50711 if test -f stage3-lean; then \
22121df0
L
50712 echo Cannot compare object files as stage 3 was deleted.; \
50713 exit 0; \
d545f33b 50714 fi; \
0aed8855 50715 : $(MAKE); $(stage); \
22121df0
L
50716 rm -f .bad_compare; \
50717 echo Comparing stages 3 and 4; \
fda13ee8
AO
50718 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
50719 files=`find stage4-* -name "*$(objext)" -print | \
22121df0 50720 sed -n s,^stage$$sed-,,p`; \
e3f56a99 50721 for file in $${files}; do \
fda13ee8
AO
50722 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
50723 if test ! -f $$f1; then continue; fi; \
8520c408 50724 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
50725 if test $$? -eq 1; then \
50726 case $$file in \
e8a5fa9c 50727 @compare_exclusions@) \
f70224b5
PB
50728 echo warning: $$file differs ;; \
50729 *) \
50730 echo $$file differs >> .bad_compare ;; \
22121df0
L
50731 esac; \
50732 fi; \
50733 done; \
d545f33b
PB
50734 if [ -f .bad_compare ]; then \
50735 echo "Bootstrap comparison failure!"; \
50736 cat .bad_compare; \
50737 exit 1; \
50738 else \
c52c6897 50739 echo Comparison successful.; \
22121df0 50740 fi; \
d545f33b 50741 $(STAMP) compare3
80911fe1
PB
50742 if $(LEAN); then \
50743 rm -rf stage3-*; \
50744 $(STAMP) stage3-lean; \
50745 fi
9cb3fa6f 50746
72b2455a 50747
72b2455a 50748
80911fe1 50749.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
50750bootstrap4:
50751 echo stage4 > stage_final
50752 @r=`${PWD_COMMAND}`; export r; \
50753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50754 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 50755 @: $(MAKE); $(unstage)
be01d343
PB
50756 @r=`${PWD_COMMAND}`; export r; \
50757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50758 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 50759 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 50760
80911fe1
PB
50761bootstrap4-lean:
50762 echo stage4 > stage_final
50763 @r=`${PWD_COMMAND}`; export r; \
50764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50765 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
50766 @: $(MAKE); $(unstage)
50767 @r=`${PWD_COMMAND}`; export r; \
50768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50769 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
50770 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50771
72b2455a 50772
d545f33b
PB
50773# Rules to wipe a stage and all the following ones, also used for cleanstrap
50774distclean-stage3:: distclean-stage4
50775.PHONY: distclean-stage4
50776distclean-stage4::
0aed8855 50777 @: $(MAKE); $(stage)
e00a73e3 50778 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 50779 rm -rf stage4-* compare3
0df3d27f 50780
9cb3fa6f 50781
d545f33b 50782@endif gcc-bootstrap
72b2455a
PB
50783
50784
50785.PHONY: stageprofile-start stageprofile-end
50786
50787stageprofile-start::
0aed8855 50788 @: $(MAKE); $(stage); \
22121df0 50789 echo stageprofile > stage_current; \
b00612cc 50790 echo stageprofile > stage_last; \
0aed8855 50791 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50792@if bfd
b00612cc
PB
50793 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
50794 mkdir stageprofile-bfd; \
22121df0 50795 mv stageprofile-bfd bfd; \
80911fe1 50796 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
50797@endif bfd
50798@if opcodes
b00612cc
PB
50799 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
50800 mkdir stageprofile-opcodes; \
22121df0 50801 mv stageprofile-opcodes opcodes; \
80911fe1 50802 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
50803@endif opcodes
50804@if binutils
b00612cc
PB
50805 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
50806 mkdir stageprofile-binutils; \
22121df0 50807 mv stageprofile-binutils binutils; \
80911fe1 50808 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 50809@endif binutils
201f096f 50810@if fixincludes
50811 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
50812 mkdir stageprofile-fixincludes; \
22121df0 50813 mv stageprofile-fixincludes fixincludes; \
201f096f 50814 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
50815@endif fixincludes
72b2455a 50816@if gas
b00612cc
PB
50817 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
50818 mkdir stageprofile-gas; \
22121df0 50819 mv stageprofile-gas gas; \
80911fe1 50820 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
50821@endif gas
50822@if gcc
b00612cc
PB
50823 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
50824 mkdir stageprofile-gcc; \
22121df0 50825 mv stageprofile-gcc gcc; \
80911fe1 50826 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 50827@endif gcc
4b900473
PB
50828@if gmp
50829 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
50830 mkdir stageprofile-gmp; \
22121df0 50831 mv stageprofile-gmp gmp; \
4b900473
PB
50832 mv stage1-gmp prev-gmp || test -f stage1-lean
50833@endif gmp
50834@if mpfr
50835 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
50836 mkdir stageprofile-mpfr; \
22121df0 50837 mv stageprofile-mpfr mpfr; \
4b900473
PB
50838 mv stage1-mpfr prev-mpfr || test -f stage1-lean
50839@endif mpfr
e8a5fa9c
RW
50840@if mpc
50841 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
50842 mkdir stageprofile-mpc; \
22121df0 50843 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
50844 mv stage1-mpc prev-mpc || test -f stage1-lean
50845@endif mpc
7ec59b9e
L
50846@if isl
50847 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
50848 mkdir stageprofile-isl; \
22121df0 50849 mv stageprofile-isl isl; \
7ec59b9e
L
50850 mv stage1-isl prev-isl || test -f stage1-lean
50851@endif isl
1f53ca9a
AO
50852@if libelf
50853 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
50854 mkdir stageprofile-libelf; \
22121df0 50855 mv stageprofile-libelf libelf; \
1f53ca9a
AO
50856 mv stage1-libelf prev-libelf || test -f stage1-lean
50857@endif libelf
93f9b408
ILT
50858@if gold
50859 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
50860 mkdir stageprofile-gold; \
22121df0 50861 mv stageprofile-gold gold; \
93f9b408
ILT
50862 mv stage1-gold prev-gold || test -f stage1-lean
50863@endif gold
72b2455a 50864@if intl
b00612cc
PB
50865 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
50866 mkdir stageprofile-intl; \
22121df0 50867 mv stageprofile-intl intl; \
80911fe1 50868 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
50869@endif intl
50870@if ld
b00612cc
PB
50871 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
50872 mkdir stageprofile-ld; \
22121df0 50873 mv stageprofile-ld ld; \
80911fe1 50874 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 50875@endif ld
2bf680c4
ILT
50876@if libbacktrace
50877 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
50878 mkdir stageprofile-libbacktrace; \
22121df0 50879 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
50880 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
50881@endif libbacktrace
72b2455a 50882@if libcpp
b00612cc
PB
50883 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
50884 mkdir stageprofile-libcpp; \
22121df0 50885 mv stageprofile-libcpp libcpp; \
80911fe1 50886 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 50887@endif libcpp
be01d343
PB
50888@if libdecnumber
50889 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
50890 mkdir stageprofile-libdecnumber; \
22121df0 50891 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 50892 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 50893@endif libdecnumber
72b2455a 50894@if libiberty
b00612cc
PB
50895 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
50896 mkdir stageprofile-libiberty; \
22121df0 50897 mv stageprofile-libiberty libiberty; \
80911fe1 50898 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 50899@endif libiberty
1b6c0831
L
50900@if libiberty-linker-plugin
50901 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
50902 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 50903 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50904 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
50905@endif libiberty-linker-plugin
016a3251
DD
50906@if libiconv
50907 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
50908 mkdir stageprofile-libiconv; \
50909 mv stageprofile-libiconv libiconv; \
50910 mv stage1-libiconv prev-libiconv || test -f stage1-lean
50911@endif libiconv
72b2455a 50912@if zlib
d545f33b
PB
50913 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
50914 mkdir stageprofile-zlib; \
22121df0 50915 mv stageprofile-zlib zlib; \
80911fe1 50916 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 50917@endif zlib
700d40ca
ILT
50918@if lto-plugin
50919 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
50920 mkdir stageprofile-lto-plugin; \
22121df0 50921 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
50922 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
50923@endif lto-plugin
0e65dfba
NA
50924@if libctf
50925 @cd $(HOST_SUBDIR); [ -d stageprofile-libctf ] || \
50926 mkdir stageprofile-libctf; \
50927 mv stageprofile-libctf libctf; \
50928 mv stage1-libctf prev-libctf || test -f stage1-lean
50929@endif libctf
0aed8855
PB
50930 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
50931 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 50932 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50933 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 50934
80911fe1 50935stageprofile-end::
d545f33b 50936@if bfd
22121df0
L
50937 @if test -d $(HOST_SUBDIR)/bfd; then \
50938 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
50939 mv prev-bfd stage1-bfd; : ; \
0aed8855 50940 fi
d545f33b
PB
50941@endif bfd
50942@if opcodes
22121df0
L
50943 @if test -d $(HOST_SUBDIR)/opcodes; then \
50944 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
50945 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 50946 fi
d545f33b
PB
50947@endif opcodes
50948@if binutils
22121df0
L
50949 @if test -d $(HOST_SUBDIR)/binutils; then \
50950 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
50951 mv prev-binutils stage1-binutils; : ; \
0aed8855 50952 fi
d545f33b 50953@endif binutils
201f096f 50954@if fixincludes
22121df0
L
50955 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50956 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
50957 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 50958 fi
50959@endif fixincludes
d545f33b 50960@if gas
22121df0
L
50961 @if test -d $(HOST_SUBDIR)/gas; then \
50962 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
50963 mv prev-gas stage1-gas; : ; \
0aed8855 50964 fi
d545f33b
PB
50965@endif gas
50966@if gcc
22121df0
L
50967 @if test -d $(HOST_SUBDIR)/gcc; then \
50968 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
50969 mv prev-gcc stage1-gcc; : ; \
0aed8855 50970 fi
d545f33b 50971@endif gcc
4b900473 50972@if gmp
22121df0
L
50973 @if test -d $(HOST_SUBDIR)/gmp; then \
50974 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
50975 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
50976 fi
50977@endif gmp
50978@if mpfr
22121df0
L
50979 @if test -d $(HOST_SUBDIR)/mpfr; then \
50980 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
50981 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
50982 fi
50983@endif mpfr
e8a5fa9c 50984@if mpc
22121df0
L
50985 @if test -d $(HOST_SUBDIR)/mpc; then \
50986 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
50987 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
50988 fi
50989@endif mpc
7ec59b9e 50990@if isl
22121df0
L
50991 @if test -d $(HOST_SUBDIR)/isl; then \
50992 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
50993 mv prev-isl stage1-isl; : ; \
e28c595f 50994 fi
7ec59b9e 50995@endif isl
1f53ca9a 50996@if libelf
22121df0
L
50997 @if test -d $(HOST_SUBDIR)/libelf; then \
50998 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
50999 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
51000 fi
51001@endif libelf
93f9b408 51002@if gold
22121df0
L
51003 @if test -d $(HOST_SUBDIR)/gold; then \
51004 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
51005 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
51006 fi
51007@endif gold
d545f33b 51008@if intl
22121df0
L
51009 @if test -d $(HOST_SUBDIR)/intl; then \
51010 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
51011 mv prev-intl stage1-intl; : ; \
0aed8855 51012 fi
d545f33b
PB
51013@endif intl
51014@if ld
22121df0
L
51015 @if test -d $(HOST_SUBDIR)/ld; then \
51016 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
51017 mv prev-ld stage1-ld; : ; \
0aed8855 51018 fi
d545f33b 51019@endif ld
2bf680c4 51020@if libbacktrace
22121df0
L
51021 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
51022 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
51023 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
51024 fi
51025@endif libbacktrace
d545f33b 51026@if libcpp
22121df0
L
51027 @if test -d $(HOST_SUBDIR)/libcpp; then \
51028 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
51029 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 51030 fi
d545f33b 51031@endif libcpp
be01d343 51032@if libdecnumber
22121df0
L
51033 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
51034 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
51035 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 51036 fi
be01d343 51037@endif libdecnumber
d545f33b 51038@if libiberty
22121df0
L
51039 @if test -d $(HOST_SUBDIR)/libiberty; then \
51040 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
51041 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 51042 fi
d545f33b 51043@endif libiberty
1b6c0831 51044@if libiberty-linker-plugin
22121df0
L
51045 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
51046 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
51047 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
51048 fi
51049@endif libiberty-linker-plugin
016a3251
DD
51050@if libiconv
51051 @if test -d $(HOST_SUBDIR)/libiconv; then \
51052 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
51053 mv prev-libiconv stage1-libiconv; : ; \
51054 fi
51055@endif libiconv
d545f33b 51056@if zlib
22121df0
L
51057 @if test -d $(HOST_SUBDIR)/zlib; then \
51058 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
51059 mv prev-zlib stage1-zlib; : ; \
0aed8855 51060 fi
d545f33b 51061@endif zlib
700d40ca 51062@if lto-plugin
22121df0
L
51063 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
51064 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
51065 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
51066 fi
51067@endif lto-plugin
0e65dfba
NA
51068@if libctf
51069 @if test -d $(HOST_SUBDIR)/libctf; then \
51070 cd $(HOST_SUBDIR); mv libctf stageprofile-libctf; \
51071 mv prev-libctf stage1-libctf; : ; \
51072 fi
51073@endif libctf
22121df0
L
51074 @if test -d $(TARGET_SUBDIR); then \
51075 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
51076 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 51077 fi
80911fe1 51078 rm -f stage_current
72b2455a 51079
973601e1 51080# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 51081# remade, but not reconfigured. The next stage (if any) will not be
675492f0 51082# reconfigured either.
d545f33b
PB
51083.PHONY: stageprofile-bubble
51084stageprofile-bubble:: stage1-bubble
e360f423
PB
51085 @r=`${PWD_COMMAND}`; export r; \
51086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
51087 if test -f stageprofile-lean || test -f stage1-lean ; then \
51088 echo Skipping rebuild of stageprofile; \
d545f33b 51089 else \
f70224b5
PB
51090 $(MAKE) stageprofile-start; \
51091 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 51092 fi
72b2455a 51093
d545f33b
PB
51094.PHONY: all-stageprofile clean-stageprofile
51095do-clean: clean-stageprofile
0df3d27f 51096
72b2455a
PB
51097# FIXME: Will not need to be conditional when toplevel bootstrap is the
51098# only possibility, but now it conflicts with no-bootstrap rules
51099@if gcc-bootstrap
51100
51101
51102
51103
0df3d27f 51104# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 51105distclean-stage1:: distclean-stageprofile
0df3d27f 51106.PHONY: distclean-stageprofile
72b2455a 51107distclean-stageprofile::
0aed8855 51108 @: $(MAKE); $(stage)
e00a73e3 51109 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 51110 rm -rf stageprofile-*
dfdffa2c
PB
51111
51112
72b2455a 51113@endif gcc-bootstrap
dfdffa2c
PB
51114
51115
72b2455a 51116.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 51117
72b2455a 51118stagefeedback-start::
0aed8855 51119 @: $(MAKE); $(stage); \
22121df0 51120 echo stagefeedback > stage_current; \
b00612cc 51121 echo stagefeedback > stage_last; \
0aed8855 51122 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 51123@if bfd
b00612cc
PB
51124 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
51125 mkdir stagefeedback-bfd; \
22121df0 51126 mv stagefeedback-bfd bfd; \
e3f56a99 51127 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
51128@endif bfd
51129@if opcodes
b00612cc
PB
51130 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
51131 mkdir stagefeedback-opcodes; \
22121df0 51132 mv stagefeedback-opcodes opcodes; \
e3f56a99 51133 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
51134@endif opcodes
51135@if binutils
b00612cc
PB
51136 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
51137 mkdir stagefeedback-binutils; \
22121df0 51138 mv stagefeedback-binutils binutils; \
e3f56a99 51139 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 51140@endif binutils
201f096f 51141@if fixincludes
51142 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
51143 mkdir stagefeedback-fixincludes; \
22121df0 51144 mv stagefeedback-fixincludes fixincludes; \
e3f56a99 51145 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
201f096f 51146@endif fixincludes
72b2455a 51147@if gas
b00612cc
PB
51148 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
51149 mkdir stagefeedback-gas; \
22121df0 51150 mv stagefeedback-gas gas; \
e3f56a99 51151 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
51152@endif gas
51153@if gcc
b00612cc
PB
51154 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
51155 mkdir stagefeedback-gcc; \
22121df0 51156 mv stagefeedback-gcc gcc; \
e3f56a99 51157 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 51158@endif gcc
4b900473
PB
51159@if gmp
51160 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
51161 mkdir stagefeedback-gmp; \
22121df0 51162 mv stagefeedback-gmp gmp; \
e3f56a99 51163 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
4b900473
PB
51164@endif gmp
51165@if mpfr
51166 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
51167 mkdir stagefeedback-mpfr; \
22121df0 51168 mv stagefeedback-mpfr mpfr; \
e3f56a99 51169 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
4b900473 51170@endif mpfr
e8a5fa9c
RW
51171@if mpc
51172 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
51173 mkdir stagefeedback-mpc; \
22121df0 51174 mv stagefeedback-mpc mpc; \
e3f56a99 51175 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
e8a5fa9c 51176@endif mpc
7ec59b9e
L
51177@if isl
51178 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
51179 mkdir stagefeedback-isl; \
22121df0 51180 mv stagefeedback-isl isl; \
e3f56a99 51181 mv stageprofile-isl prev-isl || test -f stageprofile-lean
7ec59b9e 51182@endif isl
1f53ca9a
AO
51183@if libelf
51184 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
51185 mkdir stagefeedback-libelf; \
22121df0 51186 mv stagefeedback-libelf libelf; \
e3f56a99 51187 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
1f53ca9a 51188@endif libelf
93f9b408
ILT
51189@if gold
51190 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
51191 mkdir stagefeedback-gold; \
22121df0 51192 mv stagefeedback-gold gold; \
e3f56a99 51193 mv stageprofile-gold prev-gold || test -f stageprofile-lean
93f9b408 51194@endif gold
72b2455a 51195@if intl
b00612cc
PB
51196 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
51197 mkdir stagefeedback-intl; \
22121df0 51198 mv stagefeedback-intl intl; \
e3f56a99 51199 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
51200@endif intl
51201@if ld
b00612cc
PB
51202 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
51203 mkdir stagefeedback-ld; \
22121df0 51204 mv stagefeedback-ld ld; \
e3f56a99 51205 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 51206@endif ld
2bf680c4
ILT
51207@if libbacktrace
51208 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
51209 mkdir stagefeedback-libbacktrace; \
22121df0 51210 mv stagefeedback-libbacktrace libbacktrace; \
e3f56a99 51211 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
2bf680c4 51212@endif libbacktrace
72b2455a 51213@if libcpp
b00612cc
PB
51214 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
51215 mkdir stagefeedback-libcpp; \
22121df0 51216 mv stagefeedback-libcpp libcpp; \
e3f56a99 51217 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 51218@endif libcpp
be01d343
PB
51219@if libdecnumber
51220 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
51221 mkdir stagefeedback-libdecnumber; \
22121df0 51222 mv stagefeedback-libdecnumber libdecnumber; \
e3f56a99 51223 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 51224@endif libdecnumber
72b2455a 51225@if libiberty
b00612cc
PB
51226 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
51227 mkdir stagefeedback-libiberty; \
22121df0 51228 mv stagefeedback-libiberty libiberty; \
e3f56a99 51229 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 51230@endif libiberty
1b6c0831
L
51231@if libiberty-linker-plugin
51232 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
51233 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 51234 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
e3f56a99 51235 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
1b6c0831 51236@endif libiberty-linker-plugin
016a3251
DD
51237@if libiconv
51238 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
51239 mkdir stagefeedback-libiconv; \
51240 mv stagefeedback-libiconv libiconv; \
e3f56a99 51241 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
016a3251 51242@endif libiconv
72b2455a 51243@if zlib
b00612cc
PB
51244 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
51245 mkdir stagefeedback-zlib; \
22121df0 51246 mv stagefeedback-zlib zlib; \
e3f56a99 51247 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 51248@endif zlib
700d40ca
ILT
51249@if lto-plugin
51250 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
51251 mkdir stagefeedback-lto-plugin; \
22121df0 51252 mv stagefeedback-lto-plugin lto-plugin; \
e3f56a99 51253 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
700d40ca 51254@endif lto-plugin
0e65dfba
NA
51255@if libctf
51256 @cd $(HOST_SUBDIR); [ -d stagefeedback-libctf ] || \
51257 mkdir stagefeedback-libctf; \
51258 mv stagefeedback-libctf libctf; \
e3f56a99 51259 mv stageprofile-libctf prev-libctf || test -f stageprofile-lean
0e65dfba 51260@endif libctf
0aed8855
PB
51261 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
51262 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 51263 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
e3f56a99 51264 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 51265
80911fe1 51266stagefeedback-end::
72b2455a 51267@if bfd
22121df0
L
51268 @if test -d $(HOST_SUBDIR)/bfd; then \
51269 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
e3f56a99 51270 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 51271 fi
72b2455a
PB
51272@endif bfd
51273@if opcodes
22121df0
L
51274 @if test -d $(HOST_SUBDIR)/opcodes; then \
51275 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
e3f56a99 51276 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 51277 fi
72b2455a
PB
51278@endif opcodes
51279@if binutils
22121df0
L
51280 @if test -d $(HOST_SUBDIR)/binutils; then \
51281 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
e3f56a99 51282 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 51283 fi
72b2455a 51284@endif binutils
201f096f 51285@if fixincludes
22121df0
L
51286 @if test -d $(HOST_SUBDIR)/fixincludes; then \
51287 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
e3f56a99 51288 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 51289 fi
51290@endif fixincludes
72b2455a 51291@if gas
22121df0
L
51292 @if test -d $(HOST_SUBDIR)/gas; then \
51293 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
e3f56a99 51294 mv prev-gas stageprofile-gas; : ; \
0aed8855 51295 fi
72b2455a
PB
51296@endif gas
51297@if gcc
22121df0
L
51298 @if test -d $(HOST_SUBDIR)/gcc; then \
51299 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
e3f56a99 51300 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 51301 fi
72b2455a 51302@endif gcc
4b900473 51303@if gmp
22121df0
L
51304 @if test -d $(HOST_SUBDIR)/gmp; then \
51305 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
e3f56a99 51306 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
51307 fi
51308@endif gmp
51309@if mpfr
22121df0
L
51310 @if test -d $(HOST_SUBDIR)/mpfr; then \
51311 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
e3f56a99 51312 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
51313 fi
51314@endif mpfr
e8a5fa9c 51315@if mpc
22121df0
L
51316 @if test -d $(HOST_SUBDIR)/mpc; then \
51317 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
e3f56a99 51318 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
51319 fi
51320@endif mpc
7ec59b9e 51321@if isl
22121df0
L
51322 @if test -d $(HOST_SUBDIR)/isl; then \
51323 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
e3f56a99 51324 mv prev-isl stageprofile-isl; : ; \
e28c595f 51325 fi
7ec59b9e 51326@endif isl
1f53ca9a 51327@if libelf
22121df0
L
51328 @if test -d $(HOST_SUBDIR)/libelf; then \
51329 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
e3f56a99 51330 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
51331 fi
51332@endif libelf
93f9b408 51333@if gold
22121df0
L
51334 @if test -d $(HOST_SUBDIR)/gold; then \
51335 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
e3f56a99 51336 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
51337 fi
51338@endif gold
72b2455a 51339@if intl
22121df0
L
51340 @if test -d $(HOST_SUBDIR)/intl; then \
51341 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
e3f56a99 51342 mv prev-intl stageprofile-intl; : ; \
0aed8855 51343 fi
72b2455a
PB
51344@endif intl
51345@if ld
22121df0
L
51346 @if test -d $(HOST_SUBDIR)/ld; then \
51347 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
e3f56a99 51348 mv prev-ld stageprofile-ld; : ; \
0aed8855 51349 fi
72b2455a 51350@endif ld
2bf680c4 51351@if libbacktrace
22121df0
L
51352 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
51353 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
e3f56a99 51354 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
51355 fi
51356@endif libbacktrace
72b2455a 51357@if libcpp
22121df0
L
51358 @if test -d $(HOST_SUBDIR)/libcpp; then \
51359 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
e3f56a99 51360 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 51361 fi
72b2455a 51362@endif libcpp
be01d343 51363@if libdecnumber
22121df0
L
51364 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
51365 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
e3f56a99 51366 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 51367 fi
be01d343 51368@endif libdecnumber
72b2455a 51369@if libiberty
22121df0
L
51370 @if test -d $(HOST_SUBDIR)/libiberty; then \
51371 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
e3f56a99 51372 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 51373 fi
72b2455a 51374@endif libiberty
1b6c0831 51375@if libiberty-linker-plugin
22121df0
L
51376 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
51377 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
e3f56a99 51378 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
51379 fi
51380@endif libiberty-linker-plugin
016a3251
DD
51381@if libiconv
51382 @if test -d $(HOST_SUBDIR)/libiconv; then \
51383 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
e3f56a99 51384 mv prev-libiconv stageprofile-libiconv; : ; \
016a3251
DD
51385 fi
51386@endif libiconv
72b2455a 51387@if zlib
22121df0
L
51388 @if test -d $(HOST_SUBDIR)/zlib; then \
51389 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
e3f56a99 51390 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 51391 fi
72b2455a 51392@endif zlib
700d40ca 51393@if lto-plugin
22121df0
L
51394 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
51395 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
e3f56a99 51396 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
51397 fi
51398@endif lto-plugin
0e65dfba
NA
51399@if libctf
51400 @if test -d $(HOST_SUBDIR)/libctf; then \
51401 cd $(HOST_SUBDIR); mv libctf stagefeedback-libctf; \
e3f56a99 51402 mv prev-libctf stageprofile-libctf; : ; \
0e65dfba
NA
51403 fi
51404@endif libctf
22121df0
L
51405 @if test -d $(TARGET_SUBDIR); then \
51406 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
e3f56a99 51407 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 51408 fi
80911fe1 51409 rm -f stage_current
dfdffa2c 51410
973601e1 51411# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 51412# remade, but not reconfigured. The next stage (if any) will not be
675492f0 51413# reconfigured either.
72b2455a 51414.PHONY: stagefeedback-bubble
e3f56a99 51415stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
51416 @r=`${PWD_COMMAND}`; export r; \
51417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e3f56a99 51418 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
22121df0 51419 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 51420 else \
f70224b5
PB
51421 $(MAKE) stagefeedback-start; \
51422 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 51423 fi
72b2455a 51424
0df3d27f 51425.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 51426do-clean: clean-stagefeedback
0df3d27f 51427
72b2455a
PB
51428# FIXME: Will not need to be conditional when toplevel bootstrap is the
51429# only possibility, but now it conflicts with no-bootstrap rules
51430@if gcc-bootstrap
656fdd47
PB
51431
51432
51433
80911fe1 51434.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
51435profiledbootstrap:
51436 echo stagefeedback > stage_final
51437 @r=`${PWD_COMMAND}`; export r; \
51438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51439 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 51440 @: $(MAKE); $(unstage)
be01d343
PB
51441 @r=`${PWD_COMMAND}`; export r; \
51442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 51443 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 51444 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 51445
80911fe1
PB
51446profiledbootstrap-lean:
51447 echo stagefeedback > stage_final
51448 @r=`${PWD_COMMAND}`; export r; \
51449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51450 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
51451 @: $(MAKE); $(unstage)
51452 @r=`${PWD_COMMAND}`; export r; \
51453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 51454 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
51455 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
51456
656fdd47 51457
0df3d27f 51458# Rules to wipe a stage and all the following ones, also used for cleanstrap
e3f56a99 51459distclean-stageprofile:: distclean-stagefeedback
0df3d27f 51460.PHONY: distclean-stagefeedback
656fdd47 51461distclean-stagefeedback::
0aed8855 51462 @: $(MAKE); $(stage)
e00a73e3 51463 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 51464 rm -rf stagefeedback-*
656fdd47
PB
51465
51466
72b2455a 51467@endif gcc-bootstrap
656fdd47
PB
51468
51469
51470
7d329e61
PB
51471stageprofile-end::
51472 $(MAKE) distclean-stagefeedback
656fdd47 51473
7d329e61 51474stagefeedback-start::
656fdd47
PB
51475 @r=`${PWD_COMMAND}`; export r; \
51476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 51477 for i in prev-*; do \
22121df0 51478 j=`echo $$i | sed s/^prev-//`; \
7d329e61 51479 cd $$r/$$i && \
22121df0
L
51480 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
51481 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 51482 done
b8908782 51483
0df3d27f 51484@if gcc-bootstrap
0df3d27f 51485do-distclean: distclean-stage1
c52c6897
PB
51486
51487# Provide a GCC build when we're building target libraries. This does
51488# not work as a dependency, just as the minimum necessary to avoid errors.
51489stage_last:
314b2e66
AS
51490 @r=`${PWD_COMMAND}`; export r; \
51491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 51492 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 51493
4f0ef2d8
CD
51494# Same as unstage, but not phony and defaulting to stage1-start. We place
51495# it in the dependency so that for example `make -j3 all-gcc' works.
51496stage_current:
51497 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
51498
c52c6897 51499.PHONY: restrap
266df637 51500restrap::
c52c6897 51501 @: $(MAKE); $(stage)
e3f56a99 51502 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 51503restrap:: all
c380fdd8 51504@endif gcc-bootstrap
c52c6897 51505
ae831be5
NN
51506# --------------------------------------
51507# Dependencies between different modules
51508# --------------------------------------
252b5132 51509
9e6ce191 51510# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 51511@if gcc-bootstrap
e8a5fa9c
RW
51512configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
51513configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
51514configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
51515configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
51516configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
51517configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
51518configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
51519configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
51520configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
51521configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
51522configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
51523configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
51524configure-stage1-target-libmpx: maybe-all-stage1-gcc
51525configure-stage2-target-libmpx: maybe-all-stage2-gcc
51526configure-stage3-target-libmpx: maybe-all-stage3-gcc
51527configure-stage4-target-libmpx: maybe-all-stage4-gcc
51528configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
51529configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
51530configure-stage1-target-libvtv: maybe-all-stage1-gcc
51531configure-stage2-target-libvtv: maybe-all-stage2-gcc
51532configure-stage3-target-libvtv: maybe-all-stage3-gcc
51533configure-stage4-target-libvtv: maybe-all-stage4-gcc
51534configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
51535configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
e3f56a99 51536configure-target-libcilkrts: stage_last
1b6c0831 51537configure-target-liboffloadmic: stage_last
c52c6897 51538configure-target-libssp: stage_last
c52c6897 51539configure-target-newlib: stage_last
6aa8ef82
DJ
51540configure-stage1-target-libgcc: maybe-all-stage1-gcc
51541configure-stage2-target-libgcc: maybe-all-stage2-gcc
51542configure-stage3-target-libgcc: maybe-all-stage3-gcc
51543configure-stage4-target-libgcc: maybe-all-stage4-gcc
51544configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
51545configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 51546configure-target-libbacktrace: stage_last
e552509b 51547configure-target-libquadmath: stage_last
c52c6897
PB
51548configure-target-libgfortran: stage_last
51549configure-target-libobjc: stage_last
e552509b 51550configure-target-libgo: stage_last
c52c6897
PB
51551configure-target-libtermcap: stage_last
51552configure-target-winsup: stage_last
51553configure-target-libgloss: stage_last
c52c6897 51554configure-target-libffi: stage_last
c52c6897 51555configure-target-zlib: stage_last
c52c6897
PB
51556configure-target-rda: stage_last
51557configure-target-libada: stage_last
911e63d0
JR
51558configure-stage1-target-libgomp: maybe-all-stage1-gcc
51559configure-stage2-target-libgomp: maybe-all-stage2-gcc
51560configure-stage3-target-libgomp: maybe-all-stage3-gcc
51561configure-stage4-target-libgomp: maybe-all-stage4-gcc
51562configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
51563configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
51564configure-target-libitm: stage_last
51565configure-target-libatomic: stage_last
c52c6897 51566@endif gcc-bootstrap
9e6ce191 51567
c52c6897 51568@if gcc-no-bootstrap
9e6ce191 51569configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 51570configure-target-libsanitizer: maybe-all-gcc
1b6c0831 51571configure-target-libmpx: maybe-all-gcc
95e43135 51572configure-target-libvtv: maybe-all-gcc
e3f56a99 51573configure-target-libcilkrts: maybe-all-gcc
1b6c0831 51574configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 51575configure-target-libssp: maybe-all-gcc
9e6ce191 51576configure-target-newlib: maybe-all-gcc
6aa8ef82 51577configure-target-libgcc: maybe-all-gcc
2bf680c4 51578configure-target-libbacktrace: maybe-all-gcc
e552509b 51579configure-target-libquadmath: maybe-all-gcc
9e6ce191 51580configure-target-libgfortran: maybe-all-gcc
9e6ce191 51581configure-target-libobjc: maybe-all-gcc
e552509b 51582configure-target-libgo: maybe-all-gcc
9e6ce191 51583configure-target-libtermcap: maybe-all-gcc
9e6ce191 51584configure-target-winsup: maybe-all-gcc
9e6ce191 51585configure-target-libgloss: maybe-all-gcc
9e6ce191 51586configure-target-libffi: maybe-all-gcc
9e6ce191 51587configure-target-zlib: maybe-all-gcc
9e6ce191 51588configure-target-rda: maybe-all-gcc
9e6ce191 51589configure-target-libada: maybe-all-gcc
b3ded179 51590configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
51591configure-target-libitm: maybe-all-gcc
51592configure-target-libatomic: maybe-all-gcc
c52c6897 51593@endif gcc-no-bootstrap
b3ded179 51594
9e6ce191 51595
ae831be5
NN
51596# There are two types of dependencies here: 'hard' dependencies, where one
51597# module simply won't build without the other; and 'soft' dependencies, where
51598# if the depended-on module is missing, the depending module will do without
51599# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 51600# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
51601# it's safer to use a soft dependency.
51602
9e6ce191
PB
51603
51604
51605
51606
c60fe18b 51607
9e6ce191
PB
51608# With all the machinery above in place, it is pretty easy to generate
51609# dependencies. Host dependencies are a bit more complex because we have
51610# to check for bootstrap/prebootstrap dependencies. To resolve
51611# prebootstrap dependencies, prebootstrap modules are gathered in
51612# a hash table.
6a9cf61e
PB
51613all-build-bison: maybe-all-build-texinfo
51614all-build-flex: maybe-all-build-texinfo
9e6ce191 51615all-build-flex: maybe-all-build-bison
9e6ce191 51616all-build-flex: maybe-all-build-m4
6a9cf61e 51617all-build-libiberty: maybe-all-build-texinfo
9e6ce191 51618all-build-m4: maybe-all-build-texinfo
ee025550 51619all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 51620all-build-libcpp: maybe-all-build-libiberty
9e6ce191 51621configure-gcc: maybe-configure-intl
9e6ce191
PB
51622configure-stage1-gcc: maybe-configure-stage1-intl
51623configure-stage2-gcc: maybe-configure-stage2-intl
51624configure-stage3-gcc: maybe-configure-stage3-intl
51625configure-stage4-gcc: maybe-configure-stage4-intl
51626configure-stageprofile-gcc: maybe-configure-stageprofile-intl
51627configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8 51628configure-gcc: maybe-all-gmp
861ea9c8
L
51629configure-stage1-gcc: maybe-all-stage1-gmp
51630configure-stage2-gcc: maybe-all-stage2-gmp
51631configure-stage3-gcc: maybe-all-stage3-gmp
51632configure-stage4-gcc: maybe-all-stage4-gmp
51633configure-stageprofile-gcc: maybe-all-stageprofile-gmp
51634configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831 51635configure-gcc: maybe-all-mpfr
1b6c0831
L
51636configure-stage1-gcc: maybe-all-stage1-mpfr
51637configure-stage2-gcc: maybe-all-stage2-mpfr
51638configure-stage3-gcc: maybe-all-stage3-mpfr
51639configure-stage4-gcc: maybe-all-stage4-mpfr
51640configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
51641configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
51642configure-gcc: maybe-all-mpc
1b6c0831
L
51643configure-stage1-gcc: maybe-all-stage1-mpc
51644configure-stage2-gcc: maybe-all-stage2-mpc
51645configure-stage3-gcc: maybe-all-stage3-mpc
51646configure-stage4-gcc: maybe-all-stage4-mpc
51647configure-stageprofile-gcc: maybe-all-stageprofile-mpc
51648configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
51649configure-gcc: maybe-all-isl
1b6c0831
L
51650configure-stage1-gcc: maybe-all-stage1-isl
51651configure-stage2-gcc: maybe-all-stage2-isl
51652configure-stage3-gcc: maybe-all-stage3-isl
51653configure-stage4-gcc: maybe-all-stage4-isl
51654configure-stageprofile-gcc: maybe-all-stageprofile-isl
51655configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a 51656configure-gcc: maybe-all-lto-plugin
8d8eef9a
RW
51657configure-stage1-gcc: maybe-all-stage1-lto-plugin
51658configure-stage2-gcc: maybe-all-stage2-lto-plugin
51659configure-stage3-gcc: maybe-all-stage3-lto-plugin
51660configure-stage4-gcc: maybe-all-stage4-lto-plugin
51661configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
51662configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b 51663configure-gcc: maybe-all-binutils
c60fe18b
PB
51664configure-stage1-gcc: maybe-all-stage1-binutils
51665configure-stage2-gcc: maybe-all-stage2-binutils
51666configure-stage3-gcc: maybe-all-stage3-binutils
51667configure-stage4-gcc: maybe-all-stage4-binutils
51668configure-stageprofile-gcc: maybe-all-stageprofile-binutils
51669configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
51670configure-gcc: maybe-all-gas
c60fe18b
PB
51671configure-stage1-gcc: maybe-all-stage1-gas
51672configure-stage2-gcc: maybe-all-stage2-gas
51673configure-stage3-gcc: maybe-all-stage3-gas
51674configure-stage4-gcc: maybe-all-stage4-gas
51675configure-stageprofile-gcc: maybe-all-stageprofile-gas
51676configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
51677configure-gcc: maybe-all-ld
c60fe18b
PB
51678configure-stage1-gcc: maybe-all-stage1-ld
51679configure-stage2-gcc: maybe-all-stage2-ld
51680configure-stage3-gcc: maybe-all-stage3-ld
51681configure-stage4-gcc: maybe-all-stage4-ld
51682configure-stageprofile-gcc: maybe-all-stageprofile-ld
51683configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408 51684configure-gcc: maybe-all-gold
93f9b408
ILT
51685configure-stage1-gcc: maybe-all-stage1-gold
51686configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 51687configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
51688configure-stage4-gcc: maybe-all-stage4-gold
51689configure-stageprofile-gcc: maybe-all-stageprofile-gold
51690configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480 51691configure-gcc: maybe-all-libelf
7530c480
AO
51692configure-stage1-gcc: maybe-all-stage1-libelf
51693configure-stage2-gcc: maybe-all-stage2-libelf
51694configure-stage3-gcc: maybe-all-stage3-libelf
51695configure-stage4-gcc: maybe-all-stage4-libelf
51696configure-stageprofile-gcc: maybe-all-stageprofile-libelf
51697configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251 51698configure-gcc: maybe-all-libiconv
016a3251
DD
51699configure-stage1-gcc: maybe-all-stage1-libiconv
51700configure-stage2-gcc: maybe-all-stage2-libiconv
51701configure-stage3-gcc: maybe-all-stage3-libiconv
51702configure-stage4-gcc: maybe-all-stage4-libiconv
51703configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
51704configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191 51705all-gcc: all-libiberty
9e6ce191
PB
51706all-stage1-gcc: all-stage1-libiberty
51707all-stage2-gcc: all-stage2-libiberty
51708all-stage3-gcc: all-stage3-libiberty
51709all-stage4-gcc: all-stage4-libiberty
51710all-stageprofile-gcc: all-stageprofile-libiberty
51711all-stagefeedback-gcc: all-stagefeedback-libiberty
51712all-gcc: maybe-all-intl
9e6ce191
PB
51713all-stage1-gcc: maybe-all-stage1-intl
51714all-stage2-gcc: maybe-all-stage2-intl
51715all-stage3-gcc: maybe-all-stage3-intl
51716all-stage4-gcc: maybe-all-stage4-intl
51717all-stageprofile-gcc: maybe-all-stageprofile-intl
51718all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473 51719all-gcc: maybe-all-mpfr
4b900473
PB
51720all-stage1-gcc: maybe-all-stage1-mpfr
51721all-stage2-gcc: maybe-all-stage2-mpfr
51722all-stage3-gcc: maybe-all-stage3-mpfr
51723all-stage4-gcc: maybe-all-stage4-mpfr
51724all-stageprofile-gcc: maybe-all-stageprofile-mpfr
51725all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c 51726all-gcc: maybe-all-mpc
e8a5fa9c
RW
51727all-stage1-gcc: maybe-all-stage1-mpc
51728all-stage2-gcc: maybe-all-stage2-mpc
51729all-stage3-gcc: maybe-all-stage3-mpc
51730all-stage4-gcc: maybe-all-stage4-mpc
51731all-stageprofile-gcc: maybe-all-stageprofile-mpc
51732all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831 51733all-gcc: maybe-all-isl
1b6c0831
L
51734all-stage1-gcc: maybe-all-stage1-isl
51735all-stage2-gcc: maybe-all-stage2-isl
51736all-stage3-gcc: maybe-all-stage3-isl
51737all-stage4-gcc: maybe-all-stage4-isl
51738all-stageprofile-gcc: maybe-all-stageprofile-isl
51739all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a 51740all-gcc: maybe-all-build-texinfo
72b2455a
PB
51741all-stage1-gcc: maybe-all-build-texinfo
51742all-stage2-gcc: maybe-all-build-texinfo
51743all-stage3-gcc: maybe-all-build-texinfo
51744all-stage4-gcc: maybe-all-build-texinfo
51745all-stageprofile-gcc: maybe-all-build-texinfo
51746all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a 51747all-gcc: maybe-all-build-bison
72b2455a
PB
51748all-stage1-gcc: maybe-all-build-bison
51749all-stage2-gcc: maybe-all-build-bison
51750all-stage3-gcc: maybe-all-build-bison
51751all-stage4-gcc: maybe-all-build-bison
51752all-stageprofile-gcc: maybe-all-build-bison
51753all-stagefeedback-gcc: maybe-all-build-bison
72b2455a 51754all-gcc: maybe-all-build-flex
72b2455a
PB
51755all-stage1-gcc: maybe-all-build-flex
51756all-stage2-gcc: maybe-all-build-flex
51757all-stage3-gcc: maybe-all-build-flex
51758all-stage4-gcc: maybe-all-build-flex
51759all-stageprofile-gcc: maybe-all-build-flex
51760all-stagefeedback-gcc: maybe-all-build-flex
ee025550 51761all-gcc: maybe-all-build-libiberty
ee025550
PB
51762all-stage1-gcc: maybe-all-build-libiberty
51763all-stage2-gcc: maybe-all-build-libiberty
51764all-stage3-gcc: maybe-all-build-libiberty
51765all-stage4-gcc: maybe-all-build-libiberty
51766all-stageprofile-gcc: maybe-all-build-libiberty
51767all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550 51768all-gcc: maybe-all-build-fixincludes
ee025550
PB
51769all-stage1-gcc: maybe-all-build-fixincludes
51770all-stage2-gcc: maybe-all-build-fixincludes
51771all-stage3-gcc: maybe-all-build-fixincludes
51772all-stage4-gcc: maybe-all-build-fixincludes
51773all-stageprofile-gcc: maybe-all-build-fixincludes
51774all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831 51775all-gcc: maybe-all-build-libcpp
1b6c0831
L
51776all-stage1-gcc: maybe-all-build-libcpp
51777all-stage2-gcc: maybe-all-build-libcpp
51778all-stage3-gcc: maybe-all-build-libcpp
51779all-stage4-gcc: maybe-all-build-libcpp
51780all-stageprofile-gcc: maybe-all-build-libcpp
51781all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191 51782all-gcc: maybe-all-zlib
9e6ce191
PB
51783all-stage1-gcc: maybe-all-stage1-zlib
51784all-stage2-gcc: maybe-all-stage2-zlib
51785all-stage3-gcc: maybe-all-stage3-zlib
51786all-stage4-gcc: maybe-all-stage4-zlib
51787all-stageprofile-gcc: maybe-all-stageprofile-zlib
51788all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b 51789all-gcc: all-libbacktrace
8e71395b
L
51790all-stage1-gcc: all-stage1-libbacktrace
51791all-stage2-gcc: all-stage2-libbacktrace
51792all-stage3-gcc: all-stage3-libbacktrace
51793all-stage4-gcc: all-stage4-libbacktrace
51794all-stageprofile-gcc: all-stageprofile-libbacktrace
51795all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191 51796all-gcc: all-libcpp
9e6ce191
PB
51797all-stage1-gcc: all-stage1-libcpp
51798all-stage2-gcc: all-stage2-libcpp
51799all-stage3-gcc: all-stage3-libcpp
51800all-stage4-gcc: all-stage4-libcpp
51801all-stageprofile-gcc: all-stageprofile-libcpp
51802all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343 51803all-gcc: all-libdecnumber
be01d343
PB
51804all-stage1-gcc: all-stage1-libdecnumber
51805all-stage2-gcc: all-stage2-libdecnumber
51806all-stage3-gcc: all-stage3-libdecnumber
51807all-stage4-gcc: all-stage4-libdecnumber
51808all-stageprofile-gcc: all-stageprofile-libdecnumber
51809all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c 51810all-gcc: maybe-all-libiberty
d3ed111c
GK
51811all-stage1-gcc: maybe-all-stage1-libiberty
51812all-stage2-gcc: maybe-all-stage2-libiberty
51813all-stage3-gcc: maybe-all-stage3-libiberty
51814all-stage4-gcc: maybe-all-stage4-libiberty
51815all-stageprofile-gcc: maybe-all-stageprofile-libiberty
51816all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
51817all-gcc: maybe-all-fixincludes
201f096f 51818all-stage1-gcc: maybe-all-stage1-fixincludes
51819all-stage2-gcc: maybe-all-stage2-fixincludes
51820all-stage3-gcc: maybe-all-stage3-fixincludes
51821all-stage4-gcc: maybe-all-stage4-fixincludes
51822all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
51823all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a 51824all-gcc: maybe-all-lto-plugin
8d8eef9a
RW
51825all-stage1-gcc: maybe-all-stage1-lto-plugin
51826all-stage2-gcc: maybe-all-stage2-lto-plugin
51827all-stage3-gcc: maybe-all-stage3-lto-plugin
51828all-stage4-gcc: maybe-all-stage4-lto-plugin
51829all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
51830all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251 51831all-gcc: maybe-all-libiconv
016a3251
DD
51832all-stage1-gcc: maybe-all-stage1-libiconv
51833all-stage2-gcc: maybe-all-stage2-libiconv
51834all-stage3-gcc: maybe-all-stage3-libiconv
51835all-stage4-gcc: maybe-all-stage4-libiconv
51836all-stageprofile-gcc: maybe-all-stageprofile-libiconv
51837all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d 51838info-gcc: maybe-all-build-libiberty
57eefe4d
RW
51839info-stage1-gcc: maybe-all-build-libiberty
51840info-stage2-gcc: maybe-all-build-libiberty
51841info-stage3-gcc: maybe-all-build-libiberty
51842info-stage4-gcc: maybe-all-build-libiberty
51843info-stageprofile-gcc: maybe-all-build-libiberty
51844info-stagefeedback-gcc: maybe-all-build-libiberty
51845dvi-gcc: maybe-all-build-libiberty
57eefe4d
RW
51846dvi-stage1-gcc: maybe-all-build-libiberty
51847dvi-stage2-gcc: maybe-all-build-libiberty
51848dvi-stage3-gcc: maybe-all-build-libiberty
51849dvi-stage4-gcc: maybe-all-build-libiberty
51850dvi-stageprofile-gcc: maybe-all-build-libiberty
51851dvi-stagefeedback-gcc: maybe-all-build-libiberty
51852pdf-gcc: maybe-all-build-libiberty
57eefe4d
RW
51853pdf-stage1-gcc: maybe-all-build-libiberty
51854pdf-stage2-gcc: maybe-all-build-libiberty
51855pdf-stage3-gcc: maybe-all-build-libiberty
51856pdf-stage4-gcc: maybe-all-build-libiberty
51857pdf-stageprofile-gcc: maybe-all-build-libiberty
51858pdf-stagefeedback-gcc: maybe-all-build-libiberty
51859html-gcc: maybe-all-build-libiberty
57eefe4d
RW
51860html-stage1-gcc: maybe-all-build-libiberty
51861html-stage2-gcc: maybe-all-build-libiberty
51862html-stage3-gcc: maybe-all-build-libiberty
51863html-stage4-gcc: maybe-all-build-libiberty
51864html-stageprofile-gcc: maybe-all-build-libiberty
51865html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 51866install-gcc: maybe-install-fixincludes
8d8eef9a 51867install-gcc: maybe-install-lto-plugin
9b980aa1 51868install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 51869install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191 51870configure-libcpp: configure-libiberty
9e6ce191
PB
51871configure-stage1-libcpp: configure-stage1-libiberty
51872configure-stage2-libcpp: configure-stage2-libiberty
51873configure-stage3-libcpp: configure-stage3-libiberty
51874configure-stage4-libcpp: configure-stage4-libiberty
51875configure-stageprofile-libcpp: configure-stageprofile-libiberty
51876configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
51877configure-libcpp: maybe-configure-intl
9e6ce191
PB
51878configure-stage1-libcpp: maybe-configure-stage1-intl
51879configure-stage2-libcpp: maybe-configure-stage2-intl
51880configure-stage3-libcpp: maybe-configure-stage3-intl
51881configure-stage4-libcpp: maybe-configure-stage4-intl
51882configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
51883configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251 51884configure-libcpp: maybe-all-libiconv
016a3251
DD
51885configure-stage1-libcpp: maybe-all-stage1-libiconv
51886configure-stage2-libcpp: maybe-all-stage2-libiconv
51887configure-stage3-libcpp: maybe-all-stage3-libiconv
51888configure-stage4-libcpp: maybe-all-stage4-libiconv
51889configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
51890configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191 51891all-libcpp: all-libiberty
9e6ce191
PB
51892all-stage1-libcpp: all-stage1-libiberty
51893all-stage2-libcpp: all-stage2-libiberty
51894all-stage3-libcpp: all-stage3-libiberty
51895all-stage4-libcpp: all-stage4-libiberty
51896all-stageprofile-libcpp: all-stageprofile-libiberty
51897all-stagefeedback-libcpp: all-stagefeedback-libiberty
51898all-libcpp: maybe-all-intl
9e6ce191
PB
51899all-stage1-libcpp: maybe-all-stage1-intl
51900all-stage2-libcpp: maybe-all-stage2-intl
51901all-stage3-libcpp: maybe-all-stage3-intl
51902all-stage4-libcpp: maybe-all-stage4-intl
51903all-stageprofile-libcpp: maybe-all-stageprofile-intl
51904all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251 51905all-libcpp: maybe-all-libiconv
016a3251
DD
51906all-stage1-libcpp: maybe-all-stage1-libiconv
51907all-stage2-libcpp: maybe-all-stage2-libiconv
51908all-stage3-libcpp: maybe-all-stage3-libiconv
51909all-stage4-libcpp: maybe-all-stage4-libiconv
51910all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
51911all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 51912all-fixincludes: maybe-all-libiberty
201f096f 51913all-stage1-fixincludes: maybe-all-stage1-libiberty
51914all-stage2-fixincludes: maybe-all-stage2-libiberty
51915all-stage3-fixincludes: maybe-all-stage3-libiberty
51916all-stage4-fixincludes: maybe-all-stage4-libiberty
51917all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
51918all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 51919all-gnattools: maybe-all-target-libada
8d8eef9a 51920all-lto-plugin: maybe-all-libiberty
8d8eef9a
RW
51921all-stage1-lto-plugin: maybe-all-stage1-libiberty
51922all-stage2-lto-plugin: maybe-all-stage2-libiberty
51923all-stage3-lto-plugin: maybe-all-stage3-libiberty
51924all-stage4-lto-plugin: maybe-all-stage4-libiberty
51925all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
51926all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831 51927all-lto-plugin: maybe-all-libiberty-linker-plugin
1b6c0831
L
51928all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
51929all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
51930all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
51931all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
51932all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
51933all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
1b6c0831 51934all-gotools: maybe-all-target-libgo
016a3251 51935configure-intl: maybe-all-libiconv
016a3251
DD
51936configure-stage1-intl: maybe-all-stage1-libiconv
51937configure-stage2-intl: maybe-all-stage2-libiconv
51938configure-stage3-intl: maybe-all-stage3-libiconv
51939configure-stage4-intl: maybe-all-stage4-libiconv
51940configure-stageprofile-intl: maybe-all-stageprofile-libiconv
51941configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473 51942configure-mpfr: maybe-all-gmp
4b900473
PB
51943configure-stage1-mpfr: maybe-all-stage1-gmp
51944configure-stage2-mpfr: maybe-all-stage2-gmp
51945configure-stage3-mpfr: maybe-all-stage3-gmp
51946configure-stage4-mpfr: maybe-all-stage4-gmp
51947configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
51948configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c 51949configure-mpc: maybe-all-mpfr
e8a5fa9c
RW
51950configure-stage1-mpc: maybe-all-stage1-mpfr
51951configure-stage2-mpc: maybe-all-stage2-mpfr
51952configure-stage3-mpc: maybe-all-stage3-mpfr
51953configure-stage4-mpc: maybe-all-stage4-mpfr
51954configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
51955configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e 51956configure-isl: maybe-all-gmp
7ec59b9e
L
51957configure-stage1-isl: maybe-all-stage1-gmp
51958configure-stage2-isl: maybe-all-stage2-gmp
51959configure-stage3-isl: maybe-all-stage3-gmp
51960configure-stage4-isl: maybe-all-stage4-gmp
51961configure-stageprofile-isl: maybe-all-stageprofile-gmp
51962configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251 51963all-intl: maybe-all-libiconv
016a3251
DD
51964all-stage1-intl: maybe-all-stage1-libiconv
51965all-stage2-intl: maybe-all-stage2-libiconv
51966all-stage3-intl: maybe-all-stage3-libiconv
51967all-stage4-intl: maybe-all-stage4-libiconv
51968all-stageprofile-intl: maybe-all-stageprofile-libiconv
51969all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
9e6ce191 51970configure-gdb: maybe-configure-sim
73cc7272 51971configure-gdb: maybe-all-gnulib
01027315 51972configure-gdb: maybe-all-gdbsupport
73cc7272 51973all-gdb: maybe-all-gnulib
01027315 51974all-gdb: maybe-all-gdbsupport
9e6ce191 51975all-gdb: maybe-all-readline
72b2455a 51976all-gdb: maybe-all-build-bison
9e6ce191 51977all-gdb: maybe-all-sim
dbbe5f95 51978all-gdb: maybe-all-libtermcap
1a627e7e 51979configure-gdbserver: maybe-all-gnulib
4635ff97 51980all-gdbserver: maybe-all-gdbsupport
1a627e7e 51981all-gdbserver: maybe-all-gnulib
9e6ce191
PB
51982configure-libgui: maybe-configure-tcl
51983configure-libgui: maybe-configure-tk
51984all-libgui: maybe-all-tcl
51985all-libgui: maybe-all-tk
51986all-libgui: maybe-all-itcl
01027315
TT
51987configure-gdbsupport: maybe-configure-gnulib
51988all-gdbsupport: maybe-all-gnulib
b4a77b47 51989configure-bfd: configure-libiberty
9e6ce191
PB
51990configure-stage1-bfd: configure-stage1-libiberty
51991configure-stage2-bfd: configure-stage2-libiberty
51992configure-stage3-bfd: configure-stage3-libiberty
51993configure-stage4-bfd: configure-stage4-libiberty
51994configure-stageprofile-bfd: configure-stageprofile-libiberty
51995configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23 51996configure-bfd: maybe-configure-intl
20e95c23
DJ
51997configure-stage1-bfd: maybe-configure-stage1-intl
51998configure-stage2-bfd: maybe-configure-stage2-intl
51999configure-stage3-bfd: maybe-configure-stage3-intl
52000configure-stage4-bfd: maybe-configure-stage4-intl
52001configure-stageprofile-bfd: maybe-configure-stageprofile-intl
52002configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191 52003all-bfd: maybe-all-libiberty
9e6ce191
PB
52004all-stage1-bfd: maybe-all-stage1-libiberty
52005all-stage2-bfd: maybe-all-stage2-libiberty
52006all-stage3-bfd: maybe-all-stage3-libiberty
52007all-stage4-bfd: maybe-all-stage4-libiberty
52008all-stageprofile-bfd: maybe-all-stageprofile-libiberty
52009all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
52010all-bfd: maybe-all-intl
9e6ce191
PB
52011all-stage1-bfd: maybe-all-stage1-intl
52012all-stage2-bfd: maybe-all-stage2-intl
52013all-stage3-bfd: maybe-all-stage3-intl
52014all-stage4-bfd: maybe-all-stage4-intl
52015all-stageprofile-bfd: maybe-all-stageprofile-intl
52016all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea 52017all-bfd: maybe-all-zlib
d2d67aea
L
52018all-stage1-bfd: maybe-all-stage1-zlib
52019all-stage2-bfd: maybe-all-stage2-zlib
52020all-stage3-bfd: maybe-all-stage3-zlib
52021all-stage4-bfd: maybe-all-stage4-zlib
52022all-stageprofile-bfd: maybe-all-stageprofile-zlib
52023all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67 52024configure-opcodes: configure-libiberty
66775d67
AM
52025configure-stage1-opcodes: configure-stage1-libiberty
52026configure-stage2-opcodes: configure-stage2-libiberty
66775d67 52027configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
52028configure-stage4-opcodes: configure-stage4-libiberty
52029configure-stageprofile-opcodes: configure-stageprofile-libiberty
52030configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
52031all-opcodes: maybe-all-libiberty
66775d67
AM
52032all-stage1-opcodes: maybe-all-stage1-libiberty
52033all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 52034all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
52035all-stage4-opcodes: maybe-all-stage4-libiberty
52036all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
52037all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23 52038configure-binutils: maybe-configure-intl
20e95c23
DJ
52039configure-stage1-binutils: maybe-configure-stage1-intl
52040configure-stage2-binutils: maybe-configure-stage2-intl
52041configure-stage3-binutils: maybe-configure-stage3-intl
52042configure-stage4-binutils: maybe-configure-stage4-intl
52043configure-stageprofile-binutils: maybe-configure-stageprofile-intl
52044configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191 52045all-binutils: maybe-all-libiberty
9e6ce191
PB
52046all-stage1-binutils: maybe-all-stage1-libiberty
52047all-stage2-binutils: maybe-all-stage2-libiberty
52048all-stage3-binutils: maybe-all-stage3-libiberty
52049all-stage4-binutils: maybe-all-stage4-libiberty
52050all-stageprofile-binutils: maybe-all-stageprofile-libiberty
52051all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
52052all-binutils: maybe-all-opcodes
9e6ce191
PB
52053all-stage1-binutils: maybe-all-stage1-opcodes
52054all-stage2-binutils: maybe-all-stage2-opcodes
52055all-stage3-binutils: maybe-all-stage3-opcodes
52056all-stage4-binutils: maybe-all-stage4-opcodes
52057all-stageprofile-binutils: maybe-all-stageprofile-opcodes
52058all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
52059all-binutils: maybe-all-bfd
9e6ce191
PB
52060all-stage1-binutils: maybe-all-stage1-bfd
52061all-stage2-binutils: maybe-all-stage2-bfd
52062all-stage3-binutils: maybe-all-stage3-bfd
52063all-stage4-binutils: maybe-all-stage4-bfd
52064all-stageprofile-binutils: maybe-all-stageprofile-bfd
52065all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a 52066all-binutils: maybe-all-build-flex
72b2455a
PB
52067all-stage1-binutils: maybe-all-build-flex
52068all-stage2-binutils: maybe-all-build-flex
52069all-stage3-binutils: maybe-all-build-flex
52070all-stage4-binutils: maybe-all-build-flex
52071all-stageprofile-binutils: maybe-all-build-flex
52072all-stagefeedback-binutils: maybe-all-build-flex
72b2455a 52073all-binutils: maybe-all-build-bison
72b2455a
PB
52074all-stage1-binutils: maybe-all-build-bison
52075all-stage2-binutils: maybe-all-build-bison
52076all-stage3-binutils: maybe-all-build-bison
52077all-stage4-binutils: maybe-all-build-bison
52078all-stageprofile-binutils: maybe-all-build-bison
52079all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191 52080all-binutils: maybe-all-intl
9e6ce191
PB
52081all-stage1-binutils: maybe-all-stage1-intl
52082all-stage2-binutils: maybe-all-stage2-intl
52083all-stage3-binutils: maybe-all-stage3-intl
52084all-stage4-binutils: maybe-all-stage4-intl
52085all-stageprofile-binutils: maybe-all-stageprofile-intl
52086all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685 52087all-binutils: maybe-all-gas
0140d685
L
52088all-stage1-binutils: maybe-all-stage1-gas
52089all-stage2-binutils: maybe-all-stage2-gas
52090all-stage3-binutils: maybe-all-stage3-gas
52091all-stage4-binutils: maybe-all-stage4-gas
52092all-stageprofile-binutils: maybe-all-stageprofile-gas
52093all-stagefeedback-binutils: maybe-all-stagefeedback-gas
0e65dfba
NA
52094all-binutils: maybe-all-libctf
52095all-stage1-binutils: maybe-all-stage1-libctf
52096all-stage2-binutils: maybe-all-stage2-libctf
52097all-stage3-binutils: maybe-all-stage3-libctf
52098all-stage4-binutils: maybe-all-stage4-libctf
52099all-stageprofile-binutils: maybe-all-stageprofile-libctf
52100all-stagefeedback-binutils: maybe-all-stagefeedback-libctf
1ff6de03
NA
52101all-ld: maybe-all-libctf
52102all-stage1-ld: maybe-all-stage1-libctf
52103all-stage2-ld: maybe-all-stage2-libctf
52104all-stage3-ld: maybe-all-stage3-libctf
52105all-stage4-ld: maybe-all-stage4-libctf
52106all-stageprofile-ld: maybe-all-stageprofile-libctf
52107all-stagefeedback-ld: maybe-all-stagefeedback-libctf
ae831be5 52108install-binutils: maybe-install-opcodes
9b980aa1 52109install-strip-binutils: maybe-install-strip-opcodes
cf662e21 52110install-opcodes: maybe-install-bfd
9b980aa1 52111install-strip-opcodes: maybe-install-strip-bfd
20e95c23 52112configure-gas: maybe-configure-intl
20e95c23
DJ
52113configure-stage1-gas: maybe-configure-stage1-intl
52114configure-stage2-gas: maybe-configure-stage2-intl
52115configure-stage3-gas: maybe-configure-stage3-intl
52116configure-stage4-gas: maybe-configure-stage4-intl
52117configure-stageprofile-gas: maybe-configure-stageprofile-intl
52118configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191 52119all-gas: maybe-all-libiberty
9e6ce191
PB
52120all-stage1-gas: maybe-all-stage1-libiberty
52121all-stage2-gas: maybe-all-stage2-libiberty
52122all-stage3-gas: maybe-all-stage3-libiberty
52123all-stage4-gas: maybe-all-stage4-libiberty
52124all-stageprofile-gas: maybe-all-stageprofile-libiberty
52125all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
52126all-gas: maybe-all-opcodes
9e6ce191
PB
52127all-stage1-gas: maybe-all-stage1-opcodes
52128all-stage2-gas: maybe-all-stage2-opcodes
52129all-stage3-gas: maybe-all-stage3-opcodes
52130all-stage4-gas: maybe-all-stage4-opcodes
52131all-stageprofile-gas: maybe-all-stageprofile-opcodes
52132all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
52133all-gas: maybe-all-bfd
9e6ce191
PB
52134all-stage1-gas: maybe-all-stage1-bfd
52135all-stage2-gas: maybe-all-stage2-bfd
52136all-stage3-gas: maybe-all-stage3-bfd
52137all-stage4-gas: maybe-all-stage4-bfd
52138all-stageprofile-gas: maybe-all-stageprofile-bfd
52139all-stagefeedback-gas: maybe-all-stagefeedback-bfd
52140all-gas: maybe-all-intl
9e6ce191
PB
52141all-stage1-gas: maybe-all-stage1-intl
52142all-stage2-gas: maybe-all-stage2-intl
52143all-stage3-gas: maybe-all-stage3-intl
52144all-stage4-gas: maybe-all-stage4-intl
52145all-stageprofile-gas: maybe-all-stageprofile-intl
52146all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 52147configure-ld: maybe-configure-intl
20e95c23
DJ
52148configure-stage1-ld: maybe-configure-stage1-intl
52149configure-stage2-ld: maybe-configure-stage2-intl
52150configure-stage3-ld: maybe-configure-stage3-intl
52151configure-stage4-ld: maybe-configure-stage4-intl
52152configure-stageprofile-ld: maybe-configure-stageprofile-intl
52153configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191 52154all-ld: maybe-all-libiberty
9e6ce191
PB
52155all-stage1-ld: maybe-all-stage1-libiberty
52156all-stage2-ld: maybe-all-stage2-libiberty
52157all-stage3-ld: maybe-all-stage3-libiberty
52158all-stage4-ld: maybe-all-stage4-libiberty
52159all-stageprofile-ld: maybe-all-stageprofile-libiberty
52160all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
52161all-ld: maybe-all-bfd
9e6ce191
PB
52162all-stage1-ld: maybe-all-stage1-bfd
52163all-stage2-ld: maybe-all-stage2-bfd
52164all-stage3-ld: maybe-all-stage3-bfd
52165all-stage4-ld: maybe-all-stage4-bfd
52166all-stageprofile-ld: maybe-all-stageprofile-bfd
52167all-stagefeedback-ld: maybe-all-stagefeedback-bfd
52168all-ld: maybe-all-opcodes
9e6ce191
PB
52169all-stage1-ld: maybe-all-stage1-opcodes
52170all-stage2-ld: maybe-all-stage2-opcodes
52171all-stage3-ld: maybe-all-stage3-opcodes
52172all-stage4-ld: maybe-all-stage4-opcodes
52173all-stageprofile-ld: maybe-all-stageprofile-opcodes
52174all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a 52175all-ld: maybe-all-build-bison
72b2455a
PB
52176all-stage1-ld: maybe-all-build-bison
52177all-stage2-ld: maybe-all-build-bison
52178all-stage3-ld: maybe-all-build-bison
52179all-stage4-ld: maybe-all-build-bison
52180all-stageprofile-ld: maybe-all-build-bison
52181all-stagefeedback-ld: maybe-all-build-bison
72b2455a 52182all-ld: maybe-all-build-flex
72b2455a
PB
52183all-stage1-ld: maybe-all-build-flex
52184all-stage2-ld: maybe-all-build-flex
52185all-stage3-ld: maybe-all-build-flex
52186all-stage4-ld: maybe-all-build-flex
52187all-stageprofile-ld: maybe-all-build-flex
52188all-stagefeedback-ld: maybe-all-build-flex
9e6ce191 52189all-ld: maybe-all-intl
9e6ce191
PB
52190all-stage1-ld: maybe-all-stage1-intl
52191all-stage2-ld: maybe-all-stage2-intl
52192all-stage3-ld: maybe-all-stage3-intl
52193all-stage4-ld: maybe-all-stage4-intl
52194all-stageprofile-ld: maybe-all-stageprofile-intl
52195all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685 52196all-ld: maybe-all-gas
0140d685
L
52197all-stage1-ld: maybe-all-stage1-gas
52198all-stage2-ld: maybe-all-stage2-gas
52199all-stage3-ld: maybe-all-stage3-gas
52200all-stage4-ld: maybe-all-stage4-gas
52201all-stageprofile-ld: maybe-all-stageprofile-gas
52202all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403 52203all-ld: maybe-all-binutils
a6305403
YS
52204all-stage1-ld: maybe-all-stage1-binutils
52205all-stage2-ld: maybe-all-stage2-binutils
52206all-stage3-ld: maybe-all-stage3-binutils
52207all-stage4-ld: maybe-all-stage4-binutils
52208all-stageprofile-ld: maybe-all-stageprofile-binutils
52209all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 52210install-ld: maybe-install-gold
9b980aa1 52211install-strip-ld: maybe-install-strip-gold
93f9b408 52212configure-gold: maybe-configure-intl
93f9b408
ILT
52213configure-stage1-gold: maybe-configure-stage1-intl
52214configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 52215configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
52216configure-stage4-gold: maybe-configure-stage4-intl
52217configure-stageprofile-gold: maybe-configure-stageprofile-intl
52218configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
52219all-gold: maybe-all-libiberty
93f9b408
ILT
52220all-stage1-gold: maybe-all-stage1-libiberty
52221all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 52222all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
52223all-stage4-gold: maybe-all-stage4-libiberty
52224all-stageprofile-gold: maybe-all-stageprofile-libiberty
52225all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
52226all-gold: maybe-all-intl
93f9b408
ILT
52227all-stage1-gold: maybe-all-stage1-intl
52228all-stage2-gold: maybe-all-stage2-intl
93f9b408 52229all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
52230all-stage4-gold: maybe-all-stage4-intl
52231all-stageprofile-gold: maybe-all-stageprofile-intl
52232all-stagefeedback-gold: maybe-all-stagefeedback-intl
52233all-gold: maybe-all-bfd
93f9b408
ILT
52234all-stage1-gold: maybe-all-stage1-bfd
52235all-stage2-gold: maybe-all-stage2-bfd
93f9b408 52236all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
52237all-stage4-gold: maybe-all-stage4-bfd
52238all-stageprofile-gold: maybe-all-stageprofile-bfd
52239all-stagefeedback-gold: maybe-all-stagefeedback-bfd
52240all-gold: maybe-all-build-bison
93f9b408
ILT
52241all-stage1-gold: maybe-all-build-bison
52242all-stage2-gold: maybe-all-build-bison
93f9b408 52243all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
52244all-stage4-gold: maybe-all-build-bison
52245all-stageprofile-gold: maybe-all-build-bison
52246all-stagefeedback-gold: maybe-all-build-bison
0140d685 52247all-gold: maybe-all-gas
0140d685
L
52248all-stage1-gold: maybe-all-stage1-gas
52249all-stage2-gold: maybe-all-stage2-gas
52250all-stage3-gold: maybe-all-stage3-gas
52251all-stage4-gold: maybe-all-stage4-gas
52252all-stageprofile-gold: maybe-all-stageprofile-gas
52253all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97 52254check-gold: maybe-all-binutils
e5164e97
ILT
52255check-stage1-gold: maybe-all-stage1-binutils
52256check-stage2-gold: maybe-all-stage2-binutils
e5164e97 52257check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
52258check-stage4-gold: maybe-all-stage4-binutils
52259check-stageprofile-gold: maybe-all-stageprofile-binutils
52260check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca 52261check-gold: maybe-all-gas
700d40ca
ILT
52262check-stage1-gold: maybe-all-stage1-gas
52263check-stage2-gold: maybe-all-stage2-gas
52264check-stage3-gold: maybe-all-stage3-gas
52265check-stage4-gold: maybe-all-stage4-gas
52266check-stageprofile-gold: maybe-all-stageprofile-gas
52267check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee 52268configure-opcodes: maybe-configure-intl
7206a0ee
JJ
52269configure-stage1-opcodes: maybe-configure-stage1-intl
52270configure-stage2-opcodes: maybe-configure-stage2-intl
52271configure-stage3-opcodes: maybe-configure-stage3-intl
52272configure-stage4-opcodes: maybe-configure-stage4-intl
52273configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
52274configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191 52275all-opcodes: maybe-all-bfd
9e6ce191
PB
52276all-stage1-opcodes: maybe-all-stage1-bfd
52277all-stage2-opcodes: maybe-all-stage2-bfd
52278all-stage3-opcodes: maybe-all-stage3-bfd
52279all-stage4-opcodes: maybe-all-stage4-bfd
52280all-stageprofile-opcodes: maybe-all-stageprofile-bfd
52281all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
52282all-opcodes: maybe-all-libiberty
9e6ce191
PB
52283all-stage1-opcodes: maybe-all-stage1-libiberty
52284all-stage2-opcodes: maybe-all-stage2-libiberty
52285all-stage3-opcodes: maybe-all-stage3-libiberty
52286all-stage4-opcodes: maybe-all-stage4-libiberty
52287all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
52288all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee 52289all-opcodes: maybe-all-intl
7206a0ee
JJ
52290all-stage1-opcodes: maybe-all-stage1-intl
52291all-stage2-opcodes: maybe-all-stage2-intl
52292all-stage3-opcodes: maybe-all-stage3-intl
52293all-stage4-opcodes: maybe-all-stage4-intl
52294all-stageprofile-opcodes: maybe-all-stageprofile-intl
52295all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
52296all-dejagnu: maybe-all-tcl
52297all-dejagnu: maybe-all-expect
52298all-dejagnu: maybe-all-tk
52299configure-expect: maybe-configure-tcl
52300configure-expect: maybe-configure-tk
52301all-expect: maybe-all-tcl
52302all-expect: maybe-all-tk
52303configure-itcl: maybe-configure-tcl
52304configure-itcl: maybe-configure-tk
52305all-itcl: maybe-all-tcl
52306all-itcl: maybe-all-tk
ae831be5 52307install-itcl: maybe-install-tcl
9b980aa1 52308install-strip-itcl: maybe-install-strip-tcl
b4a77b47 52309configure-tk: maybe-configure-tcl
ae831be5 52310all-tk: maybe-all-tcl
9e6ce191
PB
52311all-sid: maybe-all-tcl
52312all-sid: maybe-all-tk
52313install-sid: maybe-install-tcl
9b980aa1 52314install-strip-sid: maybe-install-strip-tcl
9e6ce191 52315install-sid: maybe-install-tk
9b980aa1 52316install-strip-sid: maybe-install-strip-tk
9e6ce191
PB
52317all-sim: maybe-all-readline
52318all-sim: maybe-configure-gdb
72b2455a 52319all-fastjar: maybe-all-build-texinfo
0e65dfba
NA
52320all-libctf: all-libiberty
52321all-stage1-libctf: all-stage1-libiberty
52322all-stage2-libctf: all-stage2-libiberty
52323all-stage3-libctf: all-stage3-libiberty
52324all-stage4-libctf: all-stage4-libiberty
52325all-stageprofile-libctf: all-stageprofile-libiberty
52326all-stagefeedback-libctf: all-stagefeedback-libiberty
52327all-libctf: maybe-all-bfd
52328all-stage1-libctf: maybe-all-stage1-bfd
52329all-stage2-libctf: maybe-all-stage2-bfd
52330all-stage3-libctf: maybe-all-stage3-bfd
52331all-stage4-libctf: maybe-all-stage4-bfd
52332all-stageprofile-libctf: maybe-all-stageprofile-bfd
52333all-stagefeedback-libctf: maybe-all-stagefeedback-bfd
52334all-libctf: maybe-all-zlib
52335all-stage1-libctf: maybe-all-stage1-zlib
52336all-stage2-libctf: maybe-all-stage2-zlib
52337all-stage3-libctf: maybe-all-stage3-zlib
52338all-stage4-libctf: maybe-all-stage4-zlib
52339all-stageprofile-libctf: maybe-all-stageprofile-zlib
52340all-stagefeedback-libctf: maybe-all-stagefeedback-zlib
9698cf9b
NA
52341configure-libctf: maybe-all-bfd
52342configure-stage1-libctf: maybe-all-stage1-bfd
52343configure-stage2-libctf: maybe-all-stage2-bfd
52344configure-stage3-libctf: maybe-all-stage3-bfd
52345configure-stage4-libctf: maybe-all-stage4-bfd
52346configure-stageprofile-libctf: maybe-all-stageprofile-bfd
52347configure-stagefeedback-libctf: maybe-all-stagefeedback-bfd
52348configure-libctf: maybe-all-intl
52349configure-stage1-libctf: maybe-all-stage1-intl
52350configure-stage2-libctf: maybe-all-stage2-intl
52351configure-stage3-libctf: maybe-all-stage3-intl
52352configure-stage4-libctf: maybe-all-stage4-intl
52353configure-stageprofile-libctf: maybe-all-stageprofile-intl
52354configure-stagefeedback-libctf: maybe-all-stagefeedback-intl
52355configure-libctf: maybe-all-zlib
52356configure-stage1-libctf: maybe-all-stage1-zlib
52357configure-stage2-libctf: maybe-all-stage2-zlib
52358configure-stage3-libctf: maybe-all-stage3-zlib
52359configure-stage4-libctf: maybe-all-stage4-zlib
52360configure-stageprofile-libctf: maybe-all-stageprofile-zlib
52361configure-stagefeedback-libctf: maybe-all-stagefeedback-zlib
52362configure-libctf: maybe-all-libiconv
52363configure-stage1-libctf: maybe-all-stage1-libiconv
52364configure-stage2-libctf: maybe-all-stage2-libiconv
52365configure-stage3-libctf: maybe-all-stage3-libiconv
52366configure-stage4-libctf: maybe-all-stage4-libiconv
52367configure-stageprofile-libctf: maybe-all-stageprofile-libiconv
52368configure-stagefeedback-libctf: maybe-all-stagefeedback-libiconv
72b2455a 52369all-bison: maybe-all-build-texinfo
72b2455a 52370all-flex: maybe-all-build-bison
9e6ce191 52371all-flex: maybe-all-m4
72b2455a 52372all-flex: maybe-all-build-texinfo
72b2455a 52373all-m4: maybe-all-build-texinfo
b4a77b47 52374configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 52375all-target-fastjar: maybe-all-target-zlib
e552509b 52376configure-target-libgo: maybe-configure-target-libffi
8e71395b 52377all-target-libgo: maybe-all-target-libbacktrace
e552509b 52378all-target-libgo: maybe-all-target-libffi
9417cd2f 52379all-target-libgo: maybe-all-target-libatomic
cff87f51 52380configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
52381configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
52382configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
52383configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
52384configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
52385configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
52386configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
5286fdef 52387configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
52388configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
52389configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
52390configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
52391configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
52392configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
52393configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135 52394configure-target-libvtv: maybe-all-target-libstdc++-v3
95e43135
JBG
52395configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
52396configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
52397configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
52398configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
52399configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
52400configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0 52401all-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
52402all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
52403all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
52404all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
52405all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
52406all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
52407all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
9417cd2f
JBG
52408install-target-libgo: maybe-install-target-libatomic
52409install-target-libgfortran: maybe-install-target-libquadmath
52410install-target-libgfortran: maybe-install-target-libgcc
3dae1673 52411install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 52412install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
52413install-target-libvtv: maybe-install-target-libstdc++-v3
52414install-target-libvtv: maybe-install-target-libgcc
e3f56a99
NC
52415install-target-libcilkrts: maybe-install-target-libstdc++-v3
52416install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
52417install-target-liboffloadmic: maybe-install-target-libstdc++-v3
52418install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
52419install-target-libitm: maybe-install-target-libgcc
52420install-target-libobjc: maybe-install-target-libgcc
52421install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 52422all-target-libgloss: maybe-all-target-newlib
9e6ce191 52423all-target-winsup: maybe-all-target-libtermcap
e552509b 52424configure-target-libgfortran: maybe-all-target-libquadmath
68996839 52425configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
52426
52427
4119873a
AO
52428@if gcc-bootstrap
52429configure-gnattools: stage_last
52430configure-libcc1: stage_last
52431configure-utils: stage_last
52432configure-gdb: stage_last
1a627e7e 52433configure-gdbserver: stage_last
01027315 52434configure-gdbsupport: stage_last
4119873a
AO
52435configure-gprof: stage_last
52436configure-sid: stage_last
52437configure-sim: stage_last
52438configure-fastjar: stage_last
52439configure-bison: stage_last
52440configure-flex: stage_last
52441configure-m4: stage_last
52442@endif gcc-bootstrap
52443
52444@unless gcc-bootstrap
52445all-gnattools: maybe-all-target-libstdc++-v3
52446configure-libcc1: maybe-configure-gcc
52447all-libcc1: maybe-all-gcc
52448all-utils: maybe-all-libiberty
52449configure-gdb: maybe-all-intl
52450configure-gdb: maybe-all-bfd
52451configure-gdb: maybe-all-libiconv
52452all-gdb: maybe-all-libiberty
52453all-gdb: maybe-all-libiconv
52454all-gdb: maybe-all-opcodes
52455all-gdb: maybe-all-libdecnumber
30d1f018 52456all-gdb: maybe-all-libctf
1a627e7e 52457all-gdbserver: maybe-all-libiberty
9a665d62 52458configure-gdbsupport: maybe-configure-intl
9a665d62 52459all-gdbsupport: maybe-all-intl
4119873a
AO
52460configure-gprof: maybe-configure-intl
52461all-gprof: maybe-all-libiberty
52462all-gprof: maybe-all-bfd
52463all-gprof: maybe-all-opcodes
52464all-gprof: maybe-all-intl
52465all-gprof: maybe-all-gas
52466all-sid: maybe-all-libiberty
52467all-sid: maybe-all-bfd
52468all-sid: maybe-all-opcodes
52469configure-sim: maybe-configure-intl
52470all-sim: maybe-all-intl
52471all-sim: maybe-all-libiberty
52472all-sim: maybe-all-bfd
52473all-sim: maybe-all-opcodes
52474all-fastjar: maybe-all-zlib
52475all-fastjar: maybe-all-libiberty
52476all-bison: maybe-all-intl
52477all-flex: maybe-all-intl
52478all-m4: maybe-all-intl
52479configure-target-libgo: maybe-all-target-libstdc++-v3
52480configure-target-liboffloadmic: maybe-configure-target-libgomp
52481all-target-liboffloadmic: maybe-all-target-libgomp
52482configure-target-newlib: maybe-all-binutils
52483configure-target-newlib: maybe-all-ld
52484@endunless gcc-bootstrap
52485
6aa8ef82
DJ
52486# Dependencies for target modules on other target modules are
52487# described by lang_env_dependencies; the defaults apply to anything
52488# not mentioned there.
52489
52490
52491@if gcc-bootstrap
e8a5fa9c
RW
52492configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
52493configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
52494configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
52495configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
52496configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
52497configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
52498configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
52499configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
52500configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
52501configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
52502configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
52503configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
52504configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
52505configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
52506configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
52507configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
52508configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
52509configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
52510configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
52511configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
52512configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
52513configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
52514configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
52515configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
52516configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
52517configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
52518configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
52519configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
52520configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
52521configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
52522@endif gcc-bootstrap
52523
52524@if gcc-no-bootstrap
52525configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 52526configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 52527configure-target-libmpx: maybe-all-target-libgcc
95e43135 52528configure-target-libvtv: maybe-all-target-libgcc
e3f56a99 52529configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 52530configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 52531configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 52532configure-target-newlib: maybe-all-target-libgcc
2bf680c4 52533configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 52534configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
52535configure-target-libgfortran: maybe-all-target-libgcc
52536configure-target-libobjc: maybe-all-target-libgcc
e552509b 52537configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
52538configure-target-libtermcap: maybe-all-target-libgcc
52539configure-target-winsup: maybe-all-target-libgcc
52540configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82 52541configure-target-libffi: maybe-all-target-libgcc
6aa8ef82 52542configure-target-zlib: maybe-all-target-libgcc
6aa8ef82
DJ
52543configure-target-rda: maybe-all-target-libgcc
52544configure-target-libada: maybe-all-target-libgcc
52545configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
52546configure-target-libitm: maybe-all-target-libgcc
52547configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
52548@endif gcc-no-bootstrap
52549
52550
52551configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
52552
5286fdef
L
52553configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
52554
1b6c0831
L
52555configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
52556
95e43135
JBG
52557configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
52558
e3f56a99
NC
52559configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
52560configure-target-libcilkrts: maybe-all-target-libstdc++-v3
52561
1b6c0831
L
52562configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
52563configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
52564
6aa8ef82
DJ
52565configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
52566
52567
52568
2bf680c4
ILT
52569configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
52570
e552509b
ILT
52571configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
52572
6aa8ef82
DJ
52573configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
52574
52575configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
52576
e552509b
ILT
52577configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
52578
6aa8ef82
DJ
52579configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
52580
52581configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
52582
52583
6aa8ef82 52584configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 52585configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82 52586
6aa8ef82
DJ
52587configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
52588
6aa8ef82
DJ
52589configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
52590
52591configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
52592
52593configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
52594
7ec59b9e
L
52595configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
52596configure-target-libitm: maybe-all-target-libstdc++-v3
52597
52598configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
52599
6aa8ef82 52600
907be67c 52601CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 52602GDB_TK = @GDB_TK@
907be67c
DJ
52603INSTALL_GDB_TK = @INSTALL_GDB_TK@
52604configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 52605all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 52606install-gdb: $(INSTALL_GDB_TK)
907a7241 52607
a2cc058a
NN
52608# Serialization dependencies. Host configures don't work well in parallel to
52609# each other, due to contention over config.cache. Target configures and
52610# build configures are similar.
52611@serialization_dependencies@
52612
15723a45
NN
52613# --------------------------------
52614# Regenerating top level configury
52615# --------------------------------
252b5132 52616
14a2a2f1 52617# Rebuilding Makefile.in, using autogen.
43be203f 52618AUTOGEN = autogen
6b784d9f 52619$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 52620 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 52621
a0da8069 52622# Rebuilding Makefile.
43be203f
AO
52623Makefile: $(srcdir)/Makefile.in config.status
52624 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
52625
479759c8 52626config.status: configure
10ecffb9 52627 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 52628
a0da8069 52629# Rebuilding configure.
43be203f 52630AUTOCONF = autoconf
da888c87 52631$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
0597bdc4
AM
52632 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
52633 $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
52634 $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
52635 $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
43be203f 52636 cd $(srcdir) && $(AUTOCONF)
252b5132 52637
3728fade
NN
52638# ------------------------------
52639# Special directives to GNU Make
52640# ------------------------------
52641
3728fade
NN
52642# Don't pass command-line variables to submakes.
52643.NOEXPORT:
52644MAKEOVERRIDES=
52645
252b5132 52646# end of Makefile.in
This page took 5.389663 seconds and 4 git commands to generate.